:root {
  --ink: #0b1728;
  --muted: #526174;
  --line: rgba(15, 42, 79, 0.13);
  --blue: #115df6;
  --cyan: #13c8ff;
  --deep: #061b3a;
  --paper: #f6fbff;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 70px rgba(8, 37, 84, 0.16);
  font-family: "Aptos", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(19, 200, 255, 0.25), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(17, 93, 246, 0.22), transparent 34rem),
    linear-gradient(180deg, #eef8ff 0%, #ffffff 42%, #eef5ff 100%);
}

a { color: inherit; text-decoration: none; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 14px 0 42px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 34px rgba(13, 55, 120, 0.08);
}
.brand, nav, .actions, .trust-row, .metrics, .quote-grid, .pricing { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
nav { gap: 18px; font-size: 14px; color: var(--muted); }
.language { padding: 10px 14px; border-radius: 999px; color: #fff; background: var(--deep); font-size: 14px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 44px;
  align-items: center;
  min-height: 680px;
}
.badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(17, 93, 246, 0.18);
  border-radius: 999px;
  color: #0d56d9;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  font-size: 13px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(46px, 7vw, 82px); line-height: 0.96; letter-spacing: -0.07em; }
h2 { margin-bottom: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.055em; }
h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -0.025em; }
.subhead { max-width: 680px; color: var(--muted); font-size: 20px; line-height: 1.7; }
.actions { gap: 14px; margin: 32px 0 22px; }
.button { display: inline-flex; justify-content: center; padding: 14px 20px; border-radius: 15px; font-weight: 850; }
.primary { color: #fff; background: linear-gradient(135deg, var(--blue), #0bbbe8); box-shadow: 0 16px 34px rgba(17, 93, 246, 0.25); }
.ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.68); }
.trust-row { flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.trust-row span { padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,0.66); border: 1px solid var(--line); }
.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(234,246,255,0.86));
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.panel-header { display: flex; gap: 8px; padding: 20px; background: rgba(6, 27, 58, 0.04); }
.panel-header span { width: 11px; height: 11px; border-radius: 50%; background: #95a7bc; }
.quote-grid { gap: 16px; padding: 24px; }
.quote-grid div { flex: 1; padding: 20px; border-radius: 22px; color: #fff; background: linear-gradient(145deg, #0b2752, #1267ee); }
.quote-grid small, .quote-grid em { display: block; opacity: 0.72; font-style: normal; }
.quote-grid strong { display: block; margin: 8px 0; font-size: 26px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table { margin: 0 24px 24px; width: calc(100% - 48px); background: #fff; border-radius: 18px; overflow: hidden; }
th, td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: #26435f; background: rgba(17, 93, 246, 0.07); }
.metrics { justify-content: space-between; gap: 18px; margin: 36px 0 84px; }
.metric { flex: 1; padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: 0 18px 50px rgba(8, 37, 84, 0.08); }
.metric strong { display: block; font-size: 44px; letter-spacing: -0.04em; color: var(--blue); }
.metric span { color: var(--muted); }
.section, .comparison, .pricing { margin: 96px 0; }
.section-heading { display: grid; grid-template-columns: 0.38fr 1fr; gap: 30px; align-items: end; margin-bottom: 34px; }
.section-heading p { color: #0d56d9; font-weight: 850; text-transform: uppercase; letter-spacing: 0.12em; }
.cards, .features, .workflow { display: grid; gap: 18px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .feature, .step, .price-card, details {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(8, 37, 84, 0.08);
}
.card, .feature, .step { padding: 28px; }
.card p, .feature p, .step p, details p { color: var(--muted); line-height: 1.7; }
.card-kicker { display: block; margin-bottom: 24px; color: var(--cyan); font-weight: 900; }
.workflow { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step span { display: block; margin-bottom: 30px; color: var(--blue); font-size: 42px; font-weight: 900; letter-spacing: -0.06em; }
.features { grid-template-columns: repeat(3, 1fr); }
.comparison {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 36px;
  color: #fff;
  background: linear-gradient(135deg, #061b3a, #0b56dc 58%, #08bce8);
  box-shadow: var(--shadow);
}
.comparison .badge { color: #dff8ff; background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.25); }
.table-wrap { overflow: auto; border-radius: 24px; background: #fff; color: var(--ink); }
.visual-reference img { width: 100%; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pricing { justify-content: space-between; gap: 32px; align-items: stretch; }
.price-card { min-width: min(420px, 100%); padding: 32px; }
.price-card strong { display: block; margin-bottom: 20px; font-size: 42px; letter-spacing: -0.045em; }
.price-card li { margin: 12px 0; color: var(--muted); }
.price-card .button { width: 100%; margin-top: 18px; }
.faq { max-width: 980px; margin-left: auto; margin-right: auto; }
details { padding: 22px 26px; margin: 14px 0; }
summary { cursor: pointer; font-weight: 850; font-size: 18px; }
footer { padding: 54px 0 70px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; border-radius: 26px; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .hero, .section-heading, .comparison, .pricing { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-panel { transform: none; }
  .metrics, .quote-grid, .actions { flex-direction: column; align-items: stretch; }
  .three, .workflow, .features { grid-template-columns: 1fr; }
  .metric { width: 100%; }
  h1 { font-size: 44px; }
}

/* Product console */
.auth-page, .console-page { background: #eef4fb; }
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 14%, rgba(19, 200, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 78% 12%, rgba(17, 93, 246, 0.24), transparent 32rem),
    #eef4fb;
}
.login-brand { position: fixed; left: 28px; top: 28px; }
.login-card {
  width: min(620px, 100%);
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: clamp(36px, 6vw, 64px); }
.login-card p { color: var(--muted); line-height: 1.7; font-size: 18px; }
.login-card .button { margin: 10px 10px 10px 0; }
.login-card small { display: block; margin-top: 18px; color: var(--muted); line-height: 1.6; }
.console-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background:
    radial-gradient(circle at 80% -10%, rgba(19, 200, 255, 0.18), transparent 30rem),
    linear-gradient(135deg, #f7fbff, #eaf2fb);
}
.console-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  color: #d9e7ff;
  background: linear-gradient(180deg, #061b3a, #092a5e);
}
.console-sidebar .brand { color: #fff; margin-bottom: 34px; }
.console-nav { display: grid; gap: 8px; }
.console-nav a {
  padding: 13px 14px;
  border-radius: 15px;
  color: rgba(255,255,255,0.72);
}
.console-nav a.active, .console-nav a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.sidebar-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
}
.sidebar-card strong, .sidebar-card span { display: block; }
.sidebar-card span { margin-top: 8px; color: rgba(255,255,255,0.66); font-size: 13px; }
.console-main { padding: 28px; }
.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.console-topbar h1 { margin-bottom: 0; font-size: clamp(34px, 4vw, 56px); }
.eyebrow {
  margin-bottom: 8px;
  color: #0d56d9;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.console-actions { display: flex; align-items: center; gap: 10px; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--deep);
  font-weight: 900;
}
.console-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.console-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.console-grid.two { grid-template-columns: 1.2fr 0.8fr; }
.console-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 18px 50px rgba(8, 37, 84, 0.08);
}
.metric-card strong { display: block; font-size: 42px; color: var(--blue); letter-spacing: -0.05em; }
.metric-card span { color: var(--muted); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.card-title h2 { font-size: 26px; letter-spacing: -0.04em; }
.console-table { border-radius: 18px; }
.console-table table { background: #fff; }
.console-table a { color: var(--blue); font-weight: 850; }
.status-pill, .risk-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 12px;
}
.status-pill.ready { color: #066045; background: #dffbed; }
.status-pill.parsing { color: #854d0e; background: #fff4cc; }
.status-pill.waiting { color: #1d4ed8; background: #dbeafe; }
.status-pill.draft { color: #475569; background: #e2e8f0; }
.risk-badge.low { color: #066045; background: #dffbed; }
.risk-badge.medium { color: #854d0e; background: #fff4cc; }
.risk-badge.high { color: #991b1b; background: #fee2e2; }
.recommendation-panel {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(226,246,255,0.86)),
    radial-gradient(circle at 0% 0%, rgba(19,200,255,0.2), transparent 16rem);
}
.recommendation-panel p { color: var(--muted); line-height: 1.75; }
.activity-list, .team-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.activity-list li, .team-list article {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(246,251,255,0.8);
}
.activity-list span, .team-list span { color: var(--muted); }
.form-card { max-width: 960px; }
.rfq-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rfq-form label { display: grid; gap: 8px; color: #19324d; font-weight: 850; }
.rfq-form input, .rfq-form select, .rfq-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  background: #fff;
}
.rfq-form textarea { min-height: 110px; resize: vertical; }
.rfq-form .wide { grid-column: 1 / -1; }
.upload-zone {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1.5px dashed rgba(17, 93, 246, 0.34);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(17, 93, 246, 0.04);
}
.upload-zone strong { color: var(--ink); }
.detail-list { display: grid; gap: 10px; margin: 22px 0; }
.detail-list span { padding: 10px 12px; border-radius: 12px; background: rgba(17,93,246,0.06); color: #29435e; }
.comparison-board { display: grid; gap: 18px; }

@media (max-width: 980px) {
  .console-shell { grid-template-columns: 1fr; }
  .console-sidebar { position: relative; height: auto; }
  .sidebar-card { position: relative; left: auto; right: auto; bottom: auto; margin-top: 18px; }
  .console-grid.four, .console-grid.two, .rfq-form { grid-template-columns: 1fr; }
  .console-topbar { align-items: flex-start; flex-direction: column; }
  .console-main { padding: 18px; }
}
.inline-form { display: inline-flex; margin: 0; }
.inline-form button { border: 0; cursor: pointer; }
.rfq-form button.button { border: 0; cursor: pointer; font: inherit; }
.inline-form { display: inline-flex; margin: 0; }
.inline-form button { border: 0; cursor: pointer; }
.rfq-form button.button { border: 0; cursor: pointer; font: inherit; }
.decision-note {
  padding: 12px 14px;
  border-radius: 14px;
  color: #075985 !important;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.24);
}
.audit-table code {
  display: inline-block;
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
  font-size: 12px;
}
.report-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-card span {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.report-card h3 { margin: 12px 0 20px; }
@media (max-width: 980px) { .report-grid.three { grid-template-columns: 1fr; } }
