/* ============================================================
   Design tokens — Secure Hardware Dark
   ============================================================ */
:root {
  --bg-0:        #040810;
  --bg-1:        #07101e;
  --bg-2:        #0d1828;
  --bg-card:     #0f1e32;
  --bg-card-h:   #132338;

  --accent:      #ffd528;
  --accent-dim:  rgba(255, 213, 40, 0.12);
  --accent-glow: rgba(255, 213, 40, 0.18);

  --green:       #00e5a0;
  --green-dim:   rgba(0, 229, 160, 0.12);

  --text-0:      #eef2ff;
  --text-1:      #9aaac0;
  --text-2:      #506070;

  --border-1:    rgba(255, 255, 255, 0.055);
  --border-2:    rgba(255, 255, 255, 0.1);
  --border-a:    rgba(255, 213, 40, 0.22);

  --nav-h:       68px;
  --ease:        cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  /* dot-grid background */
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='256' height='256' filter='url(%23n)' opacity='1'/></svg>");
  opacity: 0.028;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  color: var(--text-0);
  line-height: 1.08;
}

h1 {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h2 em {
  font-style: normal;
  color: var(--accent);
}

h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  font-size: 17px;
  color: var(--text-1);
  line-height: 1.75;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  opacity: 0.85;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 120px 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  height: 52px;
  padding: 0 26px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}

.btn-primary:hover {
  background: #ffe045;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 213, 40, 0.28);
}

.btn-primary:active { transform: translateY(0); }

.btn-lg {
  height: 62px;
  padding: 0 36px;
  font-size: 17px;
  border-radius: 10px;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.navbar.scrolled {
  background: rgba(4, 8, 16, 0.96);
  border-bottom-color: var(--border-1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  transition: color 0.15s;
}

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

.nav-btn {
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-0);
  border-radius: 1px;
  transition: all 0.28s var(--ease);
  transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(4, 8, 16, 0.98);
  backdrop-filter: blur(16px);
  padding: 20px 28px 28px;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border-1);
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s var(--ease);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  padding: 13px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
  border-bottom: 1px solid var(--border-1);
}

.mobile-menu a:hover { color: var(--text-0); }

.mobile-menu .btn-primary {
  margin-top: 16px;
  justify-content: center;
  border-bottom: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Giant background word */
.hero-wordmark {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Syne', sans-serif;
  font-size: clamp(120px, 20vw, 240px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 213, 40, 0.07);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Status indicator */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--green);
  margin-bottom: 28px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.5);
  animation: sonar 2.4s ease infinite;
}

@keyframes sonar {
  0%   { box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 229, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 160, 0); }
}

.hero h1 { margin-bottom: 24px; }

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-1);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 44px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-0);
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(0, 229, 160, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.check-icon::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.hero-meta {
  font-size: 10px;
  color: var(--text-2);
  letter-spacing: 0.12em;
}

/* Phone */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-wrapper {
  position: relative;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

.phone-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(255,213,40,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
}

.hero-scroll-hint .mono { font-size: 9px; letter-spacing: 0.18em; color: var(--text-1); }

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-1), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================================
   Section header
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 520px; }

/* ============================================================
   Features
   ============================================================ */
.features {
  border-top: 1px solid var(--border-1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-a);
  background: var(--bg-card-h);
  transform: translateY(-5px);
}

.feature-card:hover::before { opacity: 1; }

.card-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  font-weight: 400;
  color: rgba(255, 213, 40, 0.08);
  line-height: 1;
  transition: color 0.25s;
}

.feature-card:hover .card-num { color: rgba(255, 213, 40, 0.15); }

.feature-icon {
  font-size: 28px;
  margin-bottom: 18px;
  line-height: 1;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   Benefits
   ============================================================ */
.benefits {
  border-top: 1px solid var(--border-1);
  background: var(--bg-1);
}

.benefits-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.benefits-text .section-label { display: block; }
.benefits-text h2 { margin-bottom: 28px; }
.benefits-text p { margin-bottom: 18px; font-size: 16px; }

/* Comparison table */
.compare-table {
  border: 1px solid var(--border-1);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}

.compare-header {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding: 14px 22px;
  background: rgba(255, 213, 40, 0.04);
  border-bottom: 1px solid var(--border-1);
}

.compare-header span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.12em;
}

.compare-header .ours { color: var(--accent); opacity: 0.9; }

.compare-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-1);
  align-items: center;
  transition: background 0.15s;
}

.compare-row:last-child { border-bottom: none; }
.compare-row:hover { background: rgba(255,255,255,0.02); }

.compare-row .label { font-size: 14px; font-weight: 600; color: var(--text-0); }
.compare-row .bad   { font-size: 12px; color: #ef4444; }
.compare-row .good  { font-size: 12px; color: var(--green); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--border-1); }

.faq-list { max-width: 780px; margin: 0 auto; }

details {
  border: 1px solid var(--border-1);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s;
}

details[open] { border-color: var(--border-a); }

summary {
  padding: 20px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  user-select: none;
  transition: color 0.15s;
}

summary::-webkit-details-marker { display: none; }

.faq-num {
  font-size: 11px;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

details[open] .faq-num { opacity: 1; }

summary .arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform 0.28s var(--ease);
}

details[open] summary .arrow { transform: rotate(45deg); }
summary:hover { color: var(--accent); }

/* We add the arrow via JS — fallback with CSS */
summary::after {
  content: '+';
  margin-left: auto;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.28s var(--ease);
}

details[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 26px 22px 58px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-1);
  animation: fadeSlide 0.22s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Download CTA
   ============================================================ */
.download {
  border-top: 1px solid var(--border-1);
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 140px 0;
}

.download-bg-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Syne', sans-serif;
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 213, 40, 0.05);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.download-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-inner .section-label { margin-bottom: 20px; }
.download-inner h2 { margin-bottom: 20px; }
.download-inner p { margin-bottom: 44px; max-width: 420px; }

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 60px;
}

.download-specs {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 32px;
  font-size: 13px;
  color: var(--text-1);
}

.spec-num {
  font-size: 22px;
  color: var(--text-0);
  font-weight: 500;
}

.spec-divider {
  width: 1px;
  height: 44px;
  background: var(--border-1);
  flex-shrink: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-1);
  padding: 64px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-brand p { font-size: 14px; max-width: 240px; }

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-2);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--text-1);
  transition: color 0.15s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom .mono {
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}

.footer-tagline { color: rgba(255, 213, 40, 0.3); }

/* ============================================================
   Scroll animations
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.4s; }
.stagger-6 { transition-delay: 0.48s; }

/* ============================================================
   Responsive — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 340px; gap: 48px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-inner { grid-template-columns: 1fr; gap: 56px; }
}

/* ============================================================
   Responsive — 768px
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 80px 0; }

  h1 { font-size: clamp(38px, 10vw, 56px); }
  h2 { font-size: clamp(30px, 8vw, 44px); }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual { order: -1; }

  .hero-status,
  .hero-cta,
  .hero-features { align-items: center; }

  .hero-sub { max-width: 100%; }

  .hero-wordmark { display: none; }

  .nav-links, .nav-btn { display: none; }
  .burger { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .download { padding: 90px 0; }
  .download-bg-text { display: none; }
}

/* ============================================================
   Responsive — 480px
   ============================================================ */
@media (max-width: 480px) {
  section { padding: 60px 0; }
  .container { padding: 0 18px; }

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

  .phone-wrapper img { width: 220px; }

  .compare-header,
  .compare-row { padding: 12px 16px; }

  .spec-item { padding: 16px 20px; }
  .spec-divider { height: 36px; }

  .faq-answer { padding-left: 26px; }
}
