:root {
  --bg: #f4f7fb;
  --bg-2: #eaf0f8;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-2: rgba(255, 255, 255, 0.94);
  --ink: #14213d;
  --muted: #52627d;
  --faint: #7d8ba3;
  --line: rgba(75, 112, 170, 0.16);
  --blue: #3566d6;
  --cyan: #137f8d;
  --violet: #6546b8;
  --amber: #b96d32;
  --blue-soft: rgba(79, 127, 232, 0.10);
  --cyan-soft: rgba(31, 158, 174, 0.10);
  --violet-soft: rgba(124, 92, 196, 0.10);
  --amber-soft: rgba(201, 123, 61, 0.12);
  --gradient: linear-gradient(112deg, #4f7fe8 0%, #1f9eae 52%, #7c5cc4 100%);
  --gradient-text: linear-gradient(105deg, #3566d6 0%, #137f8d 54%, #6546b8 100%);
  --gradient-soft: linear-gradient(112deg, rgba(79, 127, 232, 0.10), rgba(31, 158, 174, 0.08) 52%, rgba(124, 92, 196, 0.10));
  --nav: rgba(244, 247, 251, 0.74);
  --shadow: 0 24px 70px rgba(53, 80, 120, 0.14);
  --shadow-soft: 0 12px 36px rgba(53, 80, 120, 0.09);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --pill: 999px;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Noto Sans SC", sans-serif;
  --font-mono: "Inter", "Noto Sans SC", sans-serif;
}

[data-theme="dark"] {
  --bg: #0e1220;
  --bg-2: #151b2e;
  --surface: rgba(22, 28, 46, 0.68);
  --surface-2: rgba(28, 35, 56, 0.92);
  --ink: #f4f6ff;
  --muted: #a9b4cc;
  --faint: #77839d;
  --line: rgba(140, 170, 230, 0.18);
  --blue: #8fb0ff;
  --cyan: #75d8e4;
  --violet: #b79af5;
  --amber: #f0b27e;
  --blue-soft: rgba(143, 176, 255, 0.12);
  --cyan-soft: rgba(117, 216, 228, 0.11);
  --violet-soft: rgba(183, 154, 245, 0.12);
  --amber-soft: rgba(240, 178, 126, 0.12);
  --gradient-text: linear-gradient(105deg, #a9c5ff 0%, #8ee9ed 54%, #d2b9ff 100%);
  --nav: rgba(14, 18, 32, 0.74);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.24);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 620px at 82% -8%, rgba(79, 127, 232, 0.16), transparent 68%),
    radial-gradient(760px 560px at -8% 28%, rgba(31, 158, 174, 0.10), transparent 70%),
    radial-gradient(760px 640px at 76% 92%, rgba(124, 92, 196, 0.10), transparent 72%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(900px 620px at 82% -8%, rgba(143, 176, 255, 0.16), transparent 68%),
    radial-gradient(760px 560px at -8% 28%, rgba(117, 216, 228, 0.10), transparent 70%),
    radial-gradient(760px 640px at 76% 92%, rgba(183, 154, 245, 0.12), transparent 72%);
}

img,
svg {
  display: block;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: rgba(79, 127, 232, 0.22);
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

[data-theme="dark"] #starfield {
  opacity: 0.36;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  padding: 10px 0;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  background: var(--gradient);
}

.brand-mark .icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-name em {
  margin-left: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

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

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: var(--surface);
  border-color: rgba(79, 127, 232, 0.4);
}

.icon-btn:active {
  transform: scale(0.96);
}

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

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

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

.menu-btn {
  display: none;
}

.menu-close {
  display: none;
}

.mobile-nav {
  position: fixed;
  top: 66px;
  left: 16px;
  right: 16px;
  z-index: 99;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-nav a {
  display: block;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn:hover .icon {
  transform: translateX(2px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 14px;
  border-radius: 12px;
}

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

.btn-primary {
  background: #2f5fd0;
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #244cae;
  box-shadow: 0 16px 34px rgba(79, 127, 232, 0.32);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(79, 127, 232, 0.42);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(79, 127, 232, 0.42);
  color: var(--blue);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-soft);
  transform: translateY(-1px);
}

/* ---------- Shared ---------- */

.glass {
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: none;
}

.product-card,
.feature,
.price-card {
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.accent {
  color: var(--blue);
}

.check {
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-off {
  stroke: var(--faint);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 5px rgba(79, 127, 232, 0.10);
  animation: pulse 2.4s ease-in-out infinite;
}

.aurora-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 180% 180%;
  animation: aurora-shift 6s ease infinite;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 152px 0 96px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 56px;
}

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

.hero h1 {
  margin: 22px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 540px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 46px;
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.console {
  position: relative;
  width: min(100%, 620px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] .console-top {
  background: rgba(255, 255, 255, 0.02);
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(82, 98, 125, 0.28);
}

.console-tabs {
  display: flex;
  gap: 14px;
  margin-left: 8px;
  color: var(--faint);
  font-size: 12px;
}

.console-tabs .active {
  color: var(--ink);
  font-weight: 600;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 13px;
}

.console-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3fbf8f;
  box-shadow: 0 0 8px rgba(63, 191, 143, 0.6);
}

.console-body {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 146px;
  gap: 14px;
  padding: 16px;
}

.console-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--faint);
  cursor: default;
}

.rail-icon.active {
  border-color: var(--line);
  background: var(--blue-soft);
  color: var(--blue);
}

.rail-icon .icon {
  width: 17px;
  height: 17px;
}

.console-editor {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.44);
}

[data-theme="dark"] .console-editor {
  background: rgba(255, 255, 255, 0.025);
}

.editor-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.editor-badge {
  color: var(--cyan);
}

.editor-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.editor-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.editor-lines {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.editor-lines i {
  display: block;
  height: 5px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--line), transparent);
}

.editor-lines i:nth-child(2) { width: 88%; }
.editor-lines i:nth-child(3) { width: 94%; }
.editor-lines i:nth-child(4) { width: 62%; }

.editor-generating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
}

.editor-generating em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(79, 127, 232, 0.22);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.console-side {
  display: grid;
  align-content: start;
  gap: 10px;
}

.mini-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.34);
}

[data-theme="dark"] .mini-card {
  background: rgba(255, 255, 255, 0.025);
}

.mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.mini-tag {
  padding: 1px 5px;
  border-radius: var(--pill);
  background: var(--violet-soft);
  color: var(--violet);
  font-family: var(--font-body);
  font-size: 13px;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 44px;
  margin-top: 8px;
}

.waveform i {
  flex: 1;
  min-width: 2px;
  border-radius: var(--pill);
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: 0.78;
}

.mini-time {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.comic-preview {
  margin-top: 8px;
  height: 72px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-2);
}

.comic-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.console-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.timeline-track {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: var(--pill);
  background: var(--line);
}

.timeline-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
}

.float-chip .icon {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

.chip-a {
  top: 8px;
  left: -18px;
}

.chip-b {
  top: 38%;
  right: -24px;
  animation-delay: -2s;
}

.chip-c {
  bottom: 14px;
  left: 8%;
  animation-delay: -4s;
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 15px 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.7;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 108px 0;
  scroll-margin-top: 88px;
}

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

.section-head h2 {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 246px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

main,
.marquee,
.footer {
  position: relative;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 127, 232, 0.38);
  box-shadow: 0 22px 52px rgba(53, 80, 120, 0.16);
}

.feature-card {
  min-height: 300px;
  background-color: var(--surface-2);
  background-image: none;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-icon,
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.product-icon .icon,
.feature-icon .icon {
  width: 19px;
  height: 19px;
}

.icon-blue { background: var(--blue-soft); color: var(--blue); }
.icon-cyan { background: var(--cyan-soft); color: var(--cyan); }
.icon-violet { background: var(--violet-soft); color: var(--violet); }
.icon-amber { background: var(--amber-soft); color: var(--amber); }

.product-card h3 {
  margin: 24px 0 9px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 13px;
}

.product-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.product-go .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.product-card:hover .product-go .icon {
  transform: translateX(3px);
}

.compact {
  min-height: 230px;
  padding: 20px;
}

.compact h3 {
  font-size: 17px;
  margin-top: 20px;
}

.compact p {
  font-size: 13px;
}

/* ---------- Workflow ---------- */

.workflow-section {
  background: linear-gradient(180deg, transparent, rgba(234, 240, 248, 0.42), transparent);
}

[data-theme="dark"] .workflow-section {
  background: linear-gradient(180deg, transparent, rgba(21, 27, 46, 0.5), transparent);
}

.workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
}

.workflow-line {
  position: absolute;
  top: 56px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 127, 232, 0.45), rgba(124, 92, 196, 0.45), transparent);
}

.workflow-step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--blue);
}

.workflow-step h3 {
  margin: 18px 0 7px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.gallery-novel { grid-column: span 5; height: 440px; }
.gallery-comic { grid-column: span 7; height: 440px; }
.gallery-album { grid-column: span 4; height: 300px; }
.gallery-film { grid-column: span 8; height: 300px; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 38px 18px 16px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 20, 0.82));
  font-size: 13px;
}

.gallery-item figcaption span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.gallery-item figcaption strong {
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 127, 232, 0.34);
  box-shadow: 0 20px 46px rgba(53, 80, 120, 0.13);
}

.feature-icon {
  width: 40px;
  height: 40px;
}

.feature h3 {
  margin: 22px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 17px;
  border-radius: var(--radius);
}

.price-card.featured {
  border-color: rgba(79, 127, 232, 0.5);
  transform: translateY(-6px);
}

.popular {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--gradient);
  color: #081224;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.price-head {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.price {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}

.price em {
  margin-right: 2px;
  font-size: 15px;
  font-style: normal;
}

.price span {
  margin-left: 3px;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
}

.price-desc {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.price-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.price-card li b {
  color: var(--cyan);
  font-weight: 600;
}

.price-card li.off {
  opacity: 0.62;
}

.price-card li.off b {
  color: var(--faint);
}

/* ---------- CTA ---------- */

.cta-section {
  padding: 92px 0 116px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 66px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  background-color: var(--surface-2);
  background-image: none;
  border: 0;
  box-shadow: none;
}

.cta-grid {
  display: none;
}

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

.cta-panel h2 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.cta-panel p {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 15px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 54px 0 22px;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
}

.footer-brand p {
  max-width: 300px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

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

.footer-contact {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.footer-contact:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-bottom .icp {
  color: var(--muted);
}

.footer-bottom .icp:hover {
  color: var(--blue);
}

/* ---------- Contact dialog ---------- */

[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 12, 20, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-card {
  position: relative;
  width: min(680px, 100%);
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contact-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
}

.contact-sub {
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 13px;
}

.contact-qrs {
  display: flex;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.contact-qrs figure {
  flex: 0 0 150px;
  margin: 0;
}

.contact-qrs img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
}

.contact-qrs figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Motion ---------- */

@keyframes aurora-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79, 127, 232, 0.08); }
  50% { box-shadow: 0 0 0 8px rgba(79, 127, 232, 0.02); }
}

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

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero-grid {
    gap: 36px;
  }

  .console-body {
    grid-template-columns: 42px minmax(0, 1fr) 132px;
  }

  .span-3 {
    grid-column: span 6;
  }

  .span-4 {
    grid-column: span 6;
  }

  .span-2 {
    grid-column: span 6;
  }

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

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

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .nav-login {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .hero {
    padding-top: 132px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

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

  .hero-visual {
    min-height: 0;
    padding: 12px 0 22px;
  }

  .console {
    max-width: 680px;
  }

  .chip-a {
    left: 0;
  }

  .chip-b {
    right: 0;
  }

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

  .gallery-novel,
  .gallery-comic,
  .gallery-album,
  .gallery-film {
    grid-column: span 6;
    height: 320px;
  }

  .workflow-line {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, 1200px);
  }

  .site-header {
    padding: 12px 0;
  }

  .nav-actions .btn-primary {
    padding: 8px 12px;
  }

  .hero {
    padding: 120px 0 72px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.5rem);
    line-height: 1.06;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .hero-stats {
    gap: 20px;
    justify-content: space-between;
  }

  .hero-stats strong {
    font-size: 22px;
  }

  .console-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .console-rail {
    flex-direction: row;
  }

  .console-side {
    grid-template-columns: 1fr 1fr;
  }

  .console-tabs {
    gap: 8px;
    margin-left: 0;
  }

  .console-tabs span:nth-child(n + 3) {
    display: none;
  }

  .float-chip {
    display: none;
  }

  .marquee-track {
    gap: 18px;
    animation-duration: 38s;
  }

  .section {
    padding: 78px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

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

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

  .gallery-novel,
  .gallery-comic,
  .gallery-album,
  .gallery-film {
    grid-column: auto;
  }

  .gallery-novel,
  .gallery-comic {
    height: 420px;
  }

  .gallery-album {
    height: 300px;
  }

  .gallery-film {
    height: 240px;
  }

  .span-6,
  .span-4,
  .span-3,
  .span-2 {
    grid-column: auto;
  }

  .product-card,
  .feature-card,
  .compact {
    min-height: 0;
  }

  .workflow,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .pricing-grid::-webkit-scrollbar {
    display: none;
  }

  .price-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .price-card.featured {
    order: 0;
    transform: none;
  }

  .cta-panel {
    padding: 48px 20px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .contact-card {
    padding: 28px 16px 20px;
  }

  .contact-qrs {
    justify-content: flex-start;
  }

  .contact-qrs figure {
    flex-basis: 136px;
  }

  .contact-qrs img {
    width: 136px;
    height: 136px;
  }

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

@media (max-width: 420px) {
  .brand-name em {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .console-side {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 12px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ---------- Desktop-first scale ---------- */

@media (min-width: 1100px) {
  .wrap {
    width: min(1560px, calc(100% - 64px));
  }

  .section {
    padding: 120px 0;
  }

  .hero {
    padding: 168px 0 112px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 46%);
    gap: clamp(48px, 4vw, 72px);
  }

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

  .hero h1 {
    font-size: clamp(5rem, 5.8vw, 6.8rem);
  }

  .hero-visual {
    min-height: 620px;
  }

  .console {
    width: 100%;
    max-width: 820px;
  }

  .console-body {
    grid-template-columns: 52px minmax(0, 1fr) 170px;
  }

  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr);
    align-items: end;
    gap: 56px;
    max-width: none;
    margin-bottom: 56px;
  }

  .section-head p {
    justify-self: end;
    max-width: 520px;
    margin-bottom: 4px;
  }

  .product-card {
    min-height: 280px;
    padding: 28px;
  }

  .feature-card {
    min-height: 340px;
  }

  .gallery-novel,
  .gallery-comic {
    height: 500px;
  }

  .gallery-album,
  .gallery-film {
    height: 340px;
  }

  .feature,
  .workflow-step {
    padding: 30px;
  }

  .price-card {
    padding: 26px 20px;
  }
}

@media (min-width: 1600px) {
  .wrap {
    width: min(1640px, calc(100% - 96px));
  }

  .hero h1 {
    font-size: 6.8rem;
  }

  .console {
    max-width: 820px;
  }
}

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

  #starfield {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
