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

:root {
  --bg:        #06080d;
  --bg-card:   #0d1117;
  --bg-raised: #161b22;
  --border:    #21262d;
  --text:      #c9d1d9;
  --text-dim:  #8b949e;
  --text-bright: #f0f6fc;
  --accent:    #00b4d8;
  --accent-dim:#0077b6;
  --green:     #2ea043;
  --green-dim: #1a7f37;
  --red:       #da3633;
  --radius:    10px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text-bright); }

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

/* ── Typography ───────────────────────────────────── */
h1, h2, h3, h4 { color: var(--text-bright); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p  { max-width: 60ch; }

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout ───────────────────────────────────────── */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* ── Nav ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .shield {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.nav-logo .shield svg { width: 16px; height: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--text-bright); }

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background .2s, transform .1s;
}

.nav-cta:hover { background: #00c8ef; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero p {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin: 0 auto 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover { background: #00c8ef; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,180,216,0.25); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--text-dim); background: var(--bg-raised); }

/* ── Status Badge ─────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(46,160,67,0.1);
  border: 1px solid rgba(46,160,67,0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.status-badge .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Features Grid ────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .3s, transform .3s;
}

.feature-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.feature-icon.shield  { background: rgba(0,180,216,0.12); color: var(--accent); }
.feature-icon.lock    { background: rgba(136,100,255,0.12); color: #8864ff; }
.feature-icon.bolt    { background: rgba(251,191,36,0.12); color: #fbbf24; }
.feature-icon.globe   { background: rgba(46,160,67,0.12); color: var(--green); }
.feature-icon.layers  { background: rgba(218,54,51,0.12); color: var(--red); }
.feature-icon.eye     { background: rgba(0,180,216,0.12); color: var(--accent); }

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.9rem; color: var(--text-dim); }

/* ── Numbers Section ──────────────────────────────── */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.numbers .num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
}

.numbers .num-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ── How It Works ─────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: block;
  width: 32px; height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.5rem; }
.step p  { font-size: 0.9rem; color: var(--text-dim); }

/* ── Pricing ──────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  position: relative;
}

.price-card.featured::after {
  content: 'Popular';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card h3 { margin-bottom: 0.5rem; }

.price-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 1rem 0;
}

.price-card .price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dim);
}

.price-card ul {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.price-card li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-card li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ── Download ─────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color .3s;
}

.download-card:hover { border-color: var(--accent-dim); }

.download-card .platform-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-card h3 { margin-bottom: 0.25rem; }

.download-card .version {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
  margin-bottom: 1.5rem;
}

.download-card .btn { width: 100%; justify-content: center; }

.download-card.coming-soon {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-col a:hover { color: var(--text-bright); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Reveal Animation ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid,
  .pricing-grid,
  .download-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .numbers {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  section { padding: 4rem 0; }

  .hero { padding: 8rem 0 4rem; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
  }

  .numbers { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
