:root {
  --bg: #0a0c0f;
  --bg-2: #0e1115;
  --surface: #12161b;
  --surface-2: #171c22;
  --surface-3: #1d232a;
  --border: #232a32;
  --border-2: #2d3640;
  --text: #e9ecef;
  --text-2: #b7bfc8;
  --muted: #7d8794;
  --accent: #ff6b1a;
  --accent-2: #ff8a45;
  --accent-soft: rgba(255, 107, 26, 0.12);
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.12);
  --warn: #ffc542;
  --warn-soft: rgba(255, 197, 66, 0.12);
  --info: #6cb6ff;
  --info-soft: rgba(108, 182, 255, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.25);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(255, 107, 26, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(108, 182, 255, 0.06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0, 0, 0, 0.6) 100%);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #140800;
  box-shadow: 0 8px 24px -10px rgba(255, 107, 26, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(255, 107, 26, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: #3a4652; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 12, 15, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand-mark { width: 26px; height: 26px; color: #d7dde3; }
.brand-sm { font-size: 15px; }
.brand-sm .brand-mark { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }

/* -------------------------------------------------------------------- hero */
.hero { padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
h1 {
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 22px 0 20px;
  font-weight: 800;
}
.grad { background: linear-gradient(92deg, #fff 0%, #ffd2b6 40%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18.5px; color: var(--text-2); max-width: 560px; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: start; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid var(--border-2); }
.hero-facts strong { font-size: 15px; }
.hero-facts span { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; min-height: 440px; }
.hero-art {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 40%, #182029, #0d1014 70%);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 640 / 440;
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px;
  pointer-events: none;
}
.hero-art img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.glass {
  background: rgba(20, 24, 30, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
}
.hero-card { position: absolute; right: -28px; bottom: -52px; width: 318px; border-radius: 16px; padding: 18px 18px 14px; }
.hc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hc-file { font-family: var(--mono); font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-total { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 12px; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.hc-total small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.hc-stats div { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.hc-stats dt { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.hc-stats dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-foot { margin-top: 12px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok); background: var(--ok-soft); }
.pill-warn { color: var(--warn); background: var(--warn-soft); }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker { font-family: var(--mono); font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em; }
h2 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 14px; font-weight: 800; }
.section-head p { color: var(--text-2); font-size: 17.5px; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px 22px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.step::after { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 107, 26, 0.6), transparent); }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { margin: 10px 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ------------------------------------------------------------- quote tool */
.quote-start { display: grid; grid-template-columns: 1fr 1.45fr; gap: 20px; }
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 300px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1.5px dashed #3a4450;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 10px, transparent 10px 20px), var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: radial-gradient(circle at 50% 40%, var(--accent-soft), transparent 70%), var(--surface); }
.dropzone.drag { transform: scale(1.01); }
.dz-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); margin-bottom: 8px; }
.dz-icon svg { width: 30px; height: 30px; }
.dz-title { font-weight: 700; font-size: 18px; }
.dz-sub { color: var(--muted); font-size: 14px; }
.link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.dz-units { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.dz-units select {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
}

.examples { display: flex; flex-direction: column; gap: 12px; }
.examples-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.examples-head .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.example-list { display: grid; gap: 12px; }
.example {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.example:hover { border-color: #3a4652; background: var(--surface-2); }
.example.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.example.skeleton { height: 96px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ex-thumb { width: 132px; height: 84px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #1a222b, #0d1014); border: 1px solid var(--border); overflow: hidden; }
.ex-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ex-body { min-width: 0; }
.ex-title { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text-2); letter-spacing: 0.04em; }
.badge-accent { color: var(--accent-2); border-color: rgba(255, 107, 26, 0.35); background: var(--accent-soft); }
.ex-sub { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.ex-detail { color: var(--muted); font-size: 12.5px; margin-top: 4px; font-family: var(--mono); }
.ex-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ex-price { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.ex-price strong { color: var(--text); font-weight: 600; }
.ex-dl { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.ex-dl:hover { color: var(--text); }

.progress { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.progress-file { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.progress-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.progress-steps li { position: relative; font-size: 13px; color: var(--muted); padding-top: 14px; }
.progress-steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--surface-3); }
.progress-steps li.active { color: var(--text); }
.progress-steps li.active::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: pulse 0.9s ease-in-out infinite alternate; }
.progress-steps li.done { color: var(--text-2); }
.progress-steps li.done::before { background: var(--accent); }
@keyframes pulse { from { opacity: 0.55; } to { opacity: 1; } }

.error-box { margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 90, 90, 0.35); background: rgba(255, 90, 90, 0.08); color: #ffb4b4; }

/* ---------------------------------------------------------------- results */
.results { margin-top: 32px; animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.rb-name { font-weight: 700; font-size: 18px; font-family: var(--mono); letter-spacing: -0.01em; word-break: break-all; }
.rb-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rb-right { display: flex; align-items: center; gap: 12px; font-size: 13px; }

.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.results-grid { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: stretch; }
.viewer-card { display: flex; flex-direction: column; overflow: hidden; min-height: 520px; }
.viewer { position: relative; flex: 1; min-height: 440px; background: radial-gradient(ellipse at 50% 35%, #1a212a 0%, #0c0f13 75%); cursor: grab; }
.viewer:active { cursor: grabbing; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; position: absolute; inset: 0; }
.viewer-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; color: var(--muted); font-size: 14px; }
.viewer-fallback img { max-height: 80%; opacity: 0.9; }
.viewer-tip {
  position: absolute;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(10, 12, 15, 0.9);
  border: 1px solid var(--border-2);
  font-size: 12.5px;
  font-family: var(--mono);
  white-space: nowrap;
  transform: translate(12px, 12px);
  z-index: 3;
}
/* Live option overlay on the 3D view */
.viz-hud { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; z-index: 2; }
.viz-hud:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-2); background: rgba(12, 15, 19, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px); white-space: nowrap; animation: chip-in 0.25s ease both; }
.chip em { font-style: normal; color: var(--muted); font-size: 11px; }
.chip-strong { color: #140800; background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; font-weight: 700; }
.chip-strong em { color: rgba(20, 8, 0, 0.7); }
.chip-muted { color: var(--muted); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.dot-clear { background: linear-gradient(135deg, #e6ebf0, #9aa4af); }
.dot-black { background: #1d2126; }
@keyframes chip-in { from { opacity: 0; transform: translateY(-3px); } }
.viz-timeline { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 12px 12px; border-radius: 12px; background: rgba(12, 15, 19, 0.74); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); pointer-events: none; z-index: 2; max-width: 560px; }
.viz-timeline:empty { display: none; }
.tl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.tl-title { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; color: var(--accent); }
.tl-meta { color: var(--text-2); }
.tl-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #140800; background: var(--warn); padding: 2px 8px; border-radius: 999px; }
.tl-bars { display: flex; gap: 3px; height: 22px; }
.tl-bar { position: relative; height: 100%; border-radius: 5px; overflow: hidden; transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1); min-width: 24px; }
.tl-bar span { position: absolute; inset: 0 8px; display: flex; align-items: center; font-size: 11px; font-weight: 600; color: #0b0d10; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-cut { background: linear-gradient(180deg, #d9dfe6, #a9b3be); }
.st-asm { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.st-ship { background: linear-gradient(180deg, #7ee8b8, var(--ok)); }
.viewer-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); gap: 2px; flex-wrap: wrap; }
.seg button { white-space: nowrap; border: 0; background: transparent; padding: 7px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: background 0.12s, color 0.12s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.seg-sm button { padding: 5px 10px; font-size: 12.5px; }

.price-card { padding: 22px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.price-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.price-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.price-total { font-size: 44px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.price-total.flash { animation: flash 0.5s ease; }
@keyframes flash { 0% { color: var(--accent-2); } 100% { color: var(--text); } }
.price-sub { font-size: 13.5px; color: var(--text-2); display: flex; gap: 6px; flex-wrap: wrap; }
.dotsep { color: var(--muted); }
.price-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.price-stats div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 9px; display: flex; flex-direction: column; gap: 1px; }
.price-stats span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.price-stats strong { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.options { display: flex; flex-direction: column; gap: 12px; }
.opt { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; }
.opt label, .opt-label { font-size: 13px; color: var(--muted); }
.opt .seg { width: 100%; }
.opt .seg button { flex: 1; padding: 7px 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); overflow: hidden; width: max-content; }
.stepper button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 18px; color: var(--text-2); }
.stepper button:hover { color: var(--text); background: var(--surface-2); }
.stepper input { width: 70px; height: 36px; border: 0; border-inline: 1px solid var(--border); background: transparent; color: var(--text); text-align: center; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tier-hint { font-size: 12px; color: var(--ok); margin-left: 10px; }

.price-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.price-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fineprint { margin: 0; font-size: 12px; color: var(--muted); }

.flags { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.flag { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.flag b { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; padding-top: 2px; min-width: 52px; }
.flag.review { color: #ffd9a8; border-color: rgba(255, 107, 26, 0.35); background: var(--accent-soft); }
.flag.warn { color: #ffe7a6; border-color: rgba(255, 197, 66, 0.3); background: var(--warn-soft); }
.flag.info { color: #cfe6ff; border-color: rgba(108, 182, 255, 0.28); background: var(--info-soft); }

.tabs { overflow: hidden; }
.tab-bar { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.tab-bar button { border: 0; background: transparent; padding: 10px 14px 12px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-bar button[aria-selected='true'] { color: var(--text); border-bottom-color: var(--accent); }
.tab-bar .tab-action { margin: 0 6px 8px auto; padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 8px; font-size: 13px; color: var(--text-2); align-self: center; }
.tab-bar .tab-action:hover { color: var(--text); border-color: #3a4652; }
.tab-panel { padding: 6px 0 4px; }
.panel-intro { color: var(--text-2); font-size: 14px; margin: 14px 18px 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; padding: 12px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 11px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: top; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr { transition: background 0.1s; }
tbody tr.hoverable:hover, tbody tr.hl { background: rgba(255, 107, 26, 0.06); }
tr.group td { padding-top: 16px; padding-bottom: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; border-bottom: 0; }
.item-name { font-weight: 600; }
.item-detail { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
tfoot td { border-bottom: 0; padding-top: 10px; padding-bottom: 10px; }
tfoot tr td:first-child { color: var(--text-2); }
tfoot tr.grand td { font-size: 17px; font-weight: 800; color: var(--text); border-top: 1px solid var(--border); padding-top: 14px; padding-bottom: 16px; }
.na { color: var(--accent-2); font-weight: 600; }

.conf { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; }
.conf-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; min-width: 60px; }
.conf-bar i { display: block; height: 100%; border-radius: 6px; }
.conf small { font-family: var(--mono); font-size: 12px; color: var(--text-2); width: 36px; text-align: right; }
.alts { font-size: 12px; color: var(--muted); margin-top: 3px; }
.recog td.mono, .recog td:nth-child(2) > .kind + * { white-space: nowrap; }
.recog td:nth-child(2) { min-width: 220px; }
.kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 5px; }
.kind-extrusion { color: #d4dbe3; background: rgba(255, 255, 255, 0.06); }
.kind-panel { color: var(--info); background: var(--info-soft); }
.kind-hardware { color: var(--ok); background: var(--ok-soft); }
.kind-custom { color: var(--accent-2); background: var(--accent-soft); }

.cut-group { padding: 14px 18px 6px; }
.cut-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.cut-head strong { font-size: 15px; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { position: relative; display: flex; height: 26px; border-radius: 6px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 6px, transparent 6px 12px), var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.bar .piece { height: 100%; border-right: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10.5px; color: #0b0d10; overflow: hidden; white-space: nowrap; background: linear-gradient(180deg, #d9dfe6, #aab4bf); }
.bar .piece.alt { background: linear-gradient(180deg, #c6ced7, #97a2ae); }
.bars-more { font-size: 12.5px; color: var(--muted); padding: 4px 0; }

/* -------------------------------------------------------------------- API */
.api-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.api-copy > p { color: var(--text-2); font-size: 17px; }
.endpoints { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-direction: column; gap: 8px; }
.endpoints li { display: grid; grid-template-columns: 54px auto 1fr; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.endpoints code { font-size: 13px; color: var(--text); }
.endpoints span:last-child { color: var(--muted); text-align: right; font-size: 13px; }
.verb { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 0; border-radius: 5px; text-align: center; }
.verb.post { color: var(--accent-2); background: var(--accent-soft); }
.verb.get { color: var(--ok); background: var(--ok-soft); }
.param-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pt-head { padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.param-table dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; }
.param-table dt, .param-table dd { margin: 0; padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 13.5px; }
.param-table dd { color: var(--text-2); }
.param-table code { font-size: 12.5px; color: var(--accent-2); }
.api-code { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.code-card { overflow: hidden; background: #0c0f13; }
.code-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.code-tabs button[role='tab'] { border: 0; background: transparent; padding: 6px 10px; border-radius: 7px; font-size: 13px; color: var(--muted); font-weight: 600; }
.code-tabs button[aria-selected='true'] { background: var(--surface-3); color: var(--text); }
.code-title { font-size: 13px; font-weight: 600; padding: 6px 4px; }
.code-copy { margin-left: auto; border: 1px solid var(--border-2); background: transparent; border-radius: 7px; padding: 5px 10px; font-size: 12px; color: var(--text-2); }
.code-copy:hover { color: var(--text); }
.code { margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: 12.8px; line-height: 1.65; color: #c9d1d9; overflow-x: auto; white-space: pre; max-height: 440px; }
.code .k { color: #ff9e64; }
.code .s { color: #9ece6a; }
.code .n { color: #7dcfff; }
.code .c { color: #5c6773; }
.code .p { color: #e0af68; }

/* --------------------------------------------------------------- profiles */
.profile-filter { margin-bottom: 20px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.profile { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color 0.15s, transform 0.15s; }
.profile:hover { border-color: #3a4652; transform: translateY(-2px); }
.profile svg { width: 100%; height: 120px; display: block; margin-bottom: 12px; }
.profile svg path { fill: url(#alu); stroke: rgba(255, 255, 255, 0.25); stroke-width: 0.3; }
.pf-name { font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.pf-name small { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.pf-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-family: var(--mono); display: flex; justify-content: space-between; }
.pf-series { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* -------------------------------------------------------------------- CTA */
.cta-band { padding: 40px 0 96px; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px 44px; border-radius: 20px; border: 1px solid rgba(255, 107, 26, 0.25); background: radial-gradient(800px 300px at 100% 0%, rgba(255, 107, 26, 0.16), transparent 60%), var(--surface); }
.cta-inner h2 { margin-top: 0; }
.cta-inner p { color: var(--text-2); margin: 0; max-width: 640px; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 11px 18px; border-radius: 10px; background: #1d232a; border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 14px; z-index: 60; animation: rise 0.2s ease both; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
  .hero-inner, .api-grid, .quote-start { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-card { right: 12px; bottom: -28px; }
  .api-code { position: static; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero { padding-top: 40px; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .example { grid-template-columns: 88px 1fr; }
  .ex-thumb { width: 88px; height: 64px; }
  .ex-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .progress-steps { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 28px; }
  .hero-card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 14px; }
  .price-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Grid children must be allowed to shrink below their content (long code lines). */
.hero-inner > *, .api-grid > *, .results-grid > *, .quote-start > * { min-width: 0; }
@media (max-width: 680px) {
  .endpoints li { grid-template-columns: 46px 1fr; }
  .endpoints span:last-child { grid-column: 1 / -1; text-align: left; }
  .endpoints code { overflow-wrap: anywhere; }
  .opt { grid-template-columns: 1fr; gap: 6px; }
  .viewer-card { min-height: 380px; }
  .viewer { min-height: 320px; }
}
