/* ============ ZipAware marketing site ============ */

:root {
  --bg: #0b1020;
  --bg-soft: #101730;
  --bg-card: #151d3a;
  --ink: #eef1fb;
  --ink-dim: #a8b1cf;
  --ink-faint: #6b7494;
  --accent: #ff6b4a;
  --accent-soft: rgba(255, 107, 74, 0.12);
  --accent-2: #4ad0ff;
  --good: #3ddc8e;
  --warn: #ffc24a;
  --line: rgba(168, 177, 207, 0.16);
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 920px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { display: block; text-align: center; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 107, 74, 0.45); }
.btn-outline { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.btn-outline:hover { border-color: var(--ink-dim); transform: translateY(-2px); }
.btn-ghost { color: var(--ink-dim); }
.btn-ghost:hover { color: var(--ink); }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.25rem; font-weight: 800; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo-accent { color: var(--accent); }
.logo-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--accent-soft); border-radius: 8px; color: var(--accent);
}
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 0.93rem; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(168, 177, 207, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 177, 207, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.35; }
.hero-glow-1 { width: 480px; height: 480px; background: var(--accent); top: -180px; right: -100px; }
.hero-glow-2 { width: 420px; height: 420px; background: #3b5bff; bottom: -220px; left: -120px; opacity: 0.28; }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 26px; background: rgba(255, 255, 255, 0.03);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 107, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0); }
}
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 800; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.13rem; color: var(--ink-dim); max-width: 56ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat-num { font-size: 1.55rem; font-weight: 800; color: var(--ink); }
.stat-label { font-size: 0.85rem; color: var(--ink-faint); }

/* Hero event cards */
.hero-card-stack { display: flex; flex-direction: column; gap: 16px; }
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.event-card-1 { transform: rotate(-1.2deg); border-left: 3px solid var(--accent); }
.event-card-2 { transform: rotate(0.8deg) translateX(14px); border-left: 3px solid var(--warn); }
.event-card-3 { transform: rotate(-0.6deg); border-left: 3px solid var(--accent-2); opacity: 0.92; }
.event-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sev {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 999px;
}
.sev-critical { background: rgba(255, 107, 74, 0.18); color: #ff8d73; }
.sev-high { background: rgba(255, 194, 74, 0.16); color: var(--warn); }
.sev-moderate { background: rgba(74, 208, 255, 0.14); color: var(--accent-2); }
.event-cat { font-size: 0.85rem; color: var(--ink-dim); font-weight: 600; }
.event-card-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 7px; }
.event-card-zips { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-dim); margin-bottom: 10px; }
.event-card-zips .more { color: var(--ink-faint); font-family: var(--font); }
.event-card-window {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--line); padding-top: 9px; font-size: 0.82rem;
}
.event-card-window span { color: var(--ink-faint); }
.event-card-window strong { color: var(--ink); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; background: var(--bg-soft); }
.trust-label { text-align: center; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.trust-logos { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: var(--ink-dim); font-weight: 600; font-size: 0.95rem; }
.trust-logos .dot { color: var(--ink-faint); }

/* ---------- Sections shared ---------- */
section { padding: 92px 0; }
.section-head { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.section-sub { color: var(--ink-dim); font-size: 1.08rem; }

/* ---------- Problem ---------- */
.problem { background: var(--bg); text-align: center; }
.problem .section-sub { max-width: 64ch; margin: 0 auto 50px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.problem-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.problem-emoji { font-size: 1.9rem; margin-bottom: 14px; }
.problem-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.problem-card p { color: var(--ink-dim); font-size: 0.95rem; }

/* ---------- How it works ---------- */
.how { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 22px; align-items: start; }
.step {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
}
.step-num {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; border-radius: 10px; margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; font-size: 1.15rem; }
.step p { color: var(--ink-dim); font-size: 0.95rem; }
.step-arrow { align-self: center; color: var(--ink-faint); font-size: 1.5rem; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(255, 107, 74, 0.45); }
.cat-icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.cat-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cat-card p { color: var(--ink-dim); font-size: 0.86rem; }

/* ---------- Time dimension ---------- */
.time-dim { background: var(--bg-soft); }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.time-copy p { color: var(--ink-dim); margin-bottom: 22px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.check-list li { padding-left: 30px; position: relative; color: var(--ink-dim); font-size: 0.97rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--good); font-weight: 800;
}
.check-list li strong { color: var(--ink); }

.timeline-viz {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.tl-title { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 22px; }
.tl-chart { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.tl-bar {
  height: 40px; border-radius: 8px; display: flex; align-items: center;
  padding: 0 16px; font-size: 0.82rem; font-weight: 600;
}
.tl-onset { width: 38%; background: rgba(255, 194, 74, 0.25); color: var(--warn); }
.tl-peak { width: 92%; background: rgba(255, 107, 74, 0.3); color: #ff9c85; }
.tl-decay { width: 64%; background: rgba(74, 208, 255, 0.18); color: var(--accent-2); margin-left: 18%; }
.tl-clear { width: 42%; background: rgba(61, 220, 142, 0.16); color: var(--good); margin-left: 50%; }
.tl-axis {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 10px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint);
}

/* ---------- API ---------- */
.api-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.api-copy p { color: var(--ink-dim); margin-bottom: 22px; }
.code-window {
  background: #0a0e1d; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.code-bar {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot.red { background: #ff5f57; } .code-dot.yellow { background: #febc2e; } .code-dot.green { background: #28c840; }
.code-file { margin-left: 10px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-faint); }
.code-window pre { padding: 20px 22px; overflow-x: auto; }
.code-window code { font-family: var(--mono); font-size: 0.8rem; line-height: 1.7; color: var(--ink-dim); }
.code-window .k { color: #8ab4ff; }
.code-window .s { color: #7ee2a8; }
.code-window .c { color: var(--ink-faint); font-style: italic; }

/* ---------- Use cases ---------- */
.use-cases { background: var(--bg-soft); }
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uc-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.uc-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.uc-card p { color: var(--ink-dim); font-size: 0.93rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; position: relative;
}
.price-featured {
  border-color: rgba(255, 107, 74, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 107, 74, 0.35), var(--shadow);
  transform: scale(1.03);
}
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; letter-spacing: 0.05em;
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.price { margin-bottom: 10px; color: var(--ink-faint); }
.price .amount { font-size: 2.3rem; font-weight: 800; color: var(--ink); }
.price-desc { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 22px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.price-card li { padding-left: 26px; position: relative; font-size: 0.92rem; color: var(--ink-dim); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.14), rgba(59, 91, 255, 0.12)), var(--bg-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-inner { text-align: center; max-width: 640px; }
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--ink-dim); margin-bottom: 30px; font-size: 1.05rem; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-form input {
  flex: 1; min-width: 260px; max-width: 360px;
  padding: 14px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
  color: var(--ink); font-family: var(--font); font-size: 1rem;
}
.cta-form input::placeholder { color: var(--ink-faint); }
.cta-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.cta-thanks { font-size: 1.15rem; font-weight: 600; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero ZIP quick-check ---------- */
.hero-zipcheck { display: flex; gap: 10px; max-width: 420px; margin-bottom: 44px; }
.hero-zipcheck input {
  flex: 1; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
  color: var(--ink); font-family: var(--font); font-size: 0.95rem;
}
.hero-zipcheck input::placeholder { color: var(--ink-faint); }
.hero-zipcheck input:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--ink-faint); font-size: 0.9rem; margin-top: 14px; max-width: 32ch; }
.logo-footer { font-size: 1.15rem; }
.footer-col h4 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-dim); text-decoration: none; font-size: 0.92rem; margin-bottom: 9px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 22px;
  color: var(--ink-faint); font-size: 0.82rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-card-stack { max-width: 480px; }
  .event-card-2 { transform: rotate(0.8deg); }
  .problem-grid, .uc-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-self: center; }
  .time-grid, .api-grid { grid-template-columns: 1fr; gap: 44px; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-soft);
    border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 24px; }
  .nav-burger { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .problem-grid, .uc-grid, .cat-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
