:root {
      --bg: #0b0e13;
      --bg-elev: #131820;
      --bg-soft: #1a222d;
      --text: #f2f4f7;
      --muted: #a8b3c2;
      --line: rgba(255, 255, 255, 0.08);
      --red: #e53935;
      --red-deep: #b71c1c;
      --orange: #fb8c00;
      --amber: #f9a825;
      --green: #43a047;
      --blue: #42a5f5;
      --max: 1120px;
      --font: "IBM Plex Sans", "Segoe UI", sans-serif;
      --app-primary: #b3261e;
      --app-surface: #fef7ff;
      --app-bg: #fffbff;
      --app-on-surface: #1c1b1f;
      --app-muted: #79747e;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: var(--font);
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
      font-size: 17px;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    button, .btn {
      font: inherit;
      cursor: pointer;
      border: 0;
    }

    .wrap {
      width: min(var(--max), calc(100% - 2.5rem));
      margin-inline: auto;
    }

    /* Nav */
    .nav {
      position: absolute;
      inset: 0 0 auto;
      z-index: 10;
      padding: 1.25rem 0;
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }
    .nav-brand {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      font-weight: 650;
      letter-spacing: -0.01em;
    }
    .nav-brand img {
      width: 36px;
      height: 36px;
      border-radius: 9px;
    }
    .nav-links {
      display: flex;
      gap: 1.5rem;
      color: rgba(255,255,255,0.78);
      font-size: 0.95rem;
      font-weight: 500;
    }
    .nav-links a:hover { color: #fff; }
    @media (max-width: 720px) {
      .nav-links { display: none; }
    }

    /* Hero — full-bleed */
    .hero {
      position: relative;
      min-height: 100svh;
      display: grid;
      align-items: center;
      overflow: hidden;
      isolation: isolate;
      padding: 6.5rem 0 3.5rem;
    }
    .hero-media {
      position: absolute;
      inset: 0;
      z-index: -2;
    }
    .hero-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 40%;
      transform: scale(1.02);
      animation: heroDrift 18s ease-in-out infinite alternate;
    }
    .hero-scrim {
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(90deg, rgba(11,14,19,0.72) 0%, rgba(11,14,19,0.35) 42%, rgba(11,14,19,0.28) 70%, rgba(11,14,19,0.55) 100%),
        linear-gradient(180deg, rgba(11,14,19,0.45) 0%, transparent 28%, rgba(11,14,19,0.55) 78%, rgba(11,14,19,0.92) 100%),
        radial-gradient(ellipse 55% 50% at 70% 45%, rgba(229,57,53,0.12), transparent 60%);
    }
    .hero-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(260px, 340px);
      gap: 3rem;
      align-items: center;
    }
    @media (max-width: 900px) {
      .hero-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 2.5rem;
      }
      .hero-content { max-width: 36rem; }
      .hero-brand, .hero-cta { justify-content: center; }
      .hero h1, .hero p { margin-inline: auto; }
      .hero-scrim {
        background:
          linear-gradient(180deg, rgba(11,14,19,0.5) 0%, rgba(11,14,19,0.35) 35%, rgba(11,14,19,0.78) 70%, rgba(11,14,19,0.96) 100%),
          radial-gradient(ellipse 70% 50% at 50% 30%, rgba(229,57,53,0.14), transparent 55%);
      }
    }
    .hero-content {
      animation: riseIn 0.9s ease-out both;
    }
    .hero-brand {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      margin-bottom: 1.35rem;
    }
    .hero-brand img {
      width: 64px;
      height: 64px;
      border-radius: 16px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    }
    .hero-brand-name {
      font-size: clamp(2.2rem, 5vw, 3.2rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1;
    }
    .hero h1 {
      margin: 0 0 0.85rem;
      font-size: clamp(1.45rem, 3.2vw, 2rem);
      font-weight: 650;
      letter-spacing: -0.025em;
      line-height: 1.25;
      max-width: 20ch;
    }
    .hero p {
      margin: 0 0 1.75rem;
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.65;
      max-width: 38ch;
    }
    .hero-cta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    /* Accurate app phone mock */
    .phone {
      width: min(100%, 300px);
      justify-self: end;
      border-radius: 36px;
      padding: 10px;
      background: linear-gradient(160deg, #2a2f38, #12151a);
      box-shadow:
        0 30px 80px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.08);
      animation: riseIn 1s ease-out 0.15s both;
    }
    @media (max-width: 900px) {
      .phone { justify-self: center; }
    }
    .phone-screen {
      border-radius: 28px;
      overflow: hidden;
      background: var(--app-bg);
      color: var(--app-on-surface);
      font-family: var(--font);
      font-size: 12px;
      line-height: 1.35;
      height: 560px;
      display: flex;
      flex-direction: column;
    }
    .phone-status {
      display: flex;
      justify-content: space-between;
      padding: 8px 16px 2px;
      font-size: 11px;
      font-weight: 600;
      background: var(--app-surface);
    }
    .phone-appbar {
      background: var(--app-surface);
      text-align: center;
      padding: 6px 12px 10px;
    }
    .phone-brand-row {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: var(--app-primary);
      font-weight: 700;
      font-size: 13px;
    }
    .phone-brand-row svg { width: 16px; height: 16px; fill: currentColor; }
    .phone-subtitle {
      margin-top: 2px;
      color: var(--app-muted);
      font-size: 11px;
      font-weight: 500;
    }
    .phone-location {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 10px 12px;
      border-bottom: 1px solid #e0e0e0;
      background: #fff;
      font-size: 11px;
    }
    .phone-location strong { font-weight: 650; }
    .phone-location .coords { color: #424242; font-weight: 500; }
    .phone-location svg { width: 14px; height: 14px; fill: var(--app-primary); flex-shrink: 0; }
    .phone-list {
      flex: 1;
      overflow: hidden;
      padding: 8px 10px 4px;
      background: #f7f2f7;
    }
    .eq-card {
      background: #fff;
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    }
    .eq-title {
      font-weight: 700;
      font-size: 12.5px;
      margin: 0 0 10px;
      line-height: 1.3;
    }
    .eq-metrics {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 8px;
    }
    .eq-metrics label {
      display: block;
      font-size: 10px;
      color: #9e9e9e;
      margin-bottom: 2px;
    }
    .eq-mag {
      font-size: 20px;
      font-weight: 700;
      line-height: 1.1;
    }
    .eq-mag.orange { color: #fb8c00; }
    .eq-mag.yellow { color: #f9a825; }
    .eq-mag.green { color: #43a047; }
    .eq-mag.red { color: #e53935; }
    .eq-depth { font-weight: 500; font-size: 12px; }
    .eq-row {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
      font-size: 11px;
      color: #424242;
    }
    .eq-row.distance {
      color: var(--app-primary);
      font-weight: 650;
    }
    .eq-row svg { width: 12px; height: 12px; flex-shrink: 0; }
    .phone-nav {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-top: 1px solid #e7e0ec;
      background: #fff;
      padding: 6px 0 10px;
    }
    .phone-nav-item {
      text-align: center;
      font-size: 10px;
      color: #79747e;
    }
    .phone-nav-item.active { color: var(--app-primary); font-weight: 650; }
    .phone-nav-item svg {
      display: block;
      width: 20px;
      height: 20px;
      margin: 0 auto 2px;
      fill: currentColor;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      padding: 0.9rem 1.35rem;
      border-radius: 999px;
      font-weight: 600;
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary {
      background: var(--red);
      color: #fff;
    }
    .btn-primary:hover { background: #ef5350; }
    .btn-ghost {
      background: rgba(255,255,255,0.08);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.14);
    }
    .btn-ghost:hover { background: rgba(255,255,255,0.14); }

    /* Sections */
    section { padding: 5.5rem 0; }
    .section-kicker {
      display: inline-block;
      margin-bottom: 0.75rem;
      color: var(--red);
      font-weight: 700;
      font-size: 0.82rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
    .section-title {
      margin: 0 0 0.75rem;
      font-family: var(--font);
      font-size: clamp(1.65rem, 3.2vw, 2.25rem);
      font-weight: 700;
      letter-spacing: -0.025em;
      line-height: 1.2;
    }
    .section-lead {
      margin: 0;
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.65;
      max-width: 42rem;
    }

    /* Atmospheric section backgrounds (shared mood, varied images) */
    .section-atmos {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      background: var(--bg);
    }
    .section-atmos::before {
      content: "";
      position: absolute;
      inset: -2%;
      z-index: -2;
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
      opacity: 0.42;
      filter: saturate(1.05) contrast(1.05);
    }
    .section-atmos::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(180deg, rgba(11,14,19,0.72) 0%, rgba(11,14,19,0.55) 45%, rgba(11,14,19,0.82) 100%),
        radial-gradient(ellipse 70% 60% at 80% 20%, rgba(229,57,53,0.14), transparent 55%);
    }

    .section-atmos.bg-map::before { background-image: url("../images/hero-bg.png"); }
    .section-atmos.bg-terrain::before { background-image: url("../images/atmos-terrain.png"); }
    .section-atmos.bg-wave::before { background-image: url("../images/atmos-waveform.png"); }
    .section-atmos.bg-nodes::before { background-image: url("../images/atmos-nodes.png"); }
    .section-atmos.bg-strata::before { background-image: url("../images/atmos-strata.png"); }
    .section-atmos.bg-coast::before { background-image: url("../images/atmos-coast.png"); }

    .section-atmos.atmos-left::before { background-position: 18% 45%; }
    .section-atmos.atmos-right::before { background-position: 82% 40%; }
    .section-atmos.atmos-center::before { background-position: 50% 55%; }
    .section-atmos.atmos-bottom::before { background-position: 40% 75%; }
    .section-atmos.atmos-top::before { background-position: 60% 20%; }
    .section-atmos.atmos-soft::before { opacity: 0.3; }
    .section-atmos.atmos-strong::before { opacity: 0.55; }
    .section-atmos.atmos-left::after {
      background:
        linear-gradient(100deg, rgba(11,14,19,0.88) 0%, rgba(11,14,19,0.55) 55%, rgba(11,14,19,0.78) 100%),
        radial-gradient(ellipse 50% 70% at 15% 60%, rgba(229,57,53,0.12), transparent 60%);
    }
    .section-atmos.atmos-right::after {
      background:
        linear-gradient(260deg, rgba(11,14,19,0.88) 0%, rgba(11,14,19,0.5) 50%, rgba(11,14,19,0.8) 100%),
        radial-gradient(ellipse 55% 65% at 85% 40%, rgba(229,57,53,0.16), transparent 55%);
    }
    .section-atmos.atmos-center::after {
      background:
        linear-gradient(180deg, rgba(11,14,19,0.78) 0%, rgba(11,14,19,0.5) 40%, rgba(11,14,19,0.88) 100%),
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(229,57,53,0.14), transparent 55%);
    }
    .section-atmos.atmos-soft::after {
      background:
        linear-gradient(180deg, rgba(11,14,19,0.82) 0%, rgba(11,14,19,0.7) 50%, rgba(11,14,19,0.9) 100%),
        radial-gradient(ellipse 80% 60% at 70% 80%, rgba(66,165,245,0.06), transparent 50%);
    }

    /* Intro strip */
    .intro {
      border-block: 1px solid var(--line);
    }
    .intro-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 3rem;
      align-items: center;
    }
    @media (max-width: 860px) {
      .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
    }
    .pulse-list {
      list-style: none;
      margin: 1.75rem 0 0;
      padding: 0;
      display: grid;
      gap: 0.85rem;
    }
    .pulse-list li {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0.85rem;
      align-items: start;
      padding-bottom: 0.85rem;
      border-bottom: 1px solid var(--line);
    }
    .pulse-list li:last-child { border-bottom: 0; padding-bottom: 0; }
    .pulse-dot {
      width: 10px;
      height: 10px;
      margin-top: 0.45rem;
      border-radius: 50%;
      background: var(--red);
      box-shadow: 0 0 0 0 rgba(229,57,53,0.5);
      animation: pulse 2.4s ease-out infinite;
    }
    .pulse-list strong {
      display: block;
      font-weight: 650;
      margin-bottom: 0.15rem;
    }
    .pulse-list span { color: var(--muted); font-size: 0.95rem; }

    /* Feature bands */
    .feature-section {
      padding: 5.5rem 0;
    }
    .band {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3.5rem;
      align-items: center;
    }
    .band.reverse { direction: rtl; }
    .band.reverse > * { direction: ltr; }
    @media (max-width: 860px) {
      .band, .band.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
      }
    }
    .band-visual {
      border-radius: 1.25rem;
      overflow: hidden;
      background: var(--bg-soft);
      border: 1px solid var(--line);
      aspect-ratio: 1;
    }
    .band-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .feature-points {
      list-style: none;
      margin: 1.5rem 0 0;
      padding: 0;
      display: grid;
      gap: 0.7rem;
    }
    .feature-points li {
      position: relative;
      padding-left: 1.15rem;
      color: var(--muted);
    }
    .feature-points li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.55rem;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--red);
    }

    /* Magnitude scale */
    .mag-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 3rem;
      align-items: center;
      margin-top: 2.5rem;
    }
    @media (max-width: 860px) {
      .mag-grid { grid-template-columns: 1fr; }
    }
    .mag-scale {
      display: grid;
      gap: 0.75rem;
    }
    .mag-row {
      display: grid;
      grid-template-columns: 4.5rem 1fr auto;
      gap: 1rem;
      align-items: center;
      padding: 1rem 1.15rem;
      border-radius: 0.85rem;
      background: rgba(19, 24, 32, 0.75);
      border: 1px solid var(--line);
      backdrop-filter: blur(8px);
      animation: riseIn 0.7s ease-out both;
    }
    .mag-row:nth-child(1) { animation-delay: 0.05s; }
    .mag-row:nth-child(2) { animation-delay: 0.12s; }
    .mag-row:nth-child(3) { animation-delay: 0.19s; }
    .mag-row:nth-child(4) { animation-delay: 0.26s; }
    .mag-badge {
      font-family: var(--font);
      font-weight: 800;
      font-size: 1.15rem;
      letter-spacing: -0.02em;
    }
    .mag-badge.severe { color: var(--red); }
    .mag-badge.strong { color: var(--orange); }
    .mag-badge.mid { color: var(--amber); }
    .mag-badge.light { color: var(--green); }
    .mag-row p { margin: 0; color: var(--muted); font-size: 0.95rem; }
    .mag-label { font-weight: 600; color: var(--text); font-size: 0.92rem; }

    /* Specs / all features */
    .specs {
      border-block: 1px solid var(--line);
    }
    .spec-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
      margin-top: 2.5rem;
    }
    @media (max-width: 900px) {
      .spec-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 560px) {
      .spec-grid { grid-template-columns: 1fr; }
    }
    .spec {
      padding: 1.35rem 1.25rem;
      border: 1px solid var(--line);
      border-top: 2px solid var(--red);
      border-radius: 0 0 0.55rem 0.55rem;
      background: linear-gradient(180deg, rgba(19,24,32,0.78), rgba(19,24,32,0.4));
      backdrop-filter: blur(8px);
    }
    .spec h3 {
      margin: 0 0 0.45rem;
      font-family: var(--font);
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    .spec p {
      margin: 0;
      color: var(--muted);
      font-size: 0.95rem;
    }

    /* Privacy / platforms */
    .privacy {
      padding: 5.5rem 0;
    }
    .split-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2.5rem;
    }
    @media (max-width: 800px) {
      .split-2 { grid-template-columns: 1fr; }
    }
    .panel {
      padding: 1.75rem;
      background: rgba(19, 24, 32, 0.72);
      border: 1px solid var(--line);
      border-radius: 1.1rem;
      backdrop-filter: blur(10px);
    }
    .panel h3 {
      margin: 0 0 0.65rem;
      font-family: var(--font);
      font-size: 1.25rem;
      letter-spacing: -0.02em;
    }
    .panel p, .panel li {
      color: var(--muted);
      font-size: 0.98rem;
    }
    .panel ul {
      margin: 0.85rem 0 0;
      padding-left: 1.1rem;
    }
    .platform-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-top: 1.1rem;
    }
    .chip {
      padding: 0.45rem 0.85rem;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--line);
      font-size: 0.88rem;
      font-weight: 600;
    }

    /* CTA */
    .cta {
      text-align: center;
      padding: 5rem 0;
    }
    .cta .section-title { max-width: 16ch; margin-inline: auto; }
    .cta .section-lead { margin-inline: auto; }
    .cta .hero-cta { justify-content: center; margin-top: 1.75rem; }

    /* Footer */
    footer {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      padding: 2.5rem 0 3rem;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 0.9rem;
    }
    footer::before {
      content: "";
      position: absolute;
      inset: -10% 0;
      z-index: -2;
      background: url("../images/atmos-strata.png") 30% 85% / cover no-repeat;
      opacity: 0.28;
    }
    footer::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(180deg, rgba(11,14,19,0.92), rgba(11,14,19,0.96));
    }
    .footer-inner {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 1.5rem;
      align-items: flex-start;
    }
    .footer-brand {
      display: flex;
      gap: 0.75rem;
      align-items: center;
      color: var(--text);
      font-family: var(--font);
      font-weight: 700;
    }
    .footer-brand img {
      width: 40px;
      height: 40px;
      border-radius: 10px;
    }
    .footer-meta { max-width: 28rem; }
    .footer-meta a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
    .disclaimer-note {
      margin-top: 1.75rem;
      padding-top: 1.25rem;
      border-top: 1px solid var(--line);
      font-size: 0.82rem;
      color: #7a8696;
      max-width: 52rem;
    }

    @keyframes riseIn {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes heroDrift {
      from { transform: scale(1.02) translateY(0); }
      to { transform: scale(1.06) translateY(-1.5%); }
    }
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(229,57,53,0.55); }
      70% { box-shadow: 0 0 0 12px rgba(229,57,53,0); }
      100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
      }
    }
