/* Responsive layer: tablet and mobile */
@media (max-width: 900px) {
  body { overflow-x: hidden; }
  .container { width: min(100% - 36px, 720px); }

  .nav-wrap { background: rgba(5, 17, 13, .9); backdrop-filter: blur(16px); }
  .nav { height: 70px; position: relative; }
  .nav-links { display: none; }
  .nav .btn-small { display: none; }
  .menu-btn { display: block; padding: 10px 0 10px 10px; }
  .nav-links.mobile-open {
    display: flex !important;
    position: fixed !important;
    inset: 70px 0 auto 0 !important;
    padding: 28px 24px 32px !important;
    background: rgba(5, 20, 14, .98) !important;
    border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.1) !important;
    flex-direction: column !important;
    gap: 24px !important;
    box-shadow: 0 24px 50px rgba(0,0,0,.35) !important;
    font-size: 17px;
  }

  .hero { min-height: 760px; height: 100svh; align-items: flex-end; padding-bottom: 58px; }
  .hero-bg { object-position: 62% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(3,12,9,.2), rgba(3,12,9,.62) 40%, rgba(3,12,9,.98) 82%); }
  .hero-content { padding: 100px 0 0; }
  .hero h1 { font-size: clamp(52px, 12vw, 78px); letter-spacing: -4px; margin: 18px 0 24px; }
  .hero-copy { max-width: 570px; }
  .hero-proof { display: none; }

  .section { padding: 92px 0; }
  .split-head, .solution-head, .business-top, .moat-grid { grid-template-columns: 1fr; gap: 28px; }
  .split-head h2, .solution h2, .business h2, .moat h2 { font-size: clamp(39px, 8vw, 58px); letter-spacing: -2.6px; }
  .split-head > p, .solution-head > p, .business-top > p { max-width: 580px; }

  .pain-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .pain-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .pain-card:last-child { border-bottom: 0; }
  .pain-icon { margin: 30px 0 18px; }

  .dashboard-shell {
    width: 100%; min-width: 0; min-height: 0; margin: 48px 0 0;
    transform: none; display: block; overflow: hidden;
  }
  .dash-side { display: none; }
  .dash-main { padding: 20px; min-width: 0; }
  .dash-top { gap: 18px; }
  .dash-top h3 { font-size: 19px; }
  .status { white-space: nowrap; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .dash-content { grid-template-columns: 1fr; }
  .chart-panel { min-width: 0; }
  .alerts-panel { margin-top: 2px; }
  .capabilities { grid-template-columns: 1fr 1fr; margin-top: 55px; }

  .feature-list { margin-top: 15px; }
  .revenue-flow { grid-template-columns: 1fr; }
  .revenue-flow > i { display: none; }
  .revenue-flow > div { min-height: 0; padding: 30px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .revenue-flow > div:last-child { border-bottom: 0; }
  .revenue-flow strong { margin-top: 18px; }

  .timeline { grid-template-columns: 1fr 1fr; gap: 40px 22px; }
  .timeline article { padding-right: 15px; }
  .timeline p { min-height: 0; }

  .cta { min-height: 580px; height: auto; padding: 90px 0; }
  .cta h2 { font-size: clamp(48px, 10vw, 68px); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 30px); }
  .brand { font-size: 19px; }
  .brand-mark { width: 31px; height: 31px; }

  .hero { min-height: 700px; padding-bottom: 42px; }
  .hero-bg { object-position: 65% center; }
  .eyebrow { font-size: 9px; letter-spacing: 1.7px; }
  .hero h1 { font-size: clamp(47px, 14.5vw, 62px); line-height: .98; letter-spacing: -3.2px; }
  .hero-copy { font-size: 15px; line-height: 1.55; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 18px; margin-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .text-link { justify-content: center; }

  .section { padding: 76px 0; }
  .section-tag { margin-bottom: 20px; }
  .split-head h2, .solution h2, .business h2, .moat h2 { font-size: clamp(36px, 11vw, 48px); line-height: 1.05; letter-spacing: -2.3px; }
  .split-head > p, .solution-head > p, .business-top > p, .moat-copy p { font-size: 15px; }
  .pain-grid { margin-top: 38px; }

  .dashboard-shell { border-radius: 2px; }
  .dash-main { padding: 16px 12px; }
  .dash-top { align-items: flex-start; }
  .dash-top h3 { font-size: 17px; }
  .status { font-size: 0; padding: 8px; }
  .status i { margin: 0; }
  .metrics { gap: 7px; margin: 16px 0; }
  .metrics > div { padding: 13px 11px; }
  .metrics strong { font-size: 21px; }
  .chart-panel, .alerts-panel { padding: 14px 11px; }
  .chart { height: 170px; }
  .capabilities { grid-template-columns: 1fr; margin-top: 42px; }
  .capabilities > div { padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .capabilities h3 { margin-top: 12px; }

  .feature-list article { grid-template-columns: 32px 1fr; gap: 12px; padding: 26px 0; }
  .revenue-flow { margin-top: 42px; }
  .assumption { line-height: 1.5; }

  .timeline { grid-template-columns: 1fr; gap: 34px; margin-top: 52px; }
  .timeline article { padding-top: 28px; }
  .timeline article:after { width: 100%; }

  .cta { min-height: 540px; padding: 76px 0; }
  .cta h2 { font-size: clamp(43px, 13vw, 58px); letter-spacing: -3px; }
  .cta p { font-size: 15px; }
  .cta .btn { width: 100%; }

  footer { padding-top: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; line-height: 1.5; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 44px; }
  .hero-copy { font-size: 14px; }
  .metrics { grid-template-columns: 1fr; }
  .panel-title button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
