/* SpeedAI public preview — official 0.2.26 + cyan theme, 2026-12-01
   Visual tokens taken from the 11-24 cyan-public.css palette.
   New layout is original; not copied from trans86.com. */

:root {
  --surface-0: #ffffff;
  --surface-1: #f8fafb;
  --surface-2: #eff3f6;
  --surface-3: #e1e8ed;
  --accent-primary: #00aeef;
  --accent-hover: #0095d0;
  --accent-muted: #7fcdee;
  --accent-soft: rgba(0, 174, 239, 0.1);
  --accent-glow: rgba(0, 174, 239, 0.22);
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --radius-pill: 999px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --wrap: 1160px;
  --header-offset: 7.25rem;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 42, 67, 0.08);
  --shadow-cyan: 0 10px 28px rgba(0, 174, 239, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--surface-0);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
h1, h2, h3, p { margin: 0; }

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
  background: #0b1a28;
  color: #d7e6ef;
  font-size: 0.8125rem;
}
.preview-banner b {
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.display-xl {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.display-lg {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.body-lg { font-size: clamp(1.0625rem, 1.7vw, 1.2rem); line-height: 1.75; }
.body-md { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }

.highlight {
  font-weight: 800;
  background: linear-gradient(90deg, #00aeef 0%, #39d9e7 48%, #3875f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 2.15rem;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-3);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.7rem 0;
}
.logo { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.logo-mark { width: 36px; height: 36px; border-radius: 0.55rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.02em; }
.logo-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.nav { display: flex; justify-content: center; gap: 0.25rem; }
.nav-link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
}
.nav-link:hover { color: var(--text-primary); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle {
  display: none;
  border: 1px solid var(--surface-3);
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent-primary); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-cyan); }
.btn-secondary { background: transparent; color: var(--accent-primary); border-color: var(--accent-primary); }
.btn-secondary:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(0, 174, 239, 0.14), transparent 60%),
    radial-gradient(700px 360px at 8% 100%, rgba(56, 117, 246, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-1) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.hero-title { margin-bottom: 1.1rem; }
.hero-desc { color: var(--text-secondary); max-width: 38rem; margin-bottom: 1.4rem; }
.checks { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.75rem; }
.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
}
.check svg { flex-shrink: 0; color: var(--accent-primary); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Product sketch */
.sketch {
  background: #fff;
  border: 1px solid var(--surface-3);
  border-radius: 1.35rem;
  box-shadow: var(--shadow-md), 0 0 0 6px rgba(0, 174, 239, 0.04);
  overflow: hidden;
}
.sketch-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  background: var(--surface-1);
  border-bottom: 1px solid var(--surface-3);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d5dee6; }
.dot:nth-child(1) { background: #ff6b6b; }
.dot:nth-child(2) { background: #ffd166; }
.dot:nth-child(3) { background: #06d6a0; }
.sketch-body { padding: 1.25rem 1.3rem 1.4rem; display: grid; gap: 1rem; }
.sketch-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.sketch-url, .sketch-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--surface-3);
  border-radius: 0.8rem;
  background: var(--surface-1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}
.sketch-key code, .sketch-url code { color: var(--text-primary); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 650;
}
.sketch-code {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  background: #0b1a28;
  color: #d7eef7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  word-break: normal;
  overflow-wrap: normal;
}
.sketch-code .cmt { color: #7fcdee; }
.sketch-code .key { color: #9be7ff; }

/* Ticker */
.carousel {
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--surface-1);
  border-block: 1px solid var(--surface-3);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.track:hover { animation-play-state: paused; }
.track-item {
  flex: 0 0 auto;
  padding: 0 2.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  opacity: 0.72;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--surface-1); }
.section[id] { scroll-margin-top: var(--header-offset); }
.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.7rem;
}
.section-header { max-width: 40rem; margin-bottom: 2.4rem; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
.about-copy { font-size: 1.0625rem; color: var(--text-secondary); }
.about-copy p + p { margin-top: 1rem; }
.fact-list { display: grid; gap: 0.9rem; }
.fact {
  background: #fff;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}
.fact strong { display: block; margin-bottom: 0.25rem; }
.fact span { color: var(--text-secondary); font-size: 0.9375rem; }

/* Pricing */
.price-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.75rem;
  align-items: start;
}
.table-wrap {
  background: #fff;
  border: 1px solid var(--surface-3);
  border-radius: 1.2rem;
  overflow: auto;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 28rem; }
th, td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--surface-3);
  vertical-align: top;
}
th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-1);
}
tr:last-child td { border-bottom: 0; }
.col-us {
  background: linear-gradient(180deg, rgba(0, 174, 239, 0.08), rgba(0, 174, 239, 0.03));
  font-weight: 600;
  color: #0a5f82;
}
th.col-us { color: var(--accent-hover); background: rgba(0, 174, 239, 0.12); }

.price-card {
  background: #fff;
  border: 2px solid var(--accent-primary);
  border-radius: 1.3rem;
  padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-cyan);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -11px;
  left: 1.25rem;
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
}
.price-name { font-weight: 650; margin-top: 0.35rem; }
.price-value {
  font-size: 1.85rem;
  font-weight: 750;
  color: var(--accent-primary);
  letter-spacing: -0.03em;
  margin: 0.3rem 0 0.9rem;
}
.price-list { list-style: none; margin: 0 0 1.15rem; padding: 0; }
.price-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.price-list svg { flex-shrink: 0; color: var(--accent-primary); margin-top: 0.15rem; }
.price-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }

/* Models */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.model-card {
  background: #fff;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.model-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.model-mark {
  width: 44px;
  height: 44px;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.model-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.model-card p { color: var(--text-secondary); font-size: 0.9rem; }
.model-card .status {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-hover);
}

/* Difference */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.diff-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.diff-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-primary);
}
.diff-item h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.diff-item p { color: var(--text-secondary); font-size: 0.92rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--surface-3);
  border-radius: 1.2rem;
  padding: 1.5rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* Bottom CTA */
.bottom-cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  text-align: center;
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(0, 174, 239, 0.18), transparent 70%),
    linear-gradient(135deg, var(--surface-2), var(--surface-1));
}
.bottom-cta h2 { margin-bottom: 0.75rem; }
.bottom-cta p {
  max-width: 38rem;
  margin: 0 auto 1.6rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--surface-3);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-desc { color: var(--text-muted); font-size: 0.9375rem; margin-top: 0.8rem; max-width: 28rem; }
.footer-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.7rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--accent-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid var(--surface-3);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Auth */
.auth-main { padding: 3rem 0 4.5rem; background: linear-gradient(180deg, var(--surface-1), #fff 55%); }
.auth-wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.5rem;
  align-items: start;
}
.auth-aside h1 { margin-bottom: 0.7rem; }
.auth-steps { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.auth-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--surface-3);
  border-radius: 1rem;
}
.auth-step .num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}
.auth-step strong { display: block; }
.auth-step span { color: var(--text-muted); font-size: 0.85rem; }
.auth-card {
  background: #fff;
  border: 1px solid var(--surface-3);
  border-radius: 1.4rem;
  padding: 2rem 1.8rem 1.6rem;
  box-shadow: var(--shadow-md);
}
.auth-card h2 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.auth-lead { color: var(--text-secondary); margin-bottom: 1.3rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input {
  width: 100%;
  border: 1px solid var(--surface-3);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.975rem;
  background: #fff;
  color: var(--text-primary);
}
.field input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.2rem; }
.pw-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
}
.hint, .auth-note { font-size: 0.8rem; color: var(--text-muted); margin: 0.35rem 0 0; }
.auth-note { margin: 0 0 1rem; }
.toast {
  display: none;
  margin-top: 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  background: var(--accent-soft);
  color: #0a5f82;
  font-size: 0.85rem;
}
.toast.is-on { display: block; }
.auth-foot { text-align: center; margin-top: 1.1rem; color: var(--text-secondary); font-size: 0.925rem; }
.auth-foot a { color: var(--accent-primary); font-weight: 650; margin-left: 0.25rem; }
.forgot {
  display: inline-block;
  margin: -0.35rem 0 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--surface-3);
  padding: 0.6rem 0 0.85rem;
}
.mobile-nav.is-open { display: grid; gap: 0.2rem; }
.mobile-nav a {
  padding: 0.55rem 0.2rem;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .price-layout,
  .auth-wrap { grid-template-columns: 1fr; }
  .model-grid, .diff-grid, .steps { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 3rem; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: auto 1fr; }
  .header-actions { justify-self: end; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .model-grid, .diff-grid, .steps { grid-template-columns: 1fr; }
  .btn-ghost.login-desk { display: none; }
  .display-xl { font-size: 2.15rem; }
}
