/* ==========================================================================
   7T7Labs — Design System
   ========================================================================== */

:root {
  --bg: #05070f;
  --bg-alt: #080b18;
  --surface: rgba(13, 18, 36, 0.65);
  --surface-solid: #0c1122;
  --border: rgba(120, 170, 255, 0.16);
  --border-strong: rgba(0, 240, 255, 0.4);

  --neon-cyan: #00f0ff;
  --neon-blue: #4d7dff;
  --neon-purple: #a76bff;

  --text-primary: #f4f7ff;
  --text-secondary: #97a3c4;
  --text-dim: #616e8f;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-glow-cyan: 0 0 30px rgba(0, 240, 255, 0.25);
  --shadow-glow-blue: 0 0 40px rgba(77, 125, 255, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Radiant aurora backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(77, 125, 255, 0.25), transparent 60%),
    radial-gradient(ellipse 800px 500px at 90% 10%, rgba(0, 240, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 900px 700px at 50% 100%, rgba(167, 107, 255, 0.14), transparent 60%),
    var(--bg);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

/* Fine tech grid overlay, fading toward the center */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
}

@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.05); }
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  padding: 14px 0;
  background: rgba(5, 7, 15, 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
  font-size: 1rem;
  color: #05070f;
}

.logo span {
  color: var(--neon-cyan);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
  position: relative;
}

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

.nav-links .nav-cta {
  color: var(--text-primary);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: rgba(0, 240, 255, 0.18);
  box-shadow: var(--shadow-glow-cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue) 0%, #1a4dcc 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(77, 125, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(0, 240, 255, 0.06);
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.05);
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 15%, var(--neon-cyan) 55%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero .btn-row {
  justify-content: center;
  margin-bottom: 8px;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section {
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-top: 12px;
  color: var(--text-primary);
}

.section-head p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 1.05rem;
}

.products-section {
  padding: 60px 0;
}

/* ==========================================================================
   Product cards (homepage grid)
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), var(--shadow-glow-cyan);
}

.product-card .app-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.18);
}

.product-card .app-icon-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.product-card .tagline {
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.product-card .desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 5px 10px;
  border-radius: 999px;
}

.view-details {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}

.product-card:hover .view-details {
  gap: 10px;
  color: var(--neon-cyan);
}

.product-card.coming-soon {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  cursor: default;
  color: var(--text-dim);
}

.product-card.coming-soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.product-card.coming-soon .icon-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1.5px dashed var(--border);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--text-dim);
}

/* ==========================================================================
   About / generic panel
   ========================================================================== */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  backdrop-filter: blur(12px);
}

.panel-centered {
  text-align: center;
}

.panel h2 {
  font-size: 1.9rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.panel p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 16px;
}

.panel a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.panel a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Visitor Stats Panel
   ========================================================================== */

.visitor-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.visitor-total {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visitor-total-count {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 15%, var(--neon-cyan) 55%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.visitor-total-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.visitor-list {
  list-style: none;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visitor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(120, 170, 255, 0.04);
}

.visitor-row .flag {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.visitor-row .country-name {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.visitor-row .country-count {
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 40px;
  text-align: right;
}

.visitor-loading,
.visitor-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 20px 0;
}

.visitor-more {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ========================================================================== 
   Consent and private analytics dashboard
   ========================================================================== */

.analytics-consent {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  width: min(440px, calc(100% - 40px));
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(6, 13, 31, 0.96);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
}

.analytics-consent p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.analytics-consent a { color: var(--neon-cyan); }

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.consent-button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.82rem;
  cursor: pointer;
}

.admin-page { min-height: 100vh; }

.admin-shell {
  max-width: 1120px;
  padding-top: 54px;
  padding-bottom: 70px;
}

.admin-logo { display: inline-flex; margin-bottom: 52px; }

.login-panel {
  max-width: 440px;
  margin: 0 auto;
}

.login-panel h1, .admin-heading h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.login-form { display: grid; gap: 10px; margin-top: 26px; }
.login-form label { color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; }
.login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  font: inherit;
}
.login-form .btn-primary { justify-self: start; margin-top: 8px; border: 0; cursor: pointer; }
.form-error { color: #fb7185 !important; margin-top: 14px !important; }

.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.admin-heading .btn-secondary { text-decoration: none; white-space: nowrap; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.metric-card { padding: 24px; }
.metric-label { display: block; color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.metric-card strong { display: block; margin-top: 9px; color: var(--neon-cyan); font-size: clamp(1.8rem, 4vw, 2.6rem); }

.analytics-panel { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); gap: 44px; align-items: center; }
.analytics-chart-wrap { display: grid; justify-items: center; gap: 28px; }
.donut-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: min(260px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
}
.donut-chart::after { content: ''; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: #0b142b; }
.donut-chart span { position: relative; z-index: 1; max-width: 110px; color: var(--text-primary); font-size: .9rem; font-weight: 700; line-height: 1.35; text-align: center; }
.chart-legend { width: 100%; display: grid; gap: 9px; }
.legend-item { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 9px; color: var(--text-secondary); font-size: .86rem; }
.legend-item i { display: block; width: 10px; height: 10px; border-radius: 50%; }
.legend-item strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.country-table-wrap { overflow-x: auto; }
.country-table-wrap h2 { font-size: 1.2rem; margin: 0 0 18px; }
.country-table-wrap table { width: 100%; border-collapse: collapse; color: var(--text-secondary); }
.country-table-wrap th, .country-table-wrap td { padding: 13px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.country-table-wrap th { color: var(--text-dim); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.country-table-wrap th:not(:first-child), .country-table-wrap td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.country-table-wrap td:first-child { color: var(--text-primary); font-weight: 600; }
.analytics-note { margin: 16px 0 0; color: var(--text-dim); font-size: .82rem; text-align: center; }

@media (max-width: 760px) {
  .admin-shell { padding-top: 30px; }
  .admin-logo { margin-bottom: 35px; }
  .admin-metrics { grid-template-columns: 1fr; }
  .analytics-panel { grid-template-columns: 1fr; gap: 32px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
}

/* ==========================================================================
   Product detail page — app hero
   ========================================================================== */

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color 0.25s ease;
}

.breadcrumb:hover {
  color: var(--neon-cyan);
}

.app-hero {
  padding: 40px 0 60px;
}

.app-hero-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.app-icon-frame {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.25);
  flex-shrink: 0;
}

.app-icon-frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

.app-title-group h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.app-title-group .tagline {
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.app-hero .lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 720px;
  margin-bottom: 28px;
}

/* ==========================================================================
   Feature grid (bento)
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 8px 0;
}

.feature-box {
  background: rgba(0, 16, 32, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-box p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ==========================================================================
   Interactive simulator
   ========================================================================== */

.simulator {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.battery-shell {
  position: relative;
  width: 100px;
  height: 200px;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.battery-shell::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 10px;
  border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, 0.25);
}

.battery-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(to top, #38bdf8, #60a5fa);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  transition: height 0.25s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.percent-text {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 14px;
  font-size: 1.3rem;
  font-weight: 800;
}

.sim-status {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.sim-controls label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--neon-cyan);
  margin-bottom: 20px;
  cursor: pointer;
}

.sim-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid;
  margin-bottom: 20px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.preset-btn:hover {
  border-color: var(--border-strong);
  background: rgba(0, 240, 255, 0.08);
}

.alert-toast {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

.faq-question .icon {
  color: var(--neon-cyan);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding: 0 24px 22px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  text-align: center;
  padding: 70px 0;
}

.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.final-cta p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ==========================================================================
   Legal / content pages
   ========================================================================== */

.content-page {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.content-page .update-date {
  color: var(--neon-cyan);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.content-page section {
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.content-page h2 {
  font-size: 1.3rem;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.content-page p, .content-page ul {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.content-page ul {
  padding-left: 20px;
  margin-top: 8px;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer a:hover {
  color: var(--neon-cyan);
}

footer .footer-links {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 780px) {
  .simulator {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(8, 11, 24, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 10px;
    border-radius: 8px;
  }

  .nav-links .nav-cta {
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 2.3rem; }
  .hero p.lead { font-size: 1.05rem; }

  .panel, .simulator { padding: 28px 20px; }

  .app-hero-inner { gap: 20px; }
  .app-title-group h1 { font-size: 1.9rem; }
}
