:root {
  --navy: #071c3a;
  --navy-2: #0d315e;
  --red: #d7192d;
  --red-dark: #a80f20;
  --silver: #dce4ed;
  --ink: #101827;
  --muted: #5f6d80;
  --paper: #f5f7fa;
  --white: #ffffff;
  --green: #177b55;
  --amber: #a25e00;
  --shadow: 0 20px 55px rgba(7, 28, 58, .14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.concept-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 18px;
  background: #f3c44d;
  color: #2b2106;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-align: center;
}
.concept-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }

.site-header {
  position: sticky;
  top: 38px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(7, 28, 58, .96);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--red);
  color: white;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 70px; height: 70px; object-fit: contain; }
.brand-copy strong { display: block; font-size: 1.02rem; letter-spacing: .02em; }
.brand-copy span { display: block; color: #b8c8dd; font-size: .78rem; }
.primary-nav { display: flex; justify-content: center; gap: 4px; }
.nav-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background: transparent;
  color: #dce7f4;
  cursor: pointer;
  font-weight: 700;
}
.nav-btn:hover, .nav-btn.active { background: white; color: var(--navy); }
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font-weight: 800;
}
.cart-count { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--red); }

main { min-height: calc(100vh - 144px); }
.view { display: none; }
.view.active { display: block; animation: reveal .24s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(42, 94, 148, .42), transparent 34%),
    linear-gradient(135deg, #06162f 0%, #0b2d57 64%, #071c3a 100%);
  color: white;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  min-height: 490px;
  padding: 58px 0 54px;
}
.eyebrow { margin: 0 0 12px; color: #ff9aa5; font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 18px; font-size: clamp(2.65rem, 6vw, 5.5rem); line-height: .96; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; color: #c5d4e5; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: white; box-shadow: 0 12px 26px rgba(215,25,45,.27); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: white; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid #b9c6d5; }
.btn-dark { background: var(--navy); color: white; }
.btn-small { padding: 9px 13px; font-size: .9rem; }

.hero-visual {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0,0,0,.32);
  background: #0a2446;
}
.hero-visual img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4,13,30,.9)); }
.vehicle-tag { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.vehicle-tag strong { display: block; font-size: 1.18rem; }
.vehicle-tag span { color: #cbd9e8; font-size: .86rem; }
.sample-pill { white-space: nowrap; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: 7px 10px; background: rgba(7,28,58,.72); font-size: .72rem; font-weight: 800; }

.quick-choices { margin-top: -34px; position: relative; z-index: 3; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.choice-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.choice-card small { display: block; color: var(--red); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.choice-card h3 { margin: 8px 0 6px; font-size: 1.32rem; }
.choice-card p { color: var(--muted); margin-bottom: 18px; }

.section { padding: 70px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { margin-bottom: 4px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { padding: 18px; background: #eaf0f7; border-radius: 14px; }
.feature strong { display: block; margin-bottom: 4px; color: var(--navy); }
.feature span { color: var(--muted); font-size: .9rem; }

.page-head { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; padding: 44px 0; }
.page-head .shell { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin: 0; }
.page-head p { max-width: 560px; color: #cbd9e8; margin: 0; }

.builder-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.panel { background: white; border: 1px solid #dbe3ec; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(7,28,58,.08); overflow: hidden; }
.panel-body { padding: 24px; }
.step-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 26px; }
.step { height: 5px; border-radius: 8px; background: #dbe3ec; }
.step.active { background: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: .85rem; font-weight: 850; }
.field select, .field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bdc9d7;
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
}
.field.full { grid-column: 1 / -1; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.swatch { aspect-ratio: 1; border-radius: 12px; border: 3px solid white; box-shadow: 0 0 0 1px #bdc9d7; cursor: pointer; }
.swatch.selected { box-shadow: 0 0 0 3px var(--navy); }
.summary-card { position: sticky; top: 136px; }
.summary-visual { height: 160px; display: grid; place-items: center; background: linear-gradient(135deg, #183c6a, #2b77a9); color: white; }
.paint-chip { width: 112px; height: 112px; border-radius: 22px; background: #286f9f; border: 9px solid rgba(255,255,255,.92); box-shadow: 0 18px 30px rgba(0,0,0,.24); }
.summary-list { list-style: none; padding: 0; margin: 0 0 18px; }
.summary-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e5eaf0; font-size: .9rem; }
.summary-list span { color: var(--muted); }
.price { font-size: 1.8rem; color: var(--navy); font-weight: 900; }
.notice { border-radius: 12px; padding: 13px 15px; font-size: .88rem; }
.notice.info { background: #e8f1fb; color: #174b7b; }
.notice.danger { background: #fff0f1; color: #941524; border: 1px solid #f2bac1; }
.notice.success { background: #e8f7f1; color: #126143; border: 1px solid #a9dcc8; }

.vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.vehicle-card { background: white; border: 1px solid #dbe3ec; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(7,28,58,.09); }
.vehicle-image { position: relative; height: 330px; overflow: hidden; background: #d9e1e9; }
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vehicle-image .sample-pill { position: absolute; left: 16px; top: 16px; color: white; }
.vehicle-body { padding: 22px; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.tag { border-radius: 999px; padding: 6px 10px; background: #edf2f7; color: #40536b; font-size: .78rem; font-weight: 800; }
.vehicle-price { color: var(--navy); font-size: 1.7rem; font-weight: 900; }

.dashboard { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 144px); }
.sidebar { padding: 28px 18px; background: #06162f; color: white; }
.sidebar h2 { font-size: 1.25rem; }
.side-btn { width: 100%; margin-bottom: 7px; border: 0; border-radius: 10px; padding: 11px 12px; background: transparent; color: #c8d6e6; text-align: left; cursor: pointer; font-weight: 750; }
.side-btn.active, .side-btn:hover { color: white; background: rgba(255,255,255,.1); }
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: reveal .2s ease both; }
.role-card { margin-top: 26px; padding: 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.06); }
.role-card small { color: #9eb2ca; }
.dashboard-main { padding: clamp(24px, 4vw, 48px); }
.dash-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.dash-top h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); }
.role-switch { border: 1px solid #becad7; border-radius: 11px; padding: 10px 12px; background: white; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.metric { padding: 20px; border-radius: 16px; color: white; background: var(--navy); }
.metric:nth-child(2) { background: var(--red); }
.metric:nth-child(3) { background: #255d83; }
.metric:nth-child(4) { background: #5b6572; }
.metric span { display: block; opacity: .78; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { display: block; margin-top: 5px; font-size: 1.8rem; }
.dash-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 13px 14px; border-bottom: 1px solid #e5eaf0; text-align: left; }
th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; font-size: .75rem; font-weight: 850; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ready { background: #e7f6ef; color: var(--green); }
.status.mix { background: #fff3db; color: var(--amber); }
.status.blocked { background: #ffeaed; color: #a41829; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { padding: 14px 0; border-bottom: 1px solid #e5eaf0; }
.activity strong { display: block; }
.activity span { color: var(--muted); font-size: .84rem; }
.vehicle-row-name { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.vehicle-row-name img { width: 66px; height: 48px; object-fit: cover; border-radius: 8px; background: #dbe3ec; }
.vehicle-row-name strong, .vehicle-row-name span { display: block; }
.vehicle-row-name span { color: var(--muted); font-size: .8rem; }
.vehicle-admin-table td { vertical-align: middle; }
.field textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid #bdc9d7; border-radius: 11px; padding: 10px 12px; color: var(--ink); background: white; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.locked { opacity: .5; filter: grayscale(.35); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(3,12,27,.72); }
.modal-backdrop.open { display: grid; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: white; border-radius: 22px; box-shadow: 0 26px 80px rgba(0,0,0,.36); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #dfe6ee; }
.modal-head h2 { margin: 0; font-size: 1.35rem; }
.close { border: 0; background: #edf2f7; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.modal-body { padding: 22px; }
.cart-line { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid #e5eaf0; }

.site-footer { padding: 30px 18px; background: #040e20; color: #aabbd0; text-align: center; font-size: .85rem; }
.site-footer strong { color: white; }
.concept-credit { display: inline-block; margin-top: 8px; color: #c8d6e6; font-weight: 650; }
.concept-credit a { color: white; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr; gap: 14px; }
  .primary-nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .cart-button { justify-self: end; }
  .hero-grid, .builder-layout, .dash-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 42px; }
  .choice-grid { grid-template-columns: 1fr; }
  .feature-strip, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-card { position: static; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 12px 18px; }
  .sidebar h2, .role-card { display: none; }
  .side-btn { width: auto; margin: 0; white-space: nowrap; }
}

@media (max-width: 640px) {
  .concept-bar { font-size: .72rem; }
  .site-header { top: 38px; padding: 9px 14px; }
  .brand img { width: 52px; height: 52px; }
  .brand-copy span { display: none; }
  .nav-btn { padding: 8px 11px; font-size: .86rem; }
  .cart-button { padding: 8px 10px; }
  .hero-grid { min-height: auto; padding: 38px 0 62px; }
  .hero-visual { min-height: 300px; }
  .hero-visual img { min-height: 300px; }
  .vehicle-tag { align-items: flex-start; flex-direction: column; }
  .form-grid, .vehicle-grid, .feature-strip, .metric-grid { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(4, 1fr); }
  .page-head .shell, .section-head, .dash-top { align-items: flex-start; flex-direction: column; }
  .vehicle-image { height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
