:root {
  --bg: #f6f1e8;
  --bg-soft: #fffbf4;
  --text: #16262b;
  --muted: #486066;
  --card: rgba(255, 255, 255, 0.84);
  --line: #d7cec1;
  --primary: #0f6f6c;
  --primary-strong: #0b5552;
  --accent: #f08b39;
  --accent-soft: #ffd7b0;
  --ring: rgba(15, 111, 108, 0.2);
  --shadow-lg: 0 20px 60px rgba(22, 38, 43, 0.14);
  --shadow-sm: 0 8px 22px rgba(22, 38, 43, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, #ffe6bf 0%, rgba(255, 230, 191, 0) 37%),
    radial-gradient(circle at 85% 12%, #d6f1ec 0%, rgba(214, 241, 236, 0) 42%),
    radial-gradient(circle at 50% 110%, #fff4e0 0%, rgba(255, 244, 224, 0) 44%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 36px 36px;
}

::selection {
  background: var(--accent-soft);
  color: #3e2a14;
}

.bg-orb {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.28;
}

.orb-a {
  background: #29b2a5;
  top: -14rem;
  right: -8rem;
}

.orb-b {
  background: #ffba68;
  bottom: -16rem;
  left: -10rem;
}

body.page-app .orb-a {
  background: #2fa7a2;
}

body.page-app .orb-b {
  background: #f4a052;
}

.section {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(215, 206, 193, 0.8);
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0.8rem;
  z-index: 20;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-links a {
  color: #25555a;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  border: 1px solid #bed3ce;
  border-radius: 999px;
  padding: 0.42rem 0.76rem;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  transform: translateY(-1px);
  border-color: #9dbeb8;
}

.nav-links a[aria-current="page"] {
  color: #efffff;
  background: linear-gradient(135deg, var(--primary), #14837f);
  border-color: var(--primary);
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.06rem;
}

.brand-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(240, 139, 57, 0.18);
}

.hero {
  padding: clamp(2rem, 6vw, 4.8rem) 0 1.8rem;
  position: relative;
  animation: hero-enter 650ms ease both;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: #e4f2ef;
  color: #0d5956;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

body.page-app .eyebrow {
  background: #ffe9d2;
  color: #94500d;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  margin-top: 1rem;
  max-width: 16ch;
  text-wrap: balance;
  font-size: clamp(2.25rem, 8vw, 4.8rem);
}

.subtitle {
  max-width: 62ch;
  font-size: clamp(1rem, 3.4vw, 1.15rem);
  color: var(--muted);
  margin: 1rem 0 1.1rem;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.05rem;
}

.signal {
  border: 1px solid #d7d1c4;
  background: rgba(255, 255, 255, 0.68);
  color: #32565d;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 600;
}

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

.appstore-btn {
  border: 1px solid #d8d3c8;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  padding: 0.25rem;
  margin: 0;
  line-height: 0;
  cursor: not-allowed;
  opacity: 0.85;
  filter: grayscale(0.15);
}

.appstore-btn img {
  display: block;
  width: 150px;
  height: auto;
  border-radius: 10px;
}

.btn {
  border: none;
  text-decoration: none;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.76rem 1.16rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.primary {
  color: #f3fffd;
  background: linear-gradient(135deg, var(--primary), #13807b);
  box-shadow: var(--shadow-lg);
}

.primary:hover {
  background: linear-gradient(135deg, var(--primary-strong), #0e6a67);
}

.secondary {
  color: #24484f;
  background: #f4ecdd;
  border: 1px solid #dccfaf;
}

.ghost {
  color: var(--primary-strong);
  background: transparent;
  border: 1px solid #b8d8d2;
}

.hint {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 1.2rem 0;
}

.card {
  background: var(--card);
  border: 1px solid rgba(215, 206, 193, 0.9);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #beb8ad;
  box-shadow: 0 14px 36px rgba(22, 38, 43, 0.12);
}

.card h2 {
  font-size: 1.22rem;
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.waitlist {
  margin-top: 1.4rem;
  margin-bottom: 2rem;
  padding: 1.3rem;
  border-radius: var(--radius);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 239, 0.95)),
    radial-gradient(circle at 12% 25%, rgba(240, 139, 57, 0.14), rgba(240, 139, 57, 0));
  border: 1px solid rgba(215, 206, 193, 0.95);
  box-shadow: var(--shadow-sm);
}

.waitlist h2 {
  font-size: clamp(1.4rem, 5vw, 2rem);
}

.waitlist p {
  color: var(--muted);
  margin: 0.5rem 0 0.9rem;
}

.waitlist-form {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.waitlist-form input {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid #c8d8d4;
  border-radius: 999px;
  padding: 0.74rem 0.96rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.waitlist-form input:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

#form-note {
  display: inline-block;
  margin-top: 0.7rem;
  min-height: 1.2rem;
  color: var(--primary-strong);
}

.micro-copy {
  margin: 0.45rem 0 0;
  color: #6a797e;
  font-size: 0.78rem;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid rgba(215, 206, 193, 0.95);
  padding: 1.2rem 0 1.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
    padding: 0.75rem;
    border-radius: 24px;
    top: 0.55rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  h1 {
    max-width: 100%;
  }

  .btn {
    width: fit-content;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .appstore-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
