/* ============================================================
   HazScan — landing page styles
   Dark, utilitarian field-tool aesthetic. Matches the iOS app:
   near-black surfaces, iOS system orange accent, white text.
   ============================================================ */

:root {
  /* Color */
  --bg:            #000000;
  --surface:       #1c1c1e;
  --surface-2:     #161618;
  --border:        #2c2c2e;
  --accent:        #ff9500; /* iOS system orange */
  --accent-press:  #e07f00;
  --text:          #ffffff;
  --text-muted:    #a1a1a6;

  /* Layout */
  --maxw: 1100px;
  --radius: 14px;
  --radius-sm: 10px;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.wordmark-mark { display: inline-block; border-radius: 7px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.site-nav a { color: var(--text-muted); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--accent-press); }

/* ============ HERO ============ */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1000px 480px at 75% -10%, rgba(255, 149, 0, 0.12), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-logo {
  width: 76px;
  height: 76px;
  border-radius: 17px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
}

.value-prop {
  margin: 16px 0 14px;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
}

.lede {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.appstore-badge {
  display: inline-flex;
  border-radius: 8px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.appstore-badge:hover { transform: translateY(-1px); opacity: 0.9; }

.hero-note {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Device mockup (SVG includes its own phone bezel) */
.hero-media { display: flex; justify-content: center; }

.hero-device {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.65));
}

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--border); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  text-align: center;
}

.section-sub {
  margin: 12px auto 48px;
  text-align: center;
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

/* ============ HOW IT WORKS ============ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 26px;
}

.step-art {
  width: 100%;
  aspect-ratio: 280 / 175;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(120% 120% at 50% 0%, #202022, #111113);
  border: 1px solid var(--border);
  overflow: hidden;
}
.step-art svg { width: 100%; height: 100%; display: block; }

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px 10px;
}

.step-num {
  flex: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.step h3 { font-size: 1.25rem; }
.step p { margin: 0 4px; color: var(--text-muted); font-size: 0.97rem; }

/* Arrows between steps on wide screens */
@media (min-width: 781px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -16px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--border);
    border-right: 2px solid var(--border);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* ============ FEATURES ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(255, 149, 0, 0.1);
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

/* ============ BUILT FOR THE FIELD ============ */
.field-band {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(255, 149, 0, 0.08), transparent 60%),
    var(--bg);
}

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

.field-item {
  padding: 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.field-item h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--accent); }
.field-item p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

/* ============ DOWNLOAD CTA ============ */
.download-band {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  text-align: center;
}
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-band .appstore-badge { margin-top: 8px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-brand .wordmark-mark { border-radius: 6px; }

.footer-links { display: flex; gap: 26px; font-size: 0.95rem; }
.footer-links a { color: var(--text-muted); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--accent); }

.footer-fine { padding-top: 22px; }
.footer-fine p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  max-width: 70ch;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 780px) {
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-logo { margin-inline: auto; }
  .lede { max-width: none; margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-media { order: -1; }

  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .site-nav { gap: 16px; font-size: 0.9rem; }
  .site-nav a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============ MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
