:root {
  --bg: #f6fbff;
  --bg-alt: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.78);
  --accent: #18a36f;
  --accent-dark: #137a53;
  --accent-2: #1875ff;
  --text-main: #1c2740;
  --text-soft: #5e6b85;
  --card: #ffffff;
  --border: rgba(212, 226, 245, 0.7);
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 40px rgba(11, 28, 58, 0.08);
  --shadow-phone: 0 20px 35px rgba(0, 0, 0, 0.18);
  --chip-bg: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] {
  --bg: #070b12;
  --bg-alt: #0b1220;
  --bg-elev: rgba(10, 16, 28, 0.7);
  --text-main: #e8f0ff;
  --text-soft: #a9b6d2;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-phone: 0 22px 45px rgba(0, 0, 0, 0.55);
  --chip-bg: rgba(255, 255, 255, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg);
}

/* TOP PROGRESS */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(24, 117, 255, 0.35);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-lead { color: var(--text-soft); max-width: 620px; }

h1, h2, h3 { margin: 0 0 12px; }
h1 { font-size: clamp(32px, 4vw, 42px); }
h2 { font-size: clamp(26px, 3vw, 32px); }
h3 { font-size: 20px; }

p { margin: 0 0 12px; color: var(--text-soft); }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-elev);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand { display: flex; flex-direction: column; gap: 2px; }

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #29d2a1, #1875ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.brand-subtitle { font-size: 11px; color: var(--text-soft); }

.nav { display: flex; gap: 18px; align-items: center; }

.nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover { color: var(--accent); }

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(24, 163, 111, 0.12);
  color: var(--accent-dark);
}

.theme-toggle {
  margin-left: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); }

.theme-icon { font-size: 16px; line-height: 1; }

/* NAV MOBILE */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

/* HERO */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 10% 10%, rgba(24, 117, 255, 0.14), transparent 60%),
              radial-gradient(900px 700px at 80% 20%, rgba(24, 163, 111, 0.16), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.0) 65%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/dMmnPWhNLsECdbE0QFwgL.png");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  pointer-events: none;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.7;
  animation: drift 12s ease-in-out infinite;
}

.blob-a { left: -160px; top: -120px; background: rgba(24, 117, 255, 0.35); }
.blob-b { right: -180px; top: 60px; background: rgba(24, 163, 111, 0.32); animation-duration: 14s; }
.blob-c { left: 15%; bottom: -220px; background: rgba(255, 255, 255, 0.18); animation-duration: 16s; }

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 70px;
}

.hero-content {
  max-width: 560px;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.hero-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #29d2a1, #1875ff);
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 14px;
}

.hero p { margin-bottom: 20px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  text-decoration: none;
  color: var(--text-soft);
  animation: float 2.4s infinite ease-in-out;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1ab98a);
  color: #fff;
  box-shadow: 0 12px 25px rgba(24, 163, 111, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(24, 163, 111, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-ghost:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.06); }

/* GRIDS / CARDS */
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.cards-column { display: flex; flex-direction: column; gap: 14px; }

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  box-shadow: 0 12px 28px rgba(20, 31, 55, 0.06);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(20, 31, 55, 0.10);
}

.card h3 { margin-bottom: 6px; }

.highlight-box {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(24, 163, 111, 0.14);
  color: var(--text-main);
  font-size: 14px;
  border: 1px solid var(--border);
}

.image-col img,
.card-image img {
  width: 100%;
  display: block;
  border-radius: 26px;
}

.phone-shadow img { box-shadow: var(--shadow-phone); }

.media-small {
  max-width: 380px;
  justify-self: center;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.card-image { margin-bottom: 14px; }

/* TIMELINE */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 32px;
}

.timeline-item { position: relative; padding-top: 12px; }
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  border: 3px solid #e6f6ec;
  margin-bottom: 12px;
}

.timeline-footer { margin-top: 24px; max-width: 620px; }

/* MARKET / NUMBERS */
.market-reasons ul { padding-left: 20px; margin: 10px 0 0; }
.market-reasons li { margin-bottom: 6px; font-size: 14px; }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.number-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(20, 31, 55, 0.06);
}

.number-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.number-label span { font-size: 12px; color: var(--text-soft); }
.number-note { font-size: 13px; }
.numbers-footer { margin-top: 26px; font-size: 14px; }

/* VISION */
.vision { position: relative; color: #fff; overflow: hidden; }
.vision-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/dMmnPWhNLsECdbE0QFwgL.png");
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  transform: scale(1.05);
}
.vision-content { position: relative; z-index: 1; text-align: left; }
.vision h2 { color: #fff; }
.vision p { color: #fdfdfd; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* MOOD GRID */
.mood-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.mood-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s ease;
}

.mood-grid img:hover { transform: translateY(-2px) scale(1.01); }

.mood-grid img:nth-child(1) { grid-column: span 6; }
.mood-grid img:nth-child(2) { grid-column: span 6; }
.mood-grid img:nth-child(3) { grid-column: span 7; }
.mood-grid img:nth-child(4) { grid-column: span 5; }

/* WAITLIST */
.waitlist-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(360px, 100%);
}

.waitlist-form input[type="email"] {
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid #d3e1f6;
  font-size: 14px;
  outline: none;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(24, 163, 111, 0.2);
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.35;
}

.privacy-consent input[type="checkbox"] {
  margin-top: 2px;
}

.privacy-consent a {
  color: var(--accent);
  text-decoration: none;
}

.privacy-consent a:hover { text-decoration: underline; }

.form-message { min-height: 18px; font-size: 13px; }
.waitlist-note { font-size: 12px; color: var(--text-soft); }

/* FOOTER */
.site-footer {
  padding: 18px 0 22px;
  background: #07101e;
  color: #d9e4ff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.footer-links a {
  color: #c0d8ff;
  text-decoration: none;
}

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

.back-to-top { color: #c0d8ff; text-decoration: none; font-size: 13px; }

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

/* SCROLL ANIMATIONS */
.fade-section {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(14px, -18px, 0) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-down, .blob { animation: none !important; }
  .fade-section { transition: none; }
  .card, .btn, .mood-grid img, .theme-toggle { transition: none; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .two-cols { grid-template-columns: minmax(0, 1fr); }
  .solution-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .numbers-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    right: 16px;
    top: 58px;
    background: var(--bg-alt);
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(17, 33, 64, 0.2);
    flex-direction: column;
    gap: 10px;
    display: none;
  }

  .nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-content {
    padding: 24px 18px 26px;
    background: var(--bg-elev);
  }

  .mood-grid { grid-template-columns: 1fr; }
  .mood-grid img { height: 210px; }
  .mood-grid img:nth-child(n) { grid-column: auto; }

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

  .site-footer { text-align: center; }
  .footer-inner { flex-direction: column; align-items: center; }
}

/* MEDIA HELPERS */
.inline-media {
  margin: 18px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.inline-media img {
  width: 100%;
  height: auto;
  display: block;
}

.media-small img,
.soft-media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.soft-media {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card-media {
  margin: 0 0 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.card-media img {
  width: 100%;
  height: auto;
  display: block;
}

.numbers-splash {
  margin-top: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.numbers-splash img { width: 100%; height: auto; display: block; opacity: 0.95; }

.waitlist-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist-media {
  margin-top: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  max-width: 420px;
}

.waitlist-media img { width: 100%; height: auto; display: block; }

/* Slightly tighter images on small screens */
@media (max-width: 720px) {
  .waitlist-media { max-width: 100%; }
}

@media (max-width: 880px) {
  .vision-content { text-align: center; }
}

.stack-media {
  display: grid;
  gap: 14px;
}

.soft-media-mini {
  border-radius: var(--radius-md);
}

.inline-media.inline-media-slim img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
