:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --bg: #f4f7ff;
  --bg-soft: #eef2ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(239, 241, 251, 0.96);
  --surface-translucent: rgba(255, 255, 255, 0.82);
  --surface-subtle: rgba(113, 82, 218, 0.045);
  --line: rgba(95, 78, 164, 0.11);
  --line-strong: rgba(102, 79, 187, 0.19);
  --text: #11182b;
  --muted: #5f6b80;
  --faint: #8590a5;
  --violet: #7437ed;
  --cyan: #7437ed;
  --green: #079b75;
  --yellow: #ae7000;
  --danger: #d34a68;
  --header-bg: rgba(255, 255, 255, 0.84);
  --mobile-nav-bg: rgba(250, 251, 255, 0.97);
  --card-bg: rgba(255, 255, 255, 0.76);
  --panel-bg: rgba(247, 248, 255, 0.88);
  --inline-code-bg: #efedfa;
  --plain-text: #465167;
  --footer-bg: rgba(245, 247, 254, 0.9);
  --footer-text: #7d879a;
  --primary-bg: linear-gradient(135deg, #8d47f3 0%, #6328d6 100%);
  --primary-text: #ffffff;
  --primary-hover: linear-gradient(135deg, #7f3deb 0%, #5521c5 100%);
  --accent-soft: rgba(117, 72, 222, 0.075);
  --accent-border: rgba(112, 69, 214, 0.2);
  --shadow: 0 20px 58px rgba(72, 72, 125, 0.12), 0 2px 8px rgba(72, 72, 125, 0.07);
  --modal-bg: #ffffff;
  --modal-text: #11182b;
  --modal-muted: #5f6b80;
  --modal-control: #eeeafd;
  --modal-control-text: #56466f;
  --overlay: rgba(43, 31, 72, 0.35);
  --grid-line: rgba(99, 112, 174, 0.19);
  --max-width: 1280px;
  color-scheme: light !important;
}

html {
  background: var(--bg);
  color-scheme: light !important;
}

body {
  background: transparent;
  color: var(--text);
  -webkit-tap-highlight-color: rgba(121, 73, 225, 0.15);
}

body::before {
  z-index: -2;
  opacity: 0.58;
  background-image: radial-gradient(circle, rgba(110, 126, 189, 0.24) 1px, transparent 1.25px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.9) 78%, transparent 100%);
}

body::after {
  background:
    radial-gradient(circle at 12% 18%, rgba(112, 157, 255, 0.22), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(142, 92, 246, 0.18), transparent 32%),
    radial-gradient(circle at 50% 84%, rgba(162, 124, 255, 0.13), transparent 34%),
    linear-gradient(135deg, #f8faff 0%, #edf4ff 48%, #f5efff 100%);
}

:focus-visible {
  outline-color: var(--violet);
}

.site-header {
  height: 64px;
  border-bottom-color: rgba(104, 92, 170, 0.1);
  background: var(--header-bg);
  box-shadow: 0 8px 28px rgba(81, 85, 139, 0.05);
  backdrop-filter: blur(20px) saturate(1.3);
}

.site-header .container {
  width: min(calc(100% - 64px), 1280px);
}

.nav-shell {
  display: flex;
  justify-content: space-between;
}

.brand {
  min-width: 0;
}

.brand img {
  width: 107px;
  height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(105, 82, 205, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(75, 61, 138, 0.07);
}

.desktop-nav a {
  color: #596378;
  font-size: 14px;
  white-space: nowrap;
}

.desktop-nav {
  gap: 32px;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--violet);
}

.desktop-nav a[aria-current="page"]::after {
  bottom: -12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5d46ff, #9346f4);
}

.theme-toggle {
  display: none;
}

.nav-actions {
  min-width: 0;
}

.button-small {
  min-height: 36px;
  padding: 8px 20px;
}

.mobile-menu-button {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mobile-nav {
  top: 63px;
  border-radius: 0 0 20px 20px;
  background: var(--mobile-nav-bg);
  backdrop-filter: blur(22px);
}

.button {
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-primary {
  border-color: rgba(91, 42, 201, 0.18);
  background: var(--primary-bg);
  box-shadow: 0 12px 28px rgba(105, 49, 220, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 16px 36px rgba(105, 49, 220, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: rgba(111, 65, 215, 0.24);
  background: rgba(255, 255, 255, 0.66);
  color: #6840c8;
  box-shadow: 0 8px 24px rgba(76, 67, 137, 0.08);
  backdrop-filter: blur(12px);
}

.button-secondary:hover {
  border-color: rgba(111, 65, 215, 0.42);
  background: rgba(255, 255, 255, 0.94);
  color: #5124b8;
}

.hero {
  min-height: min(820px, calc(100svh - 20px));
  padding-top: 116px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  top: 90px;
  left: 50%;
  z-index: -1;
  width: 100%;
  content: 'AI COMMERCE · INTELLIGENT AUTOMATION';
  color: rgba(107, 83, 224, 0.065);
  font-size: clamp(30px, 5.2vw, 78px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero::after {
  top: 50%;
  left: 76%;
  width: min(580px, 48vw);
  height: min(580px, 48vw);
  border: 1px solid rgba(118, 92, 222, 0.07);
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -46%);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(120, 78, 224, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #6b3bd1;
  box-shadow: 0 9px 26px rgba(100, 76, 183, 0.09);
  backdrop-filter: blur(14px);
}

.eyebrow::before {
  background: #8b5cf6;
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.1);
}

.hero h1,
.section-heading {
  letter-spacing: -0.035em;
}

.hero h1 .accent,
.section-heading .accent {
  background: linear-gradient(120deg, #5d46ff 0%, #9346f4 52%, #7759ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.proof-list {
  gap: 10px;
}

.proof-list span {
  padding: 7px 12px;
  border: 1px solid rgba(112, 78, 205, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #56416f;
  box-shadow: 0 5px 14px rgba(69, 57, 114, 0.06);
}

.proof-list span::before {
  color: var(--violet);
}

.product-window {
  overflow: hidden;
  border-color: rgba(102, 79, 187, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(134, 104, 246, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.8);
  color: #20263a;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.08);
  --text: #20263a;
  --muted: #687388;
  --faint: #8c95a8;
  --line: rgba(91, 78, 157, 0.12);
  --line-strong: rgba(96, 75, 178, 0.2);
  --cyan: #7141df;
  --green: #079b75;
}

.window-bar {
  min-height: 48px;
  padding-inline: 20px;
  background: rgba(236, 238, 250, 0.72);
}

.prompt-box,
.result-box,
.code-box {
  border-radius: 14px;
  background: rgba(248, 249, 255, 0.88);
  color: #3f4a61;
}

.code-comment {
  color: #8b91a4;
}

.code-key {
  color: #7437ed;
}

.code-value,
.task-status {
  color: #079b75;
}

.demo-badge {
  border-radius: 999px;
  background: rgba(116, 55, 237, 0.06);
  color: #6b3bd1;
}

.section {
  border-top: 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -1px 0 rgba(105, 82, 186, 0.06);
}

.section-heading {
  font-weight: 750;
}

.card,
.feature-band,
.faq details {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 5%, rgba(144, 103, 246, 0.09), transparent 28%),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(1.06);
}

.card::after {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  content: '';
  background: linear-gradient(145deg, rgba(139, 95, 246, 0.14), rgba(114, 159, 255, 0.02));
  transform: rotate(18deg);
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  border-color: rgba(127, 92, 231, 0.26);
  box-shadow: 0 24px 62px rgba(74, 70, 132, 0.15), 0 3px 10px rgba(74, 70, 132, 0.08);
  transform: translateY(-4px);
}

.card-number,
.step::before,
.card .card-link,
.faq summary:hover {
  color: var(--violet);
}

.feature-band {
  border-color: rgba(112, 80, 209, 0.16);
  background:
    radial-gradient(circle at 88% 10%, rgba(158, 104, 248, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(239, 239, 255, 0.7));
}

.faq details {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(62, 55, 110, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.faq summary {
  padding-block: 20px;
}

.site-footer {
  border-top-color: rgba(101, 85, 170, 0.1);
  background: var(--footer-bg);
  backdrop-filter: blur(18px);
}

.modal-backdrop {
  background: var(--overlay);
}

.modal-panel {
  border-color: rgba(113, 81, 199, 0.14);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(34, 21, 68, 0.26);
}

.modal-panel img {
  border: 10px solid #f4f1ff;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(61, 45, 102, 0.12);
}

.modal-close {
  border-radius: 12px;
}

@media (max-width: 980px) {
  .site-header {
    height: 64px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero::before {
    top: 88px;
    font-size: clamp(28px, 7.4vw, 54px);
  }

  .product-window {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    width: min(calc(100% - 32px), 1280px);
  }

  .mobile-nav {
    top: 63px;
  }

  .hero::before {
    top: 86px;
    font-size: 27px;
  }

  .hero::after {
    left: 85%;
    width: 90vw;
    height: 90vw;
  }

  .hero h1 {
    letter-spacing: -0.025em;
  }

  .card,
  .feature-band {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card,
  .product-window,
  .feature-band {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  }
}
