/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f6f7fb;
  --bg-2:       #eef1f8;
  --bg-card:    #ffffff;
  --bg-card2:   #f1f3fa;
  --bg-elevated:#eaecf6;
  --violet:     #6c4cff;
  --cyan:       #0aa6c9;
  --accent:     #6c4cff;
  --accent-2:   #0aa6c9;
  --accent-g:   linear-gradient(120deg, #6c4cff 0%, #0aa6c9 100%);
  --accent-glow:rgba(108,76,255,0.20);
  --cyan-glow:  rgba(10,166,201,0.18);
  --text:       #181a2e;
  --text-dim:   #51566f;
  --muted:      #8a90ab;
  --border:     rgba(24,26,46,0.10);
  --border-2:   rgba(24,26,46,0.06);
  --border-h:   rgba(108,76,255,0.45);
  --radius:     12px;
  --radius-sm:  8px;
  --nav-h:      66px;
  --shadow:     0 6px 24px rgba(24,26,46,0.08);
  --shadow-glow:0 12px 40px rgba(108,76,255,0.10);
  --font:       'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ── SOFT BACKDROP ── */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 82% -12%, rgba(108,76,255,0.10), transparent 60%),
    radial-gradient(900px 600px at 0% 105%, rgba(10,166,201,0.08), transparent 60%),
    var(--bg);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(108,76,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,76,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 25%, transparent 85%);
}
#starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(108,76,255,0.18); color: var(--text); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 999;
  height: var(--nav-h);
  background: rgba(246,247,251,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 5%;
  justify-content: space-between;
}
.logo {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -.2px;
  color: var(--text); display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 30px; height: 30px;
  background: var(--accent-g);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; color: #fff; letter-spacing: -.5px;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.logo-text { font-weight: 700; letter-spacing: .2px; color: var(--text); }
.logo-text span { color: var(--accent); }
.nav-links { display: flex; gap: 0; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-dim); font-size: .9rem; padding: 8px 16px;
  border-radius: var(--radius-sm); transition: color .2s, background .2s;
  letter-spacing: .1px; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(108,76,255,0.08); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important; font-weight: 600 !important;
  margin-left: 12px; box-shadow: 0 6px 16px var(--accent-glow);
}
.nav-cta:hover { filter: brightness(1.06); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; display: block; }

/* ── PAGE HERO (shared) ── */
.page-hero {
  padding: calc(var(--nav-h) + 90px) 5% 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 360px;
  background: radial-gradient(ellipse at center, rgba(108,76,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.eyebrow, .eyebrow-label, .page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,76,255,0.07); border: 1px solid rgba(108,76,255,0.22);
  color: var(--accent); font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 99px; margin-bottom: 1.5rem; font-weight: 600;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 800;
  color: var(--text); margin-bottom: 1rem; line-height: 1.12; letter-spacing: -.8px;
}
.page-hero h1 em { font-style: normal; background: var(--accent-g); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { color: var(--text-dim); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ── SECTION COMMONS ── */
section { padding: 96px 5%; position: relative; }
.eyebrow-label {
  display: inline-block; color: var(--accent);
  font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  margin-bottom: .9rem; background: none; border: none; padding: 0;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  line-height: 1.2; color: var(--text); letter-spacing: -.5px;
}
.section-sub { color: var(--text-dim); font-size: 1rem; margin-top: .7rem; }
.section-head { margin-bottom: 4rem; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { max-width: 540px; margin: .7rem auto 0; }
.container { max-width: 1140px; margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 13px 30px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .9rem; transition: all .2s; border: none; cursor: pointer;
  letter-spacing: .1px; position: relative;
}
.btn-primary {
  background: var(--accent-g); color: #fff; font-weight: 600;
  box-shadow: 0 8px 22px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 12px 28px var(--accent-glow); }
.btn-outline {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-g); opacity: 0; transition: opacity .25s;
}
.card:hover { border-color: var(--border-h); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card-num {
  font-size: .8rem; font-weight: 700; color: var(--accent);
  letter-spacing: .5px; margin-bottom: 1rem;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.card p { font-size: .875rem; color: var(--text-dim); line-height: 1.75; }

/* ── GRID ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.grid-3 .card { border: none; border-radius: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ── STAT BAR ── */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
}
.stat-item {
  padding: 2.5rem 1.5rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item strong {
  display: block; font-size: 2rem; font-weight: 800;
  background: var(--accent-g); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -1px; line-height: 1;
}
.stat-item span { font-size: .8rem; color: var(--muted); margin-top: .5rem; display: block; }

/* ── FOOTER ── */
footer {
  background: #0f1124;
  color: #b9bdd6;
  border-top: 1px solid var(--border);
  padding: 64px 5% 32px;
  position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  max-width: 1140px; margin: 0 auto 3rem;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: .875rem; color: #8b90b3; line-height: 1.8; margin-top: 1rem; }
.footer-col h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #6df0d8; margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer-col ul a { font-size: .875rem; color: #8b90b3; transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1140px; margin: 0 auto;
  font-size: .8rem; color: #8b90b3;
}
.footer-bottom a { color: #8b90b3; }
.footer-bottom a:hover { color: #fff; }

/* ── FORM ── */
.form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .75rem; color: var(--text-dim); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  color: var(--text); font-size: .9rem; font-family: inherit;
  outline: none; transition: border-color .2s, box-shadow .2s; resize: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group select option { background: var(--bg-card); color: var(--text); }

/* ── TERMINAL/HIGHLIGHT LINE ── */
.term-line {
  font-size: .85rem; color: var(--text-dim);
  padding: .55rem 1rem; background: var(--bg);
  border-left: 3px solid var(--accent); margin-bottom: .4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.term-line .cursor { color: var(--accent); }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── BADGE PILL ── */
.pill {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: 4px 12px; border-radius: 99px;
  background: rgba(10,166,201,0.10); border: 1px solid rgba(10,166,201,0.25);
  color: var(--cyan); letter-spacing: .3px;
}

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 2rem; padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-step {
  flex-shrink: 0; width: 38px; height: 38px;
  background: rgba(108,76,255,0.10); border: 1px solid rgba(108,76,255,0.30);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800; color: var(--violet);
}
.timeline-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.timeline-content p { font-size: .875rem; color: var(--text-dim); }

/* ── INLINE ICON ROW ── */
.icon-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.icon-tag { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--text-dim); }
.icon-tag::before { content: '▸'; color: var(--accent); font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
}
@media (max-width: 640px) {
  section { padding: 72px 5%; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-card); padding: 1.5rem 5%; gap: .3rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .grid-3 { grid-template-columns: 1fr; }
}
