/* ─────────────────────────────────────────
   SKYLINE COPYTRADE — Waitlist Landing
   Visual DNA: Syne / Manrope / IBM Plex Mono
   Colors: dark navy + electric blue + amber
   Focus: numbers, dates, radical transparency
───────────────────────────────────────── */

/* ── TOKENS ── */
:root {
  --bg:     #080e1a;
  --bg2:    #0c1422;
  --bg3:    #10192b;
  --card:   #111b2d;
  --border: #1a2d44;
  --border2:#223450;
  --accent: #4f8cff;
  --accent2:#64a0ff;
  --accent-glow: rgba(79,140,255,0.2);
  --accent-dim:  rgba(79,140,255,0.09);
  --gold:   #d4a574;
  --teal:   #5ec4a1;
  --red:    #e05c5c;
  --white:  #eef3ff;
  --white2: #c8d4ee;
  --muted:  #6e87a4;
  --muted2: #3f5570;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius:    5px;
  --radius-lg: 10px;
  --nav-h:     64px;
  --max-w:     760px;
  --px:        clamp(1.25rem, 5vw, 3rem);
  --section-py:clamp(4rem, 8vw, 7rem);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
details { list-style: none; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

.mono { font-family: var(--font-mono); }

/* ── NOISE ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.3;
}

/* ── FOCUS ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--accent); color: #050d1a;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.02em; border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px); height: var(--nav-h);
  background: rgba(8,14,26,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  display: flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--muted); padding: 0.3rem 0.6rem;
  border: 1px solid var(--border2); border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--white); }
.lang-opt { transition: color 0.15s; }
.lang-opt.active { color: var(--accent); }
.lang-div { color: var(--muted2); }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) var(--px) clamp(3rem, 6vw, 6rem);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.2;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -150px; left: -100px;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  bottom: -100px; right: -80px;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
}

/* Phase tag */
.eyebrow-row { margin-bottom: 1.75rem; }
.phase-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(79,140,255,0.3);
  padding: 0.35rem 0.85rem; border-radius: 50px;
}
.phase-tag::before {
  content: '';
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Headline */
.hero-headline {
  font-family: var(--font-display); font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 1.25rem;
}

/* Sub */
.hero-sub {
  font-size: 1rem; color: var(--white2); line-height: 1.7;
  max-width: 600px; margin-bottom: 2.5rem;
}

/* ── PROGRESS BAR ── */
.progress-wrap {
  margin-bottom: 2.5rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem 1.5rem;
}
.progress-labels {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.75rem;
}
.progress-labels .mono { font-size: 0.75rem; color: var(--white2); }
.progress-pct { color: var(--accent); font-weight: 500; }

.progress-track {
  position: relative; height: 8px;
  background: var(--border2); border-radius: 4px; overflow: visible;
}
.progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 1s ease;
}
.progress-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: left 1s ease;
}
.progress-milestones {
  position: relative; margin-top: 0.6rem; height: 16px;
}
.milestone {
  position: absolute; transform: translateX(-50%);
  font-size: 0.65rem; color: var(--muted);
}
.milestone:first-child { transform: translateX(0); }
.milestone:last-child  { transform: translateX(-100%); }

/* ── FORM ── */
.form-wrap { max-width: 540px; }

.field-row {
  display: flex; gap: 0; position: relative;
}
.field-row input[type="email"] {
  flex: 1;
  background: var(--bg3); border: 1px solid var(--border2);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.85rem 1rem 0.85rem 1rem;
  color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.field-row input[type="email"]::placeholder { color: var(--muted); }
.field-row input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field-row label {
  position: absolute; top: 50%; left: 1rem; transform: translateY(-50%);
  font-size: 0.9rem; color: var(--muted); pointer-events: none;
  transition: all 0.15s;
}
.field-row input[type="email"]:focus ~ label,
.field-row input[type="email"]:not(:placeholder-shown) ~ label {
  top: -0.6rem; font-size: 0.7rem; color: var(--accent);
  background: var(--bg); padding: 0 0.25rem;
}

.submit-btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.4rem;
  flex-shrink: 0;
}

.field-error {
  font-size: 0.8rem; color: var(--red); margin-top: 0.5rem;
  min-height: 1.2em;
}

.form-caption {
  font-size: 0.78rem; color: var(--muted); margin-top: 0.75rem;
}

.form-success {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(94,196,161,0.1); border: 1px solid rgba(94,196,161,0.3);
  color: var(--teal); border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: 0.95rem; margin-top: 0.5rem;
}
.success-icon { font-size: 1.1rem; }

.form-err-fallback {
  font-size: 0.875rem; color: var(--red); margin-top: 0.5rem;
}
.form-err-fallback a { color: var(--red); text-decoration: underline; }

/* ── SECTIONS ── */
.section-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700; margin-bottom: 0.5rem;
}
.section-lead {
  color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem;
}

/* ── CARDS ── */
.section-cards {
  padding: var(--section-py) 0;
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.section-cards .section-title { margin-bottom: 2rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--border2); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.card-icon {
  width: 2.5rem; height: 2.5rem; margin-bottom: 1rem;
  color: var(--accent);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  margin-bottom: 0.5rem; color: var(--white);
}
.card p { font-size: 0.875rem; color: var(--white2); line-height: 1.6; }

/* ── NEGATIVES ── */
.section-negatives {
  padding: var(--section-py) 0;
  border-bottom: 1px solid var(--border);
}
.negatives-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.neg-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(224,92,92,0.06); border: 1px solid rgba(224,92,92,0.2);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.neg-x {
  flex-shrink: 0; color: var(--red); font-size: 1rem; font-weight: 700;
  margin-top: 0.1em;
}
.neg-item span:last-child { font-size: 0.95rem; color: var(--white2); }

/* ── TELEGRAM CTA ── */
.section-tg {
  padding: var(--section-py) 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
}
.tg-inner {
  display: flex; align-items: flex-start; gap: 2.5rem;
  flex-wrap: wrap;
}
.tg-text { flex: 1; min-width: 220px; }
.tg-text .section-title { margin-bottom: 0.75rem; }
.tg-text p { color: var(--white2); font-size: 0.95rem; }
.btn-tg {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
  padding: 0.85rem 1.5rem;
  background: rgba(79,140,255,0.12); border: 1px solid rgba(79,140,255,0.35);
  color: var(--accent); font-weight: 600; font-size: 0.9rem;
  border-radius: var(--radius); transition: background 0.2s, border-color 0.2s;
  white-space: nowrap; align-self: flex-start; margin-top: 0.25rem;
}
.btn-tg svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-tg:hover { background: rgba(79,140,255,0.2); border-color: var(--accent); }

/* ── FAQ ── */
.section-faq { padding: var(--section-py) 0; border-bottom: 1px solid var(--border); }
.section-faq .section-title { margin-bottom: 2rem; }
.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0.25rem; cursor: pointer;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  color: var(--white); user-select: none;
  transition: color 0.15s;
}
.faq-q::after {
  content: '+'; flex-shrink: 0; margin-left: 1rem;
  font-size: 1.2rem; color: var(--muted); transition: transform 0.2s, color 0.15s;
  font-family: var(--font-body); font-weight: 300;
}
details[open] .faq-q::after { transform: rotate(45deg); color: var(--accent); }
details[open] .faq-q { color: var(--accent); }

.faq-a {
  padding: 0 0.25rem 1.25rem;
  font-size: 0.9rem; color: var(--white2); line-height: 1.7;
}
.faq-a a { color: var(--accent); text-decoration: underline; }

/* ── FOOTER ── */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem;
}
.footer-copy { font-size: 0.85rem; color: var(--muted); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
}
.footer-links a {
  font-size: 0.8rem; color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  font-size: 0.75rem; color: var(--muted2); line-height: 1.6;
  border-top: 1px solid var(--border); padding-top: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .field-row { flex-direction: column; }
  .field-row input[type="email"] {
    border-right: 1px solid var(--border2);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
  }
  .submit-btn { border-radius: 0 0 var(--radius) var(--radius); justify-content: center; }
  .tg-inner { flex-direction: column; }
  .nav-cta { display: none; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 375px) {
  .hero-headline { font-size: 1.5rem; }
  .phase-tag { font-size: 0.65rem; letter-spacing: 0.08em; }
}
