/* SSAT Landing — dark cyan theme */
:root {
  --bg: #020504;
  --surface: #090c19;
  --surface-strong: #0c1125;
  --surface-soft: #0b0e18;
  --border: rgba(151, 166, 206, 0.18);
  --border-strong: rgba(151, 166, 206, 0.28);
  --text: #f4f6fb;
  --text-soft: #a3a9bc;
  --text-muted: #737b91;
  --cyan: #16c5e8;
  --cyan-soft: #4ee7ef;
  --ok: #34d399;
  --container: 1180px;
  --header-height: 72px;
  --radius: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(2, 5, 4, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(151, 166, 206, 0.1);
}
.header-inner {
  max-width: var(--container); margin: 0 auto;
  height: var(--header-height); padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-soft));
  box-shadow: 0 0 18px rgba(22, 197, 232, 0.35);
}
.brand-name { font-weight: 700; font-size: 20px; }
.desktop-nav { display: flex; gap: 36px; }
.desktop-nav a { color: var(--text-soft); font-size: 15px; transition: color 0.2s; }
.desktop-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.login-link { color: var(--text-soft); font-size: 15px; transition: color 0.2s; }
.login-link:hover { color: var(--text); }

.user-chip { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--surface-strong); border: 1px solid var(--border-strong);
  color: var(--cyan-soft); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.user-chip span:nth-child(2) { font-size: 14px; color: var(--text); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-signout { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.user-signout:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 500;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.button-primary { background: var(--cyan); color: #041318; font-weight: 600; }
.button-primary:hover { box-shadow: 0 6px 24px rgba(22, 197, 232, 0.35); transform: translateY(-1px); }
.button-secondary { background: var(--surface-strong); border: 1px solid var(--border-strong); color: var(--text); }
.button-secondary:hover { border-color: var(--cyan); }
.button-small { padding: 10px 20px; border-radius: 10px; font-size: 14px; }
.button-block { width: 100%; }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 24px 48px;
  background:
    radial-gradient(720px 420px at 50% -60px, rgba(22, 197, 232, 0.12), transparent 70%),
    var(--bg);
}
.hero-inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.eyebrow, .section-eyebrow {
  display: inline-flex; padding: 7px 16px; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--border-strong);
  color: var(--cyan-soft); font-size: 13px; letter-spacing: 0.06em;
}
.section-eyebrow { background: none; border: none; padding: 0; color: var(--cyan); letter-spacing: 0.14em; font-weight: 600; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 700; letter-spacing: 0.01em; }
.hero-description { color: var(--text-soft); font-size: 18px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-bullets { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; justify-content: center; }
.hero-bullets li { color: var(--text-soft); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hero-bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* ---------- Console card ---------- */
.hero-visual { width: 100%; display: flex; justify-content: center; }
.console-card, .code-card {
  width: 100%; max-width: 1000px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.console-topbar { display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(151, 166, 206, 0.28); }
.req-label { margin-left: 10px; color: var(--cyan); font-size: 12px; letter-spacing: 0.12em; font-weight: 600; }
.req-path { margin-left: auto; color: var(--text-muted); font-size: 13px; }
.code-area, .code-card { background: var(--surface-soft); }
.code-card { gap: 8px; }
.code-area {
  border-radius: 12px; padding: 20px 24px; gap: 8px;
  display: flex; flex-direction: column;
}
.code-line { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--text-soft); white-space: nowrap; overflow-x: auto; }
.code-muted { color: var(--text-muted); }
.code-cyan { color: var(--cyan-soft); }
.code-ok { color: var(--ok); font-size: 13px; }
.model-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; color: var(--text-soft);
  background: var(--surface-strong); border: 1px solid var(--border);
}
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(52, 211, 153, 0.7); }

/* ---------- Sections ---------- */
.section { padding: 90px 24px; max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 44px; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
.section-head p { color: var(--text-soft); font-size: 16px; max-width: 640px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(22, 197, 232, 0.45); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.badge {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-strong); border: 1px solid var(--border-strong);
  color: var(--cyan); font-weight: 700; font-size: 18px;
}
.tag { color: var(--text-muted); font-size: 11px; letter-spacing: 0.12em; font-weight: 600; }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { color: var(--text-soft); font-size: 14px; }
.card .num { color: var(--cyan); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; }

/* ---------- Quickstart ---------- */
.quickstart { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; width: 100%; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-strong); border: 1px solid var(--cyan);
  color: var(--cyan-soft); font-size: 14px; font-weight: 600;
}
.steps-note { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.code-card { max-width: none; padding: 24px; }
.code-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.code-card-head span { color: var(--text-muted); font-size: 13px; }
.copy-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 12px; color: var(--text-soft);
  background: var(--surface-strong); border: 1px solid var(--border-strong); transition: color 0.2s, border-color 0.2s;
}
.copy-btn:hover { color: var(--cyan-soft); border-color: var(--cyan); }

/* ---------- Dashboard ---------- */
.dashboard .dash-card {
  width: 100%; max-width: 640px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.dash-row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(151, 166, 206, 0.1); font-size: 14px; }
.dash-label { color: var(--text-muted); }
.dashboard .button-secondary { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.faq-item h4 { font-size: 16px; font-weight: 600; }
.faq-item p { color: var(--text-soft); font-size: 14px; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 100px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  background: radial-gradient(680px 380px at 50% 100%, rgba(22, 197, 232, 0.1), transparent 70%), var(--bg);
}
.final-cta h2 { font-size: clamp(30px, 3.8vw, 40px); font-weight: 700; }
.final-cta p { color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(151, 166, 206, 0.1); background: #05080f; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 40px 24px 48px; display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-top .brand-name { font-size: 18px; }
.footer-tagline { color: var(--text-muted); font-size: 13px; margin-left: 6px; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { color: var(--text-soft); font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-muted); font-size: 13px; }

/* ---------- Auth modal ---------- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(1, 3, 2, 0.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-overlay[hidden] { display: none; }
.auth-modal {
  position: relative; width: 100%; max-width: 420px;
  background: var(--surface-strong); border: 1px solid var(--border-strong);
  border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
}
.auth-close { position: absolute; top: 16px; right: 20px; font-size: 26px; color: var(--text-muted); line-height: 1; }
.auth-close:hover { color: var(--text); }
.auth-head { display: flex; flex-direction: column; gap: 8px; }
.auth-head .brand-mark { width: 32px; height: 32px; }
.auth-head h3 { font-size: 21px; font-weight: 700; }
.auth-head p { color: var(--text-soft); font-size: 14px; }
.auth-tabs { display: flex; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.auth-tab { flex: 1; padding: 9px 0; border-radius: 9px; font-size: 14px; color: var(--text-soft); transition: background 0.2s, color 0.2s; }
.auth-tab.active { background: var(--surface-strong); color: var(--text); border: 1px solid var(--border-strong); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; color: var(--text-soft); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-soft); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 15px; outline: none; transition: border-color 0.2s;
}
.field input:focus { border-color: var(--cyan); }
.field input::placeholder { color: var(--text-muted); }
.field-error { color: #f87171; font-size: 12.5px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.send-btn {
  flex: none; padding: 0 18px; border-radius: 12px; font-size: 14px;
  background: var(--surface-strong); border: 1px solid var(--cyan); color: var(--cyan-soft);
  transition: opacity 0.2s;
}
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-tip { color: var(--ok); font-size: 13px; }
.auth-error { color: #f87171; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .quickstart { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 36px; }
  .req-path { display: none; }
  .status { margin-left: 0; }
}
