/* 智能堆码 ① 官网 Demo — 加宽版式 / 多端展示 / 动效 */

:root {
  --bg: #080c18;
  --bg-elevated: #0f1629;
  --surface: #151d33;
  --surface-2: #1c2744;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.25);
  --cta: #f59e0b;
  --cta-hover: #fbbf24;
  --violet: #a5b4fc;
  --border: rgba(148, 163, 184, 0.1);
  --radius: 14px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --content-max: 1440px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* 背景大气：微网格 + 顶部光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(56, 189, 248, 0.14), transparent 55%),
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: -1;
}

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

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--cta);
  color: #0c1222;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* 全宽内容容器：左右留白随屏宽放大 */
.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: #0f172a;
}

.logo img {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
  color: #f8fafc;
  line-height: 1;
}

.brand-wordmark span {
  color: #6366f1;
}

.footer-brand .brand-wordmark,
.logo .brand-wordmark {
  color: #f8fafc;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.35rem;
  border-radius: 11px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.12s, box-shadow 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: rgba(148, 163, 184, 0.22);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #fbbf24 0%, var(--cta) 100%);
  color: #1a1206;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25), 0 8px 24px rgba(245, 158, 11, 0.2);
}

.btn-primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1rem;
  max-width: var(--content-max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.75rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.nav-mobile .btn {
  margin-top: 0.75rem;
  width: 100%;
}

@media (min-width: 900px) {
  .nav-desktop,
  .header-actions {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* ========== 统一章节标题 ========== */
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 52rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 40rem;
}

/* ========== 区块衔接：全宽色带 ========== */
.section-band {
  width: 100%;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  position: relative;
  border-top: 1px solid var(--border);
}

.section-band + .section-band {
  border-top: 1px solid transparent;
}

.section-band--tint {
  background: #0d1426;
}

.section-band--deep {
  background: #111a30;
}

/* ========== Hero ========== */
.hero-band {
  padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(4rem, 12vw, 7rem);
  position: relative;
}

.hero-band::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(90%, 900px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  animation: fade-up 0.8s var(--ease-out) both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

#hero-title {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: -0.035em;
  font-weight: 800;
  animation: fade-up 0.85s var(--ease-out) 0.06s both;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 38rem;
  line-height: 1.75;
  animation: fade-up 0.85s var(--ease-out) 0.12s both;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: fade-up 0.85s var(--ease-out) 0.18s both;
}

@media (min-width: 480px) {
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Hero 视觉 + 动效 */
.hero-visual-wrap {
  position: relative;
  animation: fade-up 1s var(--ease-out) 0.2s both;
}

.hero-visual {
  position: relative;
  aspect-ratio: 16/11;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--surface) 50%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 120px rgba(56, 189, 248, 0.06);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(56, 189, 248, 0.07), transparent 40%);
  animation: spin-slow 22s linear infinite;
}

.assembly-scene {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 10% 8%;
}

.assembly-track {
  position: absolute;
  left: 8%;
  right: 26%;
  top: 56%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.assembly-container {
  width: min(360px, 92%);
  height: min(220px, 70%);
  margin-left: auto;
  border-radius: 12px;
  position: relative;
  border: 2px solid rgba(56, 189, 248, 0.5);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(8, 12, 24, 0.4));
  box-shadow: inset 0 0 28px rgba(56, 189, 248, 0.08);
}

.cabinet-face {
  position: absolute;
  inset: 10% 6%;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 8px;
}

.cabinet-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 12%;
  height: 14%;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.2));
  border-radius: 4px;
}

.stack-guide {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 12%;
  height: 52%;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.cargo-box {
  position: absolute;
  width: 22%;
  height: 22%;
  left: -34%;
  bottom: 12%;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  animation: cargo-stack 8s var(--ease-out) infinite;
}

.box-1,
.box-4 {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}
.box-2,
.box-5 {
  background: linear-gradient(135deg, #818cf8, #4f46e5);
}
.box-3,
.box-6 {
  background: linear-gradient(135deg, #34d399, #059669);
}

.box-1 {
  --tx: 194px;
  --ty: 0;
  animation-delay: 0s;
}
.box-2 {
  --tx: 252px;
  --ty: 0;
  animation-delay: 0.7s;
}
.box-3 {
  --tx: 194px;
  --ty: -46px;
  animation-delay: 1.4s;
}
.box-4 {
  --tx: 252px;
  --ty: -46px;
  animation-delay: 2.8s;
}
.box-5 {
  --tx: 135px;
  --ty: 0;
  animation-delay: 3.5s;
}
.box-6 {
  --tx: 135px;
  --ty: -46px;
  animation-delay: 4.2s;
}

/* ========== 多端协同 ========== */
.cross-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.workflow-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.workflow-highlight {
  padding: 0.72rem 0.9rem;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 22, 41, 0.6);
  color: #dbe5f1;
  font-size: 0.86rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .workflow-highlights {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .cross-layout {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem 2rem;
  }
}

.flow-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}

@media (max-width: 1023px) {
  .flow-bridge {
    flex-direction: row;
    min-height: auto;
    padding: 0.5rem 0;
    width: 100%;
    justify-content: center;
  }
}

.sync-pipeline {
  width: 240px;
  max-width: 74vw;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.pipeline-line {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.6), rgba(245, 158, 11, 0.7));
}

.pipeline-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.14);
  animation: pipeline-run 3s ease-in-out infinite;
}

.pipeline-token {
  position: absolute;
  top: -2px;
  font-size: 0.7rem;
  font-family: ui-monospace, monospace;
  color: var(--accent);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 22, 41, 0.9);
}

@media (max-width: 1023px) {
  .sync-pipeline {
    width: min(320px, 78vw);
    min-height: 54px;
  }

  .pipeline-token {
    top: -4px;
  }
}

.device-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #121b31;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease-out), border-color 0.25s;
}

.device-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.25);
}

.device-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.device-label svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.browser-body {
  padding: 1rem 1.1rem 1.25rem;
  min-height: 200px;
}

.mock-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-row {
  height: 10px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.15);
  animation: mock-pulse 2.8s ease-in-out infinite;
}

.mock-row:nth-child(1) {
  width: 55%;
  animation-delay: 0s;
}

.mock-row:nth-child(2) {
  width: 80%;
  animation-delay: 0.2s;
}

.mock-row:nth-child(3) {
  width: 70%;
  animation-delay: 0.4s;
}

.mock-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 1rem;
}

.mock-plan {
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.06);
  position: relative;
  overflow: hidden;
}

.mock-plan:nth-child(2) {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
}

.mock-plan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: flow-shine 3s ease-in-out infinite;
}

.mock-plan span {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.phone-shell {
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #334155, #1e293b);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 320px;
}

.phone-notch {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.phone-notch span {
  width: 64px;
  height: 5px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.25);
}

.phone-content {
  padding: 1rem;
}

.phone-code {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  margin-bottom: 1rem;
  animation: pulse-soft 3s ease-in-out infinite;
}

.phone-code-alt {
  margin-top: -0.45rem;
  margin-bottom: 0.8rem;
  color: #f8fafc;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.16);
}

.phone-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.phone-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.phone-step i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--cta);
}

.phone-step.active {
  color: var(--text);
}

.phone-step.active i {
  animation: step-glow 1.6s ease-in-out infinite;
}

.phone-3d-hint {
  margin-top: 1rem;
  height: 100px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.08));
  border: 1px dashed rgba(56, 189, 248, 0.3);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  animation: float-soft 4s ease-in-out infinite;
}

.sync-steps {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sync-step {
  font-size: 0.68rem;
  padding: 0.24rem 0.48rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(15, 22, 41, 0.45);
}

.sync-step.is-current {
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.16);
}

/* ========== Features ========== */
.features-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========== Scenarios ========== */
.scenario-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.scenario-tags span {
  padding: 0.55rem 1.1rem;
  background: rgba(15, 22, 41, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.scenario-tags span:hover {
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--text);
}

/* ========== Trust ========== */
.trust-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .trust-logos {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-logos img {
  width: 100%;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(0.2);
  transition: opacity 0.25s, filter 0.25s;
}

.trust-logos a:hover img {
  opacity: 1;
  filter: grayscale(0);
}

.trust-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ========== CTA band ========== */
.cta-band {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
}

.cta-band-inner {
  position: relative;
  border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 50% -20%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  overflow: hidden;
}

.cta-band-inner::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.15), transparent 40%, rgba(245, 158, 11, 0.1));
  opacity: 0.5;
  pointer-events: none;
  animation: gradient-shift 10s ease-in-out infinite;
}

.cta-band-inner h2,
.cta-band-inner p,
.cta-band-inner .btn {
  position: relative;
  z-index: 1;
}

.cta-band-inner h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-band-inner p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem clamp(1.25rem, 4vw, 3rem);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.footer-brand:hover {
  color: #0f172a;
  text-decoration: none;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== Reveal on scroll ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > * {
  animation: fade-up 0.6s var(--ease-out) both;
}

.reveal-stagger.is-visible > *:nth-child(1) {
  animation-delay: 0.04s;
}

.reveal-stagger.is-visible > *:nth-child(2) {
  animation-delay: 0.1s;
}

.reveal-stagger.is-visible > *:nth-child(3) {
  animation-delay: 0.16s;
}

.reveal-stagger.is-visible > *:nth-child(4) {
  animation-delay: 0.22s;
}

.reveal-stagger.is-visible > *:nth-child(5) {
  animation-delay: 0.28s;
}

.reveal-stagger.is-visible > *:nth-child(6) {
  animation-delay: 0.34s;
}

/* ========== Keyframes ========== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes cargo-stack {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.92);
  }
  10% {
    opacity: 1;
  }
  45% {
    opacity: 1;
    transform: translate(230px, 0) scale(1);
  }
  65% {
    opacity: 1;
    transform: translate(var(--tx, 230px), var(--ty, 0)) scale(1);
  }
  82% {
    opacity: 1;
    transform: translate(var(--tx, 230px), var(--ty, 0)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 230px), var(--ty, 0)) scale(0.95);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

@keyframes flow-shine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes pipeline-run {
  0%,
  100% {
    transform: translateX(-104px);
  }
  50% {
    transform: translateX(104px);
  }
}

@keyframes flow-shine-h {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}

@keyframes mock-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes step-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35);
  }
  50% {
    box-shadow: 0 0 12px 2px rgba(245, 158, 11, 0.25);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.55;
  }
}

/* ========== Demo toast ========== */
.demo-toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  max-width: min(90vw, 380px);
  padding: 0.85rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.demo-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Language switch ────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-switch a.is-active {
  color: var(--accent);
  background: var(--accent-dim);
}

.lang-sep {
  color: var(--text-muted);
  opacity: 0.4;
  user-select: none;
}

/* ── Product showcase grid ──────────────────────────── */
.showcase-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.showcase-grid img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

/* ===== Pricing Section ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-cycle-toggle {
  text-align: center;
  margin-bottom: 2rem;
}

.cycle-toggle-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  background: var(--bg);
}

.cycle-toggle-btn {
  padding: 0.4rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cycle-toggle-btn:hover {
  color: var(--text);
}

.cycle-toggle-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.pricing-card--featured {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 30px var(--accent-dim);
  position: relative;
}

.pricing-card--featured::before {
  content: "";
  display: none;
}

.pricing-plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.pricing-cycle {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
  width: 100%;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.pricing-feature-label {
  color: var(--text-muted);
}

.pricing-feature-value {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: left;
}

.pricing-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.pricing-amount--free {
  color: var(--accent);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-btn {
  margin-top: auto;
  width: 100%;
}

.pricing-btn--free {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.pricing-btn--free:hover {
  background: #15803d;
  border-color: #15803d;
}
