/* ==========================================================================
   SmartCube — base design system
   Columbina design language · moonlight / ivory / indigo · 2026
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "SmartCube Sans";
  src: url("../fonts/smartcube-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SmartCube Sans";
  src: url("../fonts/smartcube-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SmartCube Sans";
  src: url("../fonts/smartcube-sans-700.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SmartCube Serif";
  src: url("../fonts/smartcube-serif-600.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --font-sans: "SmartCube Sans", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC",
    "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --font-serif: "SmartCube Serif", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;

  --bg: #070a12;
  --bg-2: #0b101d;
  --bg-3: #111829;
  --surface: rgba(221, 229, 245, 0.045);
  --surface-2: rgba(221, 229, 245, 0.075);
  --surface-3: rgba(221, 229, 245, 0.11);
  --line: rgba(204, 217, 240, 0.11);
  --line-2: rgba(204, 217, 240, 0.2);
  --text: #f3eee4;
  --text-2: #d9d5ca;
  --muted: #a7abc0;
  --dim: #858aa1;
  --violet: #9fb4d8;
  --violet-2: #c9d8f0;
  --indigo: #2a3566;
  --cyan: #b8c9e4;
  --pink: #c98ba8;
  --amber: #d8b573;
  --green: #8fb8a6;
  --red: #d88a94;

  --grad: linear-gradient(135deg, #f0e9db 0%, #dfe4ee 48%, #c6d5ec 100%);
  --grad-soft: linear-gradient(135deg, rgba(201, 216, 240, 0.18), rgba(201, 139, 168, 0.08));
  --grad-text: linear-gradient(100deg, #f4eee2 0%, #c9d8f0 52%, #c98ba8 100%);

  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.78);
  --shadow-md: 0 20px 60px -24px rgba(0, 0, 0, 0.62);
  --glow: 0 0 0 1px rgba(201, 216, 240, 0.16), 0 18px 60px -18px rgba(159, 180, 216, 0.42);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shell: 1240px;
  --head-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #f1ede4;
  --bg-2: #f8f5ee;
  --bg-3: #fffdf8;
  --surface: rgba(24, 29, 47, 0.04);
  --surface-2: rgba(24, 29, 47, 0.07);
  --surface-3: rgba(24, 29, 47, 0.11);
  --line: rgba(24, 29, 47, 0.11);
  --line-2: rgba(24, 29, 47, 0.2);
  --text: #161b2c;
  --text-2: #343a50;
  --muted: #5d6378;
  --dim: #6d7285;
  --violet: #445a86;
  --violet-2: #526c9d;
  --indigo: #2a3566;
  --cyan: #5d7b96;
  --pink: #9c5f78;
  --amber: #a97d3c;
  --green: #4f806c;
  --red: #b65e6b;

  --grad: linear-gradient(135deg, #1c2440 0%, #2d3a63 100%);
  --grad-text: linear-gradient(100deg, #222a44 0%, #526c9d 52%, #9c5f78 100%);
  --shadow-lg: 0 36px 90px -34px rgba(35, 42, 68, 0.3);
  --shadow-md: 0 20px 50px -26px rgba(35, 42, 68, 0.24);
  --glow: 0 0 0 1px rgba(68, 90, 134, 0.18), 0 18px 50px -20px rgba(68, 90, 134, 0.28);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(159, 180, 216, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4b3b86, #27213d);
  border: 3px solid var(--bg);
  border-radius: 10px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9bdf5, #a79ad6);
  border-color: var(--bg);
}

/* ---------- Layout utilities ---------- */
.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 116px 0;
}

.section.is-tight {
  padding: 78px 0;
}

.section-line {
  border-top: 1px solid var(--line);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-sm {
  width: 1em;
  height: 1em;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-2);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(201, 139, 168, 0.75);
}

.eyebrow.no-dot::before {
  display: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 54px;
}

.section-head .head-copy {
  max-width: 760px;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.section-head p {
  margin-top: 18px;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-head .head-link {
  flex: none;
  margin-bottom: 6px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}

.text-link .icon {
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--violet-2);
  gap: 12px;
}

.text-link:hover .icon {
  transform: translateX(2px);
}

/* ---------- Background ---------- */
.bg-night {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 72% -18%, rgba(201, 216, 240, 0.12), transparent 58%),
    radial-gradient(90% 80% at 10% 100%, rgba(120, 64, 92, 0.1), transparent 58%),
    linear-gradient(180deg, #060911 0%, #0a0f1c 52%, #070a12 100%);
  pointer-events: none;
}

.moonlight {
  position: absolute;
  top: -30vw;
  right: -16vw;
  width: 72vw;
  height: 72vw;
  min-width: 620px;
  min-height: 620px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 46% 46%,
    rgba(246, 241, 231, 0.4) 0%,
    rgba(217, 227, 244, 0.18) 32%,
    rgba(201, 216, 240, 0.05) 56%,
    transparent 70%
  );
  filter: blur(9px);
  opacity: 0.8;
}

.moonlight::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  border: 1px solid rgba(243, 238, 228, 0.16);
  box-shadow: inset -24px -34px 70px rgba(7, 10, 18, 0.55);
}

.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}

.mist-a {
  width: 50vw;
  height: 40vw;
  min-width: 460px;
  min-height: 360px;
  left: -14vw;
  top: -12vw;
  background: radial-gradient(circle at 42% 42%, rgba(49, 67, 122, 0.6), transparent 66%);
  animation: drift-a 34s ease-in-out infinite alternate;
}

.mist-b {
  width: 42vw;
  height: 42vw;
  min-width: 380px;
  min-height: 380px;
  right: 2vw;
  bottom: -26vw;
  background: radial-gradient(circle at 50% 50%, rgba(131, 72, 100, 0.34), transparent 68%);
  animation: drift-c 42s ease-in-out infinite alternate;
}

.stars {
  position: absolute;
  inset: -10%;
  opacity: 0.55;
  background-image:
    radial-gradient(1.2px 1.2px at 18% 24%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1px 1px at 62% 12%, rgba(217, 227, 244, 0.8), transparent 60%),
    radial-gradient(1.4px 1.4px at 84% 36%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 34% 68%, rgba(217, 227, 244, 0.65), transparent 60%),
    radial-gradient(1.5px 1.5px at 74% 78%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 8% 84%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 48% 42%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 92% 88%, rgba(255, 255, 255, 0.5), transparent 60%);
  background-size: 520px 520px;
  animation: star-twinkle 9s ease-in-out infinite alternate;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, transparent 38%, rgba(2, 4, 9, 0.62) 100%);
}

[data-theme="light"] .bg-night {
  background:
    radial-gradient(110% 90% at 78% -16%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(80% 80% at 8% 100%, rgba(201, 139, 168, 0.12), transparent 55%),
    linear-gradient(180deg, #f4f0e8 0%, #f0ece3 55%, #f5f1e9 100%);
}

[data-theme="light"] .moonlight {
  opacity: 0.55;
  background: radial-gradient(
    circle at 46% 46%,
    rgba(255, 252, 244, 0.95) 0%,
    rgba(219, 227, 241, 0.35) 42%,
    transparent 70%
  );
}

[data-theme="light"] .mist {
  opacity: 0.3;
  filter: blur(120px);
}

[data-theme="light"] .stars {
  opacity: 0.18;
}

[data-theme="light"] .vignette {
  background: radial-gradient(120% 100% at 50% 0%, transparent 48%, rgba(120, 105, 90, 0.08) 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@keyframes drift-a {
  to {
    transform: translate3d(5vw, 3vw, 0) scale(1.08);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-5vw, 6vw, 0) scale(0.92);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(3vw, -4vw, 0) scale(1.1);
  }
}

@keyframes star-twinkle {
  from {
    opacity: 0.28;
  }
  to {
    opacity: 0.62;
  }
}

/* ---------- Header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--head-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 17, 0.7), transparent);
  opacity: 1;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: -1;
}

[data-theme="light"] .site-head::after {
  background: linear-gradient(180deg, rgba(241, 237, 228, 0.76), transparent);
}

.site-head.is-scrolled,
body.menu-open .site-head {
  background: rgba(6, 9, 17, 0.78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

[data-theme="light"] .site-head.is-scrolled,
[data-theme="light"] body.menu-open .site-head {
  background: rgba(248, 245, 238, 0.86);
}

.site-head.is-scrolled::after,
body.menu-open .site-head::after {
  opacity: 0;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  min-width: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 20px -8px rgba(159, 180, 216, 0.8);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-text small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.brand-ver {
  margin-left: 3px;
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: center;
}

.nav-links > a {
  position: relative;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-links > a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links > a[aria-current="page"] {
  color: var(--text);
}

.nav-links > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 10px var(--violet);
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-login .icon {
  width: 15px;
  height: 15px;
}

.nav-login:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links > a.nav-cloud {
  color: var(--text-2);
}

.nav-links > a.nav-cloud::before {
  content: "✦";
  display: inline-block;
  margin-right: 5px;
  font-size: 8px;
  vertical-align: 1px;
  color: var(--pink);
}

.nav-foot-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.nav-foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14px;
}

.nav-foot-links a .icon {
  width: 15px;
  height: 15px;
  color: var(--violet-2);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.icon-btn:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

.menu-btn {
  display: none;
}

.menu-btn .icon-close {
  display: none;
}

body.menu-open .menu-btn .icon-menu {
  display: none;
}

body.menu-open .menu-btn .icon-close {
  display: block;
}

.nav-foot {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--grad);
  background-size: 140% 100%;
  color: #11162a;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 40px -14px rgba(159, 180, 216, 0.65);
}

[data-theme="light"] .btn-primary {
  color: #f8f3e9;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px -16px rgba(28, 36, 64, 0.45);
}

[data-theme="light"] .cta-panel .btn-primary,
[data-theme="light"] .page-cta .btn-primary,
[data-theme="light"] .release-panel .btn-primary,
[data-theme="light"] .auth-aside .btn-primary {
  background: linear-gradient(135deg, #f0e9db 0%, #cfd9ea 100%);
  color: #11162a;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.28), transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -16px rgba(159, 180, 216, 0.9);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  border-color: var(--line-2);
  background: var(--surface);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 216, 240, 0.5);
  background: var(--surface-2);
}

.btn-sm {
  height: 42px;
  padding: 0 18px;
  font-size: 13.5px;
}

.btn-sm .icon {
  width: 16px;
  height: 16px;
}

.btn-lg {
  height: 58px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Tags / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.chip .dot,
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.chip-live {
  color: var(--green);
  border-color: rgba(143, 184, 166, 0.24);
  background: rgba(143, 184, 166, 0.08);
}

.chip-live .dot {
  box-shadow: 0 0 0 0 rgba(143, 184, 166, 0.5);
  animation: pulse-dot 2.4s infinite;
}

.chip-violet {
  color: var(--violet-2);
  border-color: rgba(201, 216, 240, 0.3);
  background: rgba(159, 180, 216, 0.1);
}

.chip-cyan {
  color: var(--cyan);
  border-color: rgba(201, 139, 168, 0.24);
  background: rgba(201, 139, 168, 0.07);
}

.chip-amber {
  color: var(--amber);
  border-color: rgba(216, 181, 115, 0.24);
  background: rgba(216, 181, 115, 0.07);
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 184, 166, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(143, 184, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 184, 166, 0);
  }
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Static state for automated visual checks and print. */
.shot-mode [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.shot-mode .marquee-track,
.shot-mode .cube,
.shot-mode .float-card,
.shot-mode .eq i,
.shot-mode .chip-live .dot {
  animation: none !important;
}

/* ---------- Footer ---------- */
.site-foot {
  position: relative;
  margin-top: 40px;
  padding: 80px 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(159, 180, 216, 0.04));
  overflow: hidden;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 54px;
  padding-bottom: 60px;
}

.foot-brand p {
  max-width: 320px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.foot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.foot-col h3 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.foot-col a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.foot-col a:hover {
  color: var(--text);
  transform: translateX(3px);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
}

.foot-bottom .foot-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.foot-bottom a:hover {
  color: var(--text);
}

.foot-mark {
  position: absolute;
  left: 50%;
  bottom: -0.26em;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: clamp(80px, 16vw, 230px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(201, 216, 240, 0.1), transparent 78%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(12, 12, 20, 0.75);
  color: var(--text);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}

[data-theme="light"] .to-top {
  background: rgba(255, 255, 255, 0.8);
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--violet-2);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 40px);
  padding: 12px 20px;
  border: 1px solid rgba(201, 216, 240, 0.35);
  border-radius: 999px;
  background: rgba(14, 12, 26, 0.92);
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(4, 4, 9, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox figure {
  max-width: min(1500px, 94vw);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lightbox img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 50px 120px -30px #000;
}

.lightbox figcaption {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: #c9c4e0;
  font-size: 13px;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.lightbox-close {
  top: 28px;
  right: 28px;
}

.lightbox-prev {
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.field label .req {
  color: var(--pink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  height: 132px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.7;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(201, 216, 240, 0.65);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(159, 180, 216, 0.1);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: rgba(251, 113, 133, 0.65);
}

.field .err {
  display: none;
  font-size: 11.5px;
  color: var(--red);
}

.field.has-error .err {
  display: block;
}

.form-note {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--dim);
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 184, 166, 0.3);
  border-radius: 12px;
  background: rgba(143, 184, 166, 0.08);
  color: var(--green);
  font-size: 13px;
  line-height: 1.6;
}

.form-status.show {
  display: flex;
}

/* ---------- Responsive header/footer ---------- */
@media (max-width: 1160px) {
  .brand-ver {
    display: none;
  }

  .nav-links > a {
    padding-inline: 10px;
    font-size: 13px;
  }

  .nav-inner {
    gap: 16px;
  }
}

@media (max-width: 1020px) {
  .shell {
    width: calc(100% - 40px);
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-btn {
    display: inline-grid;
  }

  .nav-links {
    position: fixed;
    inset: var(--head-h) 0 auto;
    z-index: 70;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    width: 100%;
    max-width: none;
    height: calc(100vh - var(--head-h));
    height: calc(100dvh - var(--head-h));
    padding: 26px 24px 40px;
    background: var(--bg);
    background-image: radial-gradient(90% 50% at 90% 0%, rgba(159, 180, 216, 0.16), transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    overflow-y: auto;
    justify-self: stretch;
    align-self: stretch;
  }

  body.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links > a {
    padding: 17px 14px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
  }

  .nav-links > a::after {
    display: none;
  }

  .nav-links > a[aria-current="page"] {
    color: var(--violet-2);
  }

  .nav-links > a[aria-current="page"]::before {
    content: "●";
    display: inline-block;
    margin-right: 10px;
    font-size: 10px;
    vertical-align: middle;
    color: var(--cyan);
  }

  .nav-foot {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
  }

  .nav-foot .btn {
    width: 100%;
  }

  .nav-foot p {
    color: var(--dim);
    font-size: 12px;
    text-align: center;
  }

  .foot-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .foot-brand p {
    max-width: 520px;
  }
}

@media (max-width: 680px) {
  :root {
    --head-h: 68px;
  }

  .shell {
    width: calc(100% - 32px);
  }

  .section {
    padding: 82px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 38px;
  }

  .section-head p {
    font-size: 15.5px;
  }

  .site-head .nav-actions .btn {
    display: none;
  }

  .nav-login {
    display: none;
  }

  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .foot-col:last-child {
    grid-column: auto;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
