@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #fbf6ee;
  --cream-deep: #f3e8d6;
  --paper: #fffdf8;
  --navy: #1b2340;
  --navy-soft: #2c3658;
  --muted: #5a6484;
  --violet: #7b61ff;
  --violet-deep: #5b3fd4;
  --purple: #af52bf;
  --coral: #ff6b5b;
  --coral-deep: #e85a4f;
  --sun: #ffd56a;
  --mint: #7dd3c0;
  --mint-soft: #c9f2e6;
  --line: rgba(27, 35, 64, 0.1);
  --shadow: 0 18px 50px rgba(91, 63, 212, 0.14);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--navy);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 213, 106, 0.35), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(123, 97, 255, 0.22), transparent 32%),
    radial-gradient(circle at 80% 78%, rgba(125, 211, 192, 0.22), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(255, 107, 91, 0.12), transparent 28%),
    linear-gradient(180deg, var(--cream) 0%, #f7efe3 48%, var(--cream-deep) 100%);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(27, 35, 64, 0.035) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}

a {
  color: var(--violet-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--violet);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.55;
  pointer-events: none;
  animation: twinkle 3.8s ease-in-out infinite;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.1rem 0 0.4rem;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(27, 35, 64, 0.06);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(123, 97, 255, 0.25);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy-soft);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--violet-deep);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--purple));
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(123, 97, 255, 0.28);
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), #ff8f6b);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: 'Fredoka', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  margin: 0.85rem 0 1rem;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.lede,
.section-intro {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40rem;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-head .section-intro {
  margin: 0.6rem auto 0;
}

.hero {
  padding: 2.2rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .lede {
  margin-bottom: 1.6rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--purple));
  color: #fff;
  box-shadow: 0 14px 30px rgba(123, 97, 255, 0.3);
}

.btn-secondary {
  background: var(--paper);
  color: var(--navy);
  border-color: rgba(123, 97, 255, 0.25);
  box-shadow: 0 10px 24px rgba(27, 35, 64, 0.06);
}

.btn-secondary:hover {
  border-color: var(--violet);
}

.app-store-badge {
  height: 48px;
  width: auto;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-visual .blob.a {
  width: 280px;
  height: 280px;
  background: rgba(123, 97, 255, 0.22);
  top: 10%;
  right: 4%;
}

.hero-visual .blob.b {
  width: 180px;
  height: 180px;
  background: rgba(255, 213, 106, 0.45);
  bottom: 8%;
  left: 8%;
}

.phone-frame {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3148, #121722);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  border-radius: 999px;
  background: #0b0e16;
  z-index: 3;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: var(--cream);
}

.hero-float {
  position: absolute;
  width: min(240px, 48vw);
  right: -4%;
  bottom: 4%;
  z-index: 3;
  filter: drop-shadow(0 18px 30px rgba(91, 63, 212, 0.28));
  animation: floaty 5s ease-in-out infinite;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step-card,
.feature-card,
.faq details,
.panel,
.contact-card {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(27, 35, 64, 0.05);
}

.step-card {
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sun), #ffe8a8);
  color: var(--navy);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.15), rgba(175, 82, 191, 0.12));
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.85rem 1rem 1.05rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.made-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
}

.made-card {
  background: linear-gradient(145deg, rgba(123, 97, 255, 0.12), rgba(255, 213, 106, 0.18));
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid rgba(123, 97, 255, 0.15);
}

.made-card img {
  border-radius: 22px;
}

.anchor-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.anchor-pair img {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq details {
  padding: 0.35rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  padding: 1rem 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(123, 97, 255, 0.12);
  color: var(--violet-deep);
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--muted);
  padding-bottom: 1rem;
}

.final-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 213, 106, 0.45), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(175, 82, 191, 0.28), transparent 40%),
    linear-gradient(135deg, #efe7ff, #fff6df);
  border: 1px solid rgba(123, 97, 255, 0.15);
  box-shadow: var(--shadow);
}

.final-cta .cta-row {
  justify-content: center;
  margin-top: 1.4rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  gap: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--navy-soft);
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--violet-deep);
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  margin-bottom: 0.6rem;
}

.panel {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.panel h2,
.panel h3 {
  margin-bottom: 0.7rem;
}

.panel p + p,
.panel ul {
  margin-top: 0.75rem;
}

.panel ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.panel li + li {
  margin-top: 0.45rem;
}

.contact-card {
  padding: 1.4rem 1.5rem;
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0 2rem;
  background: linear-gradient(145deg, rgba(125, 211, 192, 0.18), rgba(255, 253, 248, 0.95));
}

.contact-card a {
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
}

.contact-card a:hover {
  color: var(--violet-deep);
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.meta-pill {
  background: rgba(255, 253, 248, 0.95);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
}

.meta-pill span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-pill strong {
  font-size: 1.02rem;
}

.policy-note {
  background: rgba(255, 213, 106, 0.25);
  border: 1px solid rgba(255, 189, 46, 0.4);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.5rem;
  color: var(--navy-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

@media (max-width: 980px) {
  .hero-grid,
  .made-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 360px;
  }

  .hero-float {
    width: min(180px, 42vw);
    right: 2%;
  }

  .steps-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .meta-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-bar {
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: space-between;
  }

  .nav-cta {
    width: 100%;
  }

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

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .app-store-badge {
    width: 100%;
  }

  .app-store-badge {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-float,
  .sparkle {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
