/* ==========================================================================
   RAIN TECH — Shared Stylesheet
   A dark navy / electric blue visual identity for a premium Android TV Box
   and home entertainment brand.

   Contents:
   1. Design tokens (custom properties)
   2. Reset & base
   3. Typography
   4. Layout helpers
   5. Buttons
   6. Header / navigation
   7. Rain motif (decorative signal-line background)
   8. Hero
   9. Cards & sections (feature, pricing, device, spec, faq)
   10. Forms
   11. Footer
   12. Scroll-reveal + motion
   13. Responsive breakpoints
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --c-black: #03070d;
  --c-navy: #07111d;
  --c-navy-soft: #0c1826;
  --c-surface: #0e1a2b;
  --c-surface-2: #101d30;
  --c-border: rgba(143, 161, 181, 0.16);
  --c-border-strong: rgba(78, 219, 255, 0.35);

  --c-blue: #32c5ff;
  --c-blue-bright: #4edbff;
  --c-blue-2: #5878ff;
  --c-white: #f5f8fc;
  --c-muted: #8fa1b5;
  --c-muted-2: #5c7086;

  --grad-brand: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-2) 100%);
  --grad-glow: radial-gradient(circle, rgba(50, 197, 255, 0.35) 0%, rgba(50, 197, 255, 0) 70%);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --header-h: 78px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--c-muted);
}

button {
  font-family: inherit;
}

::selection {
  background: var(--c-blue);
  color: var(--c-black);
}

:focus-visible {
  outline: 2px solid var(--c-blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--c-blue);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-blue-bright);
  box-shadow: 0 0 8px var(--c-blue-bright);
}

h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head p {
  font-size: 1.05rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--c-muted);
  max-width: 60ch;
}

/* ---------- 4. Layout helpers ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(40px, 6vw, 72px) 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(12, 24, 38, 0) 0%, rgba(12, 24, 38, 0.6) 20%, rgba(12, 24, 38, 0.6) 80%, rgba(12, 24, 38, 0) 100%);
}

.grid {
  display: grid;
  gap: 28px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; margin-left: auto; margin-right: auto; }

.divider {
  height: 1px;
  background: var(--c-border);
  border: none;
  margin: 0;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--c-black);
  box-shadow: 0 8px 24px -8px rgba(50, 197, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(78, 219, 255, 0.7);
}

.btn-ghost {
  background: rgba(245, 248, 252, 0.03);
  color: var(--c-white);
  border-color: var(--c-border);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: var(--c-border-strong);
  background: rgba(50, 197, 255, 0.08);
}

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- 6. Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(3, 7, 13, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  background: rgba(3, 7, 13, 0.85);
}

.nav-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand svg { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.96rem;
  color: var(--c-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--c-white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: rgba(245, 248, 252, 0.03);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-white);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hidden on all screen sizes by default; only shown (as flex) inside the
   mobile breakpoint, and only once toggled open. This must live outside
   the media query, otherwise it renders as a visible block nav on desktop. */
.mobile-menu {
  display: none;
}

/* ---------- 7. Rain motif — decorative signal streaks ---------- */
.rain-motif {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.rain-motif span {
  position: absolute;
  top: -10%;
  width: 1px;
  height: 140px;
  background: linear-gradient(180deg, rgba(78, 219, 255, 0) 0%, rgba(78, 219, 255, 0.55) 45%, rgba(78, 219, 255, 0) 100%);
  animation: rain-fall linear infinite;
}

@keyframes rain-fall {
  from { transform: translateY(-20%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateY(140vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rain-motif span { animation: none; opacity: 0; }
}

.glow {
  position: absolute;
  width: 640px;
  height: 640px;
  background: var(--grad-glow);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero .glow { top: -220px; right: -160px; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 0.4em; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: rgba(12, 24, 38, 0.6);
  font-size: 0.85rem;
  color: var(--c-muted);
}

.badge svg { width: 15px; height: 15px; color: var(--c-blue); flex-shrink: 0; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media .device-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--c-surface) 0%, var(--c-navy) 100%);
  border: 1px solid var(--c-border);
  padding: 28px;
}

.hero-media img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

.spec-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(7, 17, 29, 0.85);
  border: 1px solid var(--c-border-strong);
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.6);
}

.spec-chip strong { color: var(--c-blue-bright); font-family: var(--font-display); }

.spec-chip--1 { top: 10%; left: -6%; }
.spec-chip--2 { bottom: 12%; right: -8%; }

/* ---------- 9. Cards & sections ---------- */
.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.feature-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-muted);
  font-size: 0.95rem;
}

.feature-strip-item svg { width: 18px; height: 18px; color: var(--c-blue); }

.card {
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-navy-soft) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--c-border-strong);
  box-shadow: 0 20px 48px -24px rgba(50, 197, 255, 0.35);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 197, 255, 0.1);
  color: var(--c-blue-bright);
  margin-bottom: 20px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--c-white);
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-blue);
  margin-top: 2px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--c-surface) 0%, var(--c-navy) 100%);
  border: 1px solid var(--c-border);
  padding: 24px;
}

.split-media img { border-radius: var(--radius-md); }

/* Pricing */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.pricing-card--featured {
  border-color: var(--c-border-strong);
  background: linear-gradient(180deg, rgba(50, 197, 255, 0.08) 0%, var(--c-surface) 40%);
  box-shadow: 0 24px 60px -28px rgba(50, 197, 255, 0.45);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--grad-brand);
  color: var(--c-black);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 24px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--c-white);
}

.price-period { color: var(--c-muted); font-size: 0.95rem; }

.pricing-card .check-list { margin: 24px 0 28px; flex-grow: 1; }
.pricing-card .check-list li { font-size: 0.94rem; }

/* Devices */
.device-card {
  text-align: center;
  padding: 40px 24px;
}

.device-card .card-icon {
  margin: 0 auto 20px;
}

/* Specs table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
}

.spec-table tr {
  border-bottom: 1px solid var(--c-border);
}

.spec-table tr:last-child { border-bottom: none; }

.spec-table td {
  padding: 18px 24px;
  font-size: 0.96rem;
}

.spec-table td:first-child {
  color: var(--c-muted);
  width: 34%;
  background: rgba(245, 248, 252, 0.02);
}

.spec-table td:last-child { color: var(--c-white); }

.tag-editable {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--c-blue);
  border: 1px dashed var(--c-border-strong);
  padding: 1px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

/* Steps (setup instructions — a genuine sequence) */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  color: var(--c-blue-bright);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step p { margin-bottom: 0; }

/* FAQ accordion */
.accordion {
  border-top: 1px solid var(--c-border);
}

.accordion-item {
  border-bottom: 1px solid var(--c-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--c-blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.accordion-icon::before { width: 14px; height: 2px; }
.accordion-icon::after { width: 2px; height: 14px; }

.accordion-item.is-open .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.accordion-panel-inner {
  padding: 0 4px 22px;
}

.accordion-panel-inner p { margin-bottom: 0; }

/* CTA band */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(135deg, rgba(50, 197, 255, 0.14) 0%, rgba(7, 17, 29, 0.9) 60%);
  border: 1px solid var(--c-border-strong);
  overflow: hidden;
  text-align: center;
}

.cta-band h2 { max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 520px; margin-left: auto; margin-right: auto; }

.cta-band-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- 10. Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.88rem;
  color: var(--c-muted);
}

.field input,
.field select,
.field textarea {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-border-strong);
  outline: none;
}

.field textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.85rem;
  color: var(--c-muted-2);
  margin-top: 4px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
}

.contact-info-list li:first-child { padding-top: 0; }

.contact-info-list .card-icon { margin-bottom: 0; flex-shrink: 0; }

.contact-info-list h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-list p { margin-bottom: 0; font-size: 0.94rem; }

.map-placeholder {
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-md);
  padding: 60px 24px;
  text-align: center;
  color: var(--c-muted);
  background: rgba(50, 197, 255, 0.04);
}

/* ---------- 11. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 72px 0 32px;
  background: var(--c-navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { max-width: 32ch; font-size: 0.92rem; }

.footer-col h4 {
  font-size: 0.92rem;
  color: var(--c-white);
  margin-bottom: 18px;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
  color: var(--c-muted);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}

.footer-col ul li a:hover { color: var(--c-blue-bright); }

.footer-contact li {
  display: flex;
  gap: 10px;
  color: var(--c-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-contact svg { width: 16px; height: 16px; color: var(--c-blue); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
  font-size: 0.85rem;
  color: var(--c-muted-2);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a:hover { color: var(--c-blue-bright); }

/* ---------- 12. Scroll-reveal + motion ---------- */
/* Content is fully visible by default so the page works with CSS only —
   no JavaScript, a blocked script, or a slow connection should ever hide
   real content. The hidden starting state only applies once main.js has
   confirmed it's running (it adds "js" to <html> immediately on load). */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Legal page content ---------- */
.legal-content h2 { margin-top: 2em; font-size: 1.35rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--c-muted); }
.legal-content ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.legal-content li { margin-bottom: 0.5em; }
.legal-content strong { color: var(--c-white); }

.edit-note {
  display: block;
  margin: 40px 0;
  padding: 18px 22px;
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: rgba(50, 197, 255, 0.05);
  color: var(--c-blue);
  font-size: 0.9rem;
}

.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
  position: relative;
}

.page-hero .glow { top: -200px; left: -120px; opacity: 0.7; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--c-muted-2);
  margin-bottom: 18px;
}

.breadcrumb a:hover { color: var(--c-blue); }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 480px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .mobile-menu.is-open {
    display: flex;
  }

  .mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(3, 7, 13, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px var(--gutter);
    gap: 8px;
    z-index: 90;
    overflow-y: auto;
  }

  .mobile-menu a {
    padding: 16px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-white);
  }

  .mobile-menu .btn { margin-top: 20px; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-strip { justify-content: flex-start; }
  .price-amount { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .btn { padding: 13px 22px; font-size: 0.92rem; }
  .hero-actions .btn { width: 100%; }
  .spec-chip { position: static; margin-top: 14px; display: inline-flex; }
  .step { grid-template-columns: 36px 1fr; }
  .step-num { width: 36px; height: 36px; font-size: 0.9rem; }
}
