:root {
  --bg: #05080f;
  --bg-elevated: #0b1220;
  --navy: #0a1a33;
  --navy-deep: #06101f;
  --line: rgba(160, 190, 230, 0.14);
  --text: #e8eef8;
  --muted: #93a4bd;
  --blue: #1f7dff;
  --blue-bright: #3d93ff;
  --blue-soft: rgba(31, 125, 255, 0.18);
  --green: #2fce7a;
  --red: #e23b3b;
  --amber: #f0a43a;
  --radius: 10px;
  --shell: min(1160px, calc(100% - 2.5rem));
  --font: "Barlow", "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(31, 125, 255, 0.16), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(12, 60, 120, 0.25), transparent 50%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--blue);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff;
  border-color: #2f86ff;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #5aa4ff, var(--blue-bright));
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(180, 205, 240, 0.28);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(180, 205, 240, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  min-height: 48px;
  padding-inline: 1.35rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 8, 15, 0.9);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 150ms ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.96);
}

.nav-mobile a {
  padding: 0.75rem 0.4rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-mobile .btn {
  margin-top: 0.5rem;
  border-bottom: 0;
}

/* Hero — desktop banner + mobile stacked layout */
.hero {
  position: relative;
  background: #05080f;
  padding: 0;
  overflow: hidden;
}

.hero-banner-wrap {
  width: 100%;
  background: #05080f;
  display: flex;
  justify-content: center;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  max-width: min(100%, 1774px);
  border: 0;
  outline: 0;
}

.hero-mobile {
  display: none;
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.hero-lockup img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.hero-lockup-rule {
  width: 1px;
  height: 2rem;
  background: rgba(200, 215, 235, 0.35);
}

.hero-lockup-name {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}

.hero-mobile-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 8vw, 2.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.hero-mobile .lede {
  margin: 0.85rem 0 0;
  color: #b7c4d8;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 36ch;
}

.hero-mobile-features {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.hero-mobile-features li {
  position: relative;
  padding-left: 1.15rem;
  color: #d7e0ec;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-mobile-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue-bright);
}

.hero-mobile-scroller {
  display: flex;
  gap: 1.1rem;
  width: 100vw;
  margin: 1.5rem 0 1.5rem calc(50% - 50vw);
  padding: 0.35rem max(1rem, calc((100vw - 100%) / 2 + 0.25rem)) 0.85rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hero-mobile-scroller::-webkit-scrollbar {
  display: none;
}

.hero-mobile-card {
  margin: 0;
  flex: 0 0 auto;
  width: min(78vw, 280px);
  scroll-snap-align: center;
  text-align: center;
}

.hero-mobile-card--phone {
  width: min(92vw, 360px);
}

.hero-mobile-card figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-mobile-watch {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.hero-mobile-phone {
  width: 100%;
  height: auto;
  max-height: 320px;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.hero-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-mobile-ctas .btn {
  width: 100%;
}

/* Compare */
.compare {
  padding: 0.25rem 0 2.75rem;
}

.compare-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  padding: 0.35rem 0 0;
}

.compare-from,
.compare-to {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
}

.compare-from {
  color: #7d8ca3;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.compare-from .strike {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(125, 140, 163, 0.7);
  opacity: 0.75;
}

.compare-from .dim {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
}

.compare-arrow {
  display: inline-flex;
  color: var(--blue-bright);
  width: 48px;
  flex: 0 0 auto;
  opacity: 0.9;
}

.compare-arrow svg {
  width: 100%;
  height: auto;
  display: block;
}

.compare-to {
  font-family: var(--display);
}

.compare-to img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.compare-to .name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.compare-to .sep {
  width: 1px;
  height: 1.1rem;
  background: rgba(160, 190, 230, 0.28);
}

.compare-to .tag {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--blue-bright);
}

.compare-to .meta {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Features */
.features {
  padding: 4rem 0 3.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.4), transparent);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head h2,
.why-copy h2,
.resources h2,
.cta-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.section-head p,
.resources p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 42ch;
}

.feature-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-strip li {
  padding: 1.4rem 1.1rem;
  border-right: 1px solid var(--line);
}

.feature-strip li:last-child {
  border-right: 0;
}

.feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  color: var(--blue-bright);
  margin-bottom: 0.85rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-strip p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.feature-strip small {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Why */
.why {
  padding: 3.5rem 0 4.5rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 2.25rem;
  align-items: center;
}

.toc-panel {
  margin: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0f13;
  box-shadow: var(--shadow);
}

.toc-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: #0d1626;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.toc-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a465c;
}

.toc-chrome span:nth-child(1) { background: #ff5f57; }
.toc-chrome span:nth-child(2) { background: #febc2e; }
.toc-chrome span:nth-child(3) { background: #28c840; }

.toc-chrome strong {
  margin-left: 0.4rem;
  color: var(--text);
  font-weight: 600;
}

.toc-shot {
  width: calc(100% + 4px);
  max-width: none;
  height: auto;
  margin: -2px;
  aspect-ratio: 1017 / 550;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0b0f13;
}

.why-copy .checks {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.why-copy .checks li {
  position: relative;
  padding-left: 2rem;
  color: var(--text);
  font-size: 1.05rem;
}

.why-copy .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--green), var(--green)) center / 0.45rem 0.25rem no-repeat,
    rgba(47, 206, 122, 0.15);
  box-shadow: inset 0 0 0 1.5px var(--green);
}

/* Resources */
.resources {
  padding: 1rem 0 4rem;
}

.resources-inner {
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

.resource-links a {
  color: var(--blue-bright);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.resource-links a:hover {
  border-bottom-color: currentColor;
}

/* CTA */
.cta-band {
  position: relative;
  padding: 3.5rem 0;
  background:
    linear-gradient(90deg, rgba(31, 125, 255, 0.22), transparent 18%),
    linear-gradient(180deg, #0a1424, #07101c);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--blue-bright), #0a4db8);
}

.cta-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.cta-brand {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 700;
}

.demo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.demo-form label {
  display: grid;
  gap: 0.35rem;
}

.demo-form label.full,
.form-actions.full,
.form-status.full {
  grid-column: 1 / -1;
}

.demo-form span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.demo-form input:focus,
.demo-form textarea:focus {
  border-color: rgba(80, 150, 255, 0.65);
  background: rgba(0, 0, 0, 0.4);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--green);
}

.form-status.error {
  color: #ff8d8d;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.55rem;
}

.footer-brand p,
.footer-legal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-by {
  font-size: 0.88rem !important;
  opacity: 0.9;
}

.footer-contact h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-contact a,
.footer-contact address {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.45;
}

.footer-contact a:hover {
  color: var(--blue-bright);
}

.footer-legal {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(160, 190, 230, 0.1);
}

.legal {
  font-size: 0.82rem !important;
  opacity: 0.8;
}

/* Motion helpers */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

/* Responsive */
@media (max-width: 980px) {
  .why-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .features,
  .why,
  .resources,
  .cta-band,
  .compare {
    padding-block: 2.5rem;
  }

  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }

  .feature-strip li {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .feature-strip li:nth-child(2n) {
    border-right: 0;
  }

  .feature-strip li:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .toc-chrome strong {
    font-size: 0.75rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .nav-desktop,
  .header-actions .btn {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 60px;
    gap: 0.75rem;
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-mobile {
    padding-inline: max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-left));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .nav-mobile[hidden] {
    display: none;
  }

  .nav-mobile:not([hidden]) {
    display: flex;
  }

  .nav-mobile a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
  }

  .nav-mobile .btn {
    justify-content: center;
    width: 100%;
  }

  /* Wide banner text is unreadable on phones — use stacked mobile hero */
  .hero-banner-wrap {
    display: none !important;
  }

  .hero-mobile {
    display: block;
    padding: 1.75rem 0 2.25rem;
  }

  .compare {
    padding-top: 0.5rem;
  }

  .section-head h2,
  .why-copy h2,
  .resources h2,
  .cta-copy h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .toc-shot {
    margin: -1px;
    width: calc(100% + 2px);
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(1160px, calc(100% - 1.25rem));
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip li,
  .feature-strip li:nth-child(2n),
  .feature-strip li:last-child {
    border-right: 0;
    grid-column: auto;
  }

  .demo-form {
    grid-template-columns: 1fr;
  }

  .compare-flow {
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
  }

  .compare-arrow {
    transform: rotate(90deg);
  }

  .compare-from,
  .compare-to {
    justify-content: center;
  }

  .compare-to .meta {
    width: 100%;
  }

  .cta-band {
    padding-inline: 0;
  }

  .cta-band::before {
    width: 5px;
  }

  .resource-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .resource-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .site-footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-brand p,
  .footer-contact a,
  .footer-contact address {
    font-size: 0.9rem;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
