@import url('/css/tokens.css');

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.6;
  background: var(--surface-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* —— Navbar —— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
}

.navbar .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: center;
  gap: 4px 14px;
  min-width: 0;
}

.nav-link {
  position: relative;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  font-weight: 550;
  text-decoration: none;
  padding: 6px 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link.active { color: var(--brand); }

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -18px;
  height: 2px;
  background: var(--brand);
}

.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

/* —— Buttons —— */
.btn {
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.btn-primary {
  background: var(--brand);
  color: var(--ink-inverse);
  border-color: var(--brand);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--ink-inverse);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-large { padding: 12px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

.btn-secondary {
  background: var(--ink-secondary);
  color: white;
  border-color: var(--ink-secondary);
}
.btn-secondary:disabled {
  background: var(--border);
  border-color: var(--border);
  color: var(--ink-faint);
  cursor: not-allowed;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.05;
  margin-bottom: 12px;
  animation: riseIn 0.55s var(--ease-out);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 18px;
  animation: riseIn 0.6s var(--ease-out);
}

.hero-accent { color: var(--brand); }

.hero-description {
  font-size: 1.08rem;
  color: var(--ink-secondary);
  max-width: 36ch;
  margin-bottom: 28px;
  animation: riseIn 0.65s var(--ease-out);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: riseIn 0.7s var(--ease-out);
}

.hero-visual { animation: riseIn 0.7s var(--ease-out); }

.route-panel {
  height: min(460px, 58vw);
  min-height: 360px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.route-panel-head,
.route-panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-3);
}

.route-panel-foot {
  border-bottom: none;
  border-top: 1px solid var(--border-light);
}

.route-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(15, 122, 58, 0.18);
}

.route-body {
  position: relative;
  flex: 1;
  background:
    radial-gradient(ellipse 80% 55% at 20% 10%, rgba(22, 100, 255, 0.1), transparent 55%),
    linear-gradient(160deg, #F8FBFF, #EEF3FA 55%, #F7F9FC);
}

.wordcloud-stage {
  position: absolute;
  inset: 16px 12px 16px;
}

.wordcloud-stage .wc-word {
  position: absolute;
  white-space: nowrap;
  font-weight: 650;
  letter-spacing: 0.01em;
  user-select: none;
  opacity: 0;
  transform: translateY(8px);
  animation: wcWordIn 0.7s var(--ease-out) forwards, wcWordFloat 5.5s ease-in-out infinite;
  cursor: default;
}

.wordcloud-stage .wc-word.size-xl { font-size: 1.4rem; font-weight: 750; color: var(--brand-deep); }
.wordcloud-stage .wc-word.size-lg { font-size: 1.1rem; color: #1A5FE0; }
.wordcloud-stage .wc-word.size-md { font-size: 0.95rem; color: #3D6FD6; }
.wordcloud-stage .wc-word.size-sm { font-size: 0.78rem; color: #4A5F82; font-weight: 550; }
.wordcloud-stage .wc-word.size-xs { font-size: 0.7rem; color: #5B6578; font-weight: 500; }

.wordcloud-stage .wc-word.vendor-openai { color: #0D5C3D; }
.wordcloud-stage .wc-word.vendor-anthropic { color: #A34B1C; }
.wordcloud-stage .wc-word.vendor-google,
.wordcloud-stage .wc-word.vendor-gemini { color: #1557B0; }
.wordcloud-stage .wc-word.vendor-qwen { color: #9A6700; }
.wordcloud-stage .wc-word.vendor-doubao { color: #1664FF; }
.wordcloud-stage .wc-word.vendor-deepseek { color: #0B5FFF; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wcWordIn { to { opacity: 1; transform: translateY(0); } }
@keyframes wcWordFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

/* —— Promo strip —— */
.promo-strip {
  padding: 18px 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.promo-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--brand-softer);
  color: var(--ink-secondary);
  font-size: 0.9rem;
}
.promo-chip iconify-icon { color: var(--brand); }
.promo-chip strong { color: var(--ink); font-weight: 700; }

/* —— Sections —— */
.promise, .models, .steps, .features {
  padding: clamp(56px, 8vw, 88px) 0;
}

.promise, .steps, .features { background: var(--surface-2); }
.models { background: transparent; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-lead {
  text-align: center;
  color: var(--ink-secondary);
  max-width: 48ch;
  margin: 0 auto 40px;
  font-size: 1.02rem;
}

.section-cta { text-align: center; margin-top: 32px; }

.promise-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
  max-width: 920px;
  margin: 0 auto;
}

.promise-item {
  display: flex;
  gap: 16px;
  padding: 20px 8px;
  border-top: 1px solid var(--border);
}

.promise-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promise-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.promise-item p { color: var(--ink-secondary); font-size: 0.95rem; }

.models-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.model-tile {
  padding: 22px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.model-tile:hover {
  border-color: rgba(22, 100, 255, 0.35);
  box-shadow: var(--shadow-sm);
}
.model-tile h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.model-tile p { color: var(--ink-muted); font-size: 0.9rem; }

.steps-rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: none;
}

.step-item {
  padding: 28px 22px;
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.step-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 14px;
}

.step-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-item p { color: var(--ink-secondary); }

/* legacy feature/model/step cards for other pages */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-card, .model-card {
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.feature-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 14px;
  font-size: 0;
}
.feature-icon iconify-icon { color: inherit; }
.feature-card h3, .model-card h4 { margin-bottom: 8px; font-weight: 700; }
.feature-card p, .model-card li { color: var(--ink-secondary); }
.model-card ul { list-style: none; }
.model-card li { padding: 6px 0 6px 16px; position: relative; }
.model-card li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.steps-grid {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: stretch;
}
.step-card {
  flex: 1; min-width: 180px; max-width: 280px;
  padding: 28px 20px; text-align: center;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.step-number {
  width: 48px; height: 48px; margin: 0 auto 14px;
  border-radius: var(--radius-md);
  background: var(--brand); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.step-arrow { color: var(--brand); font-size: 1.4rem; align-self: center; }
.text-center { text-align: center; }

/* —— Footer —— */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}
.footer-section h4 {
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { color: rgba(255, 255, 255, 0.65); }
.footer-section a:hover { color: #fff; }
.footer-section p { margin-bottom: 8px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* —— Forms / modal / auth shared —— */
.modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(11, 18, 32, 0.45);
  backdrop-filter: blur(4px);
}
.modal.active { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-content {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: min(420px, 100%);
  position: relative;
}
.modal-close {
  position: absolute; right: 14px; top: 10px;
  font-size: 1.4rem; cursor: pointer; color: var(--ink-muted);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.modal-footer { margin-top: 16px; text-align: center; color: var(--ink-muted); font-size: 0.9rem; }

/* Auth pages polish hooks */
.auth-container {
  display: flex;
  max-width: 1040px;
  width: 100%;
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.auth-left {
  flex: 1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255,255,255,0.18), transparent 50%),
    linear-gradient(145deg, #1664FF 0%, #0B3FAE 100%);
  padding: 56px 44px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-left h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.auth-right { flex: 1; padding: 48px 40px; }

/* Pricing / docs common */
.page-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.page-header p { color: var(--ink-secondary); margin-top: 8px; }

.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.data-table th,
table.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.92rem;
}
table.data-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: var(--surface-3);
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 12px;
    z-index: 1001;
    box-shadow: var(--shadow-sm);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 8px; font-size: 0.95rem; }
  .nav-link.active::after { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .route-panel { min-height: 300px; height: 340px; }
  .promise-list, .models-rail, .steps-rail { grid-template-columns: 1fr; }
  .auth-container { flex-direction: column; }
  .auth-left { padding: 36px 28px; }
}

@media (max-width: 640px) {
  .nav-actions .btn-outline { display: none; }
  .brand-lockup { font-size: 2rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
}
/* ========== Home impact hero ========== */
.home-page .navbar-on-hero {
  background: transparent;
  border-bottom-color: transparent;
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
}
.home-page .navbar-on-hero .brand-text,
.home-page .navbar-on-hero .nav-link {
  color: rgba(255, 255, 255, 0.88);
}
.home-page .navbar-on-hero .nav-link:hover,
.home-page .navbar-on-hero .nav-link.active {
  color: #fff;
}
.home-page .navbar-on-hero .nav-link.active::after {
  background: #FFB020;
}
.home-page .navbar-on-hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}
.home-page .navbar-on-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.home-page .navbar-on-hero .btn-primary {
  background: #FFB020;
  border-color: #FFB020;
  color: #0B1220;
}
.home-page .navbar-on-hero .btn-primary:hover {
  background: #FFC14D;
  border-color: #FFC14D;
  color: #0B1220;
}
.home-page .navbar-on-hero .brand-mark {
  background: linear-gradient(135deg, #5B9AFF, #FFB020);
}
.home-page .navbar-on-hero .nav-toggle {
  color: #fff;
}
@media (max-width: 1100px) {
  .home-page .navbar-on-hero .nav-menu {
    background: #04122E;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(4, 18, 46, 0.45);
  }
  .home-page .navbar-on-hero .nav-link {
    color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.home-page .hero-impact {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-height) + 36px) 0 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: none;
  color: #F5F8FF;
  background:
    radial-gradient(ellipse 90% 70% at 12% 18%, rgba(255, 176, 32, 0.22), transparent 50%),
    radial-gradient(ellipse 70% 60% at 88% 12%, rgba(56, 189, 248, 0.18), transparent 45%),
    linear-gradient(145deg, #04122E 0%, #0B3FAE 42%, #1664FF 78%, #0E52D9 100%);
  overflow: hidden;
}
.hero-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: beamDrift 14s var(--ease-out) infinite alternate;
}
.hero-beam-a {
  width: 42vw;
  height: 42vw;
  left: -8%;
  top: -10%;
  background: rgba(255, 176, 32, 0.35);
}
.hero-beam-b {
  width: 48vw;
  height: 48vw;
  right: -12%;
  top: 8%;
  background: rgba(56, 189, 248, 0.28);
  animation-delay: -4s;
}
.hero-beam-c {
  width: 36vw;
  height: 36vw;
  left: 38%;
  bottom: -18%;
  background: rgba(22, 100, 255, 0.45);
  animation-delay: -7s;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}
@keyframes beamDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, -4%, 0) scale(1.08); }
}

.home-page .hero-impact .hero-content {
  position: relative;
  z-index: 1;
  gap: clamp(28px, 5vw, 56px);
}
.home-page .brand-lockup {
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: 0.95;
  margin-bottom: 18px;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(4, 18, 46, 0.35);
}
.home-page .brand-api {
  display: block;
  font-size: 0.92em;
  letter-spacing: -0.04em;
  color: #FFB020;
  margin-top: 2px;
}
.home-page .hero-title {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
}
.home-page .hero-description {
  max-width: 36ch;
  margin-bottom: 28px;
  color: rgba(232, 240, 255, 0.78);
  font-size: 1.05rem;
}
.home-page .hero-actions {
  flex-wrap: wrap;
  margin-bottom: 22px;
  gap: 14px;
}
.btn-hero-primary {
  background: #FFB020;
  border: 1px solid #FFB020;
  color: #0B1220;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(255, 176, 32, 0.28);
}
.btn-hero-primary:hover {
  background: #FFC14D;
  border-color: #FFC14D;
  color: #0B1220;
  transform: translateY(-1px);
}
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(232, 240, 255, 0.7);
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-proof span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

.hero-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: stretch;
  animation: riseIn 0.75s var(--ease-out);
}
.gateway-board {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(4, 18, 46, 0.45);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px rgba(4, 18, 46, 0.35);
}
.gb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}
.gb-head code {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 176, 32, 0.16);
  color: #FFB020;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 176, 32, 0.35);
}
.gb-flow {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 10px;
  align-items: center;
}
.gb-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 18, 32, 0.45);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}
.gb-client {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
}
.gb-hub strong {
  font-size: 1.05rem;
  color: #FFB020;
}
.gb-hub span {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(232, 240, 255, 0.65);
}
.gb-pipe {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), #38BDF8, rgba(255, 176, 32, 0.6));
  border-radius: 2px;
  overflow: visible;
}
.gb-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #FFB020;
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.25);
  animation: pipePulse 1.8s linear infinite;
}
@keyframes pipePulse {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}
.gb-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gb-chip {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  animation: chipIn 0.55s var(--ease-out) both;
}
.gb-chip-a { background: rgba(22, 100, 255, 0.28); color: #B8D4FF; border-color: rgba(91, 154, 255, 0.45); animation-delay: 0.05s; }
.gb-chip-b { background: rgba(255, 176, 32, 0.2); color: #FFE2A3; border-color: rgba(255, 176, 32, 0.45); animation-delay: 0.12s; }
.gb-chip-c { background: rgba(56, 189, 248, 0.2); color: #BAE6FD; border-color: rgba(56, 189, 248, 0.4); animation-delay: 0.19s; }
.gb-chip-d { background: rgba(34, 197, 94, 0.18); color: #BBF7D0; border-color: rgba(34, 197, 94, 0.35); animation-delay: 0.26s; }
.gb-chip-e { background: rgba(249, 115, 22, 0.18); color: #FED7AA; border-color: rgba(249, 115, 22, 0.35); animation-delay: 0.33s; }
.gb-chip-f { background: rgba(14, 165, 233, 0.18); color: #A5F3FC; border-color: rgba(14, 165, 233, 0.4); animation-delay: 0.4s; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.gb-code {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(4, 18, 46, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(232, 240, 255, 0.85);
  overflow: auto;
}
.gb-code .tok-k { color: #38BDF8; }
.gb-code .tok-h { color: rgba(232, 240, 255, 0.55); }
.gb-code .tok-s { color: #FFB020; }

.promo-rail {
  padding: 0;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.promo-rail-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.promo-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  color: var(--ink-secondary);
}
.promo-banner iconify-icon { flex-shrink: 0; margin-top: 2px; }
.promo-banner div { display: flex; flex-direction: column; gap: 4px; }
.promo-banner strong { font-size: 1rem; font-weight: 700; color: var(--ink); }
.promo-a { border-top: 3px solid var(--success); }
.promo-a iconify-icon { color: var(--success); }
.promo-b { border-top: 3px solid var(--warning); }
.promo-b iconify-icon { color: var(--warning); }
.promo-c { border-top: 3px solid var(--brand); }
.promo-c iconify-icon { color: var(--brand); }

.home-page .scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.75;
  z-index: 2;
}
.home-page .scroll-mouse {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #FFB020;
  animation: scrollPulse 1.6s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.compat, .why, .teams, .caps, .mods, .quickstart, .faq {
  padding: clamp(56px, 8vw, 96px) 0;
}
.compat { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why { background: transparent; }
.teams { background: var(--surface-2); }
.caps { background: transparent; }
.mods { background: var(--surface-2); }
.quickstart { background: transparent; }
.faq { background: var(--surface-2); }

.section-title.left, .section-lead.left { text-align: left; margin-left: 0; }
.section-lead.left { margin-bottom: 28px; }

.compat-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.compat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.compat-chip:hover {
  border-color: rgba(22,100,255,0.35);
  color: var(--brand);
  transform: translateY(-1px);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.why-card {
  padding: 22px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(22,100,255,0.3);
}
.why-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 14px;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.why-card p { color: var(--ink-secondary); font-size: 0.92rem; line-height: 1.55; }

.teams-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}
.check-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.check-list iconify-icon { color: var(--brand); margin-top: 2px; flex-shrink: 0; }
.check-list strong { display: block; margin-bottom: 4px; }
.check-list span { color: var(--ink-secondary); font-size: 0.92rem; }
.teams-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.teams-stat {
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #fff, #F5F8FF);
  box-shadow: var(--shadow-xs);
}
.teams-stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.teams-stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.caps-grid, .mods-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cap-card, .mod-card {
  padding: 22px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.cap-card:hover, .mod-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22,100,255,0.35);
}
.cap-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 10px;
}
.cap-card h3, .mod-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cap-card p, .mod-card p { color: var(--ink-secondary); font-size: 0.9rem; line-height: 1.55; }
.mod-card iconify-icon { color: var(--brand); margin-bottom: 12px; }

.qs-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.qs-steps li {
  display: flex;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.qs-steps span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.qs-steps h3 { font-size: 1rem; margin-bottom: 4px; }
.qs-steps p { color: var(--ink-secondary); font-size: 0.88rem; }

.code-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0B1220;
  box-shadow: var(--shadow-md);
}
.code-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-panel-head .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.code-panel pre {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
  color: #E8EEF8;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
}

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  color: var(--ink);
}
.faq-q::after {
  content: '+';
  float: right;
  color: var(--brand);
  font-weight: 700;
}
.faq-item.open .faq-q::after { content: '–'; }
.faq-a {
  display: none;
  padding: 0 16px 16px;
  color: var(--ink-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }
.faq-a code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--brand-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

.final-cta {
  padding: 72px 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(22,100,255,0.35), transparent 55%),
    linear-gradient(160deg, #0E52D9, #0B3FAE 55%, #0B1220);
  color: #fff;
}
.final-cta-inner { text-align: center; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.final-cta p {
  opacity: 0.88;
  margin-bottom: 24px;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .btn-outline.light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.final-cta .btn-outline.light:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.final-cta .hero-actions { justify-content: center; }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .caps-grid, .mods-grid, .qs-steps, .teams-grid { grid-template-columns: 1fr; }
  .home-page .hero-impact {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 28px);
    padding-bottom: 56px;
  }
  .home-page .hero-stage { order: -1; min-height: 0; }
  .home-page .gb-flow { grid-template-columns: 1fr; }
  .home-page .gb-pipe {
    width: 2px;
    height: 28px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), #38BDF8, rgba(255, 176, 32, 0.6));
  }
  .home-page .gb-pulse { animation: none; left: 50%; top: 0; margin-left: -5px; }
  .promo-rail { margin-top: -20px; }
  .promo-rail-inner { grid-template-columns: 1fr; }
  .home-page .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .home-page .hero-actions .btn { flex: 1 1 calc(50% - 6px); }
  .home-page .brand-lockup { font-size: clamp(2.6rem, 14vw, 3.4rem); }
}
