:root, [data-theme="day"] {
  color-scheme: light;
  --bg-page: #F6F8FB;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EDF2F8;
  --bg-input: #FFFFFF;
  --bg-stage: #FFFFFF;
  --text-primary: #071936;
  --text-secondary: #334761;
  --text-muted: #5C708A;
  --accent-blue: #0057B8;
  --accent-orange: #D95500;
  --border-subtle: rgba(7, 25, 54, 0.10);
  --border-strong: rgba(7, 25, 54, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.90);
  --shadow: 0 1px 2px rgba(7, 25, 54, 0.04), 0 8px 24px -16px rgba(7, 25, 54, 0.12);
}
[data-theme="night"] {
  color-scheme: dark;
  --bg-page: #050C1A;
  --bg-surface: #0B172C;
  --bg-subtle: #10203B;
  --bg-input: #081326;
  --bg-stage: #F8FAFC;
  --text-primary: #F2F6FC;
  --text-secondary: #B9CBE3;
  --text-muted: #7F97B8;
  --accent-blue: #3AA8FF;
  --accent-orange: #FF8C2A;
  --border-subtle: rgba(148, 194, 255, 0.14);
  --border-strong: rgba(148, 194, 255, 0.28);
  --glass-bg: rgba(5, 12, 26, 0.90);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 28px -16px rgba(0, 0, 0, 0.55);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.5;
  transition: background-color .2s ease, color .2s ease;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, .display {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.cmw-ribbon { height: 2px; background: linear-gradient(90deg, #FF5E00 0%, #FF8C1A 28%, #007BFF 62%, #00C2FF 100%); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-logo { height: 40px; width: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: background .15s; }
.main-nav a:hover { background: var(--bg-subtle); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface); color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px;
}
.icon-btn:hover { border-color: var(--accent-blue); }
[data-theme="day"] .icon-sun, [data-theme="night"] .icon-moon { display: none; }
.mobile-only { display: none; }
.mobile-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border-subtle); background: var(--bg-surface); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid transparent; cursor: pointer; transition: filter .18s, border-color .18s;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 11px; }
.btn-orange { background: linear-gradient(135deg, #FF8E24 0%, #FF6B00 60%, #E85200 100%); color: #061838; }
.btn-orange:hover { filter: brightness(1.06); }
.btn-blue { background: linear-gradient(135deg, #0080F0 0%, #0057B8 65%, #003A82 100%); color: #fff; }
.btn-blue:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--border-strong); background: transparent; color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent-blue); }
.btn-outline-light { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); color: #F2F6FC; }
.btn-outline-light:hover { border-color: #3AA8FF; }

/* Hero */
.hero { position: relative; min-height: 76vh; display: flex; align-items: center; background: #050F24; color: #F2F6FC; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, #050F24 0%, rgba(6,24,56,.88) 55%, rgba(6,24,56,.45) 100%); }
.hero-grid { position: relative; z-index: 2; padding: 64px 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .20em; color: var(--accent-blue); }
.hero .eyebrow { color: #3AA8FF; }
.hero h1 { font-size: clamp(46px, 6.5vw, 76px); margin-top: 12px; }
.hero h1 span { display: block; color: #FF8C2A; }
.hero-sub { margin: 16px 0 0; color: #B9CBE3; max-width: 480px; font-size: 15px; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-metrics { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 540px; }
.metric-box { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); border-radius: 12px; padding: 12px 14px; }
.metric-box span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #7F97B8; }
.metric-box strong { display: block; margin-top: 4px; font-family: "Barlow Condensed", sans-serif; font-size: 24px; color: #fff; }
.flagship-card { border: 1px solid rgba(255,255,255,.15); background: rgba(10,24,48,.85); backdrop-filter: blur(16px); border-radius: 18px; padding: 18px; }
.flagship-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px; }
.stage-box { aspect-ratio: 16/10; border-radius: 12px; background: var(--bg-stage); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; padding: 18px; position: relative; overflow: hidden; }
.stage-box img { max-height: 100%; max-width: 100%; object-fit: contain; }
.flagship-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Metal Bar */
.metal-bar { background: linear-gradient(90deg, #0D1829 0%, #1C2D47 50%, #0D1829 100%); border-bottom: 1px solid rgba(0,194,255,.28); color: #F2F6FC; padding: 10px 0; }
.metal-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; overflow-x: auto; }
.metal-links { display: flex; gap: 24px; white-space: nowrap; }
.metal-links a:hover { color: #FF8C2A; }

/* Sections & Cards */
.section { padding: 72px 0; }
.section-subtle { background: var(--bg-subtle); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); margin-top: 4px; }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--bg-surface); color: var(--text-primary);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
}
.pill.active { background: linear-gradient(135deg, #FF8E24 0%, #FF6B00 60%, #E85200 100%); color: #061838; border-color: transparent; }

.card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s; }
.card:hover { border-color: var(--border-strong); }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; padding: 28px; align-items: center; }
.brand-badge { position: absolute; left: 14px; top: 14px; height: 26px; background: #fff; padding: 3px 8px; border-radius: 6px; }
.ambient-badge { position: absolute; right: 14px; top: 14px; background: #061838; color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.stage-arrows { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.stage-arrow { width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(6,24,56,.9); color: #fff; cursor: pointer; font-size: 18px; }
.stage-arrow:hover { background: #0057B8; }
.spec-grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 22px; }
.spec-tile { background: var(--bg-subtle); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px 14px; }
.spec-tile span { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); }
.spec-tile strong { display: block; margin-top: 2px; font-family: "Barlow Condensed", sans-serif; font-size: 21px; }

/* Cards Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card-media { aspect-ratio: 4/3; background: var(--bg-stage); border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; padding: 16px; position: relative; overflow: hidden; }
.card-media.wide { aspect-ratio: 16/10; padding: 10px; }
.card-media.full { padding: 0; }
.card-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.card-media.full img { width: 100%; height: 100%; object-fit: cover; }
.range-pill { position: absolute; right: 10px; top: 10px; background: #061838; color: #3AA8FF; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.card-body { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; flex: 1; }
.card-col { display: flex; flex-direction: column; }
.kv-list { margin: 10px 0 0; padding: 0; list-style: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.kv-list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border-subtle); }
.kv-list li:last-child { border-bottom: 0; }
.kv-list span { color: var(--text-muted); }
.kv-list strong { text-align: right; font-weight: 600; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border-subtle); font-size: 12px; font-weight: 600; }

/* Table */
.input {
  height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border-strong); font-size: 13px;
}
.table-wrap { overflow-x: auto; border-radius: 16px; }
table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
thead tr { background: #061838; color: #F2F6FC; }
th { text-align: left; padding: 13px 16px; font-family: "Barlow Condensed", sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
td { padding: 13px 16px; border-top: 1px solid var(--border-subtle); }
tbody tr:hover { background: var(--bg-subtle); }

/* Cinema */
.cinema-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.cinema-stage { background: #050F24; border: 1px solid rgba(255,255,255,.10); border-radius: 18px; padding: 14px; color: #fff; }
.cinema-video-wrap { background: #000; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.cinema-video-wrap video { width: 100%; max-height: 480px; }
.thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.thumb-card { text-align: left; padding: 0; border-radius: 12px; cursor: pointer; background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-subtle); overflow: hidden; }
.thumb-card.active { border-color: var(--accent-orange); }
.thumb-media { position: relative; aspect-ratio: 16/9; background: #050F24; overflow: hidden; }
.thumb-media img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.thumb-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.78); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.thumb-info { padding: 8px 10px; }
.thumb-info span { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--accent-blue); }
.thumb-info p { margin: 2px 0 0; font-size: 12px; font-weight: 600; line-height: 1.25; }

/* Contact Bar & Footer */
.contact-bar { border-radius: 18px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer { background: #050E1F; color: #F2F6FC; margin-top: 0; }
.footer-grid { padding: 48px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h4 { font-size: 13px; letter-spacing: .16em; color: #FF8C2A; margin-bottom: 12px; }
.contact-list, .footer-links { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; color: #B9CBE3; display: flex; flex-direction: column; gap: 7px; }
.footer-links a:hover, .contact-list a:hover { color: #fff; }
.footer-note { font-size: 12px; color: #7F97B8; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: #7F97B8; }

/* Model Page Specific */
.model-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.gallery-thumb { aspect-ratio: 4/3; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-stage); padding: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery-thumb:hover { border-color: var(--accent-orange); }
.gallery-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ambient-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.swatch-btn { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--border-strong); cursor: pointer; }
.swatch-btn.active { border-color: #FF6B00; transform: scale(1.1); }
.ambient-glow { position: absolute; left: 15%; right: 15%; bottom: 10px; height: 36px; border-radius: 999px; filter: blur(22px); opacity: .55; pointer-events: none; transition: background-color .25s; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,12,26,.96); color: #fff; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.lightbox-caption { font-family: "Barlow Condensed", sans-serif; font-size: 22px; text-transform: uppercase; }
.lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.lightbox-frame { max-width: 900px; max-height: 75vh; background: #F8FAFC; border-radius: 18px; padding: 18px; display: flex; align-items: center; justify-content: center; }
.lightbox-frame img { max-height: 68vh; max-width: 100%; object-fit: contain; }
.lightbox-arrow { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 28px; cursor: pointer; }

@media (max-width: 960px) {
  .hero-grid, .spotlight, .cinema-grid, .model-hero, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flagship-card { display: none; }
}
@media (max-width: 640px) {
  .main-nav, .hide-xs { display: none; }
  .mobile-only { display: inline-flex; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
