:root {
  --paper: #ffffff;
  --hero-bg: #fafafa;
  --cream: #faefd9;
  --ink: #312f2c;
  --ink-soft: #8a8378;
  --amber: #eaab45;
  --border: #eae6dd;
  --dot-blue: #4fb6e0;
  --dot-orange: #e0894f;
  --dot-purple: #b46fe0;
  --shadow: 0 1px 2px rgba(49, 47, 44, 0.06);

  --area-estudio: #b46fe0;
}

:root[data-theme="dark"] {
  --paper: #1b1a17;
  --hero-bg: #221f1b;
  --cream: #2e2a22;
  --ink: #f3f0ea;
  --ink-soft: #9c9689;
  --amber: #f0b558;
  --border: #3a352c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1a17;
    --hero-bg: #221f1b;
    --cream: #2e2a22;
    --ink: #f3f0ea;
    --ink-soft: #9c9689;
    --amber: #f0b558;
    --border: #3a352c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Type tokens */
.fd-display {
  font-family: "Fredoka", sans-serif;
  font-size: 28px;
  font-weight: 600;
}
.fd-title {
  font-family: "Fredoka", sans-serif;
  font-size: 23px;
  font-weight: 600;
}
.fd-heading {
  font-family: "Fredoka", sans-serif;
  font-size: 17px;
  font-weight: 500;
}
.nu-body {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.nu-stat {
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.nu-muted {
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.nu-eyebrow {
  font-family: "Nunito", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  width: 100%;
  background: var(--paper);
}

.nav-inner {
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-inner .theme-toggle {
  justify-self: end;
}

.brand {
  color: var(--ink);
}

.nav-tab {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-tab:hover {
  color: var(--ink);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  background: var(--cream);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.theme-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* Layout */
.landing {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

/* Hero */
.hero-card {
  background: var(--hero-bg);
  border-radius: 28px;
  padding: 56px 40px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: background 0.25s ease;
}

.duck {
  width: 150px;
  height: 150px;
  object-fit: contain;
  image-rendering: pixelated;
  animation: float 3.5s ease-in-out infinite;
  margin-bottom: 16px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.eyebrow {
  color: var(--amber);
  margin: 0 0 14px;
}

.hero-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 18px;
}

.hero-sub {
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}

.bubble {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border-radius: 40px 44px 36px 46px / 30px 34px 26px 32px;
  padding: 22px 44px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.bubble-title {
  margin: 0;
  color: var(--ink);
}

/* Features */
.features {
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.feature-card {
  text-decoration: none;
  cursor: pointer;
}

a.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(49, 47, 44, 0.1);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.feature-title {
  color: var(--ink);
}

.feature-desc {
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-blue { background: var(--dot-blue); }
.dot-orange { background: var(--dot-orange); }
.dot-purple { background: var(--dot-purple); }

/* Footer */
.landing-footer {
  margin-top: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
}

.footer-dot {
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 760px) {
  .nav-inner {
    padding: 18px 20px;
  }
  .landing {
    padding: 0 20px 48px;
  }
  .hero-card {
    padding: 44px 24px 72px;
    border-radius: 22px;
  }
  .features {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }
  .bubble {
    padding: 18px 28px;
    white-space: normal;
    width: 88%;
  }
}
