/* ==========================================================================
   莓创图表 (mccharts) — design system + landing page
   ========================================================================== */

@font-face {
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/harmonyos-sans-regular.woff2") format("woff2");
}

@font-face {
  font-family: "HarmonyOS Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/harmonyos-sans-bold.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;
  --font-sans: "HarmonyOS Sans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono",
    Consolas, "Liberation Mono", monospace;

  --ink: #0c1934;
  --ink-strong: #071126;
  --ink-soft: #2a3b58;
  --muted: #63728a;
  --muted-strong: #4c5d77;
  --faint: #8c9ab0;

  --bg: #f7f9ff;
  --bg-soft: #eef3fc;
  --surface: #ffffff;
  --surface-soft: #f5f8ff;
  --surface-tint: #eef3ff;
  --line: rgba(20, 44, 86, 0.1);
  --line-strong: rgba(20, 44, 86, 0.16);

  --primary: #4f63ea;
  --primary-strong: #3450d8;
  --primary-soft: #e9edff;
  --primary-ink: #fff;
  --teal: #12b3a0;
  --teal-strong: #0c9384;
  --teal-soft: #e2f8f3;
  --amber: #f0a84e;
  --amber-soft: #fff4e5;
  --pink: #de6f96;
  --violet: #8c6be8;

  --gradient: linear-gradient(118deg, #5776ee 0%, #4f63ea 38%, #12b3a0 100%);
  --gradient-soft: linear-gradient(135deg, rgba(87, 118, 238, 0.14), rgba(18, 179, 160, 0.1));

  --shadow-sm: 0 1px 2px rgba(14, 30, 60, 0.04), 0 6px 20px rgba(14, 30, 60, 0.05);
  --shadow-md: 0 16px 44px rgba(22, 42, 88, 0.09), 0 2px 8px rgba(22, 42, 88, 0.04);
  --shadow-lg: 0 40px 100px rgba(17, 35, 78, 0.18), 0 8px 24px rgba(17, 35, 78, 0.08);
  --shadow-primary: 0 14px 30px rgba(79, 99, 234, 0.28);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --container: 1240px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);

  --code-bg: #0b1426;
  --code-bg-soft: #101c33;
  --code-line: rgba(148, 171, 216, 0.14);
  --code-text: #dbe5ff;
  --code-muted: #6f82a8;
  --code-key: #8fb4ff;
  --code-string: #7ee3c4;
  --code-number: #ffc978;
  --code-bool: #c4a7ff;
  --code-comment: #607394;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef3ff;
  --ink-strong: #ffffff;
  --ink-soft: #c5d2e9;
  --muted: #93a2bb;
  --muted-strong: #adbad0;
  --faint: #6f7f99;

  --bg: #060c19;
  --bg-soft: #091221;
  --surface: #0d1729;
  --surface-soft: #101c31;
  --surface-tint: #122039;
  --line: rgba(166, 189, 232, 0.1);
  --line-strong: rgba(166, 189, 232, 0.18);

  --primary: #7d8cff;
  --primary-strong: #97a3ff;
  --primary-soft: rgba(125, 140, 255, 0.14);
  --primary-ink: #071126;
  --teal: #34d3bd;
  --teal-soft: rgba(52, 211, 189, 0.12);
  --amber: #f7ba6e;
  --amber-soft: rgba(247, 186, 110, 0.1);

  --gradient: linear-gradient(118deg, #8b9dff 0%, #7d8cff 38%, #34d3bd 100%);
  --gradient-soft: linear-gradient(135deg, rgba(125, 140, 255, 0.18), rgba(52, 211, 189, 0.1));

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.32), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 50px 120px rgba(0, 0, 0, 0.48), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-primary: 0 16px 34px rgba(50, 70, 200, 0.36);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::selection,
::selection {
  color: #fff;
  background: rgba(79, 99, 234, 0.82);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--primary);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 118px 0;
}

.section--tight {
  padding: 92px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 52px;
}

.section-head__copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}

.section-title {
  max-width: 780px;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--ink-strong);
}

.section-title .grad {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-lead {
  max-width: 600px;
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
}

.section-aside {
  flex: 0 0 auto;
  padding-bottom: 6px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  vertical-align: -0.16em;
}

/* --------------------------------------------------------------------------
   Buttons & chips
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon:last-child {
  transform: translateX(3px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #5b74f4 0%, #4f63ea 48%, #4058db 100%);
  box-shadow: var(--shadow-primary);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.btn-primary:hover {
  box-shadow: 0 20px 42px rgba(79, 99, 234, 0.38);
}

[data-theme="dark"] .btn-primary {
  color: #071126;
  background: linear-gradient(135deg, #a5b2ff 0%, #7d8cff 52%, #51d7c4 100%);
  box-shadow: 0 16px 34px rgba(80, 100, 255, 0.26);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--line-strong));
  background: var(--surface);
}

.btn-white {
  color: #24376b;
  background: #fff;
  box-shadow: 0 12px 30px rgba(14, 30, 70, 0.16);
}

.btn-white:hover {
  background: #f7f9ff;
}

.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 15.5px;
}

.btn-sm {
  height: 40px;
  padding: 0 17px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-1px);
}

.icon-btn .icon {
  width: 19px;
  height: 19px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary);
  background: var(--primary-soft);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 90;
  inset: 0 0 auto;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  box-shadow: 0 8px 30px rgba(17, 35, 78, 0.05);
  backdrop-filter: saturate(160%) blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 6px 14px rgba(79, 99, 234, 0.22);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-text strong {
  font-weight: 700;
  color: var(--ink-strong);
}

.brand-text span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-transform: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
}

.main-nav > a,
.main-nav .contact-trigger {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-strong);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.main-nav > a:hover,
.main-nav > a.is-active,
.main-nav .contact-trigger:hover,
.main-nav .contact-trigger.is-active,
.main-nav .nav-contact[open] .contact-trigger {
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.nav-contact {
  position: relative;
}

.contact-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}

.contact-trigger::-webkit-details-marker {
  display: none;
}

.contact-trigger:focus-visible,
.contact-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.contact-trigger .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.nav-contact[open] > .contact-trigger .icon {
  transform: rotate(180deg);
}

.contact-links {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.contact-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.contact-links a:hover,
.contact-links a.is-active {
  color: var(--ink-strong);
  background: var(--surface-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  color: var(--muted-strong);
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.mobile-toggle {
  display: none;
}

.mobile-nav {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 74px) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 74% 8%, rgba(98, 129, 255, 0.18), transparent 64%),
    radial-gradient(760px 560px at 12% 15%, rgba(18, 179, 160, 0.12), transparent 66%),
    radial-gradient(620px 480px at 82% 68%, rgba(222, 111, 150, 0.09), transparent 70%),
    linear-gradient(180deg, #f8faff 0%, #f5f8ff 55%, var(--bg) 100%);
}

[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(900px 620px at 74% 8%, rgba(93, 118, 255, 0.24), transparent 64%),
    radial-gradient(760px 560px at 12% 15%, rgba(18, 179, 160, 0.12), transparent 66%),
    radial-gradient(620px 480px at 82% 68%, rgba(222, 111, 150, 0.08), transparent 70%),
    linear-gradient(180deg, #060c19 0%, #070f20 60%, var(--bg) 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 60, 120, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 60, 120, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 78% 66% at 56% 44%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 66% at 56% 44%, #000 20%, transparent 78%);
}

[data-theme="dark"] .hero-bg::before {
  background-image:
    linear-gradient(rgba(150, 180, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 180, 255, 0.06) 1px, transparent 1px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -8%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(87, 118, 238, 0.12), rgba(18, 179, 160, 0.12),
      rgba(240, 168, 78, 0.08), rgba(87, 118, 238, 0.12));
  filter: blur(70px);
  opacity: 0.9;
  animation: aurora 22s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate3d(-50px, 38px, 0) rotate(12deg) scale(1.08);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
  min-height: 590px;
  padding-bottom: 84px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 6px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px 0 10px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-strong);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.hero-eyebrow .pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.hero-eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent);
  animation: pulse-ring 2.6s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.hero-eyebrow .tag {
  padding: 3px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--primary-soft);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 5.9vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--ink-strong);
}

.hero h1 .line {
  display: block;
}

.hero h1 .grad {
  position: relative;
  display: inline-block;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero h1 .grad::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 2%;
  right: 0;
  bottom: 4px;
  height: 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(87, 118, 238, 0.16), rgba(18, 179, 160, 0.1));
  filter: blur(12px);
}

.hero-lead {
  max-width: 610px;
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted-strong);
}

.hero-lead strong {
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-note .icon {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.hero-facts {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 30px;
  border-left: 1px solid var(--line-strong);
}

.hero-fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-fact strong {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
}

.hero-fact strong em {
  margin-left: 2px;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}

.hero-fact span {
  font-size: 12px;
  color: var(--muted);
}

/* Hero visual */

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  perspective: 1200px;
}

.stage-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 118, 238, 0.22), rgba(18, 179, 160, 0.12) 42%, transparent 68%);
  filter: blur(24px);
  transform: translate(6%, -4%);
}

.preview-window {
  position: relative;
  width: 432px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 251, 255, 0.96));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 50px 100px rgba(25, 48, 110, 0.22),
    0 10px 30px rgba(25, 48, 110, 0.1);
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--ease);
  backdrop-filter: blur(18px);
}

.preview-window:hover {
  transform: rotate(0deg) translateY(-4px);
}

[data-theme="dark"] .preview-window {
  border-color: rgba(150, 175, 235, 0.2);
  background: linear-gradient(180deg, rgba(18, 30, 54, 0.94), rgba(12, 22, 40, 0.98));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.34);
}

.preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid rgba(20, 44, 86, 0.08);
}

[data-theme="dark"] .preview-chrome {
  border-bottom-color: rgba(160, 185, 235, 0.1);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5ddeb;
}

.window-dots i:nth-child(1) {
  background: #ff8c8c;
}

.window-dots i:nth-child(2) {
  background: #f6c667;
}

.window-dots i:nth-child(3) {
  background: #65d3ab;
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.preview-title .icon {
  width: 13px;
  height: 13px;
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--muted-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.preview-chart-wrap {
  padding: 16px 16px 4px;
  display: flex;
  justify-content: center;
}

.chart-frame {
  position: relative;
  flex: 0 0 auto;
  width: 360px;
  height: 390px;
  overflow: hidden;
}

.chart-frame > .chart-canvas {
  transform-origin: top left;
}

.hero-chart {
  width: 360px;
  height: 390px;
  background: #fff;
  border-radius: 16px;
}

.chart-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.hero-preview-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(20, 44, 86, 0.06);
}

[data-theme="dark"] .hero-preview-tabs {
  border-top-color: rgba(160, 185, 235, 0.09);
}

.hero-tab {
  height: 28px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.hero-tab:hover {
  color: var(--ink);
  background: var(--surface-tint);
}

.hero-tab.is-active {
  color: #fff;
  background: var(--primary);
}

[data-theme="dark"] .hero-tab.is-active {
  color: #071126;
}

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  animation: float-y 7s var(--ease) infinite;
}

[data-theme="dark"] .hero-float {
  border-color: rgba(160, 185, 235, 0.18);
}

.hero-float strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-strong);
}

.hero-float span {
  display: block;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--muted);
}

.hero-float .float-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
}

.hero-float .float-ico .icon {
  width: 18px;
  height: 18px;
}

.hero-float--native {
  left: -64px;
  bottom: 104px;
  animation-delay: -4.2s;
}

.hero-float--native .float-ico {
  color: var(--teal-strong);
  background: var(--teal-soft);
}

.hero-float--version {
  right: -12px;
  bottom: -16px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  animation-delay: -3.1s;
}

.hero-float--version .mono {
  font-size: 10.5px;
  color: var(--muted-strong);
}

.hero-float--version .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 16%, transparent);
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* Trust strip */

.trust-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(12px);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 66px;
  overflow-x: auto;
  scrollbar-width: none;
}

.trust-inner::-webkit-scrollbar {
  display: none;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted-strong);
  white-space: nowrap;
}

.trust-item .icon {
  width: 14px;
  height: 14px;
  color: var(--primary);
  opacity: 0.8;
}

.trust-sep {
  width: 1px;
  height: 16px;
  flex: 0 0 auto;
  background: var(--line-strong);
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features {
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(87, 118, 238, 0.06), transparent 60%),
    var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.feature-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(480px 240px at 100% 0%, var(--glow, rgba(87, 118, 238, 0.1)), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--line));
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card--wide {
  grid-column: span 7;
}

.feature-card--narrow {
  grid-column: span 5;
}

.feature-card--third {
  grid-column: span 4;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 13px;
  color: var(--primary);
  background: var(--primary-soft);
}

.feature-icon .icon {
  width: 21px;
  height: 21px;
}

.feature-icon--teal {
  color: var(--teal-strong);
  background: var(--teal-soft);
}

.feature-icon--amber {
  color: #a96b12;
  background: var(--amber-soft);
}

[data-theme="dark"] .feature-icon--amber {
  color: var(--amber);
}

.feature-icon--violet {
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 12%, transparent);
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
}

.feature-card__split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: end;
  gap: 32px;
  flex: 1;
}

.feature-card__split > div:first-child {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card__split .feature-visual {
  margin: 0;
}

.feature-card__split .feature-tags {
  margin-top: 22px;
}

.feature-card p {
  max-width: 480px;
  margin-top: 11px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}

.feature-tag {
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted-strong);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.feature-visual {
  margin-top: 24px;
  margin-bottom: 6px;
}

.feature-code {
  position: relative;
  border: 1px solid rgba(150, 175, 235, 0.16);
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: 0 20px 40px rgba(8, 17, 38, 0.2);
  overflow: hidden;
}

.feature-code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 13px;
  border-bottom: 1px solid var(--code-line);
}

.feature-code__bar span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--code-muted);
}

.feature-code pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.85;
  color: var(--code-text);
}

.feature-code .ln {
  display: inline-block;
  width: 18px;
  color: #41516f;
  user-select: none;
}

.tok-key {
  color: var(--code-key);
}

.tok-str {
  color: var(--code-string);
}

.tok-num {
  color: var(--code-number);
}

.tok-bool {
  color: var(--code-bool);
}

.tok-cm {
  color: var(--code-comment);
}

.tok-kw {
  color: #c4a7ff;
}

.tok-key {
  color: var(--code-key);
}

.feature-eq {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.feature-eq span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-strong);
}

.feature-eq .spark {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.feature-eq .spark i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
}

.feature-eq .spark i:first-child {
  opacity: 1;
}

/* GPU feature visual */

.gpu-visual {
  position: relative;
  height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 22px,
    var(--surface-soft);
  overflow: hidden;
}

.gpu-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
}

.gpu-bars i {
  flex: 1;
  min-width: 4px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #7d8cff 0%, #4f63ea 100%);
  box-shadow: 0 0 0 1px rgba(87, 118, 238, 0.08) inset;
  transform-origin: bottom;
  animation: gpu-breathe 4s var(--ease) infinite alternate;
}

.gpu-bars i:nth-child(3n) {
  background: linear-gradient(180deg, #4addc9 0%, #12b3a0 100%);
}

.gpu-bars i:nth-child(3n + 1) {
  animation-delay: -1.4s;
}

.gpu-bars i:nth-child(3n + 2) {
  animation-delay: -2.8s;
}

@keyframes gpu-breathe {
  to {
    transform: scaleY(0.82);
  }
}

.gpu-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted-strong);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.gpu-chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* Text feature visual */

.text-visual {
  position: relative;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  overflow: hidden;
}

.text-visual .gridline {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 110, 180, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 110, 180, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 80%);
}

.text-visual .axis-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 10px;
  color: var(--faint);
}

.text-visual .glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
  transform: translate(-50%, -50%);
}

.text-visual .glyph::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px -16px;
  border: 1px dashed color-mix(in srgb, var(--primary) 38%, transparent);
  border-radius: 10px;
}

.text-visual .glyph em {
  font-style: normal;
  font-size: 20px;
  color: var(--primary);
}

.text-visual .tag {
  position: absolute;
  right: 12px;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

/* Large data visual */

.large-visual {
  position: relative;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  overflow: hidden;
}

.large-visual .dotfield {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(87, 118, 238, 0.55) 1.1px, transparent 1.2px);
  background-size: 7px 7px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 80%);
}

.large-visual .window {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 22%;
  width: 40%;
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  box-shadow: 0 0 0 999px color-mix(in srgb, var(--surface) 30%, transparent);
  animation: window-slide 8s var(--ease) infinite alternate;
}

.large-visual .window::before,
.large-visual .window::after {
  content: "";
  position: absolute;
  top: -1.5px;
  bottom: -1.5px;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.large-visual .window::before {
  left: -1.5px;
}

.large-visual .window::after {
  right: -1.5px;
}

@keyframes window-slide {
  0% {
    transform: translateX(-18%);
  }
  100% {
    transform: translateX(72%);
  }
}

.large-visual .stat {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-strong);
}

.large-visual .stat strong {
  color: var(--primary);
  font-weight: 600;
}

/* Gesture visual */

.gesture-visual {
  position: relative;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  overflow: hidden;
}

.gesture-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gesture-visual .brush {
  position: absolute;
  top: 22px;
  left: 24%;
  width: 34%;
  height: 62%;
  border: 1.5px dashed var(--primary);
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  animation: brush-move 6s var(--ease) infinite alternate;
}

@keyframes brush-move {
  0% {
    transform: translateX(-12%);
    opacity: 0.6;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(35%);
    opacity: 0.9;
  }
}

.gesture-visual .finger {
  position: absolute;
  right: 22px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
}

/* Toolbox visual */

.toolbox-visual {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 56px;
  padding: 0 12px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.toolbox-visual .tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted-strong);
  background: var(--surface);
}

.toolbox-visual .tool .icon {
  width: 14px;
  height: 14px;
}

.toolbox-visual .tool:nth-child(2) {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  background: var(--primary-soft);
}

.toolbox-visual .tool-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.toolbox-visual .run {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--teal-strong);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  position: relative;
  background:
    radial-gradient(800px 460px at 0% 20%, rgba(18, 179, 160, 0.05), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}

.filter-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: all 0.22s var(--ease);
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}

.filter-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--ink-strong);
}

[data-theme="dark"] .filter-btn.is-active {
  color: #071126;
  background: #eef3ff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.chart-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: card-in 0.5s var(--ease) both;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease), opacity 0.3s var(--ease);
}

@keyframes card-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.chart-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--line));
  box-shadow: var(--shadow-md);
}

.chart-card.is-filtered {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

.chart-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
  padding: 16px;
  background:
    radial-gradient(340px 220px at 50% 42%, rgba(255, 255, 255, 0.9), rgba(245, 248, 255, 0.92)),
    linear-gradient(180deg, #f6f9ff, #eef3fb);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

[data-theme="dark"] .chart-stage {
  background:
    radial-gradient(340px 220px at 50% 42%, rgba(30, 50, 88, 0.62), rgba(12, 22, 40, 0.72)),
    linear-gradient(180deg, #101c31, #0b1526);
}

.chart-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(60, 90, 150, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 90, 150, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}

.chart-stage .chart-frame {
  width: 360px;
  height: 390px;
  box-shadow: 0 18px 40px rgba(25, 48, 110, 0.1);
  border-radius: 14px;
  background: #fff;
}

[data-theme="dark"] .chart-stage .chart-frame {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.chart-stage .chart-canvas {
  width: 360px;
  height: 390px;
  background: #fff;
}

.chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-soft) 76%, transparent);
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.chart-card.is-error .chart-loading {
  color: #b14358;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.chart-loading .icon {
  width: 14px;
  height: 14px;
  animation: spin 1.4s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.chart-card.is-ready .chart-loading {
  opacity: 0;
  pointer-events: none;
}

.chart-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--card-accent, var(--primary));
}

.chart-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 18px;
  color: inherit;
  text-decoration: none;
}

.chart-card-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chart-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.chart-card-body p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.chart-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.chart-source {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chart-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

.chart-link .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease);
}

.chart-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.chart-card-tags span {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
  color: var(--faint);
  background: var(--surface-soft);
}

.chart-card:hover .chart-link .icon {
  transform: translateX(3px);
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.gallery-count {
  margin-left: auto;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Architecture
   -------------------------------------------------------------------------- */

.architecture {
  position: relative;
  overflow: hidden;
  color: #eaf0ff;
  background:
    radial-gradient(900px 560px at 88% 0%, rgba(75, 100, 230, 0.28), transparent 62%),
    radial-gradient(700px 500px at 0% 90%, rgba(18, 179, 160, 0.16), transparent 64%),
    #08101f;
}

.architecture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 185, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 185, 235, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 75% 70% at 52% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 52% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.architecture .container {
  position: relative;
  z-index: 1;
}

.architecture .eyebrow {
  color: #8fa4ff;
}

.architecture .eyebrow::before {
  background: currentColor;
}

.architecture .section-title {
  color: #fff;
}

.architecture .section-title .grad {
  background: linear-gradient(118deg, #a9b8ff, #6fe6d4);
  -webkit-background-clip: text;
  background-clip: text;
}

.architecture .section-lead {
  color: #9fb0cb;
}

.arch-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 54px;
}

.arch-code-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(160, 185, 235, 0.16);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  color: #9fb0cb;
  background: rgba(14, 26, 48, 0.64);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.arch-code-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d3bd;
  box-shadow: 0 0 0 4px rgba(52, 211, 189, 0.14);
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pipeline::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 54px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 164, 255, 0.5), rgba(52, 211, 189, 0.5), transparent);
  background-size: 200% 100%;
  animation: pipeline-flow 6s linear infinite;
}

@keyframes pipeline-flow {
  to {
    background-position: -200% 0;
  }
}

.pipeline-step {
  position: relative;
  z-index: 1;
  padding: 24px 22px 22px;
  border: 1px solid rgba(160, 185, 235, 0.14);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(22, 38, 68, 0.82), rgba(10, 20, 38, 0.88));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.pipeline-step:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 164, 255, 0.38);
}

.pipeline-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #697b9a;
}

.pipeline-num .node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(143, 164, 255, 0.28);
  border-radius: 9px;
  color: #a9b8ff;
  background: rgba(79, 99, 234, 0.12);
  box-shadow: 0 0 22px rgba(79, 99, 234, 0.12);
}

.pipeline-num .node .icon {
  width: 16px;
  height: 16px;
}

.pipeline-step:nth-child(4) .node {
  color: #6fe6d4;
  border-color: rgba(52, 211, 189, 0.28);
  background: rgba(18, 179, 160, 0.12);
  box-shadow: 0 0 22px rgba(18, 179, 160, 0.12);
}

.pipeline-step h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #f2f6ff;
}

.pipeline-step p {
  margin-top: 9px;
  font-size: 11.5px;
  line-height: 1.75;
  color: #93a5c2;
}

.pipeline-step code {
  display: block;
  margin-top: 15px;
  padding: 8px 10px;
  border: 1px solid rgba(160, 185, 235, 0.1);
  border-radius: 7px;
  font-size: 9px;
  line-height: 1.5;
  color: #8fb4ff;
  background: rgba(5, 12, 24, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arch-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid rgba(160, 185, 235, 0.12);
  border-radius: 16px;
  background: rgba(160, 185, 235, 0.1);
  overflow: hidden;
}

.arch-stat {
  padding: 20px 22px;
  background: rgba(8, 16, 31, 0.82);
}

.arch-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #eef3ff;
}

.arch-stat strong em {
  margin-left: 3px;
  font-size: 11px;
  font-style: normal;
  color: #8fa4ff;
}

.arch-stat span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #7e90ad;
}

.arch-note {
  margin-top: 18px;
  font-size: 11px;
  color: #6f819e;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Playground CTA / parity
   -------------------------------------------------------------------------- */

.parity {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.parity-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: 60px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 340px at 88% 10%, rgba(87, 118, 238, 0.14), transparent 58%),
    radial-gradient(500px 300px at 10% 100%, rgba(18, 179, 160, 0.1), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.parity-copy .section-title {
  font-size: clamp(30px, 3.6vw, 44px);
}

.parity-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin-top: 28px;
}

.parity-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-strong);
}

.parity-check .check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--teal-strong);
  background: var(--teal-soft);
}

.parity-check .check .icon {
  width: 11px;
  height: 11px;
}

.parity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.parity-note {
  display: flex;
  gap: 9px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.75;
  color: var(--faint);
}

.parity-note .icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--muted);
}

.parity-visual {
  position: relative;
  min-width: 0;
}

.mock-window {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1deg);
}

.mock-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.mock-window__bar .dots {
  display: flex;
  gap: 5px;
}

.mock-window__bar .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mock-window__bar .file {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
}

.mock-window__bar .status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--teal-strong);
}

.mock-window__bar .status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.mock-code {
  padding: 14px 16px;
  background: var(--code-bg);
  border-bottom: 1px solid var(--code-line);
  overflow: hidden;
}

.mock-code pre {
  margin: 0;
  font-size: 9px;
  line-height: 1.8;
  color: var(--code-text);
}

.mock-preview {
  position: relative;
  height: 230px;
  padding: 18px;
  background:
    radial-gradient(340px 200px at 50% 38%, rgba(255, 255, 255, 0.9), rgba(245, 248, 255, 0.9)),
    linear-gradient(180deg, #f7f9ff, #eef3fb);
}

[data-theme="dark"] .mock-preview {
  background:
    radial-gradient(340px 200px at 50% 38%, rgba(30, 50, 88, 0.6), rgba(12, 22, 40, 0.7)),
    linear-gradient(180deg, #101c31, #0b1526);
}

.mock-chart-card {
  position: relative;
  height: 100%;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 48, 110, 0.1);
  overflow: hidden;
}

.mock-chart-card svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mock-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Quick start
   -------------------------------------------------------------------------- */

.start {
  position: relative;
  background:
    radial-gradient(800px 500px at 10% 10%, rgba(87, 118, 238, 0.06), transparent 60%),
    var(--bg);
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.start-copy code,
.start-note code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink-soft);
  background: var(--surface);
}

.start-steps {
  margin-top: 30px;
}

.start-step {
  display: flex;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.start-step:last-child {
  border-bottom: 1px solid var(--line);
}

.start-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface);
}

.start-step h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-strong);
}

.start-step p {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.env-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.env-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-strong);
  background: var(--surface);
}

.env-chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.code-card {
  border: 1px solid rgba(150, 175, 235, 0.18);
  border-radius: 20px;
  background: var(--code-bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.code-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid var(--code-line);
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
}

.code-tab {
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--code-muted);
  transition: color 0.2s, background-color 0.2s;
}

.code-tab:hover {
  color: var(--code-text);
  background: rgba(140, 165, 220, 0.08);
}

.code-tab.is-active {
  color: var(--code-text);
  background: rgba(140, 165, 220, 0.12);
}

.code-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(140, 165, 220, 0.18);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--code-muted);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.code-copy:hover {
  color: var(--code-text);
  border-color: rgba(140, 165, 220, 0.34);
  background: rgba(140, 165, 220, 0.08);
}

.code-copy .icon {
  width: 11px;
  height: 11px;
}

.code-card__body {
  position: relative;
  max-height: 480px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 165, 220, 0.2) transparent;
}

.code-panel {
  display: none;
}

.code-panel.is-active {
  display: block;
}

.code-card pre {
  margin: 0;
  padding: 18px 20px 22px;
  min-height: 280px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--code-text);
  white-space: pre;
  overflow-x: auto;
}

.code-card pre .ln {
  display: inline-block;
  width: 22px;
  color: #3d4d69;
  user-select: none;
}

.code-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--code-line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--code-muted);
}

.code-card__foot .ok {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--code-string);
}

.start-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--faint);
}

.start-note .icon {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: 68px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.6fr));
  gap: 48px;
  padding-bottom: 46px;
}

.footer-brand p {
  max-width: 330px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-strong);
  background: var(--surface);
}

.footer-status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--muted-strong);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--faint);
}

.footer-bottom p {
  max-width: 780px;
}

.footer-bottom p a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.footer-bottom .legal {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted-strong);
}

.back-top .icon {
  width: 12px;
  height: 12px;
  transform: rotate(-90deg);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast-region {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 12px;
  color: #eef3ff;
  background: rgba(10, 20, 38, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: toast-in 0.3s var(--ease) forwards;
  backdrop-filter: blur(14px);
}

.toast .icon {
  width: 14px;
  height: 14px;
  color: #6fe6d4;
}

.toast.is-error .icon {
  color: #ff8c8c;
}

.toast.is-hiding {
  animation: toast-out 0.25s var(--ease) forwards;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-grid {
    gap: 40px;
  }

  .hero-float--native {
    left: -18px;
  }

  .preview-window {
    width: 404px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parity-grid {
    padding: 42px;
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: 24px;
    right: 24px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
  }

  .site-header.is-open .mobile-nav {
    display: block;
    animation: menu-in 0.25s var(--ease);
  }

  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
  }

  .mobile-nav a,
  .mobile-nav .contact-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
  }

  .mobile-nav a:hover,
  .mobile-nav a.is-active,
  .mobile-nav .contact-trigger:hover,
  .mobile-nav .contact-trigger.is-active {
    color: var(--ink);
    background: var(--surface-soft);
  }

  .mobile-nav .contact-links {
    position: static;
    min-width: 0;
    margin: 4px 0 6px 14px;
    padding: 0 0 0 8px;
    border: 0;
    border-left: 2px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-nav .btn {
    margin-top: 8px;
    width: 100%;
  }

  .hero {
    padding-top: calc(var(--header-h) + 56px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 62px;
    min-height: 0;
    padding-bottom: 70px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    font-size: clamp(44px, 8vw, 68px);
  }

  .hero-visual {
    justify-content: flex-start;
    padding-left: 26px;
  }

  .stage-glow {
    left: 0;
  }

  .hero-float--native {
    left: 6px;
    bottom: 24px;
  }

  .hero-float--version {
    right: auto;
    left: 320px;
    bottom: -10px;
  }

  .section {
    padding: 92px 0;
  }

  .feature-card--wide,
  .feature-card--narrow,
  .feature-card--third {
    grid-column: span 6;
  }

  .feature-card--wide {
    grid-column: span 12;
  }

  .parity-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .parity-visual {
    max-width: 620px;
  }

  .start-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .start-copy {
    max-width: 700px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 0.7fr);
    gap: 32px;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline::before {
    display: none;
  }

  .arch-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 36px);
  }

  .section {
    padding: 74px 0;
  }

  .section--tight {
    padding: 64px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 34px;
  }

  .section-lead {
    font-size: 15px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 42px);
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 56px);
    letter-spacing: -0.04em;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 15.5px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 150px;
  }

  .hero-facts {
    margin-top: 32px;
  }

  .hero-fact {
    flex: 1;
    padding: 0 14px;
  }

  .hero-fact strong {
    font-size: 22px;
  }

  .hero-fact span {
    font-size: 10.5px;
  }

  .hero-note {
    align-items: flex-start;
    font-size: 11.5px;
  }

  .hero-visual {
    padding-left: 0;
    justify-content: center;
  }

  .preview-window {
    width: 100%;
    max-width: 420px;
    transform: none;
  }

  .preview-chart-wrap {
    padding: 12px 10px 2px;
  }

  .hero-float {
    display: none;
  }

  .hero-float--version {
    display: flex;
    right: 0;
    left: auto;
    bottom: -14px;
  }

  .trust-inner {
    justify-content: flex-start;
    padding-inline: 4px;
    gap: 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--wide,
  .feature-card--narrow,
  .feature-card--third {
    grid-column: auto;
    min-height: 0;
  }

  .feature-card {
    padding: 24px;
  }

  .feature-card__split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature-card__split > div:first-child {
    height: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .chart-stage {
    height: 340px;
    padding: 12px;
  }

  .gallery-filters {
    gap: 6px;
  }

  .filter-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 11.5px;
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-step {
    padding: 20px;
  }

  .arch-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arch-stat {
    padding: 16px 18px;
  }

  .arch-stat strong {
    font-size: 20px;
  }

  .arch-note {
    text-align: left;
  }

  .parity-grid {
    padding: 28px 22px;
    border-radius: var(--radius-lg);
  }

  .parity-checks {
    grid-template-columns: 1fr;
  }

  .parity-actions .btn {
    flex: 1;
    min-width: 150px;
  }

  .mock-code pre {
    font-size: 8px;
  }

  .code-card__body {
    max-height: 360px;
  }

  .code-card pre {
    font-size: 10px;
    padding: 14px 14px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom .legal {
    flex-wrap: wrap;
  }

  .mobile-nav {
    left: 18px;
    right: 18px;
  }

  .brand-text span {
    display: none;
  }
}

@media (max-width: 430px) {
  .container {
    width: calc(100% - 28px);
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-fact {
    padding: 0 12px;
  }

  .hero-fact strong {
    font-size: 20px;
  }

  .hero-fact span {
    font-size: 9.5px;
  }

  .chart-stage {
    height: 300px;
  }

  .section-title {
    font-size: 30px;
  }

  .arch-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
