@import "/base.css";

[hidden] { display: none !important; }

body {
  background:
    radial-gradient(140% 100% at 50% -8%, var(--bg-top) 0%, #0a1322 42%, var(--bg) 78%) no-repeat fixed;
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding-inline: clamp(1.1rem, 4vw, 2rem);
  background: rgba(6, 10, 19, .6);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.06rem; font-weight: 640; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.nav-wordmark::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, var(--beam-core), var(--accent) 60%);
  box-shadow: 0 0 12px var(--accent);
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .9rem; transition: color var(--t); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: .55em 1.1em; }
.lang-switch { display: inline-flex; gap: .1rem; align-items: center; }
.lang-switch a { color: var(--faint); text-decoration: none; font-size: .8rem; font-weight: 560; padding: .2em .5em; border-radius: 6px; transition: color var(--t), background var(--t); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { color: var(--ink); background: rgba(125, 180, 255, .12); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(5.5rem, 16vh, 9rem) clamp(4rem, 10vh, 7rem);
  text-align: center;
}
.hero .container { position: relative; z-index: 2; }

/* The lighthouse beam scene */
.hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-scene .beam {
  position: absolute; top: -4%; left: 50%; translate: -50% 0;
  width: 140vmax; height: 140vmax; transform-origin: top center;
  background: conic-gradient(from 180deg at 50% 0,
    transparent 83deg,
    rgba(174, 224, 255, .05) 88deg,
    rgba(125, 180, 255, .16) 95deg,
    rgba(174, 224, 255, .05) 102deg,
    transparent 107deg);
  filter: blur(8px); mix-blend-mode: screen;
  animation: beam-sweep 13s var(--ease) infinite alternate;
}
.hero-scene .lamp {
  position: absolute; top: -2px; left: 50%; translate: -50% -50%;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--beam-core) 0%, rgba(174, 224, 255, .55) 16%, rgba(125, 180, 255, .12) 42%, transparent 66%);
}
.hero-scene .halo {
  position: absolute; top: 30%; left: 50%; translate: -50% -50%;
  width: min(900px, 92vw); height: 520px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(125, 180, 255, .14), transparent 70%);
  filter: blur(10px);
}
@keyframes beam-sweep { from { rotate: -17deg; } to { rotate: 17deg; } }
@media (prefers-reduced-motion: reduce) { .hero-scene .beam { animation: none; rotate: 0deg; } }

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 680;
  letter-spacing: -.035em; line-height: 1.02; text-wrap: balance;
  color: #eef4fe;
}
.hero-sub {
  max-width: 40ch; margin: 1.4rem auto 2.4rem;
  color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.7; text-wrap: pretty;
}
.hero-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ============ Sections ============ */
.section { padding-block: clamp(4rem, 9vh, 6.5rem); scroll-margin-top: 60px; }
.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 640;
  letter-spacing: -.02em; line-height: 1.1; text-wrap: balance;
}
/* Problem: hairline-separated statements, not a card grid */
.problem h2 { margin-bottom: 2.2rem; max-width: 18ch; }
.problem-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.problem-list li {
  padding-block: 1.6rem; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 26ch) 1fr; gap: clamp(.5rem, 4vw, 3rem); align-items: baseline;
}
.problem-list li strong { color: var(--ink); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.problem-list li span { color: var(--muted); line-height: 1.65; }
@media (max-width: 680px) { .problem-list li { grid-template-columns: 1fr; gap: .4rem; } }

/* How it works: a real sequence — beam line through glowing nodes */
.how-it-works { position: relative; }
.how-it-works h2 { margin-bottom: 2.6rem; }
.steps { list-style: none; display: grid; gap: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 17px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(var(--accent), rgba(125, 180, 255, .05));
  opacity: .5;
}
.step { display: grid; grid-template-columns: 36px 1fr; gap: 1.1rem; padding-block: 1.1rem; position: relative; }
.step-number {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; color: var(--beam-core);
  background: radial-gradient(circle at 50% 40%, rgba(125, 180, 255, .35), rgba(10, 19, 34, .9));
  border: 1px solid var(--line-2); box-shadow: 0 0 18px rgba(125, 180, 255, .25); position: relative; z-index: 1;
}
.step strong { display: block; color: var(--ink); font-size: 1.08rem; font-weight: 600; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .96rem; line-height: 1.65; max-width: 62ch; }

/* Demo: the proof moment */
.demo { text-align: center; }
.demo-inner {
  max-width: 480px; margin-inline: auto; position: relative;
  padding: clamp(1.6rem, 4vw, 2.5rem); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(125, 180, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); box-shadow: var(--glow);
}
.demo h2 { margin-bottom: .6rem; }
.demo-sub { color: var(--muted); margin-bottom: 1.8rem; font-size: .96rem; line-height: 1.6; }
.demo-form { display: grid; gap: 1rem; text-align: left; }
.demo-form label { font-size: .8rem; font-weight: 560; color: var(--muted); display: block; margin-bottom: .4rem; }
.demo-form input[type="tel"] {
  width: 100%; background: rgba(6, 10, 19, .6); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); font: inherit; font-size: 1rem; padding: .72em .9em;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.demo-form input[type="tel"]::placeholder { color: var(--faint); }
.demo-form input[type="tel"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(125, 180, 255, .16); }
.demo-form .cf-turnstile { min-height: 65px; }
#demo-submit { position: relative; overflow: hidden; }
#demo-submit:not(:disabled)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(174, 224, 255, .5);
  animation: ring 2.6s var(--ease-out) infinite;
}
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(174, 224, 255, .45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(174, 224, 255, 0); } }
@media (prefers-reduced-motion: reduce) { #demo-submit::after { animation: none; } }
.demo-note { font-size: .78rem; color: var(--faint); text-align: center; }
.demo-result { min-height: 1.4em; font-size: .92rem; text-align: center; margin-top: .4rem; font-weight: 540; }
.demo-result.result-ok { color: var(--beam); }
.demo-result.result-error { color: var(--danger); }

/* Pricing */
.pricing { text-align: center; }
.pricing h2 { margin-bottom: .6rem; }
.pricing-sub { color: var(--muted); margin-bottom: 2.6rem; font-size: .98rem; }
.pricing-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; max-width: 720px; margin-inline: auto; text-align: left; align-items: start;
}
.pricing-card {
  position: relative; padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  transition: transform var(--t) var(--ease-out), border-color var(--t);
}
.pricing-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.pricing-card--featured {
  border-color: var(--line-2);
  background: linear-gradient(180deg, rgba(125, 180, 255, .09), rgba(125, 180, 255, .02));
  box-shadow: 0 0 50px -16px rgba(125, 180, 255, .4);
}
.plan-badge {
  position: absolute; top: -.7rem; right: 1.2rem;
  font-size: .68rem; font-weight: 640; letter-spacing: .06em; text-transform: uppercase;
  color: #04101f; background: var(--beam); padding: .3em .7em; border-radius: var(--pill);
}
.plan-name { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.plan-price { display: flex; align-items: baseline; gap: .15rem; margin-bottom: 1.4rem; }
.price-amount { font-size: 2.6rem; font-weight: 720; letter-spacing: -.04em; }
.price-period { color: var(--muted); font-size: .95rem; }
.plan-features { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.6rem; }
.plan-features li { color: var(--muted); font-size: .94rem; display: grid; grid-template-columns: 1.1rem 1fr; gap: .55rem; align-items: start; }
.plan-features li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.checkout-form { margin-top: .8rem; display: grid; gap: .6rem; }
.checkout-form label { font-size: .8rem; color: var(--muted); font-weight: 560; }
.checkout-form input[type="email"] {
  width: 100%; background: rgba(6, 10, 19, .6); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); font: inherit; font-size: 1rem; padding: .68em .9em;
}
.checkout-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(125, 180, 255, .16); }
.checkout-msg { font-size: .8rem; min-height: 1.1em; color: var(--danger); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; text-align: center; }
.footer-wordmark { font-size: 1rem; font-weight: 640; margin-bottom: .6rem; }
.footer-copy { color: var(--muted); font-size: .92rem; max-width: 46ch; margin: 0 auto 1.2rem; line-height: 1.65; }
.footer-small { font-size: .78rem; color: var(--faint); }

@media (max-width: 600px) {
  .nav-links > a:not(.btn) { display: none; }
}
