/* ============================================================
   Strait of Hormuz — site-wide stylesheet
   Radar / naval aesthetic: dark sea, phosphor green, amber alerts
   ============================================================ */

:root {
  --bg:        #060d0a;
  --bg2:       #0b1710;
  --bg3:       #0f1f16;
  --green:     #00ff88;
  --green-dim: #00b85f;
  --green-glow:#00ff8840;
  --amber:     #ffb84d;
  --amber-dim: #c27b00;
  --red:       #ff4444;
  --text:      #c8e8d0;
  --muted:     #567060;
  --border:    #1a3025;
  --radius:    6px;
  --font-mono: 'SF Mono', 'Fira Mono', 'Consolas', monospace;
  --font-sans: system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── SCAN-LINE overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,.08) 2px,
    rgba(0,0,0,.08) 4px
  );
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  color: var(--green);
  letter-spacing: .04em;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: .5em; }
h3 { font-size: 1.15rem; color: var(--amber); }
h4 { font-size: .95rem; color: var(--green-dim); letter-spacing: .1em; text-transform: uppercase; }

p  { max-width: 70ch; margin-bottom: 1em; }
a  { color: var(--green); text-decoration: none; border-bottom: 1px solid var(--green-dim); }
a:hover { color: var(--amber); border-color: var(--amber); }
strong { color: var(--green); }
em { color: var(--amber); font-style: normal; }
code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .1em .35em;
  color: var(--green);
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,13,10,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 max(1.5rem, 5vw);
  display: flex; align-items: center; gap: 2rem;
  height: 56px;
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--green);
  border: none;
  white-space: nowrap;
  letter-spacing: .08em;
}
.nav-brand:hover { color: var(--green); border: none; }
.nav-links {
  display: flex; gap: 1.5rem; list-style: none;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }

/* ── LAYOUT HELPERS ── */
.page    { max-width: 960px; margin: 0 auto; padding: 4rem max(1.5rem, 4vw) 6rem; }
.section { margin-bottom: 4rem; }
.grid2   { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid3   { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-dim), transparent);
}
.card h3 { margin-bottom: .5rem; }
.card p  { margin-bottom: 0; font-size: .95rem; }

/* ── RADAR BLIP decorators ── */
.blip {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  margin-right: .5em;
  vertical-align: middle;
  flex-shrink: 0;
}
.blip.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.blip.red   { background: var(--red);   box-shadow: 0 0 8px var(--red); }

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 6rem max(1.5rem, 5vw) 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, #003d1a40, transparent),
    radial-gradient(ellipse 40% 30% at 50% 50%, #00ff8808, transparent);
  pointer-events: none;
}
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1rem; text-shadow: 0 0 40px var(--green-glow); }
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 55ch;
  margin: 0 auto 2.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .06em;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn-primary {
  background: var(--green);
  color: #020a05;
  font-weight: 700;
}
.btn-primary:hover { background: #fff; color: #020a05; border-color: transparent; }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.btn-outline:hover { background: var(--green-glow); color: var(--green); border-color: var(--green); }
.btn-amber {
  background: var(--amber);
  color: #1a0d00;
  font-weight: 700;
}
.btn-amber:hover { background: #ffd080; color: #1a0d00; border-color: transparent; }

/* ── FEATURE ROW ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.feature-row.flip { direction: rtl; }
.feature-row.flip > * { direction: ltr; }
@media (max-width: 640px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; direction: ltr; }
}

/* ── RADAR DIAL (decorative SVG wrapper) ── */
.radar-art {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--green-dim);
  box-shadow: 0 0 40px var(--green-glow), inset 0 0 30px #00200e;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #002a12, #000d05);
}
.radar-art svg { width: 90%; height: 90%; }

/* ── STEP LIST ── */
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--green);
  background: var(--bg3);
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: .15rem .5rem;
  line-height: 1.6;
  flex-shrink: 0;
  min-width: 2.5rem;
  text-align: center;
}

/* ── FAQ ── */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  background: var(--bg2);
}
summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--green-dim);
  list-style: none;
  display: flex; align-items: center; gap: .75rem;
}
summary::before { content: '▶'; font-size: .7rem; transition: transform .2s; }
details[open] summary::before { transform: rotate(90deg); }
details[open] summary { color: var(--green); }
.faq-body { padding: 0 1.25rem 1rem; font-size: .95rem; color: var(--text); }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1.5rem; }
th {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-dim);
  border-bottom: 1px solid var(--green-dim);
  padding: .5rem .75rem;
  text-align: left;
}
td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* ── BADGE ── */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 3px;
  line-height: 1;
}
.badge-green { background: #003a1a; color: var(--green); border: 1px solid var(--green-dim); }
.badge-amber { background: #3a2000; color: var(--amber); border: 1px solid var(--amber-dim); }
.badge-red   { background: #3a0000; color: var(--red);   border: 1px solid #882222; }

/* ── NOTICE BOX ── */
.notice {
  border-left: 3px solid var(--amber);
  background: #1a100040;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.notice.green { border-color: var(--green); background: #001a0a40; }
.notice.red   { border-color: var(--red);   background: #1a000040; }

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

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 2.5rem max(1.5rem, 5vw);
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
footer a { color: var(--muted); border-color: transparent; font-size: .82rem; }
footer a:hover { color: var(--green); }
.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ── SHIP STAT BAR ── */
.stat-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.stat-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  width: 4.5rem;
  flex-shrink: 0;
}
.stat-track {
  flex: 1;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.stat-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  box-shadow: 0 0 6px var(--green);
}
.stat-fill.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

/* ── ICON GRID ── */
.icon-item { display: flex; gap: 1rem; align-items: flex-start; }
.icon-item .icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .72rem; }
  h1 { font-size: 2rem; }
}

/* ── RADAR ANIMATION ── */
@keyframes sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes blip-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
.sweep-arm { transform-origin: 50% 50%; animation: sweep 3s linear infinite; }
.blip-anim { animation: blip-pulse 2s ease-in-out infinite; }

/* ── PAGE HEADER ── */
.page-header {
  padding: 3.5rem max(1.5rem, 5vw) 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.page-header .eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .5rem;
}
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.page-header p  { color: var(--muted); margin-top: .5rem; }

/* ── APP STORE BADGE ── */
.appstore-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  padding: .6rem 1.25rem;
  text-decoration: none;
  color: #fff;
  border-bottom: none;
}
.appstore-badge:hover { border-color: var(--green); color: #fff; }
.appstore-badge .store-label { font-size: .65rem; color: #aaa; letter-spacing: .05em; }
.appstore-badge .store-name  { font-size: 1rem; font-weight: 600; }
