:root {
  --bg: #0f1113;
  --panel: rgba(21, 24, 28, 0.9);
  --panel-strong: rgba(25, 29, 34, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.1);
  --text: #f6f2e8;
  --muted: #b7b0a1;
  --metal: #8e99a4;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.16);
  --accent-2: #d5b26f;
  --success: #7bc67b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(213, 178, 111, 0.18), transparent 24%),
    linear-gradient(135deg, #090a0c 0%, #15191d 48%, #0c0f12 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
}

body {
  padding: 24px;
}

.shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.35fr);
  min-height: calc(100vh - 48px);
  border: 1px solid var(--stroke);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(8, 10, 12, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-panel,
.app-panel {
  position: relative;
  padding: 34px;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%),
    linear-gradient(155deg, rgba(255, 122, 26, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-right: 1px solid var(--stroke);
}

.brand-badge,
.eyebrow,
.step-chip,
.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(213, 178, 111, 0.32);
  border-radius: 999px;
  background: rgba(213, 178, 111, 0.08);
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 600;
}

.eyebrow,
.topbar-copy,
.field-label,
.helper,
.step-note,
.card-meta,
.detail-list,
.score-copy,
.fit-note,
.disclaimer {
  color: var(--muted);
}

.eyebrow {
  margin: 18px 0 10px;
  font-size: 0.75rem;
}

.brand-panel h1,
.screen-title,
.result-name,
.product-name {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  line-height: 0.94;
}

.brand-panel h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 6vw, 5.7rem);
}

.brand-copy {
  max-width: 40ch;
  margin: 20px 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #ddd4c4;
}

.truck-illustration {
  position: relative;
  height: 250px;
  margin: 32px 0;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 35%),
    linear-gradient(180deg, rgba(255, 122, 26, 0.08), transparent 70%),
    #101317;
  overflow: hidden;
}

.truck-illustration::after {
  content: "";
  position: absolute;
  inset: auto 0 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.truck-body,
.truck-bed,
.truck-cover,
.wheel {
  position: absolute;
}

.truck-body {
  left: 52px;
  right: 138px;
  bottom: 64px;
  height: 58px;
  border-radius: 22px 34px 16px 12px;
  background: linear-gradient(180deg, #d6dce1, #66727c);
}

.truck-body::before {
  content: "";
  position: absolute;
  inset: -34px 128px 22px 18px;
  border-radius: 22px 26px 8px 10px;
  background: linear-gradient(180deg, #c8d1d9, #64717a);
}

.truck-bed {
  right: 54px;
  bottom: 64px;
  width: 138px;
  height: 48px;
  border-radius: 8px 14px 10px 10px;
  background: linear-gradient(180deg, #8d99a3, #495159);
}

.truck-cover {
  right: 58px;
  bottom: 104px;
  width: 130px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a1e21, #535b61);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wheel {
  bottom: 38px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #3e444a 0 26%, #0c0d0f 28% 61%, #7c858d 62% 66%, #111317 67%);
}

.wheel-front {
  left: 104px;
}

.wheel-rear {
  right: 104px;
}

.stat-grid,
.field-grid,
.choice-grid,
.detail-grid,
.product-grid {
  display: grid;
  gap: 14px;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.surface-card,
.result-card,
.product-card,
.insight-card {
  border: 1px solid var(--stroke);
  background: var(--panel-soft);
  border-radius: var(--radius-md);
}

.stat-card {
  padding: 18px;
}

.stat-label,
.card-meta,
.helper,
.fit-note,
.disclaimer,
.mini-label {
  display: block;
  font-size: 0.76rem;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.app-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    linear-gradient(180deg, rgba(9, 11, 13, 0.86), rgba(18, 22, 26, 0.96));
}

.topbar,
.progress-wrap,
.screen-shell {
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: 24px;
}

.topbar,
.progress-wrap {
  padding: 18px 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-copy {
  margin: 4px 0 0;
}

.store-link,
.primary-btn,
.ghost-btn,
.product-link {
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.store-link,
.ghost-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.store-link,
.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.primary-btn {
  border: 1px solid rgba(255, 122, 26, 0.3);
  color: #17120d;
  background: linear-gradient(180deg, #ff983d, var(--accent));
  box-shadow: 0 14px 34px rgba(255, 122, 26, 0.24);
}

.ghost-btn:disabled,
.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.store-link:hover,
.ghost-btn:hover,
.primary-btn:hover,
.product-link:hover {
  transform: translateY(-1px);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 280ms ease;
}

.screen-shell {
  flex: 1;
  padding: 28px;
}

.screen {
  display: grid;
  gap: 26px;
  animation: rise-in 240ms ease;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.screen-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.screen-subtitle {
  margin: 10px 0 0;
  max-width: 62ch;
  color: #ddd4c4;
  line-height: 1.7;
}

.surface-card {
  padding: 22px;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 10px;
}

.field.full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.text-input,
.select-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
}

.text-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.38);
}

.choice-card.active {
  border-color: rgba(255, 122, 26, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 122, 26, 0.18), transparent 120%),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.18);
}

.choice-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.4rem;
}

.choice-copy,
.detail-list,
.score-copy,
.fit-note,
.disclaimer {
  line-height: 1.6;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 18px;
}

.result-card,
.insight-card,
.product-card {
  padding: 22px;
}

.step-chip {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(123, 198, 123, 0.24);
  background: rgba(123, 198, 123, 0.1);
  color: var(--success);
  font-size: 0.74rem;
}

.result-name {
  font-size: clamp(2.8rem, 4vw, 4rem);
}

.result-copy {
  max-width: 55ch;
  line-height: 1.8;
  color: #e6dece;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.detail-box {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-box strong {
  display: block;
  margin: 8px 0 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
}

.insight-card h3,
.product-card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.score-row {
  display: grid;
  gap: 12px;
}

.score-item {
  display: grid;
  gap: 6px;
}

.score-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.score-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.score-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-name {
  font-size: 2rem;
}

.product-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 26, 0.28);
  color: var(--text);
  background: rgba(255, 122, 26, 0.08);
}

.detail-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.fit-note,
.disclaimer {
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .shell,
  .result-layout,
  .product-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .brand-panel h1 {
    max-width: 12ch;
  }
}

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .shell {
    min-height: auto;
    border-radius: 24px;
  }

  .brand-panel,
  .app-panel,
  .screen-shell {
    padding: 20px;
  }

  .topbar,
  .screen-head,
  .progress-meta,
  .summary-banner,
  .nav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .field-grid,
  .choice-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .brand-panel h1,
  .screen-title,
  .result-name,
  .product-name {
    line-height: 1;
  }
}
