/* 云游鲸 WHALEWAY · 深海影像平台视觉系统 */

:root {
  --abyss: #01060f;
  --deep: #04101f;
  --sea: #0a1f3d;
  --sea-mid: #12325c;
  --sea-bright: #1a4a7a;
  --cyan: #3ecfff;
  --cyan-soft: #7adfff;
  --cyan-glow: rgba(62, 207, 255, 0.35);
  --gold: #e0b45c;
  --gold-rich: #f0c56e;
  --gold-dim: rgba(224, 180, 92, 0.22);
  --foam: #f0f6ff;
  --foam-dim: rgba(220, 232, 255, 0.72);
  --muted: rgba(170, 195, 230, 0.48);
  --line: rgba(100, 170, 255, 0.14);
  --line-strong: rgba(120, 190, 255, 0.28);
  --glass: rgba(12, 36, 68, 0.55);
  --glass-border: rgba(100, 190, 255, 0.22);
  --nav-h: 72px;
  --font-display: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
}

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

/* 文本插入光标只允许出现在真正的文本输入面；图片/视觉/按钮等一律禁止 */
:where(:not(input):not(textarea)) { caret-color: transparent; }
input, textarea, [contenteditable="true"], [contenteditable="plaintext-only"] { caret-color: auto; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--foam);
  background: var(--abyss);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-intro-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ========== INTRO：巨鲸跃出海面 → Logo ========== */

.intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000814;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: opacity 1s var(--ease), visibility 1s;
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-stage {
  position: absolute;
  inset: 0;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(20, 90, 160, 0.55), transparent 55%),
    radial-gradient(ellipse 40% 30% at 70% 20%, rgba(62, 207, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 35% 25% at 30% 30%, rgba(224, 180, 92, 0.08), transparent 55%),
    linear-gradient(180deg, #00050e 0%, #041428 45%, #062040 70%, #031018 100%);
}

.intro-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(122,223,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 85% 50%, rgba(224,180,92,0.4), transparent),
    radial-gradient(1px 1px at 15% 75%, rgba(255,255,255,0.2), transparent);
  opacity: 0.7;
  animation: star-twinkle 4s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.intro-whale-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro-whale {
  width: min(88vw, 920px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 40px 80px rgba(0, 40, 80, 0.7));
  transform: translate(8%, 55%) rotate(16deg) scale(0.85);
  opacity: 0;
  animation: whale-breach 3.2s 0.2s var(--ease) forwards;
  mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
}

@keyframes whale-breach {
  0% {
    transform: translate(12%, 70%) rotate(22deg) scale(0.8);
    opacity: 0;
  }
  18% { opacity: 1; }
  48% {
    transform: translate(-2%, -6%) rotate(-6deg) scale(1.05);
    opacity: 1;
  }
  72% {
    transform: translate(-4%, 4%) rotate(2deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-4%, 8%) rotate(4deg) scale(0.55);
    opacity: 0;
  }
}

.intro-water {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 36%;
  z-index: 4;
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 60, 110, 0.45) 20%, #061a38 55%, #020b18 100%);
  border-top: 1px solid rgba(120, 200, 255, 0.25);
  box-shadow: 0 -30px 80px rgba(40, 140, 220, 0.15);
}

.intro-water::before {
  content: "";
  position: absolute;
  inset: -40px 10% auto;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(180, 230, 255, 0.35), transparent 70%);
  opacity: 0;
  animation: splash-bloom 1.6s 1.1s var(--ease) forwards;
}

.intro-water::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(100, 210, 255, 0.7), rgba(224, 180, 92, 0.5), rgba(100, 210, 255, 0.7), transparent);
  animation: water-line 2.5s ease-in-out infinite;
}

@keyframes splash-bloom {
  0% { opacity: 0; transform: scaleX(0.4); }
  40% { opacity: 1; transform: scaleX(1.1); }
  100% { opacity: 0.35; transform: scaleX(1); }
}

@keyframes water-line {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.intro-splash-particles {
  position: absolute;
  left: 50%;
  bottom: 32%;
  width: min(70vw, 560px);
  height: 140px;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: splash-show 1.5s 1.15s ease-out forwards;
}

.intro-splash-particles i {
  position: absolute;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(200, 235, 255, 0.9);
  box-shadow: 0 0 8px rgba(100, 200, 255, 0.8);
  animation: particle-up 1.3s ease-out forwards;
}

.intro-splash-particles i:nth-child(1) { left: 15%; animation-delay: 1.15s; }
.intro-splash-particles i:nth-child(2) { left: 28%; width: 3px; height: 3px; animation-delay: 1.22s; }
.intro-splash-particles i:nth-child(3) { left: 42%; animation-delay: 1.18s; background: var(--gold); }
.intro-splash-particles i:nth-child(4) { left: 55%; width: 4px; height: 4px; animation-delay: 1.25s; }
.intro-splash-particles i:nth-child(5) { left: 68%; animation-delay: 1.2s; }
.intro-splash-particles i:nth-child(6) { left: 78%; width: 3px; height: 3px; animation-delay: 1.28s; background: var(--cyan-soft); }
.intro-splash-particles i:nth-child(7) { left: 35%; animation-delay: 1.3s; }
.intro-splash-particles i:nth-child(8) { left: 62%; animation-delay: 1.32s; }

@keyframes splash-show {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes particle-up {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(-100px) scale(0.3); opacity: 0; }
}

.intro-logo-reveal {
  position: relative;
  z-index: 6;
  text-align: center;
  opacity: 0;
  transform: scale(0.6) translateY(30px);
  animation: logo-become 1.4s 2.85s var(--ease) forwards;
  filter: drop-shadow(0 0 40px rgba(62, 207, 255, 0.25));
}

.intro-logo-reveal img {
  width: min(200px, 48vw);
  margin: 0 auto 1.2rem;
}

.intro-logo-reveal h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: #fff;
  text-shadow: 0 0 40px rgba(62, 207, 255, 0.35);
}

.intro-logo-reveal p {
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--gold-rich);
  font-weight: 300;
}

@keyframes logo-become {
  0% {
    opacity: 0;
    transform: scale(0.55) translateY(40px);
    filter: drop-shadow(0 0 0 transparent) blur(8px);
  }
  40% {
    opacity: 1;
    filter: drop-shadow(0 0 50px rgba(224, 180, 92, 0.5)) blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 36px rgba(62, 207, 255, 0.3));
  }
}

.intro-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(circle at 50% 40%, rgba(224, 180, 92, 0.45), rgba(62, 207, 255, 0.15), transparent 60%);
  opacity: 0;
  animation: morph-flash 0.7s 2.7s ease-out forwards;
  pointer-events: none;
}

@keyframes morph-flash {
  0% { opacity: 0; }
  40% { opacity: 1; }
  100% { opacity: 0; }
}

.intro-skip {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10;
  border: 1px solid var(--line-strong);
  background: rgba(4, 16, 32, 0.55);
  color: var(--foam-dim);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.intro-skip:hover {
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* ========== Nav ========== */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.site-nav.is-scrolled {
  background: rgba(2, 10, 22, 0.82);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
}

.brand-mark {
  width: 64px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(62, 207, 255, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: 0.3em;
}

.brand-text span {
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  color: var(--gold-rich);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--foam-dim);
  letter-spacing: 0.05em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active { color: #fff; }

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-user {
  color: var(--text, #e8eef7);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-auth-error {
  color: #ffb4a8;
  font-size: 0.78rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #f2d28a, var(--gold), #c4923a);
  color: #1a1205;
  box-shadow: 0 8px 28px rgba(224, 180, 92, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(224, 180, 92, 0.5);
}

.btn-cyan {
  background: linear-gradient(135deg, rgba(62, 207, 255, 0.2), rgba(26, 74, 122, 0.6));
  border-color: rgba(62, 207, 255, 0.55);
  color: #e8f8ff;
  box-shadow: 0 8px 28px rgba(62, 207, 255, 0.18);
  backdrop-filter: blur(8px);
}

.btn-cyan:hover {
  border-color: var(--cyan);
  box-shadow: 0 12px 36px rgba(62, 207, 255, 0.32);
  background: linear-gradient(135deg, rgba(62, 207, 255, 0.3), rgba(26, 74, 122, 0.75));
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--foam);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(122, 223, 255, 0.5);
  background: rgba(62, 207, 255, 0.08);
}

.btn-text {
  background: transparent;
  color: var(--foam-dim);
  min-height: auto;
  padding: 0.4rem 0.6rem;
}

.btn-text:hover { color: var(--cyan-soft); transform: none; }

.btn-block { width: 100%; }

/* ========== Hero ========== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(30, 110, 190, 0.4), transparent 55%),
    radial-gradient(ellipse 50% 45% at 12% 75%, rgba(224, 180, 92, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(62, 207, 255, 0.08), transparent 60%),
    linear-gradient(165deg, #020a18 0%, #0a2040 40%, #061830 70%, #030d1c 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(62, 207, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 207, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  animation: mesh-drift 20s linear infinite;
}

@keyframes mesh-drift {
  from { transform: translateY(0); }
  to { transform: translateY(64px); }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.hero-orb-a {
  width: 380px;
  height: 380px;
  top: 10%;
  right: 8%;
  background: rgba(40, 130, 220, 0.28);
  animation: orb-float 10s ease-in-out infinite;
}

.hero-orb-b {
  width: 260px;
  height: 260px;
  bottom: 18%;
  left: 6%;
  background: rgba(224, 180, 92, 0.14);
  animation: orb-float 12s 1s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 24px); }
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 2.5rem));
  text-align: center;
  padding: calc(var(--nav-h) + 2.2rem) 0 4rem;
  animation: hero-rise 1.1s 0.1s var(--ease) both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: min(220px, 52vw);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 28px rgba(62, 207, 255, 0.35)) drop-shadow(0 12px 40px rgba(0, 0, 0, 0.4));
}

.hero-brand {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 4rem);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 0 60px rgba(62, 207, 255, 0.25);
}

.hero-en {
  margin: 0 0 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.58em;
  text-indent: 0.58em;
  color: var(--gold-rich);
  font-weight: 300;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.14em;
  background: linear-gradient(90deg, #fff, var(--cyan-soft), var(--gold-rich));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 auto 2.2rem;
  max-width: 32em;
  font-size: 0.98rem;
  color: var(--foam-dim);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
}

.hero-tags span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(8, 30, 60, 0.4);
  backdrop-filter: blur(6px);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  animation: hint-bob 2.6s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== Sections ========== */

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-glow {
  position: relative;
}

.section-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(600px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent);
  opacity: 0.5;
}

.section-head {
  max-width: 580px;
  margin-bottom: 2.6rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold-rich);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 0.75rem;
}

.section-desc {
  margin: 0;
  color: var(--foam-dim);
  font-size: 0.96rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(160deg, rgba(20, 55, 100, 0.45), rgba(6, 20, 40, 0.65));
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 207, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 207, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 40, 80, 0.35), 0 0 30px rgba(62, 207, 255, 0.08);
}

.feature:hover::before { opacity: 1; }

.feature-index {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--cyan-soft);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  color: #fff;
}

.feature p {
  margin: 0;
  color: var(--foam-dim);
  font-size: 0.9rem;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.flow-step {
  position: relative;
  padding: 1.6rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.flow-step::before {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flow-step:nth-child(1)::before { content: "01"; }
.flow-step:nth-child(2)::before { content: "02"; }
.flow-step:nth-child(3)::before { content: "03"; }
.flow-step:nth-child(4)::before { content: "04"; }

.flow-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
}

.flow-step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--foam-dim);
}

.about-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 340px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(circle at 40% 35%, rgba(40, 120, 200, 0.45), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(224, 180, 92, 0.18), transparent 45%),
    linear-gradient(145deg, #0c2850, #061428);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(30, 100, 180, 0.2);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 207, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 207, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.6;
}

.about-visual img {
  width: min(240px, 60%);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(62, 207, 255, 0.4));
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 35, 65, 0.5);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

.cta-band {
  margin: 0 auto 4.5rem;
  width: min(1120px, calc(100% - 2.5rem));
  padding: 2.8rem clamp(1.4rem, 4vw, 3rem);
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(120deg, rgba(18, 55, 100, 0.85), rgba(8, 28, 55, 0.92)),
    radial-gradient(ellipse at 90% 20%, rgba(224, 180, 92, 0.15), transparent 50%);
  box-shadow: 0 20px 60px rgba(0, 20, 50, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(62, 207, 255, 0.12);
  filter: blur(40px);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  margin: 0 0 0.45rem;
  position: relative;
  z-index: 1;
}

.cta-band p {
  margin: 0;
  color: var(--foam-dim);
  max-width: 32em;
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.cta-band > div:last-child {
  position: relative;
  z-index: 1;
}

/* ========== Product / Auth / Legal (shared) ========== */

.page-hero {
  padding: calc(var(--nav-h) + 3.2rem) 0 2.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(40, 120, 200, 0.35), transparent 55%),
    linear-gradient(180deg, #0a2040, var(--abyss));
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  max-width: 36em;
  color: var(--foam-dim);
}

.module-list { display: grid; }

.module-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.module-item:first-child { border-top: 1px solid var(--line); }

.module-item:hover { background: rgba(62, 207, 255, 0.03); }

.module-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold-rich);
}

.module-item h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.module-item p {
  margin: 0;
  color: var(--foam-dim);
  font-size: 0.9rem;
}

.entry-panel {
  margin-top: 2.75rem;
  padding: 2.3rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(18, 55, 100, 0.7), rgba(8, 28, 55, 0.85));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: 0 0 40px rgba(30, 100, 180, 0.15);
}

.entry-panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.entry-panel p {
  margin: 0;
  color: var(--foam-dim);
  font-size: 0.9rem;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 40% 35%, rgba(40, 120, 200, 0.4), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(224, 180, 92, 0.15), transparent 50%),
    linear-gradient(165deg, #020a18, #0c2850 55%, #061428);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-quote h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 0 0 0.7rem;
}

.auth-quote p {
  margin: 0;
  color: var(--foam-dim);
}

.auth-visual .auth-logo {
  width: 140px;
  margin-top: 2rem;
  filter: drop-shadow(0 0 24px rgba(62, 207, 255, 0.35));
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: #030b16;
  border-left: 1px solid var(--line);
}

.auth-card { width: min(390px, 100%); }

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin: 0 0 0.35rem;
}

.auth-card > p {
  margin: 0 0 1.6rem;
  color: var(--foam-dim);
  font-size: 0.9rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--foam-dim);
}

.form-group input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus {
  border-color: rgba(62, 207, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(62, 207, 255, 0.12);
}

.form-group input::placeholder { color: var(--muted); }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.3rem 0 1.3rem;
  font-size: 0.84rem;
  color: var(--foam-dim);
}

.form-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.form-row a { color: var(--gold-rich); }

.auth-switch {
  margin-top: 1.3rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.auth-switch a { color: var(--cyan-soft); }

.form-note {
  margin-top: 0.9rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(224, 180, 92, 0.3);
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold-rich);
  font-size: 0.82rem;
  display: none;
}

.form-note.is-visible { display: block; }

.legal-page {
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin: 0 0 1.4rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 1.8rem 0 0.6rem;
  letter-spacing: 0.06em;
}

.legal-page p,
.legal-page li {
  color: var(--foam-dim);
  font-size: 0.92rem;
}

/* ========== Footer ========== */

.site-footer {
  background: #01050c;
  border-top: 1px solid var(--line);
  color: var(--foam-dim);
  padding: 3.2rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.2rem;
  margin-bottom: 2.2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: #fff;
}

.footer-brand img { width: 44px; }

.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.28em;
  font-size: 1.05rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
  max-width: 26em;
}

.site-footer h4 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 400;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--foam-dim);
  transition: color 0.2s;
}

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

.footer-meta {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}

.footer-meta a { color: var(--gold-rich); }

/* ========== Reveal ========== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */

@media (max-width: 960px) {
  .feature-grid,
  .flow { grid-template-columns: 1fr 1fr; }

  .about-panel,
  .auth-page,
  .footer-grid { grid-template-columns: 1fr; }

  .auth-visual { min-height: 280px; }
  .auth-panel { border-left: none; border-top: 1px solid var(--line); }
  .module-item { grid-template-columns: 1fr; gap: 0.45rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links,
  .nav-actions { display: none; }

  .site-nav.is-open .nav-links,
  .site-nav.is-open .nav-actions { display: flex; }

  .site-nav.is-open {
    height: auto;
    background: rgba(2, 10, 22, 0.96);
    backdrop-filter: blur(16px);
    padding-bottom: 1rem;
  }

  .site-nav.is-open .container { flex-wrap: wrap; }

  .site-nav.is-open .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 0 0.4rem;
  }

  .site-nav.is-open .nav-actions { width: 100%; }

  .feature-grid,
  .flow,
  .about-stats { grid-template-columns: 1fr; }

  .hero-brand {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .scroll-hint { display: none; }
}
