/* helio — Global styles
   Reference: Premium glassmorphism. Inter. Emerald accent.
   See /workspace/helio/02-landing-page-plan.md §6 for design tokens.
*/

:root {
  /* Palette */
  --bg-dark: #000000;
  --bg-light: #F4F4F5;
  --zinc: #18181B;
  --zinc-mid: #71717A;
  --emerald: #34D399;
  --emerald-deep: #10B981;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.20);
  --text-on-dark: rgba(255, 255, 255, 0.92);
  --text-on-dark-mid: rgba(255, 255, 255, 0.60);

  /* Radius */
  --r-section: 2.5rem;   /* 40px */
  --r-card: 2rem;        /* 32px */
  --r-card-sm: 1rem;     /* 16px */
  --r-card-md: 1.5rem;   /* 24px */
  --r-pill: 9999px;
}

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

html, body {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

::selection {
  background: var(--emerald);
  color: #000;
}

/* ============================
   GRAIN OVERLAY
   ============================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================
   GLASS COMPONENTS
   ============================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card-sm);
}

.glass-md {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card-md);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
}

.glass-hover {
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-hover:hover {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-strong);
  transform: scale(1.05);
}

/* ============================
   PILL BUTTON
   ============================ */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.625rem 0.625rem 1.75rem;
  background: #fff;
  color: #18181B;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-pill:hover {
  transform: scale(1.05);
}
.btn-pill .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: #18181B;
  border-radius: var(--r-pill);
  transition: background 300ms ease;
  flex-shrink: 0;
}
.btn-pill:hover .btn-icon {
  background: var(--zinc-mid);
}
.btn-pill .btn-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #fff;
}

.btn-pill-emerald {
  background: var(--emerald);
  color: #000;
}
.btn-pill-emerald .btn-icon {
  background: #000;
}
.btn-pill-emerald:hover .btn-icon {
  background: #000;
}

/* ============================
   EYEBROW LABEL
   ============================ */
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-mid);
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 92vh;
  margin: 1rem;
  border-radius: var(--r-section);
  overflow: hidden;
  isolation: isolate;
  background: var(--zinc);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(52, 211, 153, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(24, 24, 27, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%);
  z-index: -2;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22vw;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  filter: blur(2px);
  z-index: -1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================
   FLOATING GLASS NAVBAR
   Works on dark AND light sections — zinc-tinted glass with strong border
   ============================ */
.nav-floating {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  background: rgba(20, 20, 25, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav-floating a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--r-pill);
  transition: all 200ms ease;
  white-space: nowrap;
}
.nav-floating a:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}
.nav-floating .brand-mark {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.125rem;
  color: #fff;
  padding: 0.5rem 1rem 0.5rem 1rem;
}
.nav-floating .nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: var(--r-pill);
  transition: background 200ms ease;
  margin-right: 0.25rem;
}
.nav-floating .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.10);
}
.nav-floating .nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Mobile dropdown panel */
.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 1rem;
  right: 1rem;
  z-index: 49;
  background: rgba(20, 20, 25, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-card);
  padding: 0.75rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.nav-mobile-panel.open {
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile-panel a {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--r-card-sm);
  transition: background 200ms ease;
}
.nav-mobile-panel a:hover,
.nav-mobile-panel a:active {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}
.nav-mobile-panel .nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 0.5rem 0;
}

/* Lock body scroll when mobile nav open */
body.nav-open {
  overflow: hidden;
}

/* ============================
   GLASS STAT CARD
   ============================ */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  min-width: 240px;
}
.stat-card .stat-value {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}
.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--text-on-dark-mid);
}

/* ============================
   GLASS FORM
   Inline pill form: email + select + button all in one glass surface
   ============================ */
.glass-form {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.375rem;
  background: rgba(20, 20, 25, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  max-width: 640px;
  min-height: 56px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.glass-form input,
.glass-form select {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 1.25rem;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-form input:last-of-type,
.glass-form select:last-of-type {
  border-right: none;
}
.glass-form input::placeholder {
  color: var(--text-on-dark-mid);
}
.glass-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 2.75rem;
}
.glass-form select option {
  background: var(--zinc);
  color: #fff;
}
.glass-form button {
  margin-left: 0.125rem;
}

/* Hero CTA wrapper — separates the form from the button when stacked */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-cta .glass-form {
  flex: 1 1 380px;
  min-width: 0;
}

/* ============================
   SECTIONS
   ============================ */
.section {
  padding: 6rem 2rem;
  position: relative;
}
.section-light {
  background: var(--bg-light);
  color: #18181B;
  border-radius: var(--r-section);
  margin: 0 1rem;
}
.section-dark {
  background: var(--bg-dark);
}
.section-zinc {
  background: var(--zinc);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================
   TYPOGRAPHY
   ============================ */
.h-display {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.h-hero {
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.h-section {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.h-card {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.body-lg {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-on-dark-mid);
}
.body-secondary {
  color: var(--zinc-mid);
}
.body-secondary-dark {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================
   CARDS
   ============================ */
.card {
  background: #fff;
  border: 1px solid #E4E4E7;
  border-radius: var(--r-card);
  padding: 2rem;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  transform: scale(1.02);
  border-color: var(--emerald);
}

/* ============================
   STEP / BENTO
   ============================ */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-card-sm);
  background: var(--emerald);
  color: #000;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

/* ============================
   ACCORDION (FAQ)
   ============================ */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: 1.5rem 0;
  cursor: pointer;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
}
.faq-icon {
  transition: transform 300ms ease;
  color: var(--emerald);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease, margin-top 400ms ease;
  color: var(--text-on-dark-mid);
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  margin-top: 1rem;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  padding: 4rem 2rem 2rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--glass-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================
   UTILITIES
   ============================ */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg-text { display: none; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .hero { margin: 0.5rem; border-radius: 1.5rem; min-height: 85vh; }
  .nav-floating { padding: 0.375rem; }
  .nav-floating a:not(.brand-mark):not(.nav-toggle) { display: none; }
  .nav-floating .nav-toggle { display: inline-flex; }
  .nav-mobile-panel { display: block; }
  .glass-form { flex-direction: column; border-radius: var(--r-card-md); padding: 0.5rem; align-items: stretch; min-height: 0; }
  .glass-form input,
  .glass-form select { padding: 0.875rem 1rem; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .glass-form input:last-of-type,
  .glass-form select:last-of-type { border-bottom: none; }
  .glass-form select { background-position: right 1rem center; }
  .glass-form button { width: 100%; justify-content: center; margin-top: 0.25rem; }
  .section { padding: 3rem 1rem; }
  .section-light { margin: 0 0.5rem; border-radius: 1.5rem; }
  /* Country grid: 2 columns on mobile */
  .country-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Stat cards: stack on mobile in hero */
  .hero-stats { position: static !important; transform: none !important; flex-direction: row !important; flex-wrap: wrap !important; margin-top: 2rem; }
  .hero-stats .stat-card { flex: 1 1 140px; min-width: 140px; }
}
