/* Base design tokens */

:root {
  --bg: #fdf9f7;
  --bg-alt: #f7f2f0;
  --ink: #22202a;
  --muted: #6f6676;
  --accent: #e2a5b8;
  --accent-soft: #f4cedb;
  --accent-dark: #c07390;
  --border-soft: #e3d6cf;
  --card-bg: #ffffff;

  --radius-lg: 24px;
  --radius-md: 16px;

  --shadow-soft: 0 18px 45px rgba(15, 8, 24, 0.08);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(circle at top left, #fffaf7 0, var(--bg) 40%, #f6f0ea 100%);
  -webkit-font-smoothing: antialiased;
}

/* Typography */

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 3.2vw + 1.4rem, 3.6rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  line-height: 1.55;
  color: var(--muted);
}

strong {
  font-weight: 600;
}

/* Layout containers */

.site-header,
.site-footer,
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(227, 214, 207, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

/* Logo */

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffeef5 0, var(--accent-soft) 45%, #f6dadd 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 10px 24px rgba(117, 49, 80, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-primary {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Navigation */

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

/* Hero */

.hero-section {
  padding: 4rem 1.5rem 3.5rem;
}

.hero-content {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 32rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 0.75rem;
}

.hero-meta {
  font-size: 0.85rem;
}

/* Hero visual + animation */

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-orbit {
  position: relative;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fff 0, #fdeff4 50%, #f4e3f0 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: orbit-glow 6s ease-in-out infinite;
}

.hero-orbit-core {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -52%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 25% 20%, #fff8fb 0, var(--accent) 50%, var(--accent-dark) 100%);
  animation: orbit-float 5.5s ease-in-out infinite;
}

.hero-orbit-ring {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  animation: orbit-rotate 40s linear infinite;
  transform-origin: center;
}

.hero-orbit-ring-2 {
  inset: 32%;
  border-style: solid;
  opacity: 0.8;
  animation-duration: 55s;
  animation-direction: reverse;
}

.hero-orbit-icon {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.hero-orbit-icon-1 {
  top: 18%;
  left: 10%;
  animation: icon-orbit-1 7s ease-in-out infinite;
}

.hero-orbit-icon-2 {
  top: 65%;
  right: 12%;
  animation: icon-orbit-2 8.5s ease-in-out infinite;
}

.hero-orbit-icon-3 {
  bottom: 15%;
  left: 45%;
  animation: icon-orbit-3 9s ease-in-out infinite;
}

.hero-caption {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
  max-width: 18rem;
}

/* Sections */

.section {
  padding: 3.5rem 1.5rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-header p {
  margin-bottom: 0.5rem;
}

/* Grids and columns */

.two-column {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: flex-start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 12px 35px rgba(36, 18, 40, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.feature-card h3 {
  margin-bottom: 0.3rem;
}

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step {
  border-radius: var(--radius-md);
  background: var(--card-bg);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 18px 45px rgba(36, 18, 40, 0.04);
}

/* Panels */

.panel {
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
}

.panel-soft {
  background: linear-gradient(145deg, #fff7fb, #f9edf5);
  box-shadow: var(--shadow-soft);
}

.panel-outline {
  border: 1px solid var(--border-soft);
  background: #fefcfa;
  box-shadow: 0 14px 35px rgba(28, 6, 26, 0.05);
}

.panel-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Lists */

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.benefit-list li {
  margin-bottom: 0.8rem;
}

.benefit-list strong {
  display: block;
  margin-bottom: 0.1rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.timeline li {
  margin-bottom: 0.55rem;
}

.timeline-day {
  display: inline-block;
  min-width: 2.4rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.science-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.science-list li {
  margin-bottom: 0.9rem;
}

.plain-list {
  list-style: disc;
  margin: 0.75rem 0 0.75rem 1.25rem;
  padding: 0;
}

/* Worlds */

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.world-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 35px rgba(28, 6, 26, 0.05);
}

/* Buttons and text links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out, color 0.12s ease-out;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 40px rgba(140, 63, 106, 0.4);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(140, 63, 106, 0.5);
}

.btn-secondary {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(43, 23, 43, 0.14);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.92rem;
  color: var(--accent-dark);
  text-decoration: none;
  padding-bottom: 0.05rem;
  border-bottom: 1px solid rgba(192, 115, 144, 0.6);
}

.text-link:hover,
.text-link:focus-visible {
  border-color: var(--accent-dark);
}

/* Forms */

.contact-section {
  padding-bottom: 4.5rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  max-width: 30rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-row-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
select,
textarea {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(227, 214, 207, 0.8);
  background: #fbf5f2;
  padding: 2.5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-family: var(--font-serif);
  text-transform: lowercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.footer-note {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 0.4rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Skip link */

.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -3rem;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  border-radius: 999px;
  z-index: 50;
  text-decoration: none;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Hero orbit keyframes */

@keyframes orbit-rotate {
  0% {
    transform: translateZ(0) rotate(0deg);
  }
  100% {
    transform: translateZ(0) rotate(360deg);
  }
}

@keyframes orbit-float {
  0% {
    transform: translate(-50%, -52%);
  }
  50% {
    transform: translate(-50%, -48%);
  }
  100% {
    transform: translate(-50%, -52%);
  }
}

@keyframes orbit-glow {
  0% {
    box-shadow: 0 18px 45px rgba(36, 18, 40, 0.08);
  }
  50% {
    box-shadow: 0 28px 60px rgba(36, 18, 40, 0.18);
  }
  100% {
    box-shadow: 0 18px 45px rgba(36, 18, 40, 0.08);
  }
}

@keyframes icon-orbit-1 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4px, -6px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes icon-orbit-2 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-6px, 4px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes icon-orbit-3 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(3px, 6px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .worlds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav ul {
    gap: 0.9rem;
    font-size: 0.85rem;
  }

  .hero-section {
    padding-top: 3.25rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .worlds-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}
