/* LaunchLens — website styles
   Brand tokens echo docs/ui-design-spec.md (violet / lime / cyan on dark surfaces). */

:root {
  --bg: #0E0B1A;
  --surface: #16122A;
  --surface-2: #241C40;
  --surface-3: #2C2350;
  --primary: #7C3AED;
  --primary-deep: #6D28D9;
  --primary-tint: #2A1B4D;
  --lime: #A3E635;       /* positive / buy / confirmation */
  --cyan: #22D3EE;       /* primary action / links / sell */
  --on-bg: #ECE7FF;
  --on-bg-dim: #B8AEDB;
  --outline: #3A2F5E;
  --error: #F87171;
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,0.20), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34,211,238,0.10), transparent 55%),
    var(--bg);
  color: var(--on-bg);
  font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(14,11,26,0.72);
  border-bottom: 1px solid var(--outline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--on-bg);
  letter-spacing: 0.2px;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .lens { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.96rem;
}
.nav-links a { color: var(--on-bg-dim); }
.nav-links a:hover { color: var(--on-bg); text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: #0E0B1A !important;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(163,230,53,0.7); }

@media (max-width: 720px) {
  .nav-links .hide-sm { display: none; }
  .site-header .container { height: 60px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(124,58,237,0.9);
}
.btn-lime {
  background: var(--lime);
  color: #0E0B1A;
  box-shadow: 0 12px 28px -12px rgba(163,230,53,0.8);
}
.btn-cyan {
  background: var(--cyan);
  color: #0E0B1A;
  box-shadow: 0 12px 28px -12px rgba(34,211,238,0.8);
}
.btn-ghost {
  background: transparent;
  color: var(--on-bg);
  border: 1px solid var(--outline);
}
.btn-ghost:hover { border-color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(163,230,53,0.08);
  border: 1px solid rgba(163,230,53,0.3);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 18px 0 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--lime), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .slogan {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-bg);
  margin: 0 0 12px;
}
.hero .tagline {
  font-size: 1.06rem;
  color: var(--on-bg-dim);
  margin: 0 0 28px;
  max-width: 52ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 26px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  color: var(--on-bg-dim);
  font-size: 0.9rem;
}
.hero-meta strong { color: var(--on-bg); display: block; font-size: 1.15rem; }
.hero-art {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
}
.hero-art img { width: 100%; height: auto; }
.hero-art .badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(14,11,26,0.82);
  border: 1px solid var(--outline);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--on-bg-dim);
}
.hero-art .badge b { color: var(--lime); }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 32px; }
}

/* ---------- Section ---------- */
section.block { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 0 0 10px;
  font-weight: 800;
}
.section-head p { color: var(--on-bg-dim); margin: 0; font-size: 1.05rem; }

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .14s ease, border-color .14s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--lime);
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.card p { margin: 0; color: var(--on-bg-dim); font-size: 0.97rem; }

/* ---------- Tab feature split ---------- */
.tabs-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.tab-pill {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.tab-pill .dot {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #0E0B1A; font-weight: 800;
}
.tab-pill b { display: block; }
.tab-pill span { color: var(--on-bg-dim); font-size: 0.9rem; }

/* ---------- Download CTA ---------- */
.download {
  background:
    radial-gradient(700px 300px at 70% 0%, rgba(34,211,238,0.14), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--outline);
  border-radius: 22px;
  padding: 44px 32px;
  text-align: center;
}
.download h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 10px; }
.download p { color: var(--on-bg-dim); max-width: 60ch; margin: 0 auto 24px; }
.download .hero-cta { justify-content: center; }
.note { margin-top: 16px; font-size: 0.86rem; color: var(--on-bg-dim); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--outline);
  background: rgba(10,8,20,0.6);
  padding: 42px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.footer-grid h4 { margin: 0 0 12px; font-size: 0.95rem; color: var(--on-bg); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: var(--on-bg-dim); }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand p { color: var(--on-bg-dim); font-size: 0.92rem; max-width: 38ch; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--outline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--on-bg-dim);
  font-size: 0.84rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 30px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 2rem; margin: 0 0 6px; }
.legal .updated { color: var(--on-bg-dim); font-size: 0.9rem; margin-bottom: 28px; }
.legal h2 {
  font-size: 1.3rem;
  margin: 34px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--outline);
  color: var(--lime);
}
.legal p, .legal li { color: var(--on-bg-dim); }
.legal p { margin: 0 0 14px; }
.legal strong { color: var(--on-bg); }
.legal a { color: var(--cyan); }
.legal .pill {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--lime);
  border: 1px solid rgba(163,230,53,0.3);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.disclaimer {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.4);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: #fbd5d5 !important;
}
.disclaimer strong { color: #fff; }

/* back link */
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--on-bg-dim); }
.back-link:hover { color: var(--cyan); text-decoration: none; }

/* focus accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.x-ico { width: 18px; height: 18px; vertical-align: -3px; }
