:root {
  --bg: #07111f;
  --bg-2: #0a1628;
  --surface: rgba(17, 31, 53, 0.72);
  --surface-solid: #111f35;
  --surface-2: rgba(20, 37, 63, 0.66);
  --text: #edf4ff;
  --muted: #a3b4cb;
  --faint: #7f92ab;
  --line: rgba(151, 180, 218, 0.16);
  --line-strong: rgba(151, 180, 218, 0.28);
  --blue: #4f8cff;
  --blue-2: #8ed0ff;
  --blue-soft: rgba(79, 140, 255, 0.13);
  --green: #53d6a3;
  --header: rgba(7, 17, 31, 0.78);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --header-height: 72px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
  --code-bg: #08111f;
  --code-line: rgba(133, 170, 224, 0.16);
  --code-text: #d9e7ff;
}

html[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-2: #edf3fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.7);
  --text: #10203a;
  --muted: #5d6d84;
  --faint: #7c8ba0;
  --line: rgba(26, 49, 84, 0.11);
  --line-strong: rgba(26, 49, 84, 0.2);
  --blue: #2464e8;
  --blue-2: #1d8fe8;
  --blue-soft: rgba(36, 100, 232, 0.08);
  --green: #0b9f76;
  --header: rgba(245, 248, 253, 0.86);
  --shadow: 0 24px 70px rgba(30, 62, 110, 0.12);
  --code-bg: #0c1a2e;
  --code-line: rgba(151, 190, 245, 0.16);
  --code-text: #dbe9ff;
}

* {
  box-sizing: border-box;
}

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

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(59, 111, 255, 0.2), transparent 62%),
    radial-gradient(900px 520px at 4% 6%, rgba(124, 196, 255, 0.09), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.35s ease, color 0.35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(149, 178, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 178, 220, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(26, 49, 84, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 49, 84, 0.05) 1px, transparent 1px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: rgba(79, 140, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--header);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(40, 105, 255, 0.25);
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-badge {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 16px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-link {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: var(--text);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  padding: 0;
  width: 38px;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav > a {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: rgba(120, 174, 255, 0.28);
  background: linear-gradient(135deg, #3d7cff, #6aa9ff);
  color: #fff;
  box-shadow: 0 12px 34px rgba(49, 112, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4b88ff, #7cb5ff);
  box-shadow: 0 16px 42px rgba(49, 112, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  border-color: rgba(120, 174, 255, 0.4);
  background: var(--surface-solid);
}

.btn-sm {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 13px;
}

.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(76px, 9vw, 132px) 0 0;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
}

.aurora-a {
  width: 520px;
  height: 420px;
  top: -160px;
  right: 5%;
  background: radial-gradient(circle, rgba(57, 116, 255, 0.32), transparent 68%);
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora-b {
  width: 420px;
  height: 340px;
  top: 150px;
  left: -180px;
  background: radial-gradient(circle, rgba(124, 196, 255, 0.13), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 178, 231, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 178, 231, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 65% 25%, black 0%, transparent 68%);
}

html[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(26, 49, 84, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 49, 84, 0.055) 1px, transparent 1px);
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 48px;
  min-height: 540px;
}

.hero-grid-layout > *,
.integration-grid > * {
  min-width: 0;
}

.header-inner,
.brand {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-theme="light"] .eyebrow {
  color: var(--blue);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(83, 214, 163, 0.13);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(44px, 4.4vw, 64px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.gradient-text {
  background: linear-gradient(100deg, var(--blue-2) 0%, #6d9cff 46%, #a7c7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .gradient-text {
  background: linear-gradient(100deg, #1d5fd8 0%, #2f7df0 48%, #45a3ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 550px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.visual-glow {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 111, 255, 0.3) 0%, rgba(59, 111, 255, 0.07) 44%, transparent 70%);
  filter: blur(12px);
  animation: breathe 7s ease-in-out infinite;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(130, 174, 240, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border-top: 1px solid rgba(142, 208, 255, 0.5);
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 1px solid transparent;
  animation: rotate 12s linear infinite;
}

.orbit-a {
  width: 56%;
  height: 56%;
  animation: rotate 26s linear infinite;
}

.orbit-b {
  width: 74%;
  height: 74%;
  border-style: dashed;
  animation: rotate 38s linear infinite reverse;
}

.orbit-c {
  width: 92%;
  height: 92%;
  border-color: rgba(130, 174, 240, 0.09);
}

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(135, 182, 255, 0.3);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(24, 47, 82, 0.9), rgba(10, 22, 40, 0.92));
  box-shadow: 0 0 0 10px rgba(79, 140, 255, 0.04), 0 30px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
}

html[data-theme="light"] .core {
  background: linear-gradient(145deg, #ffffff, #eef5ff);
  box-shadow: 0 0 0 10px rgba(36, 100, 232, 0.04), 0 30px 70px rgba(30, 70, 130, 0.16), inset 0 1px 0 #fff;
}

.core span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.model-node {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 120px;
  padding: 12px 14px 11px 28px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(150deg, var(--surface), rgba(10, 22, 40, 0.4));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: float 6s ease-in-out infinite;
}

html[data-theme="light"] .model-node {
  background: rgba(255, 255, 255, 0.82);
}

.model-node strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.model-node small {
  color: var(--faint);
  font-size: 10px;
}

.node-dot {
  position: absolute;
  left: 13px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.11);
}

.node-a {
  top: 6%;
  left: 0;
  animation-delay: -1s;
}

.node-b {
  top: 18%;
  right: 0;
  animation-delay: -2.8s;
}

.node-c {
  right: 2%;
  bottom: 20%;
  animation-delay: -4.1s;
}

.node-d {
  left: 0;
  bottom: 8%;
  animation-delay: -3.3s;
}

.signal {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114, 167, 255, 0.4), transparent);
  transform-origin: left center;
}

.signal-a {
  width: 28%;
  top: 34%;
  left: 17%;
  transform: rotate(18deg);
}

.signal-b {
  width: 26%;
  top: 33%;
  right: 15%;
  transform: rotate(-16deg);
}

.signal-c {
  width: 24%;
  bottom: 31%;
  right: 17%;
  transform: rotate(20deg);
}

.model-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: clamp(54px, 8vw, 92px);
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.strip-label {
  font-size: 13px;
}

.model-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-inline: auto;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  opacity: 0.82;
}

.model-mark {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.mark-claude { color: #d99a6c; }
.mark-openai { color: #7fd6bb; }
.mark-gemini { color: #8fb9ff; }
.mark-deepseek { color: #9b8cff; }

.strip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-2);
  font-size: 12px;
  white-space: nowrap;
}

.strip-link svg,
.text-link svg {
  width: 15px;
  height: 15px;
}

/* Sections */
.section {
  padding: clamp(78px, 10vw, 124px) 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent);
}

.section-head {
  max-width: 760px;
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-lead {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.feature-card {
  position: relative;
  padding: 27px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--surface), transparent);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

html[data-theme="light"] .feature-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
}

.feature-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.12), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(112, 162, 245, 0.32);
  background: linear-gradient(155deg, var(--surface-solid), transparent);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(112, 162, 245, 0.25);
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-2);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Flow */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 50px;
}

.flow-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.flow-number {
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.flow-card h3 {
  margin-top: 38px;
  font-size: 19px;
  font-weight: 650;
}

.flow-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.flow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 17px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* Integration */
.integration-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 56px;
}

.integration-copy h2 {
  margin-top: 18px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.check-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}

.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

.check-list code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 28px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.code-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(132, 170, 224, 0.2);
  border-radius: 18px;
  background: var(--code-bg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.code-body,
.code-panel {
  min-width: 0;
  max-width: 100%;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--code-line);
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.code-tab {
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8198b8;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.code-tab:hover {
  color: #c8daf5;
}

.code-tab.is-active {
  background: rgba(127, 177, 255, 0.13);
  color: #dceaff;
}

.copy-btn {
  padding: 6px 9px;
  border: 1px solid var(--code-line);
  border-radius: 7px;
  background: transparent;
  color: #8fa8c9;
  font-size: 11px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: rgba(142, 208, 255, 0.4);
  color: #dceaff;
}

.code-body {
  padding: 18px 20px 20px;
}

.code-panel {
  display: none;
  margin: 0;
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
}

.code-panel.is-active {
  display: block;
}

.code-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-top: 1px solid var(--code-line);
  color: #7f96b5;
  font-size: 11px;
}

.code-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(83, 214, 163, 0.1);
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 36px 22px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 400;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list p {
  max-width: 720px;
  padding: 0 36px 22px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

/* CTA */
.cta-section {
  padding-top: 30px;
  padding-bottom: clamp(90px, 12vw, 140px);
}

.cta-panel {
  position: relative;
  padding: clamp(42px, 6vw, 72px);
  border: 1px solid rgba(125, 172, 255, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 78% 10%, rgba(61, 124, 255, 0.24), transparent 55%),
    linear-gradient(145deg, rgba(17, 35, 62, 0.94), rgba(8, 18, 33, 0.96));
  overflow: hidden;
  box-shadow: var(--shadow);
}

html[data-theme="light"] .cta-panel {
  background:
    radial-gradient(ellipse at 78% 10%, rgba(61, 124, 255, 0.17), transparent 55%),
    linear-gradient(145deg, #ffffff, #eef5ff);
}

.cta-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  right: -80px;
  top: -130px;
  border-radius: 50%;
  border: 1px solid rgba(142, 208, 255, 0.18);
  box-shadow: 0 0 0 38px rgba(79, 140, 255, 0.04), 0 0 0 76px rgba(79, 140, 255, 0.025);
  pointer-events: none;
}

.cta-panel h2 {
  position: relative;
  margin-top: 18px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.cta-panel > p:not(.eyebrow) {
  position: relative;
  max-width: 560px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 14px;
}

.cta-panel .hero-actions {
  position: relative;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0 30px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}

/* Reveal */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* Motion */
@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, 24px, 0) scale(1.06); }
}

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

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

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    width: min(100%, 460px);
    margin-top: 8px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .integration-copy {
    max-width: 680px;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .header-link,
  .header-actions .btn {
    display: none;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-card:not(:last-child)::after {
    top: auto;
    right: 28px;
    bottom: -9px;
    left: 28px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
  }

  .model-strip {
    gap: 14px;
  }

  .strip-label,
  .model-list,
  .strip-link {
    width: 100%;
  }

  .model-list {
    margin-inline: 0;
  }

  .strip-link {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 36px);
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-badge {
    display: none;
  }

  .theme-toggle span {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(34px, 9.8vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
  }

  .lead {
    max-width: 100%;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    gap: 10px 16px;
    margin-top: 22px;
    font-size: 12px;
  }

  .hero-visual {
    width: calc(100% - 8px);
    margin-top: 28px;
  }

  .core {
    width: 112px;
    height: 112px;
    border-radius: 27px;
  }

  .core img {
    width: 44px;
    height: 44px;
  }

  .model-node {
    min-width: 100px;
    padding: 10px 10px 9px 23px;
  }

  .model-node strong {
    font-size: 11px;
  }

  .model-node small {
    font-size: 9px;
  }

  .node-dot {
    left: 10px;
    top: 16px;
  }

  .node-a { top: 3%; }
  .node-b { top: 13%; }
  .node-c { bottom: 14%; }
  .node-d { bottom: 3%; }

  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .section-head h2,
  .integration-copy h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .code-body {
    padding: 16px;
  }

  .code-panel {
    font-size: 11px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 26px;
    padding-top: 34px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 24px;
  }

  .cta-panel {
    padding: 34px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .reveal.reveal-armed {
    opacity: 1;
    transform: none;
  }
}
