/* =================================================================
   RoboHaus AU — Tesla-style storefront
   ================================================================= */

:root {
  --ink:        #171a20;   /* tesla deep slate */
  --ink-soft:   #393c41;
  --paper:      #ffffff;
  --paper-2:    #f4f4f4;
  --line:       #e5e7eb;
  --muted:      #5c5e62;
  --muted-2:    #b0b3b8;
  --accent:     #DC2626;
  --tesla-blue: #3457dc;
  --shadow-soft: 0 8px 30px rgba(0,0,0,.10);
  --maxw: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; }

/* =========================================================
   Header
   ========================================================= */
header#topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background .35s ease, color .35s ease, backdrop-filter .35s ease;
  color: #fff;
}
header#topnav.is-light  { color: var(--ink); }
header#topnav.is-scrolled {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink);
  border-bottom: 1px solid rgba(0,0,0,.04);
}
header .brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; letter-spacing: -.02em;
  flex: 0 0 auto;
}
.brand-mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(220,38,38,.18);
}
header nav.primary {
  display: flex; gap: 4px; flex: 1; justify-content: center;
}
header nav.primary a,
header nav.secondary a {
  font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  letter-spacing: .005em;
  transition: background .15s ease, color .15s ease;
}
header nav.primary a:hover,
header nav.secondary a:hover {
  background: rgba(0,0,0,.06);
}
header#topnav:not(.is-scrolled):not(.is-light) nav.primary a:hover,
header#topnav:not(.is-scrolled):not(.is-light) nav.secondary a:hover {
  background: rgba(255,255,255,.12);
}
header nav.secondary {
  display: flex; align-items: center; gap: 4px; flex: 0 0 auto;
}
.menu-btn {
  width: 36px; height: 36px; display: inline-flex;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; border-radius: 6px;
  transition: background .15s ease;
  color: inherit;
}
.menu-btn span { width: 16px; height: 1.5px; background: currentColor; border-radius: 1px; }
.menu-btn:hover { background: rgba(0,0,0,.06); }
header#topnav:not(.is-scrolled):not(.is-light) .menu-btn:hover { background: rgba(255,255,255,.12); }

/* Side menu */
aside#sideMenu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: 320px; max-width: 86vw;
  background: #fff; color: var(--ink);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -16px 0 40px rgba(0,0,0,.1);
  padding: 64px 16px 24px;
  overflow-y: auto;
}
aside#sideMenu.is-open { transform: translateX(0); }
aside#sideMenu .side-inner { display: flex; flex-direction: column; }
aside#sideMenu a {
  padding: 12px 12px;
  font-size: 14px; font-weight: 500;
  border-radius: 6px;
}
aside#sideMenu a:hover { background: var(--paper-2); }
.scrim {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,.32);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.scrim.is-on { opacity: 1; pointer-events: auto; }

/* =========================================================
   Snap container
   ========================================================= */
main#scroller {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Each panel = full viewport */
section.panel {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 88px 24px 40px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
section.panel.panel-tall { height: auto; min-height: 100vh; }

section.panel[data-theme="dark"] { color: #fff; background-color: #0a0e1a; }
section.panel[data-theme="light"] { color: var(--ink); background-color: #f4f4f4; }
section.panel[data-theme="light"] .model-tag { color: var(--ink-soft); }
section.panel[data-theme="dark"]  .model-tag { color: rgba(255,255,255,.78); }

/* Panel parts */
.panel-top {
  position: relative; z-index: 3;
  text-align: center; padding-top: 4vh;
}
.model-name {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600; letter-spacing: -.015em;
  line-height: 1.05;
}
.model-tag {
  margin-top: 6px;
  font-size: 14px; font-weight: 400;
  letter-spacing: .005em;
}
.model-tag .from { white-space: nowrap; }
.model-tag .from strong { font-weight: 600; }

.panel-art {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 0;
}
.panel-art img {
  max-height: 56vh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.32));
}

/* =========================================================
   HERO — AI Cortex (canvas neural net + boot terminal)
   ========================================================= */
.hero {
  position: relative;
  background: radial-gradient(1400px 900px at 50% 60%, rgba(220,38,38,.18) 0%, rgba(220,38,38,0) 60%),
              radial-gradient(900px 700px at 12% 18%, rgba(52,87,220,.12) 0%, rgba(52,87,220,0) 60%),
              linear-gradient(180deg,#05070d 0%,#0e1220 60%,#16182b 100%);
  padding: 0 24px;
  align-items: stretch; justify-content: stretch;
  color: #fff;
  overflow: hidden;
}

#cortex {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  opacity: .9;
  mix-blend-mode: screen;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(70% 60% at 50% 55%, transparent 30%, rgba(5,7,13,.45) 70%, rgba(5,7,13,.85) 100%),
    linear-gradient(180deg, rgba(5,7,13,.4) 0%, transparent 18%, transparent 82%, rgba(5,7,13,.6) 100%);
  pointer-events: none;
}

.hero-stack {
  position: relative; z-index: 3;
  margin: auto;
  max-width: 920px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 88px 0 24px;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
  font-weight: 500;
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(220,38,38,.6);
  animation: pulse 1.6s ease-out infinite;
}
.hero-eyebrow .sep { opacity: .35; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); }
  50%     { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}

/* Title */
.hero-title {
  font-size: clamp(52px, 9vw, 132px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .92;
  margin-bottom: 24px;
}
.hero-title .line { display: block; }
.hero-title .accent {
  background: linear-gradient(95deg, #fff 0%, #fff 45%, var(--accent) 60%, #ff8a8a 80%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}
.hero-title .flip-word { display: inline-block; }
@keyframes shine {
  0%   { background-position: 0% 0%; }
  100% { background-position: -220% 0%; }
}

.hero-lead {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,.72);
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 28px;
}

/* Boot terminal */
.hero-boot {
  font-size: 12px;
  line-height: 1.7;
  color: #9bf0c5;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(155,240,197,.16);
  border-radius: 10px;
  padding: 14px 18px;
  width: 100%; max-width: 560px;
  text-align: left;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  white-space: pre-wrap;
  min-height: 168px;
  position: relative;
}
.hero-boot::before {
  content: ""; position: absolute; top: 10px; left: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5f57;
  box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #28ca41;
}
.hero-boot .prompt { color: rgba(155,240,197,.42); }
.hero-boot .ok    { color: #6dffb0; }
.hero-boot .warn  { color: #ffd066; }
.hero-boot .acc   { color: #ff9090; }
.hero-boot .cur   { display: inline-block; width: 8px; height: 14px; vertical-align: -2px; background: #9bf0c5; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Hero CTA */
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 244px; height: 40px; padding: 0 22px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .01em;
  transition: background .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* Hero capability ticker (replaces stats bar) */
.hero-ticker {
  position: relative; z-index: 3;
  margin-top: auto;
  margin-bottom: 28px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.0) 100%);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ticker-track {
  display: inline-flex; flex-wrap: nowrap; align-items: center;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  will-change: transform;
}
.hero-ticker:hover .ticker-track { animation-play-state: paused; }

.t-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 28px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  border-right: 1px solid rgba(255,255,255,.08);
}
.t-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(220,38,38,.6);
  flex: 0 0 auto;
}
.t-dot.t-blue  { background: #5b8dff; box-shadow: 0 0 10px rgba(91,141,255,.6); }
.t-dot.t-green { background: #6dffb0; box-shadow: 0 0 10px rgba(109,255,176,.6); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Move the global scroll-cue inside hero to bottom-center */
.hero > .scroll-cue {
  position: absolute; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,.7);
}

@media (max-width: 880px) {
  .hero-boot { font-size: 11px; min-height: 150px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* Bottom area — specs + buttons + scroll cue */
.panel-bottom {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--maxw);
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
  padding-bottom: 12px;
}

/* Spec strip */
.spec-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px; max-width: 880px; width: 100%;
  border-top: 1px solid currentColor;
  border-color: rgba(255,255,255,.18);
  padding: 14px 0 6px;
  text-align: center;
  opacity: .92;
}
section.panel[data-theme="light"] .spec-strip { border-color: rgba(0,0,0,.10); }
.spec-strip li { display: flex; flex-direction: column; gap: 2px; }
.spec-strip .k {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; opacity: .68;
}
.spec-strip .v {
  font-size: 13px; font-weight: 500;
}

/* =========================================================
   Price block (under each robot)
   ========================================================= */
.price-block {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 16px 32px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  min-width: 280px;
}
.price-block.price-block-light {
  background: rgba(23,26,32,.04);
  border-color: rgba(23,26,32,.10);
}
.price-amount {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700; letter-spacing: -.028em;
  line-height: 1;
  font-feature-settings: 'tnum';
  display: inline-flex; align-items: baseline; gap: 2px;
}
.price-amount .currency {
  font-size: 0.58em;
  font-weight: 600;
  opacity: .65;
  margin-right: 1px;
}
.price-aud-side {
  font-size: 13px;
  font-weight: 500;
  opacity: .68;
  margin-top: 6px;
  font-feature-settings: 'tnum';
}
.price-meta {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: .55;
  margin-top: 6px;
}
.price-weekly {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,.14);
  color: #ff5e5e;
  font-size: 14px;
  font-weight: 500;
  font-feature-settings: 'tnum';
  letter-spacing: .005em;
  white-space: nowrap;
}
.price-block-light .price-weekly {
  border-top-color: rgba(220,38,38,.18);
  color: var(--accent);
}
.price-weekly strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  text-shadow: 0 0 18px rgba(220,38,38,.28);
  margin-right: 1px;
}
.price-block-light .price-weekly strong { text-shadow: none; }

/* Asterisk after weekly amount */
sup.ast {
  font-size: 0.85em;
  margin-left: 1px;
  opacity: .9;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
}

/* Education panel: price chips inside figcaption */
.fc-price {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1; margin-top: 4px;
  display: inline-flex; align-items: baseline;
  font-feature-settings: 'tnum';
}
.fc-price .fc-currency {
  font-size: 0.62em; font-weight: 600; opacity: .65; margin-right: 1px;
}
.fc-price .fc-suffix {
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: .55; margin-left: 8px; align-self: center;
}

/* Buttons */
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 244px; height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .01em;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: rgba(23,26,32,.85);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-primary:hover { background: rgba(23,26,32,1); }
section.panel[data-theme="light"] .btn-primary { background: rgba(23,26,32,.92); }
section.panel[data-theme="light"] .btn-primary:hover { background: var(--ink); }

.btn-secondary {
  background: rgba(244,244,244,.65);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255,255,255,.95); }

.btn-secondary-dark {
  background: rgba(23,26,32,.10);
  color: var(--ink);
  border: 1px solid rgba(23,26,32,.16);
}
.btn-secondary-dark:hover { background: rgba(23,26,32,.16); }

/* Scroll cue */
.scroll-cue {
  margin-top: 6px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  opacity: .65;
  animation: cue 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 22px; height: 22px; }
@keyframes cue {
  0%,100% { transform: translateY(0); opacity: .55; }
  50%     { transform: translateY(6px); opacity: 1; }
}

/* =========================================================
   Education panel — dual figure
   ========================================================= */
.panel-art-dual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  width: 100%; max-width: 1100px;
  align-items: center;
}
.panel-art-dual figure {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.panel-art-dual img {
  max-height: 40vh;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.18));
}
.panel-art-dual figcaption {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center;
}
.fc-name {
  font-size: 18px; font-weight: 600; letter-spacing: -.01em;
}
.fc-meta {
  font-size: 13px; color: var(--muted);
}

/* =========================================================
   Why Local
   ========================================================= */
.why-grid {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px;
  margin: 24px auto 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.why-card {
  border-radius: 16px;
  padding: 28px 28px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.why-card.us {
  background: linear-gradient(180deg, rgba(220,38,38,.16) 0%, rgba(220,38,38,.04) 100%);
  border-color: rgba(220,38,38,.32);
}
.why-eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; opacity: .8; margin-bottom: 12px;
}
.why-card.us .why-eyebrow { color: #ff6f6f; opacity: 1; }
.why-card ul { display: flex; flex-direction: column; gap: 10px; }
.why-card li {
  font-size: 14px; line-height: 1.5;
  padding-left: 22px; position: relative;
  opacity: .9;
}
.why-card.them li::before {
  content: "—";
  position: absolute; left: 0; opacity: .55;
}
.why-card.us li::before {
  content: "✓";
  position: absolute; left: 0; color: #ff6f6f; font-weight: 700;
}

/* =========================================================
   CTA panel
   ========================================================= */
.panel-cta {
  background: radial-gradient(900px 600px at 50% 60%, rgba(220,38,38,.18) 0%, rgba(220,38,38,0) 70%), linear-gradient(180deg,#0a0e1a 0%,#14171f 100%);
  justify-content: center;
}
.cta-block {
  text-align: center; max-width: 720px;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
  margin: auto;
}
.cta-block .model-name { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; }
.cta-block .model-tag { font-size: 16px; max-width: 580px; }

/* =========================================================
   Footer
   ========================================================= */
footer {
  scroll-snap-align: start;
  background: #0a0e1a; color: rgba(255,255,255,.7);
  padding: 64px 32px 28px;
  font-size: 13px;
}
.foot-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.foot-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700; color: #fff;
  margin-bottom: 12px;
}
.foot-h {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: #fff; margin-bottom: 12px;
}
.foot-line { line-height: 1.7; opacity: .85; }
.foot-line a:hover { color: #fff; opacity: 1; }
.foot-baseline {
  max-width: var(--maxw); margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px; opacity: .55; line-height: 1.6;
}
.finance-fineprint {
  font-size: 11px;
  line-height: 1.6;
  opacity: 1;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.65);
}
.finance-fineprint strong { color: rgba(255,255,255,.85); }
.finance-fineprint em { font-style: italic; color: rgba(255,255,255,.78); }
body.model-page-body .finance-fineprint {
  color: rgba(255,255,255,.68);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  header#topnav { padding: 0 16px; }
  header nav.primary { display: none; }
  header nav.secondary a:not(.menu-btn) { display: none; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .panel-art img { max-height: 50vh; }
  .panel-art-dual { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .btn { min-width: 220px; }
  .hero .model-name { font-size: clamp(38px, 11vw, 64px); }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .btn { min-width: 100%; }
  .cta-row { width: 100%; }
}
