:root {
  --ink: #17171d;
  --ink-soft: #3c3d47;
  --muted: rgba(23, 23, 29, 0.56);
  --muted-2: rgba(23, 23, 29, 0.4);
  --line: rgba(23, 23, 29, 0.13);
  --line-soft: rgba(23, 23, 29, 0.08);
  --white: #fff;
  --glass: rgba(255, 255, 255, 0.62);
  --violet: #776bff;
  --violet-2: #a273ff;
  --teal: #43cfc1;
  --peach: #ffb98f;
  --rose: #ff9fc0;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 18px 50px rgba(46, 38, 74, 0.12), 0 2px 8px rgba(46, 38, 74, 0.06);
  --shadow-soft: 0 30px 90px rgba(47, 42, 90, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #f6f4f8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

img,
svg {
  display: block;
}

::selection {
  background: rgba(119, 107, 255, 0.22);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(23, 23, 29, 0.18);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease);
}

.nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line-soft);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.nav.is-solid {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(40, 35, 70, 0.06);
}

.nav.is-solid::after {
  opacity: 1;
}

.nav-inner {
  max-width: 1360px;
  height: 72px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(200, 155, 90, 0.35));
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  letter-spacing: -0.01em;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 30px;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

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

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

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

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--nav {
  height: 38px;
  padding: 0 20px;
  border: 1.3px solid rgba(23, 23, 29, 0.32);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.18);
  font-size: 13.5px;
}

.btn--nav:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid rgba(23, 23, 29, 0.22);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(23, 23, 29, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(40, 32, 70, 0.1);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(20, 20, 30, 0.24);
}

.btn--light {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(40, 32, 70, 0.12);
}

/* ---------------- Shared bits ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(23, 23, 29, 0.14);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.section-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--teal));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .nav-inner {
    height: 64px;
    padding: 0 22px;
  }

  .nav-links {
    display: none;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-text em {
    display: none;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .btn--nav {
    height: 36px;
    padding: 0 17px;
    font-size: 13px;
  }
}

@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;
  }
}
