@import "tailwindcss";

:root {
  --ink: #10182b;
  --muted: #647089;
  --line: #dce3ef;
  --blue: #185ee8;
  --blue-dark: #1048b7;
  --blue-soft: #edf4ff;
  --orange: #ff7a2f;
  --surface: #ffffff;
  --canvas: #f4f7fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1240px) / 2));
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(16,24,43,.08);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  color: white; font-size: 21px; font-weight: 900; font-style: italic;
  background: linear-gradient(145deg, #2d75ff, #0e48b9);
  box-shadow: 0 7px 18px rgba(24,94,232,.25);
}
.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 14px; letter-spacing: .08em; line-height: 1; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.site-header nav { display: flex; gap: 34px; font-size: 14px; color: #536078; }
.site-header nav a:hover { color: var(--blue); }
.header-cta {
  border: 0; border-radius: 10px; padding: 11px 17px;
  background: var(--ink); color: white; cursor: pointer; font-weight: 650;
}
.header-cta span { margin-left: 8px; color: #82aaff; }

.hero {
  min-height: 720px;
  padding: 74px max(32px, calc((100vw - 1240px) / 2)) 92px;
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(560px, 1.12fr);
  gap: 70px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 7%, rgba(62,129,255,.12), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #edf3fc 100%);
}
.hero-copy { padding: 14px 0 36px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { width: 22px; height: 2px; border-radius: 2px; background: var(--orange); }
.hero h1 { margin: 20px 0 24px; font-size: clamp(48px, 5.2vw, 76px); line-height: 1.05; letter-spacing: -.055em; font-weight: 780; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 570px; margin: 0; color: #5e6b80; font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.primary-action, .panel-primary, .next-button {
  border: 0; border-radius: 12px; color: white; background: var(--blue);
  cursor: pointer; font-weight: 720; box-shadow: 0 12px 28px rgba(24,94,232,.23);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.primary-action { padding: 16px 23px; }
.primary-action:hover, .panel-primary:hover, .next-button:hover { transform: translateY(-1px); background: var(--blue-dark); box-shadow: 0 15px 34px rgba(24,94,232,.3); }
.primary-action span, .next-button span { margin-left: 12px; }
.text-action { color: #41506a; font-size: 14px; padding-bottom: 3px; border-bottom: 1px solid #8f9aae; }
.trust-row { display: flex; gap: 25px; margin-top: 46px; padding-top: 24px; border-top: 1px solid #d7dfeb; }
.trust-row span { display: grid; gap: 5px; color: #718097; font-size: 11px; }
.trust-row b { color: var(--ink); font-size: 17px; }

.selector-shell {
  min-height: 585px;
  background: white;
  border: 1px solid rgba(73,98,142,.15);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(27,54,99,.16), 0 3px 8px rgba(27,54,99,.06);
  overflow: hidden;
}
.selector-topbar {
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: #f9fbfe; border-bottom: 1px solid #e4e9f1;
  font-size: 13px; font-weight: 700;
}
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #1fce7a; box-shadow: 0 0 0 4px rgba(31,206,122,.12); }
.secure-note { color: #8994a7; font-size: 11px; font-weight: 500; }
.welcome-panel { min-height: 527px; padding: 70px 54px 42px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.assistant-avatar { width: 64px; height: 64px; border-radius: 19px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #397fff, #1454d0); font-size: 20px; font-weight: 850; box-shadow: 0 12px 28px rgba(24,94,232,.25); }
.assistant-label { margin: 16px 0 10px; color: var(--blue); font-size: 12px; font-weight: 720; }
.welcome-panel h2 { max-width: 380px; margin: 0; font-size: 26px; letter-spacing: -.03em; }
.welcome-panel > p:not(.assistant-label) { max-width: 390px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.panel-primary { min-height: 49px; padding: 0 24px; }
.welcome-panel .panel-primary { width: min(100%, 330px); margin-top: 19px; display: flex; align-items: center; justify-content: space-between; }
.panel-primary span { margin-left: 18px; font-size: 11px; color: #dce8ff; font-weight: 500; }
.privacy-note { margin-top: 17px; color: #8a95a8; font-size: 11px; }

.question-panel { min-height: 527px; padding: 24px 30px 26px; display: flex; flex-direction: column; }
.progress-wrap { margin-bottom: 27px; }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 9px; color: #7e899b; font-size: 11px; }
.progress-labels strong { color: var(--blue); }
.progress-track { height: 4px; border-radius: 4px; overflow: hidden; background: #edf0f5; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #50a3ff); transition: width .3s; }
.question-step { flex: 1; }
.step-kicker { margin: 0 0 7px; color: var(--blue); font-size: 11px; letter-spacing: .08em; font-weight: 800; text-transform: uppercase; }
.question-step h2, .result-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.step-help { margin: 7px 0 19px; color: #7c8799; font-size: 12px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { position: relative; min-height: 76px; padding: 14px 35px 14px 15px; display: grid; gap: 5px; text-align: left; border: 1px solid #dfe5ee; border-radius: 11px; background: white; cursor: pointer; }
.choice-card:hover { border-color: #a8c3f4; background: #fbfdff; }
.choice-card.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.choice-card b { font-size: 13px; }
.choice-card small { color: #8590a2; font-size: 10px; line-height: 1.45; }
.choice-check { display: none; position: absolute; right: 12px; top: 12px; width: 19px; height: 19px; border-radius: 50%; place-items: center; color: white; background: var(--blue); font-size: 11px; }
.choice-card.selected .choice-check { display: grid; }
.panel-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.back-button, .restart-button { padding: 11px 2px; border: 0; color: #798599; background: transparent; cursor: pointer; font-size: 12px; }
.next-button { min-width: 150px; padding: 13px 20px; }
.next-button:disabled { cursor: not-allowed; opacity: .35; transform: none; box-shadow: none; }
.field-stack { padding: 18px 18px 15px; border-radius: 12px; background: #f6f8fc; }
.field-label { display: flex; justify-content: space-between; color: #657187; font-size: 12px; }
.field-label strong { color: var(--blue); font-size: 15px; }
.range-input { width: 100%; margin: 24px 0 6px; accent-color: var(--blue); }
.range-scale { display: flex; justify-content: space-between; color: #9aa3b1; font-size: 9px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.select-field, .text-field { display: grid; gap: 7px; }
.select-field span, .text-field span, .field-title, .sample-form label span { color: #68758a; font-size: 11px; font-weight: 650; }
select, input, textarea { outline: none; border: 1px solid #dbe2ec; border-radius: 9px; color: var(--ink); background: white; }
select:focus, input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,94,232,.1); }
.select-field select { height: 46px; padding: 0 12px; }
.text-field { margin-top: 13px; }
.text-field input { height: 44px; padding: 0 13px; }
.field-group { margin: 17px 0 13px; }
.pill-row { display: flex; gap: 7px; margin-top: 8px; }
.pill-row button { flex: 1; padding: 10px 7px; border: 1px solid #dce3ed; border-radius: 9px; background: white; cursor: pointer; font-size: 11px; }
.pill-row button.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); font-weight: 700; }

.result-panel { padding: 24px 28px 28px; }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.best-match { display: grid; grid-template-columns: 180px 1fr; border: 1px solid #cfdaf0; border-radius: 15px; overflow: hidden; box-shadow: 0 8px 24px rgba(38,70,125,.08); }
.match-image-wrap { position: relative; min-height: 270px; background: #eff4fb; }
.match-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.match-badge { position: absolute; left: 12px; top: 12px; padding: 6px 9px; border-radius: 7px; color: white; background: var(--orange); font-size: 9px; font-weight: 800; }
.match-content { position: relative; padding: 19px 19px 16px; }
.match-score { position: absolute; right: 16px; top: 15px; display: grid; text-align: right; color: #7c889a; font-size: 9px; }
.match-score strong { color: var(--blue); font-size: 18px; }
.product-code { margin: 0 0 4px; color: #8b96a8; font-size: 9px; }
.match-content h3 { max-width: 250px; margin: 0; font-size: 19px; }
.product-subtitle { margin: 5px 0 13px; color: #7b8799; font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.metric { padding: 8px 9px; border-radius: 8px; background: #f4f7fb; display: grid; gap: 3px; }
.metric span { color: #8994a6; font-size: 8px; }
.metric strong { font-size: 10px; }
.reason-list { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 10px; padding: 0; list-style: none; color: #2d6e55; font-size: 9px; }
.price-line { display: flex; align-items: baseline; gap: 6px; padding-top: 9px; border-top: 1px solid #edf0f4; }
.price-line span { color: #7c8798; font-size: 9px; }
.price-line strong { color: #e55726; font-size: 20px; }
.price-line small { color: #9aa4b3; font-size: 8px; }
.engineer-alert { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid #f0d29e; border-radius: 9px; background: #fff9ef; }
.engineer-alert span { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; color: #9b5a0a; background: #ffe7bc; font-size: 8px; font-weight: 800; }
.engineer-alert p { margin: 0; color: #815e2f; font-size: 9px; }
.alternative-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.alternative-card { min-width: 0; display: grid; grid-template-columns: 58px 1fr; align-items: center; border: 1px solid #e1e6ee; border-radius: 10px; overflow: hidden; }
.alternative-card img { width: 58px; height: 58px; object-fit: cover; background: #f0f3f7; }
.alternative-card div { min-width: 0; padding: 7px 9px; }
.alternative-card span { color: var(--blue); font-size: 8px; font-weight: 700; }
.alternative-card h4 { margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.alternative-card p { margin: 0; color: #8a95a6; font-size: 8px; }
.result-actions { display: flex; gap: 9px; margin-top: 14px; }
.result-actions .panel-primary { flex: 1; }
.outline-button { border: 1px solid #cfd7e4; border-radius: 10px; padding: 0 17px; background: white; cursor: pointer; font-size: 11px; font-weight: 650; }
.outline-button:hover { border-color: var(--blue); color: var(--blue); }
.sample-form { margin-top: 15px; padding: 18px; border: 1px solid #cbd7eb; border-radius: 12px; background: #f8faff; }
.sample-form h3 { margin: 0; font-size: 17px; }
.sample-form > div:first-child > p:last-child { margin: 5px 0 14px; color: #7e8999; font-size: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sample-form label { display: grid; gap: 5px; }
.sample-form input, .sample-form select { height: 37px; padding: 0 10px; font-size: 10px; }
.full-field { margin-top: 9px; }
.sample-form textarea { min-height: 58px; padding: 9px 10px; resize: vertical; font-size: 10px; }
.sample-form .panel-primary { width: 100%; margin-top: 10px; }
.demo-disclaimer { display: block; margin-top: 8px; color: #9aa3b1; text-align: center; font-size: 8px; }
.success-card { margin-top: 14px; padding: 24px; text-align: center; border-radius: 12px; background: #effaf5; border: 1px solid #bce8d2; }
.success-icon { width: 38px; height: 38px; margin: 0 auto 10px; display: grid; place-items: center; color: white; background: #20b973; border-radius: 50%; font-weight: 800; }
.success-card h3 { margin: 0; }
.success-card > p:not(.step-kicker) { color: #66776f; font-size: 10px; }
.success-card .outline-button { min-height: 38px; }

.capability-strip { padding: 28px max(32px, calc((100vw - 1120px) / 2)); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: white; }
.capability-strip div { display: grid; gap: 4px; text-align: center; border-right: 1px solid rgba(255,255,255,.13); }
.capability-strip div:last-child { border-right: 0; }
.capability-strip strong { font-size: 20px; }
.capability-strip span { color: #9fadca; font-size: 10px; }
.products-section { max-width: 1240px; margin: 0 auto; padding: 105px 32px 120px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 36px; }
.section-heading h2 { margin: 10px 0 0; font-size: 39px; letter-spacing: -.04em; }
.section-heading > p { max-width: 480px; margin: 0; color: #6e7a8e; line-height: 1.8; font-size: 13px; }
.product-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-band article { min-height: 380px; border: 1px solid #dbe2ec; border-radius: 16px; overflow: hidden; background: white; transition: transform .25s, box-shadow .25s; }
.product-band article:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(30,53,91,.12); }
.product-band img { width: 100%; height: 245px; object-fit: cover; background: #eef2f8; }
.product-band article div { padding: 21px; }
.product-band span { color: var(--blue); font-size: 11px; font-weight: 750; }
.product-band h3 { margin: 4px 0; font-size: 25px; }
.product-band p { margin: 0; color: #8490a3; font-size: 11px; }
.how-section { padding: 100px max(32px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; color: white; background: linear-gradient(135deg, #0c1528, #14284e); }
.eyebrow.light { color: #77a5ff; }
.how-copy h2 { margin: 18px 0; font-size: 42px; line-height: 1.15; letter-spacing: -.04em; }
.how-copy > p:not(.eyebrow) { max-width: 500px; color: #a9b6cc; line-height: 1.8; font-size: 13px; }
.light-button { margin-top: 24px; color: var(--ink); background: white; box-shadow: none; }
.light-button:hover { color: white; }
.flow-list { display: grid; }
.flow-list > div { display: grid; grid-template-columns: 52px 1fr; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.flow-list b { color: #5e8ce2; font-size: 13px; }
.flow-list span { display: grid; gap: 6px; }
.flow-list strong { font-size: 17px; }
.flow-list small { color: #93a2bc; font-size: 11px; }
footer { padding: 34px max(32px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; background: white; border-top: 1px solid #e1e6ee; }
footer p { margin: 0; color: #8792a3; text-align: center; font-size: 10px; }
footer > span { color: #9aa4b2; font-size: 10px; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; padding-top: 54px; gap: 35px; }
  .hero-copy { max-width: 760px; }
  .selector-shell { width: min(100%, 720px); }
  .how-section { gap: 45px; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; padding: 0 18px; }
  .site-header nav { display: none; }
  .header-cta { padding: 9px 12px; font-size: 12px; }
  .hero { min-height: 0; padding: 45px 16px 56px; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .trust-row { gap: 16px; }
  .selector-shell { border-radius: 16px; }
  .question-panel, .result-panel { padding: 20px 16px; }
  .welcome-panel { padding: 55px 20px 35px; }
  .choice-grid, .two-fields, .form-grid, .alternative-list { grid-template-columns: 1fr; }
  .best-match { grid-template-columns: 1fr; }
  .match-image-wrap { height: 240px; }
  .capability-strip { grid-template-columns: 1fr 1fr; gap: 24px 0; padding: 28px 16px; }
  .capability-strip div:nth-child(2) { border-right: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .product-band { grid-template-columns: 1fr; }
  .products-section { padding: 75px 16px; }
  .how-section { grid-template-columns: 1fr; padding: 75px 20px; }
  footer { grid-template-columns: 1fr; justify-items: center; gap: 15px; }
  .footer-brand { justify-self: center; }
}

@media print {
  .site-header, .hero-copy, .capability-strip, .products-section, .how-section, footer, .selector-topbar, .result-actions, .restart-button { display: none !important; }
  .hero { display: block; min-height: auto; padding: 0; background: white; }
  .selector-shell { box-shadow: none; border: 0; }
  .result-panel { padding: 20px; }
}
