:root {
  --bg: #00060a;
  --bg2: #050d12;
  --bg3: #0e161b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #00db97;
  --accent-dim: #00a667;
  --radius: 12px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body.home-page {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent-dim);
  color: #fff;
  border-color: var(--accent-dim);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-ghost,
.btn-outline {
  background: transparent;
  color: #eee;
  border-color: #272727;
}

.btn-outline:hover,
.btn-ghost:hover {
  background: #0e1418;
  border-color: #141c21;
}

.btn-lg {
  min-height: 44px;
  padding: 0.75rem 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 6, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(1200px, calc(100% - 1.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  width: auto;
  max-height: 36px;
  max-width: 160px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 1rem;
}

.site-nav__group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a {
  font-size: 0.875rem;
  color: #ccc;
}

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

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgb(0 6 10));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero__eyebrow {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 600;
  max-width: 18ch;
  margin-inline: auto;
}

.hero__lead {
  margin: 0 auto 0.5rem;
  max-width: 42rem;
  color: #ccc;
  font-size: clamp(0.9375rem, 2.5vw, 1rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero__scroll {
  display: inline-block;
  margin-top: 3rem;
  font-size: 1.5rem;
  color: #eee;
  animation: bounce 2s infinite ease-in-out;
}

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

/* Sections */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.section--muted {
  background: var(--bg2);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split__text h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.2;
}

.split__text h2 .accent {
  color: var(--accent);
}

.split__text p {
  color: #aaa;
  margin: 0 0 1.5rem;
}

.split__media img {
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

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

.benefit-card {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

.benefit-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

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

.step-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0, 219, 151, 0.15);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

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

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

.section--support {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.support-sub {
  color: #ccc;
  font-size: 0.9375rem;
}

.section--journey {
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 166, 103, 0.12), transparent 60%);
}

.journey h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.faq-tab {
  padding: 0.625rem 1rem;
  border-radius: 8px;
  border: 1px solid #0e181c;
  background: #050d12;
  color: #ccc;
  font: inherit;
  cursor: pointer;
}

.faq-tab.active,
.faq-tab:hover {
  background: #00895e;
  border-color: #00895e;
  color: #fff;
}

.faq-panel {
  display: none;
  max-width: 800px;
  margin-inline: auto;
}

.faq-panel.active {
  display: block;
}

.faq-item {
  background: #050d12;
  border: 2px solid #0e161b;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  color: #ccc;
  list-style: none;
}

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

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1rem;
  color: #5b6c72;
  font-size: 0.9375rem;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer__logo {
  opacity: 0.9;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 36rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.site-footer__links a:hover,
.site-footer__links .auth-link:hover {
  color: var(--accent);
}

/* Auth modal */
body.auth-open {
  overflow: hidden;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.auth-modal__dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #060b0f;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.auth-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ccc;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.auth-modal__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-tab {
  flex: 1;
  padding: 0.625rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: #ccc;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.auth-tab.active {
  background: rgba(0, 166, 103, 0.15);
  border-color: rgba(0, 219, 151, 0.35);
  color: #fff;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.auth-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.auth-sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.auth-field {
  display: block;
  margin-bottom: 0.875rem;
}

.auth-field span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  color: #ccc;
}

.auth-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #1a2429;
  background: #050a0e;
  color: #fff;
  font: inherit;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(0, 219, 151, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 219, 151, 0.12);
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.8125rem;
  color: #aaa;
}

.auth-check input {
  margin-top: 0.15rem;
  width: auto;
}

.auth-error {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #fecaca;
  font-size: 0.8125rem;
}

.auth-error[hidden] {
  display: none !important;
}

.btn-block {
  width: 100%;
}

.auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.auth-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.site-footer__links .auth-link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.875rem;
}

/* Mobile */
@media (max-width: 900px) {
  .benefits-grid,
  .steps-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 1rem;
    background: rgba(0, 6, 10, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav__group {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header__inner {
    flex-wrap: wrap;
    position: relative;
  }

  .site-header__actions {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0 0.75rem;
  }

  .site-header__actions .btn {
    flex: 1;
    min-height: 38px;
    max-height: 42px;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }

  .hero__content {
    padding-top: 5rem;
  }

  .hero__actions .btn {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
