:root {
  --bg: #06070a;
  --panel: #0f1218;
  --panel-2: #141922;
  --ink: #f5f6f8;
  --muted: #9aa1ac;
  --line: rgba(255, 255, 255, .1);
  --red: #ff3140;
  --red-2: #ff6b74;
  --ai-blue: #4da8ff;
  --ai-violet: #8b6bff;
  --lime: #b8fa48;
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', sans-serif;
  --radius: 16px;
  --ai-gradient: linear-gradient(135deg, var(--ai-blue), var(--ai-violet));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* Ambient noise + grid backdrop for the "modern automotive / AI" feel */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .03;
  z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 82% -10%, rgba(255, 49, 64, .16), transparent 60%),
    radial-gradient(50vw 50vw at 8% 15%, rgba(77, 168, 255, .12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); position: relative; z-index: 1; }
.section-pad { padding: clamp(64px, 9vw, 120px) 0; }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 50;
  height: 78px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 10, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .word { font-weight: 800; font-size: 21px; letter-spacing: -.5px; }
.brand .word b { color: var(--red); font-weight: inherit; }
.brand .tm { font-size: 11px; vertical-align: super; color: var(--muted); }

.desktop-nav { display: flex; gap: 30px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; color: #b0b3b8; }
.desktop-nav a:hover { color: #fff; }
.desktop-nav .mobile-login { display: none; }

.auth-area { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: .18s ease;
  white-space: nowrap;
}
.btn:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-2); border-color: var(--red-2); }
.btn.ghost { border-color: transparent; }
.btn.light { background: #fff; color: #0a0a0a; border-color: #fff; }
.btn.small { padding: 7px 13px; font-size: 12px; }
.btn svg { width: 15px; height: 15px; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; background: none; border: 0; color: #fff; padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(150px, 20vw, 190px) 0 clamp(60px, 8vw, 90px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.full-form {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.full-form .hl { color: var(--red); font-size: 15px; }
.full-form-sep { color: var(--line); margin: 0 4px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ai-blue);
  border: 1px solid rgba(77, 168, 255, .35);
  background: rgba(77, 168, 255, .08);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(184, 250, 72, .18); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -1.5px; margin: 0 0 20px; font-weight: 800; }
.hero h1 span { background: var(--ai-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px;
  display: flex; align-items: center; gap: 7px;
}
.trust-chip svg { width: 13px; height: 13px; color: var(--lime); }

/* Phone stack visual */
.phone-stack { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; }
.phone {
  position: absolute;
  width: 230px;
  border-radius: 28px;
  border: 6px solid #1b1f27;
  background: #0a0a0a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s;
}
.phone img { width: 100%; display: block; }
.phone.p1 { transform: translate(-64px, 10px) rotate(-9deg); z-index: 1; }
.phone.p2 { transform: translate(64px, -18px) rotate(8deg); z-index: 2; }
.phone.p3 { transform: translate(0, -46px) scale(1.06); z-index: 3; box-shadow: 0 40px 100px rgba(255, 49, 64, .25); }
.phone-glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 49, 64, .22), transparent 65%);
  filter: blur(10px); z-index: 0;
}

/* ---------- Statement / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
}
.pillar .icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 49, 64, .12); color: var(--red); margin-bottom: 16px;
}
.pillar.ai .icon { background: rgba(139, 107, 255, .14); color: var(--ai-violet); }
.pillar h3 { font-size: 18px; margin: 0 0 8px; }
.pillar p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---------- Feature grid ---------- */
.section-heading { max-width: 680px; margin-bottom: 40px; }
.section-heading h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -1px; margin: 0 0 14px; }
.section-heading p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--panel);
  transition: .2s ease;
}
.feature-card:hover { border-color: rgba(255, 49, 64, .35); transform: translateY(-3px); }
.feature-card .icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 49, 64, .12); color: var(--red); margin-bottom: 16px;
}
.feature-card h3 { font-size: 15.5px; margin: 0 0 8px; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.tag {
  position: absolute; top: -9px; right: 16px;
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 8px; border-radius: 999px; text-transform: uppercase;
  color: #fff;
}
.tag.new { background: var(--red); }
.tag.ai { background: var(--ai-gradient); }

/* ---------- Showcase filmstrip ---------- */
.filmstrip {
  display: flex; gap: 18px; overflow-x: auto; padding: 10px 4px 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.filmstrip::-webkit-scrollbar { height: 6px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.film-item { flex: 0 0 auto; width: 200px; scroll-snap-align: start; }
.film-item .frame {
  border-radius: 22px; border: 5px solid #1b1f27; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.film-item .caption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.film-item .caption b { color: var(--ink); }

/* ---------- xRAW AI section ---------- */
.ai-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ai-points { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 32px; }
.ai-point { display: flex; gap: 16px; align-items: flex-start; }
.ai-point .icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139, 107, 255, .14); color: var(--ai-violet);
}
.ai-point h3 { font-size: 16px; margin: 0 0 6px; }
.ai-point p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

.ai-chat-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(139, 107, 255, .08), rgba(255, 255, 255, 0) 45%), var(--panel);
  padding: clamp(20px, 3vw, 28px);
  display: flex; flex-direction: column; gap: 12px;
}
.ai-chat-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15px; margin-bottom: 6px;
}
.ai-chat-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(184, 250, 72, .18); }
.ai-chat-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: #fff; background: var(--ai-gradient); border-radius: 999px; padding: 3px 9px; margin-left: auto;
}
.ai-chat-msg {
  max-width: 88%; padding: 12px 15px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.55;
}
.ai-chat-msg.user {
  align-self: flex-end; background: rgba(255, 255, 255, .06); color: var(--ink);
  border-bottom-right-radius: 4px;
}
.ai-chat-msg.bot {
  align-self: flex-start; background: rgba(139, 107, 255, .1); border: 1px solid rgba(139, 107, 255, .25);
  color: var(--ink); border-bottom-left-radius: 4px;
}
.ai-chat-verify {
  align-self: flex-start; display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--lime);
  border: 1px solid rgba(184, 250, 72, .3); background: rgba(184, 250, 72, .06);
  border-radius: 999px; padding: 5px 12px;
}

/* ---------- xRAW Devices ---------- */
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.device-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
}
.device-image {
  border-radius: 14px; overflow: hidden; margin-bottom: 18px;
  aspect-ratio: 1 / 1; background: rgba(255, 255, 255, .03);
}
.device-image img { width: 100%; height: 100%; object-fit: cover; }
.device-card h3 { font-size: 17px; margin: 0 0 8px; }
.device-card > p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }
.device-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.device-points li {
  font-size: 13px; color: var(--muted); padding-left: 18px; position: relative; line-height: 1.5;
}
.device-points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
}
.device-card .tag.coming-soon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(7,9,12,.84);
  color: #dce1e7;
  box-shadow: none;
  line-height: 1;
}
.device-card .tag.coming-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(242,13,25,.82);
}
.device-note { text-align: center; color: var(--muted); font-size: 14px; margin: 30px 0 0; }

/* ---------- Journey steps ---------- */
.journey-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.journey-step { border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px; background: var(--panel); }
.journey-step .n { font-family: var(--mono); font-size: 11px; color: var(--red); margin-bottom: 10px; }
.journey-step h4 { font-size: 14px; margin: 0 0 6px; }
.journey-step p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Trust band ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(184, 250, 72, .1); color: var(--lime); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-item h4 { font-size: 14.5px; margin: 0 0 6px; }
.trust-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.faq-heading p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.faq-heading a { color: var(--red-2); }
.faq-group { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--ai-blue); text-transform: uppercase; margin: 26px 0 10px; }
.faq-group:first-child { margin-top: 0; }
details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 15px; font-weight: 600;
}
details summary::-webkit-details-marker { display: none; }
details summary span { font-family: var(--mono); font-size: 16px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
details[open] summary span { transform: rotate(45deg); color: var(--red); }
details p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 12px 0 0; }
details a { color: var(--red-2); }

/* ---------- Support / CTA ---------- */
.support { text-align: center; }
.support h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
.support p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }
.support-mail { font-family: var(--mono); font-size: 18px; color: var(--red-2); display: inline-block; margin-bottom: 26px; }
.support-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cta-section {
  position: relative; margin: 0 clamp(16px, 3vw, 40px) 40px; border-radius: 28px; overflow: hidden;
  padding: 70px clamp(24px, 6vw, 70px);
  background: linear-gradient(135deg, #16090b, #06070a 60%);
  border: 1px solid rgba(255, 49, 64, .25);
}
.cta-grid-bg {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 70%);
}
.cta-content { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-content small { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--red-2); }
.cta-content h2 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0 0; letter-spacing: -1px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-brand .brand img { width: 124px; height: 124px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 280px; line-height: 1.6; margin-top: 14px; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 10px; opacity: .85; }
.footer-col a:hover { opacity: 1; color: var(--red-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; font-size: 12.5px; color: var(--muted); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .desktop-nav .mobile-login { display: block; }
  .menu-button { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stack { height: 420px; margin-top: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-content { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .brand .word { font-size: 17px; }
  .brand img { width: 28px; height: 28px; }
  .btn.primary { padding: 9px 13px; font-size: 12px; }
  .auth-area { gap: 8px; }
}

/* ================================================================
   xRAW 2026 — AUTOMOTIVE INTELLIGENCE REDESIGN
   ================================================================ */
:root {
  --bg: #050608;
  --panel: #0b0e12;
  --panel-2: #11151b;
  --ink: #f7f7f5;
  --muted: #9299a3;
  --line: rgba(255, 255, 255, .105);
  --line-hot: rgba(255, 42, 54, .42);
  --red: #f20d19;
  --red-2: #ff4450;
  --ai-blue: #8bd8ff;
  --ai-violet: #ff2633;
  --lime: #9dff67;
  --radius: 5px;
  --ai-gradient: linear-gradient(120deg, #fff 0%, #cfd3d8 45%, #ff4a54 100%);
}

::selection { background: var(--red); color: #fff; }

body {
  background:
    radial-gradient(circle at 15% 18%, rgba(242, 13, 25, .055), transparent 25%),
    #050608;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent);
}

.noise { opacity: .045; z-index: 70; mix-blend-mode: soft-light; }
.grid-glow { display: none; }
.wrap { max-width: 1380px; padding-inline: clamp(22px, 5vw, 74px); }
.section-pad { padding: clamp(82px, 10vw, 144px) 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #69717b;
  font-size: 10px;
  letter-spacing: 2.7px;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 12px rgba(242, 13, 25, .6);
}

.section-heading { max-width: 780px; margin-bottom: 56px; }
.section-heading h2,
.faq-heading h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -2.4px;
  font-weight: 700;
}
.section-heading p { max-width: 620px; font-size: 15px; }

/* Navigation */
.site-header {
  height: 82px;
  border-bottom-color: rgba(255,255,255,.08);
  background: rgba(4, 5, 7, .72);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  transition: height .25s ease, background .25s ease;
}

.site-header.scrolled { height: 70px; background: rgba(4, 5, 7, .92); }
.brand { gap: 11px; }
.brand img { width: 31px; height: 31px; border-radius: 4px; }
.brand .word { font-size: 20px; letter-spacing: -.7px; text-transform: uppercase; }
.brand .word b { color: var(--red); }
.brand .tm { color: #626973; }

/* Keep every text-based xRAW wordmark visually consistent. */
.xraw-wordmark {
  display: inline-block;
  color: #fff;
  white-space: nowrap;
  text-transform: none;
}
.xraw-wordmark::first-letter { color: var(--red); }
.brand .word.xraw-wordmark { text-transform: none; }

.desktop-nav { gap: 27px; font-size: 10px; letter-spacing: 1.7px; }
.desktop-nav a { position: relative; transition: color .2s; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -10px;
  height: 1px;
  background: var(--red);
  transition: right .25s ease;
}
.desktop-nav a:hover::after { right: 0; }
.menu-button:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; border-radius: 2px; }

.btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  border-color: rgba(255,255,255,.16);
  background: rgba(7,9,12,.5);
  font-size: 12px;
  letter-spacing: .2px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.06); }
.btn.primary {
  position: relative;
  overflow: hidden;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 12px 34px rgba(242,13,25,.2);
}
.btn.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.25) 48%, transparent 72%);
  transform: translateX(-130%);
  transition: transform .65s ease;
}
.btn.primary:hover::before { transform: translateX(130%); }
.btn.primary:hover { background: #ff202d; border-color: #ff202d; box-shadow: 0 16px 42px rgba(242,13,25,.34); }

/* Cinematic hero */
.hero {
  min-height: max(760px, 100svh);
  padding: 84px 0 58px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #050608;
}

.hero-bg {
  position: absolute;
  z-index: -3;
  inset: -7% -3%;
  background: url("img/bg/hero-rockstar-workshop.jpg") 58% center / cover no-repeat;
  transform: translate3d(0, var(--bg-shift, 0px), 0) scale(1.08);
  will-change: transform;
}

.hero-vignette {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,4,6,.98) 0%, rgba(3,4,6,.87) 38%, rgba(3,4,6,.44) 66%, rgba(3,4,6,.22) 100%),
    linear-gradient(180deg, rgba(4,5,7,.55), transparent 22%, rgba(4,5,7,.1) 68%, #050608 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(transparent, #050608);
  pointer-events: none;
}

.hero-scan {
  position: absolute;
  z-index: 0;
  left: 0; right: 0; top: 8%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 2%, rgba(139,216,255,.16) 24%, rgba(242,13,25,.88) 62%, transparent 96%);
  box-shadow: 0 0 22px rgba(242,13,25,.52);
  animation: heroScan 7s linear infinite;
}

@keyframes heroScan {
  0% { top: 8%; opacity: 0; }
  12%, 75% { opacity: .8; }
  100% { top: 92%; opacity: 0; }
}

.hero-grid {
  width: 100%;
  grid-template-columns: minmax(0, 1.06fr) minmax(470px, .94fr);
  gap: clamp(30px, 5vw, 80px);
}

.hero-copy { max-width: 720px; position: relative; z-index: 3; }
.hero-copy::before {
  display: none;
}
.hero-brand-logo {
  width: min(100%, 600px);
  height: auto;
  margin: -10px 0 12px;
  filter: none;
  animation: heroLogoBlink 1.2s steps(1, end) infinite;
  will-change: filter;
}

@keyframes heroLogoBlink {
  0%, 49.999% {
    filter: none;
  }
  50%, 100% {
    filter: brightness(0) invert(1);
  }
}

.eyebrow {
  padding: 0;
  margin-bottom: 24px;
  border: 0;
  border-radius: 0;
  color: #c5c9cf;
  background: none;
  font-size: 10px;
  letter-spacing: 2.1px;
}
.eyebrow .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(242,13,25,.15), 0 0 16px var(--red); animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot { 50% { opacity: .45; transform: scale(.75); } }

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(46px, 4.7vw, 66px);
  line-height: .94;
  letter-spacing: -4px;
  text-wrap: balance;
}
.hero h1 span {
  background: linear-gradient(110deg, #f7f7f5 4%, #9da4ad 52%, #ff4550);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero p.lead {
  max-width: 620px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: #a6acb4;
}
.hero-ctas { margin: 34px 0 32px; }
.hero-ctas .btn { min-height: 51px; padding-inline: 25px; }
.hero-trust { gap: 0; }
.trust-chip {
  gap: 9px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.15);
  border-radius: 0;
  padding: 0 17px;
  color: #7c838c;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.trust-chip:first-child { padding-left: 0; }
.trust-chip:last-child { border-right: 0; }
.trust-chip b { color: var(--red); font-weight: 500; }

.hero-hud {
  position: absolute;
  z-index: 2;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #515760;
}
.hero-hud strong { color: #858c94; font-size: 8px; font-weight: 500; }
.hero-hud strong i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px var(--lime); }
.hero-hud-left { left: clamp(22px, 3vw, 52px); }
.hero-hud-right { right: clamp(22px, 3vw, 52px); text-align: right; }

/* App interface sculpture */
.phone-stack {
  height: 620px;
  perspective: 1500px;
  transform-style: preserve-3d;
  will-change: transform;
}
.phone-stack::before {
  content: "";
  position: absolute;
  inset: 9% -7% 5% 2%;
  border: 1px solid rgba(242,13,25,.18);
  background:
    linear-gradient(135deg, rgba(242,13,25,.11), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(255,255,255,.035) 38px),
    repeating-linear-gradient(90deg, transparent 0 37px, rgba(255,255,255,.035) 38px);
  transform: skewY(-3deg) translateZ(-50px);
}
.phone-glow {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(242,13,25,.22), transparent 64%);
  filter: blur(15px);
}
.phone {
  width: 220px;
  border: 1px solid #454b53;
  border-radius: 29px;
  padding: 7px;
  background: #030405;
  box-shadow: 0 40px 100px rgba(0,0,0,.68);
  transition: transform .18s ease-out, box-shadow .4s ease;
  will-change: transform;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 18%, transparent 75%, rgba(242,13,25,.12));
}
.phone img { border-radius: 22px; }
.phone-label {
  position: absolute;
  z-index: 3;
  left: 50%; top: -27px;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 8px/1 var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #747b84;
}
.phone-label::before { content: ""; display: inline-block; width: 16px; height: 1px; margin: 0 6px 2px 0; background: var(--red); }
.phone.p1 { transform: translate3d(calc(-125px + var(--px, 0px)), calc(38px + var(--py, 0px)), -70px) rotateY(14deg) rotateZ(-7deg); opacity: .74; }
.phone.p2 { transform: translate3d(calc(126px + var(--px, 0px)), calc(20px + var(--py, 0px)), -40px) rotateY(-14deg) rotateZ(7deg); opacity: .84; }
.phone.p3 { transform: translate3d(var(--px, 0px), calc(-35px + var(--py, 0px)), 55px) scale(1.08); box-shadow: 0 42px 110px rgba(0,0,0,.8), 0 0 55px rgba(242,13,25,.18); }

.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  transform: rotateX(64deg);
}
.orbit::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  top: 50%; left: -3px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}
.orbit-one { width: 520px; height: 520px; animation: orbitSpin 15s linear infinite; }
.orbit-two { width: 410px; height: 410px; animation: orbitSpin 11s linear infinite reverse; }
@keyframes orbitSpin { to { transform: rotateX(64deg) rotateZ(360deg); } }

.telemetry-card {
  position: absolute;
  z-index: 6;
  min-width: 148px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-left: 2px solid var(--red);
  border-radius: 3px;
  background: rgba(5,7,9,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px rgba(0,0,0,.42);
  font-family: var(--mono);
  will-change: transform;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}
.telemetry-card > span { display: block; color: #6f7680; font-size: 7px; letter-spacing: 1.5px; }
.telemetry-card > strong { display: block; margin-top: 5px; color: #f0f1f2; font-size: 13px; }
.telemetry-card > small { color: #6f7680; font-size: 8px; }
.telemetry-health { left: 3%; top: 22%; }
.telemetry-health strong { font-size: 28px; }
.telemetry-health strong small { color: var(--red); font-size: 11px; }
.telemetry-live { right: -3%; bottom: 24%; }
.telemetry-live span i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 9px var(--red); animation: pulseDot 1.4s infinite; }
.telemetry-bars { display: flex; align-items: end; gap: 3px; height: 16px; margin-top: 7px; }
.telemetry-bars i { display: block; width: 3px; background: var(--red); animation: barPulse 1.2s ease-in-out infinite alternate; }
.telemetry-bars i:nth-child(1) { height: 30%; }.telemetry-bars i:nth-child(2) { height: 55%; animation-delay: -.2s; }
.telemetry-bars i:nth-child(3) { height: 90%; animation-delay: -.4s; }.telemetry-bars i:nth-child(4) { height: 65%; animation-delay: -.6s; }
.telemetry-bars i:nth-child(5) { height: 85%; animation-delay: -.8s; }.telemetry-bars i:nth-child(6) { height: 45%; animation-delay: -1s; }
@keyframes barPulse { to { height: 25%; opacity: .45; } }

/* Capability ticker */
.capability-rail {
  position: relative;
  z-index: 4;
  overflow: hidden;
  padding: 17px 0;
  border-block: 1px solid rgba(255,255,255,.08);
  background: #080a0d;
}
.capability-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: capabilityMove 34s linear infinite;
}
.capability-track span {
  padding: 0 26px;
  font: 500 9px/1 var(--mono);
  letter-spacing: 2px;
  color: #9ba1a9;
  text-transform: uppercase;
}
.capability-track i { width: 5px; height: 5px; border: 1px solid var(--red); transform: rotate(45deg); }
@keyframes capabilityMove { to { transform: translateX(-50%); } }

/* Feature architecture */
.pillars { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar {
  border: 0;
  border-radius: 0;
  padding: 34px 30px 38px;
  background: #090b0f;
  overflow: hidden;
  position: relative;
}
.pillar::after {
  content: "";
  position: absolute;
  right: -35px; bottom: -45px;
  width: 110px; height: 110px;
  border: 1px solid rgba(242,13,25,.12);
  transform: rotate(45deg);
}
.pillar .icon,
.feature-card .icon {
  border-radius: 3px;
  color: #fff;
  background: rgba(242,13,25,.13);
  border: 1px solid rgba(242,13,25,.25);
}
.pillar.ai .icon { color: #fff; background: rgba(242,13,25,.13); }
.pillar h3 { font-size: 17px; }

.feature-grid { grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 1px; background: var(--line); }
.feature-card {
  min-height: 230px;
  border: 0;
  border-radius: 0;
  padding: 28px 26px;
  background: #090c10;
}
.feature-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  box-shadow: 0 0 16px var(--red);
  transition: width .35s ease;
}
.feature-card:hover { z-index: 2; border-color: transparent; transform: translateY(-5px); background: #0e1116; box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.feature-card:hover::after { width: 100%; }
.feature-card h3 { font-size: 15px; }
.tag { top: 14px; right: 14px; border-radius: 2px; }
.tag.ai { background: var(--red); }
.tag.coming-soon { border-radius: 2px; }

.ai-point .icon { color: #fff; background: rgba(242,13,25,.13); border-radius: 3px; }
.ai-chat-card { border-radius: 3px; background: linear-gradient(160deg, rgba(242,13,25,.08), transparent 45%), #090c10; }
.ai-chat-msg.bot { background: rgba(242,13,25,.08); border-color: rgba(242,13,25,.25); }
.ai-chat-verify { color: var(--lime); border-color: rgba(157,255,103,.3); background: rgba(157,255,103,.06); }
.device-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; background: var(--line); }
.device-card { border: 0; border-radius: 0; padding: 28px 26px; background: #090c10; }
.device-image { border-radius: 3px; }

/* Screenshot showcase — staggered product runway */
#showcase {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(242,13,25,.09), transparent 34%);
  background-size: 72px 72px, 72px 72px, auto;
}
#showcase::before {
  content: "INTERFACE / 08";
  position: absolute;
  right: 4vw; top: 8%;
  color: rgba(255,255,255,.035);
  font: 800 clamp(64px, 12vw, 170px)/1 var(--sans);
  letter-spacing: -8px;
  pointer-events: none;
}
.filmstrip {
  gap: clamp(26px, 4vw, 54px);
  padding: 45px 4vw 75px;
  margin-inline: calc(clamp(22px, 5vw, 74px) * -1);
  scrollbar-width: none;
  align-items: flex-start;
}
.filmstrip::-webkit-scrollbar { display: none; }
.film-item {
  width: clamp(210px, 19vw, 278px);
  transform: translateY(calc(var(--film-offset, 0px) + var(--screen-shift, 0px)));
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.film-item:nth-child(even) { --film-offset: 42px; }
.film-item:hover { transform: translateY(calc(var(--film-offset, 0px) + var(--screen-shift, 0px) - 16px)) rotateY(-2deg); }
.film-item .frame {
  position: relative;
  border: 1px solid #454b53;
  border-radius: 30px;
  padding: 7px;
  background: #040506;
  box-shadow: 0 32px 75px rgba(0,0,0,.6);
}
.film-item .frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,.12), transparent 20%, transparent 78%, rgba(242,13,25,.12));
  pointer-events: none;
}
.film-item .frame img { border-radius: 23px; }
.film-item .caption {
  margin-top: 18px;
  font: 9px/1.6 var(--mono);
  letter-spacing: .5px;
  text-align: left;
  text-transform: uppercase;
}
.film-item .caption b { display: block; font-size: 11px; letter-spacing: 1.3px; }

/* Interactive app showcase */
.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
  min-height: 720px;
}

.showcase-copy { position: relative; z-index: 4; }
.showcase-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
  font: 9px/1 var(--mono);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.showcase-screen-count { color: #626a74; }
.showcase-screen-count b { color: #fff; font-size: 12px; font-weight: 500; }
.showcase-live { display: flex; align-items: center; gap: 8px; color: #79818a; }
.showcase-live i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulseDot 1.5s ease-in-out infinite;
}
.showcase-info {
  max-width: 670px;
  min-height: 305px;
  transition: opacity .18s ease, transform .18s ease;
}
.showcase-info.changing { opacity: 0; transform: translateY(12px); }
.showcase-kicker {
  margin: 0 0 14px;
  color: var(--red-2);
  font: 500 10px/1.2 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.showcase-info h2 {
  max-width: 650px;
  margin: 0 0 20px;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: .98;
  letter-spacing: -2.8px;
}
.showcase-description {
  max-width: 610px;
  margin: 0 0 24px;
  color: #a2a8b0;
  font-size: 16px;
  line-height: 1.65;
}
.showcase-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.showcase-points li {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.025);
  color: #868e97;
  font: 9px/1.25 var(--mono);
  letter-spacing: .45px;
  text-transform: uppercase;
}
.showcase-points li::before { content: "+"; margin-right: 7px; color: var(--red); }

.showcase-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.showcase-tab {
  min-height: 56px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7,9,12,.62);
  color: #717882;
  font: 500 9px/1.25 var(--mono);
  letter-spacing: .7px;
  text-align: left;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.showcase-tab span { display: block; margin-bottom: 5px; color: #464d56; font-size: 8px; }
.showcase-tab:hover { color: #fff; background: rgba(255,255,255,.045); }
.showcase-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(242,13,25,.16), rgba(255,255,255,.025));
  box-shadow: inset 0 -2px var(--red);
}
.showcase-tab.active span { color: var(--red-2); }
.showcase-tab:focus-visible,
.showcase-arrows button:focus-visible { position: relative; z-index: 2; outline: 1px solid var(--red); outline-offset: -3px; }

.showcase-controls { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.showcase-progress {
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
}
.showcase-progress span { display: block; width: 0; height: 100%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.showcase-progress span.running { animation: showcaseTimer 5s linear forwards; }
@keyframes showcaseTimer { from { width: 0; } to { width: 100%; } }
.showcase-arrows { display: flex; gap: 8px; }
.showcase-arrows button {
  width: 42px; height: 38px;
  border: 1px solid var(--line);
  background: rgba(7,9,12,.7);
  color: #aeb4bb;
  font: 16px/1 var(--mono);
  transition: color .2s, border-color .2s, transform .2s;
}
.showcase-arrows button:hover { color: #fff; border-color: var(--red); transform: translateY(-2px); }

.showcase-device-area {
  position: relative;
  min-height: 700px;
  display: grid;
  place-items: center;
  perspective: 1600px;
}
.showcase-device-area::before {
  content: "";
  position: absolute;
  width: min(520px, 95%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,13,25,.19), rgba(242,13,25,.025) 46%, transparent 68%);
  filter: blur(8px);
}
.showcase-device-area::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 72px;
  bottom: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.68);
  filter: blur(22px);
  transform: rotateX(65deg);
}
.device-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-14deg);
  animation: showcaseOrbit 18s linear infinite;
}
.device-orbit::before,
.device-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.device-orbit::before { inset: 52px; border: 1px dashed rgba(242,13,25,.14); }
.device-orbit::after { width: 7px; height: 7px; top: 48%; left: -4px; background: var(--red); box-shadow: 0 0 14px var(--red); }
@keyframes showcaseOrbit { to { transform: rotateX(68deg) rotateZ(346deg); } }

.showcase-phone {
  position: relative;
  z-index: 3;
  width: min(320px, 72vw);
  aspect-ratio: 320 / 662;
  padding: 9px;
  border: 1px solid #545b64;
  border-radius: 40px;
  background: linear-gradient(145deg, #1d2228, #050607 18%, #030405 85%, #262b31);
  box-shadow:
    0 55px 110px rgba(0,0,0,.76),
    0 0 0 2px #050607,
    0 0 70px rgba(242,13,25,.14);
  transform: rotateY(-4deg) rotateX(1deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.showcase-device-area:hover .showcase-phone { transform: rotateY(0) rotateX(0) translateY(-5px); }
.showcase-phone::before {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,.16), transparent 15%, transparent 79%, rgba(242,13,25,.1));
}
.showcase-phone-speaker {
  position: absolute;
  z-index: 12;
  top: 16px;
  left: 50%;
  width: 76px;
  height: 21px;
  border-radius: 20px;
  background: #030405;
  transform: translateX(-50%);
  box-shadow: inset 0 -1px rgba(255,255,255,.08);
}
.showcase-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 31px;
  background: #080a0d;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.app-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.app-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.app-slide.active { z-index: 2; opacity: 1; pointer-events: auto; }
.app-slide.exit-left { z-index: 3; animation: appExitLeft .58s cubic-bezier(.55,0,.2,1) forwards; }
.app-slide.exit-right { z-index: 3; animation: appExitRight .58s cubic-bezier(.55,0,.2,1) forwards; }
.app-slide.enter-right { z-index: 4; animation: appEnterRight .58s cubic-bezier(.2,.8,.2,1) forwards; }
.app-slide.enter-left { z-index: 4; animation: appEnterLeft .58s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes appExitLeft { to { opacity: 0; transform: translateX(-28%) scale(.96); filter: blur(2px); } }
@keyframes appExitRight { to { opacity: 0; transform: translateX(28%) scale(.96); filter: blur(2px); } }
@keyframes appEnterRight { from { opacity: 0; transform: translateX(32%) scale(.96); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes appEnterLeft { from { opacity: 0; transform: translateX(-32%) scale(.96); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

.swipe-hint {
  display: none;
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 14px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(4,5,7,.78);
  backdrop-filter: blur(8px);
  color: #aeb4bb;
  font: 7px/1 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  animation: swipeHint 2.6s ease-in-out infinite;
}
.swipe-hint span { color: var(--red-2); }
@keyframes swipeHint { 50% { transform: translateX(-50%) translateY(-3px); } }

.device-callout {
  position: absolute;
  z-index: 5;
  min-width: 164px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-left: 2px solid var(--red);
  background: rgba(5,7,9,.84);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 48px rgba(0,0,0,.42);
  font-family: var(--mono);
}
.device-callout span { display: block; color: #656d77; font-size: 7px; letter-spacing: 1.5px; }
.device-callout strong { display: block; margin-top: 5px; color: #e5e7e9; font-size: 9px; letter-spacing: .7px; }
.device-callout strong i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px var(--lime); }
.callout-top { top: 17%; right: -3%; }
.callout-bottom { left: -5%; bottom: 18%; }

/* Timeline and trust */
.journey-steps { gap: 1px; padding: 1px; background: var(--line); }
.journey-step {
  min-height: 182px;
  border: 0;
  border-radius: 0;
  padding: 24px 18px;
  background: #090c10;
  position: relative;
}
.journey-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -9px; top: 28px;
  color: var(--red);
  font-family: var(--mono);
}
.journey-step .n { color: var(--red); letter-spacing: 1px; }
.journey-step h4 { margin-top: 28px; font-size: 15px; }
.trust-grid {
  padding: 34px;
  border: 1px solid var(--line);
  background: #090b0f;
}
.trust-item .icon { border-radius: 3px; color: var(--lime); }

/* FAQ, support, closing section */
.faq-layout { grid-template-columns: .72fr 1.28fr; gap: clamp(48px, 8vw, 110px); }
.faq-heading { position: sticky; top: 120px; align-self: start; }
.faq-heading h2 { margin-top: 0; }
details { padding: 20px 0; }
details summary { font-size: 16px; }
details[open] summary { color: #fff; }
.faq-group { color: var(--red-2); }

.support {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(242,13,25,.055), transparent);
}
.support-mail { color: #fff; border-bottom: 1px solid var(--red); }
.cta-section {
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(6,7,9,.94), rgba(6,7,9,.42)),
    url("img/bg/xraw_bg.jpg") 68% 63% / cover no-repeat;
  border-color: rgba(242,13,25,.34);
}
.cta-grid-bg { opacity: .32; }
footer { background: #030405; }

/* Motion polish */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.feature-card.reveal:nth-child(2),
.pillar.reveal:nth-child(2) { transition-delay: .06s; }
.feature-card.reveal:nth-child(3),
.pillar.reveal:nth-child(3) { transition-delay: .12s; }
.feature-card.reveal:nth-child(4) { transition-delay: .18s; }

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 440px; }
  .phone-stack { transform: scale(.88); margin-right: -30px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-layout { grid-template-columns: 1fr; gap: 40px; }
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 45px; }
  .device-callout { min-width: 145px; }
  .callout-top { right: -7%; }
  .callout-bottom { left: -9%; }
}

@media (max-width: 980px) {
  .site-header { height: 74px; }
  .hero { min-height: auto; padding-top: 142px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(3,4,6,.97), rgba(3,4,6,.7)),
      linear-gradient(180deg, transparent 50%, #050608);
  }
  .phone-stack { height: 590px; margin: 25px auto 0; transform: none; width: min(100%, 620px); }
  .hero-hud { display: none; }
  .desktop-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 74px !important;
    background: rgba(5,7,9,.97) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(242,13,25,.28);
    padding: 22px clamp(22px, 5vw, 74px) 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    box-shadow: 0 22px 50px rgba(0,0,0,.4);
  }
  .desktop-nav.menu-open { display: grid !important; }
  .desktop-nav a {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .desktop-nav a::after { display: none; }
  .menu-button.open { color: var(--red); }
  .menu-button.open svg { transform: rotate(90deg); }
  .menu-button svg { transition: transform .22s ease; }
  .desktop-nav .mobile-login {
    display: block;
    color: var(--red-2);
  }
  .pillar { min-height: auto; }
  .pillars { gap: 1px; }
  .filmstrip { margin-inline: -22px; padding-inline: 22px; }
  .faq-heading { position: static; }
  .showcase-layout { grid-template-columns: 1fr; gap: 32px; min-height: auto; }
  .showcase-copy { max-width: 760px; }
  .showcase-info { min-height: 285px; }
  .showcase-device-area { min-height: 690px; }
  .showcase-phone { width: min(318px, 72vw); transform: none; }
  .callout-top { right: 8%; }
  .callout-bottom { left: 8%; }
}

@media (max-width: 700px) {
  .section-pad { padding-block: 78px; }
  .hero { padding-top: 126px; }
  .hero-bg { background-position: 69% center; opacity: .72; }
  .hero-vignette { background: linear-gradient(180deg, rgba(3,4,6,.76), rgba(3,4,6,.9) 47%, #050608 94%); }
  .hero-copy::before { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(46px, 14vw, 70px); letter-spacing: -3px; }
  .hero p.lead { font-size: 16px; }
  .hero-trust { row-gap: 10px; }
  .trust-chip { padding-inline: 10px; font-size: 8px; }
  .trust-chip:first-child { padding-left: 0; }
  .phone-stack { height: 500px; transform: scale(.83); transform-origin: top center; margin-bottom: -75px; }
  .phone.p1 { transform: translate3d(calc(-105px + var(--px, 0px)), calc(38px + var(--py, 0px)), -70px) rotateY(14deg) rotateZ(-7deg); }
  .phone.p2 { transform: translate3d(calc(105px + var(--px, 0px)), calc(20px + var(--py, 0px)), -40px) rotateY(-14deg) rotateZ(7deg); }
  .telemetry-health { left: -2%; }
  .telemetry-live { right: -2%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 190px; }
  .device-grid { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: 1fr 1fr; }
  .journey-step:not(:last-child)::after { display: none; }
  .trust-grid { grid-template-columns: 1fr; padding: 25px; }
  .section-heading h2, .faq-heading h2 { letter-spacing: -1.6px; }
  .desktop-nav { grid-template-columns: 1fr 1fr; }
  #showcase::before { top: 3%; font-size: 72px; letter-spacing: -4px; }
  .showcase-info { min-height: 330px; }
  .showcase-info h2 { font-size: clamp(38px, 11vw, 54px); letter-spacing: -2px; }
  .showcase-description { font-size: 15px; }
  .showcase-nav { grid-template-columns: repeat(2, 1fr); margin-top: 26px; }
  .showcase-tab { min-height: 52px; }
  .showcase-device-area { min-height: 640px; margin-top: 12px; }
  .showcase-phone { width: min(300px, 78vw); }
  .device-orbit { width: 430px; height: 430px; }
  .device-callout { display: none; }
  .swipe-hint { display: flex; }
  .showcase-device-area { order: -1; margin-top: 0; }
}

@media (max-width: 480px) {
  .site-header .wrap { padding-inline: 16px; }
  .header-cta .primary { display: none; }
  .hero { padding-top: 116px; }
  .hero h1 { font-size: 47px; letter-spacing: -2.8px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; width: 100%; }
  .trust-chip { width: 100%; padding: 3px 0; border: 0; }
  .phone-stack { transform: scale(.69); width: 142%; margin-left: -21%; margin-bottom: -135px; }
  .telemetry-card { display: none; }
  .orbit-one { width: 470px; height: 470px; }
  .film-item { width: 235px; }
  .film-item:nth-child(even) { --film-offset: 22px; }
  .journey-steps { grid-template-columns: 1fr; }
  .cta-section { margin-inline: 0; }
  .showcase-heading { justify-content: space-between; }
  .showcase-info { min-height: 360px; }
  .showcase-points { display: grid; }
  .showcase-controls { margin-top: 16px; }
  .showcase-device-area { min-height: 610px; margin-inline: -16px; }
  .showcase-phone { width: min(286px, 80vw); }
}

@media (hover: hover) and (pointer: fine) {
  .phone-stack:hover .phone.p3 { box-shadow: 0 48px 130px rgba(0,0,0,.85), 0 0 75px rgba(242,13,25,.28); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-bg, .phone, .telemetry-card { transform: none !important; }
  .hero-brand-logo { animation: none !important; }
}

/* ================================================================
   ROCKSTAR AUTOWORKS RELATIONSHIP + BRAND FILM
   ================================================================ */
.workshop-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 13% 48%, rgba(242,13,25,.1), transparent 26%),
    linear-gradient(135deg, #080a0d, #050608 65%);
}
.workshop-section::before {
  content: "ROCKSTAR";
  position: absolute;
  left: -1.5vw;
  bottom: -2vw;
  color: rgba(255,255,255,.025);
  font: 800 clamp(90px, 17vw, 240px)/.7 var(--sans);
  letter-spacing: -12px;
  pointer-events: none;
}
.workshop-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(52px, 8vw, 120px);
}
.workshop-brand {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  padding: 42px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(255,255,255,.026) 36px),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(255,255,255,.026) 36px),
    rgba(255,255,255,.018);
}
.workshop-brand::before,
.workshop-brand::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
}
.workshop-brand::before { left: -1px; top: -1px; border-left: 2px solid var(--red); border-top: 2px solid var(--red); }
.workshop-brand::after { right: -1px; bottom: -1px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); }
.workshop-brand img {
  width: min(100%, 350px);
  filter: drop-shadow(0 28px 45px rgba(0,0,0,.5));
}
.workshop-brand > span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: #6f7780;
  font: 8px/1 var(--mono);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.workshop-kicker {
  margin: 0 0 18px;
  color: var(--red-2);
  font: 9px/1.4 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.workshop-copy h2 {
  max-width: 780px;
  margin: 0 0 24px;
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 1;
  letter-spacing: -2.8px;
}
.workshop-copy > p:not(.workshop-kicker) {
  max-width: 650px;
  margin: 0;
  color: #a1a7af;
  font-size: 17px;
  line-height: 1.65;
}
.workshop-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 38px 0 30px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.workshop-flow > div {
  min-height: 138px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.workshop-flow b {
  display: block;
  margin-bottom: 22px;
  color: var(--red);
  font: 9px/1 var(--mono);
  letter-spacing: 1px;
}
.workshop-flow strong { display: block; margin-bottom: 7px; font-size: 14px; }
.workshop-flow span { color: #777f89; font-size: 12px; line-height: 1.45; }
.workshop-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.film-section {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(242,13,25,.065), transparent 28%),
    #07090c;
}
.film-layout {
  display: grid;
  grid-template-columns: minmax(280px, .66fr) minmax(0, 1.34fr);
  align-items: center;
  gap: clamp(42px, 7vw, 94px);
}
.film-copy > span {
  color: var(--red-2);
  font: 9px/1.4 var(--mono);
  letter-spacing: 2px;
}
.film-copy h2 {
  margin: 17px 0 20px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -2.3px;
}
.film-copy p {
  margin: 0 0 28px;
  color: #9299a3;
  font-size: 15px;
  line-height: 1.65;
}
.video-shell {
  padding: 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: #030405;
  box-shadow: 0 38px 90px rgba(0,0,0,.56), 0 0 55px rgba(242,13,25,.08);
}
.video-topline {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #6e7680;
  font: 7px/1 var(--mono);
  letter-spacing: 1.5px;
}
.video-topline span { display: flex; align-items: center; gap: 7px; }
.video-topline i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}
.video-topline b { color: #a5abb2; font-weight: 500; }
.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 50%, rgba(242,13,25,.16), transparent 32%),
    #080a0d;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.footer-legal {
  margin-top: 26px;
  padding: 28px 0 4px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #646b74;
}
.footer-legal p {
  max-width: 1160px;
  margin: 0 0 11px;
  font-size: 10.5px;
  line-height: 1.65;
}
.footer-legal a { color: #aeb4bb; border-bottom: 1px solid rgba(242,13,25,.55); }

@media (max-width: 1120px) {
  .workshop-grid { grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); gap: 48px; }
  .workshop-brand { min-height: 410px; padding: 30px; }
}

@media (max-width: 980px) {
  .workshop-grid,
  .film-layout { grid-template-columns: 1fr; }
  .workshop-brand { min-height: 420px; }
  .workshop-brand img { width: min(75%, 360px); }
  .film-copy { max-width: 680px; }
}

@media (max-width: 700px) {
  .workshop-brand { min-height: 350px; padding: 24px; }
  .workshop-copy h2 { letter-spacing: -1.8px; }
  .workshop-copy > p:not(.workshop-kicker) { font-size: 15px; }
  .workshop-flow { grid-template-columns: 1fr; }
  .workshop-flow > div { min-height: 105px; }
  .workshop-flow b { margin-bottom: 12px; }
  .film-copy h2 { letter-spacing: -1.5px; }
}

@media (max-width: 480px) {
  .hero-bg { background-position: 67% center; }
  .workshop-brand { min-height: 310px; }
  .workshop-actions { display: grid; }
  .workshop-actions .btn { justify-content: center; width: 100%; }
  .video-shell { margin-inline: -6px; padding: 6px; }
  .video-topline { height: 32px; }
  .footer-bottom { align-items: flex-start; }
}
