* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Theme variables ───────────────────────────────────── */
:root {
  --bg-primary: #000;
  --bg-secondary: #030810;
  --text-primary: #fff;
  --text-secondary: rgba(200,225,255,0.6);
  --accent-cyan: #00eeff;
  --accent-blue: #0088ff;
  --border-light: 1px solid rgba(0,200,255,0.15);
}

html.light-mode {
  --bg-primary: #f8f8f8;
  --bg-secondary: #f0f0f0;
  --text-primary: #1a1a1a;
  --text-secondary: rgba(0,0,0,0.55);
  --accent-cyan: #0099cc;
  --accent-blue: #0066aa;
  --border-light: 1px solid rgba(0,150,200,0.25);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,238,255,0.12), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(0,120,255,0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  transition: background 0.3s ease;
}
html.light-mode .page-shell {
  background:
    radial-gradient(circle at 20% 0%, rgba(0,200,255,0.08), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(0,150,255,0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(0,0,3,0.9);
  backdrop-filter: blur(14px);
  border-bottom: var(--border-light);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
html.light-mode .top-nav {
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid rgba(0,20,40,0.08);
  box-shadow: 0 1px 16px rgba(0,40,80,0.06);
}
.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.04em; color: var(--text-primary); opacity: 0.9;
  display: flex; align-items: center; gap: 9px; text-decoration: none;
}
.nav-brand svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 22px; font-size: 0.88rem; }
.nav-links a { color: rgba(255,255,255,0.58); text-decoration: none; transition: color 0.2s; }
html.light-mode .nav-links a { color: rgba(0,0,0,0.65); }
.nav-links a:hover, .nav-links a.active { color: var(--accent-cyan); }
.nav-cta, .btn.primary {
  background: linear-gradient(130deg, #00eeff, #0088ff);
  color: #000; border: none; border-radius: 999px;
  padding: 10px 18px; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.84rem; cursor: pointer;
  text-decoration: none; display: inline-block;
}
html.light-mode .nav-cta { background: linear-gradient(130deg, #0099cc, #0066aa); color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; }
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: rgb(4,8,16); backdrop-filter: blur(14px);
    border-bottom: var(--border-light);
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  html.light-mode .nav-links { background: rgba(255,255,255,0.98); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 28px; }
}
main { max-width: 1160px; margin: 0 auto; padding: 132px 24px 80px; }
.hero { max-width: 820px; margin-bottom: 60px; }
.kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent-cyan); margin-bottom: 14px; opacity: 0.9;
  transition: color 0.3s ease;
}
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
h1 { font-size: clamp(2.1rem, 4vw, 4rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.35rem); font-weight: 300; margin-bottom: 10px; }
h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 8px; }
p { color: var(--text-secondary); line-height: 1.58; font-size: 1rem; transition: color 0.3s ease; }
.hero p { font-size: 1.08rem; max-width: 760px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(10,20,35,0.5); color: var(--text-primary);
  padding: 10px 18px; cursor: pointer; text-decoration: none; display: inline-block;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 0.88rem;
  transition: background 0.3s ease, color 0.3s ease;
}
html.light-mode .btn { background: rgba(200,220,240,0.4); border: 1px solid rgba(0,150,200,0.2); }
section { margin-top: 64px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid, .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card {
  background: rgba(8,16,30,0.9); border: 1px solid rgba(0,200,255,0.14);
  border-radius: 18px; padding: 22px; min-height: 170px;
  transition: background 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column;
}
html.light-mode .card { background: rgba(200,220,240,0.5); border: 1px solid rgba(0,150,200,0.25); }
.card:hover { border-color: rgba(0,200,255,0.34); }
html.light-mode .card:hover { border-color: rgba(0,150,200,0.5); }
.card-icon {
  width: 56px; height: 56px; margin-bottom: 14px; display: block; opacity: 0.85;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.card-thumb {
  width: 100%; height: 200px; object-fit: cover; border-radius: 12px;
  margin: -22px -22px 18px -22px; opacity: 0.9;
  transition: opacity 0.3s ease;
  display: block;
  order: 1;
}
.card:hover .card-thumb { opacity: 1; }
.card:hover .card-icon { opacity: 1; transform: scale(1.05); }
.chip {
  display: inline-block; margin-bottom: 12px;
  color: var(--accent-cyan); border: 1px solid rgba(0,238,255,0.22);
  border-radius: 999px; padding: 4px 10px;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  transition: color 0.3s ease, border-color 0.3s ease;
}
html.light-mode .chip { color: var(--accent-cyan); border: 1px solid rgba(0,150,200,0.35); }
.card-chip {
  display: inline-block; margin-bottom: 10px;
  color: var(--accent-cyan); border: 1px solid rgba(0,238,255,0.22);
  border-radius: 999px; padding: 4px 10px;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  order: 2;
  transition: color 0.3s ease, border-color 0.3s ease;
}
html.light-mode .card-chip { color: var(--accent-cyan); border: 1px solid rgba(0,150,200,0.35); }
.card h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1rem;
  font-weight: 500; margin-bottom: 7px; color: var(--text-primary);
  order: 3; transition: color 0.3s ease;
}
.card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.45; order: 4; transition: color 0.3s ease; }
ul { margin: 14px 0 0 20px; color: var(--text-secondary); line-height: 1.6; transition: color 0.3s ease; }
.card ul { order: 5; }
.timeline { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 120px 1fr; border: 1px solid rgba(0,200,255,0.14); border-radius: 14px; overflow: hidden; background: rgba(5,12,24,0.8); transition: background 0.3s ease, border-color 0.3s ease; }
html.light-mode .step { background: rgba(200,220,240,0.3); border: 1px solid rgba(0,150,200,0.25); }
.step-key { padding: 14px; color: var(--accent-cyan); border-right: 1px solid rgba(0,200,255,0.14); font-family: 'Space Grotesk', sans-serif; transition: color 0.3s ease; }
html.light-mode .step-key { border-right: 1px solid rgba(0,150,200,0.25); }
.step-body { padding: 14px; color: var(--text-secondary); line-height: 1.5; transition: color 0.3s ease; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; } .step-key { border-right: 0; border-bottom: 1px solid rgba(0,200,255,0.14); } }
.cta {
  margin-top: 72px; border-radius: 22px; border: 1px solid rgba(0,238,255,0.22);
  background: linear-gradient(150deg, rgba(0,238,255,0.08), rgba(0,136,255,0.05));
  padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.cta > div { min-width: 0; overflow-wrap: anywhere; }
html.light-mode .cta {
  border: 1px solid rgba(0,150,200,0.25);
  background: linear-gradient(150deg, rgba(0,150,200,0.08), rgba(0,100,150,0.05));
}
footer {
  border-top: 1px solid rgba(0,200,255,0.1);
  max-width: 1160px; margin: 0 auto; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  color: rgba(160,200,240,0.38); font-size: 0.8rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
html.light-mode footer { color: rgba(0,100,150,0.5); border-top: 1px solid rgba(0,150,200,0.2); }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--accent-cyan); }
