:root {
  --royal-blue: #1D4ED8;
  --coral: #FF6B6B;
  --lilac: #B794F4;
  --soft-cream: #FFF7F0;
  --graphite: #1F2937;
  --white: #FFFFFF;
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--soft-cream);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--graphite);
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--royal-blue);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 247, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--royal-blue);
  border-radius: 2px;
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-links a:hover { color: var(--royal-blue); }

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary {
  background: var(--royal-blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background: #1a43c4;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--graphite);
  border: 1.5px solid rgba(31, 41, 55, 0.25);
}

.btn-secondary:hover {
  border-color: var(--royal-blue);
  color: var(--royal-blue);
  background: rgba(29, 78, 216, 0.05);
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-inner > * {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.35s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: table;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--royal-blue);
  background: rgba(29, 78, 216, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(31, 41, 55, 0.75);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 560px;
  height: 560px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s ease 0.2s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.glow-blobs {
  transform-origin: center;
  animation: glowPulse 9s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.06) translate(-6px, 6px); }
}

.sparkle {
  transform-origin: 404px 154px;
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.55; transform: scale(0.8) rotate(8deg); }
}

.float-dot {
  animation: floatDot 5s ease-in-out infinite;
}

.float-dot-2 { animation-duration: 6.5s; animation-delay: 0.6s; }

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

.arrow-path {
  transform-origin: center;
  animation: arrowRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

@keyframes arrowRise {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner > *,
  .hero-visual,
  .glow-blobs,
  .sparkle,
  .float-dot,
  .arrow-path {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Icon badges — used for feature cards and brand pillars */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.icon-badge-blue {
  background: rgba(29, 78, 216, 0.1);
  color: var(--royal-blue);
}

.icon-badge-lilac {
  background: rgba(183, 148, 244, 0.16);
  color: #8B5CF6;
  margin-left: auto;
  margin-right: auto;
}

/* Features */
.features {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.features h2, .pillars h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(31, 41, 55, 0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(31, 41, 55, 0.12);
}

.feature-card:hover .icon-badge {
  transform: scale(1.12) rotate(-6deg);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: rgba(31, 41, 55, 0.7);
  font-size: 0.95rem;
}

/* Pillars */
.pillars {
  background: var(--white);
  padding: 5rem 1.5rem;
}

.pillar-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.pillar {
  transition: transform 0.3s ease;
}

.pillar:hover {
  transform: translateY(-4px);
}

.pillar:hover .icon-badge-lilac {
  transform: scale(1.12);
  background: rgba(183, 148, 244, 0.28);
}

.pillar h4 {
  color: var(--royal-blue);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.9rem;
  color: rgba(31, 41, 55, 0.7);
}

/* CTA band */
.cta-band {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(31, 41, 55, 0.7);
  margin-bottom: 2rem;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 41, 55, 0.2);
  background: var(--white);
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 320px;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--royal-blue);
}

.waitlist-form button {
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.waitlist-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.waitlist-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.waitlist-success { color: #15803d; }
.waitlist-error { color: var(--coral); }

@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; align-items: stretch; }
  .waitlist-form input[type="email"] {
    max-width: none;
    min-width: 0;
    /* flex-basis is the *height* basis once the axis flips to column —
       without resetting this, the 260px desktop width-basis inflates
       the input into a ~260px-tall box instead of a normal field. */
    flex: 0 0 auto;
  }
}

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: rgba(31, 41, 55, 0.55);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
}

.legal p {
  color: rgba(31, 41, 55, 0.8);
  margin-bottom: 1rem;
}

.legal ul {
  color: rgba(31, 41, 55, 0.8);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

/* Footer */
.footer {
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 1.5rem 2.5rem;
}

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

.footer-top {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-top .brand {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.footer-brand .brand-name { color: var(--white); }

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-subtext {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover { color: var(--lilac); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-visual { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .nav-inner { padding: 0.85rem 1.25rem; }

  .hero { padding: 2.75rem 1.25rem 3rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero-sub { margin-bottom: 1.5rem; }
  .hero-cta { gap: 0.75rem; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }

  .features { padding: 0.5rem 1.25rem 3rem; }
  .features h2, .pillars h2 { margin-bottom: 1.75rem; }
  .feature-grid { gap: 1rem; }
  .feature-card { padding: 1.5rem; }

  .pillars { padding: 3rem 1.25rem; }
  .pillar-grid { gap: 2rem; }

  .cta-band { padding: 3rem 1.25rem; }

  .legal { padding: 2.5rem 1.25rem 4rem; }

  .footer { padding: 2.5rem 1.25rem 2rem; }
  .footer-links { flex-wrap: wrap; row-gap: 0.5rem; }
}
