/* ============================================
   LinkHub v2 — Design tokens + homepage styles
   Brand color: A · 冷静蓝 (#6FA8FF)
   ============================================ */

:root {
  --bg-canvas: #0A0E14;
  --bg-subtle: #0E131B;
  --bg-surface: #131923;
  --bg-elevated: #1A2230;
  --bg-overlay: rgba(19, 25, 35, 0.85);

  --fg-primary: #E7ECF3;
  --fg-secondary: #9BA5B5;
  --fg-muted: #5C667A;
  --fg-disabled: #3A4150;

  --brand: #6FA8FF;
  --brand-hover: #8AB8FF;
  --brand-soft: rgba(111, 168, 255, 0.12);
  --brand-glow: rgba(111, 168, 255, 0.32);
  --brand-strong: rgba(140, 185, 255, 0.95);
  --brand-on: #0A0E14;

  --accent: #B58CFF;
  --accent-soft: rgba(181, 140, 255, 0.10);

  --success: #4ADE80;
  --warning: #FFB547;
  --danger: #FF6B6B;

  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.16);

  --font-sans: 'PingFang SC','HarmonyOS Sans SC','Noto Sans SC','Inter','Inter var',system-ui,-apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;
  --font-mono: 'JetBrains Mono','SF Mono',Menlo,Consolas,monospace;

  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 160ms;
  --duration-normal: 240ms;
  --duration-slow: 320ms;

  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

/* v2 root — scope all overrides under this to not leak outside homepage */
html.v2-home, html.v2-home body {
  background: var(--bg-canvas);
  color: var(--fg-primary);
}

html.v2-home body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0; padding: 0;
}

html.v2-home a { color: inherit; text-decoration: none; }
html.v2-home button { font: inherit; cursor: pointer; }
html.v2-home img, html.v2-home svg { display: block; max-width: 100%; }
html.v2-home *, html.v2-home *::before, html.v2-home *::after { box-sizing: border-box; }

html.v2-home ::selection { background: var(--brand-soft); color: var(--fg-primary); }

html.v2-home ::-webkit-scrollbar { width: 12px; height: 12px; }
html.v2-home ::-webkit-scrollbar-track { background: transparent; }
html.v2-home ::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 6px;
  border: 3px solid var(--bg-canvas);
}
html.v2-home ::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

html.v2-home :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (pointer: coarse) {
  html.v2-home a,
  html.v2-home button,
  html.v2-home [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

/* Hide legacy elements that bleed in from base styles */
html.v2-home .v2-legacy-hide { display: none !important; }

/* Containers */
.v2-container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.v2-section { position: relative; z-index: 2; padding: 120px 0; }
@media (max-width: 720px) {
  .v2-container { padding: 0 20px; }
  .v2-section { padding: 80px 0; }
}

/* Eyebrow chip */
.v2-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px;
  background: var(--brand-soft);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-size: 12.5px; color: var(--fg-secondary);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.v2-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); position: relative; }
.v2-pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--brand); opacity: 0.4;
  animation: v2-pulse 2s ease-out infinite;
}
@keyframes v2-pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Section title */
.v2-section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  background: linear-gradient(180deg, var(--fg-primary) 0%, rgba(231,236,243,0.7) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v2-section-subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--fg-secondary);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 64px;
}
.v2-section-head { text-align: center; margin: 0 auto 72px; max-width: 720px; }
.v2-section-head .v2-section-subtitle { margin-left: auto; margin-right: auto; margin-bottom: 0; }

/* Buttons */
.v2-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 16px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.v2-btn-ghost { color: var(--fg-secondary); background: transparent; }
.v2-btn-ghost:hover { color: var(--fg-primary); background: var(--bg-elevated); }
html.v2-home .v2-btn-primary,
html.v2-home a.v2-btn-primary {
  background: var(--brand) !important;
  color: #0A0E14 !important;
  font-weight: 600;
  box-shadow: 0 6px 20px -8px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  border: none;
  text-decoration: none;
}
html.v2-home .v2-btn-primary:hover,
html.v2-home a.v2-btn-primary:hover {
  background: var(--brand-hover) !important;
  color: #0A0E14 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
html.v2-home .v2-btn-primary .v2-btn-icon { stroke: #0A0E14; color: #0A0E14; }
.v2-btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--fg-primary);
  border: 1px solid var(--border-strong);
}
.v2-btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); }
.v2-btn-lg { height: 48px; padding: 0 24px; font-size: 14.5px; border-radius: 10px; }
.v2-btn-icon { width: 16px; height: 16px; stroke-width: 2; }

/* Aurora + grid + spotlight + grain background layers */
.v2-aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.v2-aurora::before, .v2-aurora::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: v2-float 24s var(--ease-out) infinite alternate;
}
.v2-aurora::before {
  width: 760px; height: 760px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  top: -220px; left: -140px;
}
.v2-aurora::after {
  width: 660px; height: 660px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 200px; right: -180px;
  animation-delay: -8s; opacity: 0.38;
}
.v2-aurora-3 {
  position: fixed; pointer-events: none; z-index: 0;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  filter: blur(110px); opacity: 0.22;
  bottom: -200px; left: 30%;
  animation: v2-float 28s var(--ease-out) infinite alternate;
  animation-delay: -14s;
}
@keyframes v2-float {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,30px) scale(1.08); }
  100% { transform: translate(-30px,60px) scale(0.95); }
}

/* Center spotlight — fills the visual "valley" in hero between the two aurora blobs */
.v2-spotlight {
  position: absolute; pointer-events: none; z-index: 0;
  top: 0; left: 50%; transform: translateX(-50%);
  width: min(1200px, 92vw); height: 780px;
  background: radial-gradient(ellipse at center, rgba(111,168,255,0.18) 0%, rgba(111,168,255,0.06) 30%, transparent 70%);
  filter: blur(20px);
  animation: v2-spotlight-breathe 8s ease-in-out infinite;
}
@keyframes v2-spotlight-breathe {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Grid (softer) */
.v2-grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 18%, transparent 95%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 18%, transparent 95%);
  opacity: 0.75;
}

/* Film grain — extremely subtle, gives premium feel */
.v2-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* NAV */
.v2-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 14, 20, 0.55);
  border-bottom: 1px solid var(--border-subtle);
}
.v2-nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.v2-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  color: var(--fg-primary);
  flex-shrink: 0;
}
.v2-brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 24px -8px var(--brand-glow);
  position: relative; flex-shrink: 0;
}
.v2-brand-mark::after {
  content: ''; position: absolute; inset: 6px;
  border-radius: 4px; background: var(--bg-canvas);
  -webkit-mask: linear-gradient(135deg, #000 30%, transparent 32%, transparent 48%, #000 50%, #000 78%, transparent 80%);
          mask: linear-gradient(135deg, #000 30%, transparent 32%, transparent 48%, #000 50%, #000 78%, transparent 80%);
}
.v2-nav-links {
  display: flex; gap: 32px;
  font-size: 14px; color: var(--fg-secondary);
  list-style: none; margin: 0; padding: 0;
}
.v2-nav-links a { transition: color var(--duration-fast) var(--ease-out); color: inherit; text-decoration: none; }
.v2-nav-links a:hover { color: var(--fg-primary); }
.v2-nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.v2-nav-actions .v2-lang-toggle,
.v2-nav-actions .v2-user-menu {
  font-size: 13.5px; color: var(--fg-secondary);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 6px;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer; position: relative;
  background: transparent; border: 1px solid transparent;
}
.v2-nav-actions .v2-lang-toggle:hover,
.v2-nav-actions .v2-user-menu:hover { color: var(--fg-primary); background: var(--bg-elevated); }
.v2-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--duration-fast) var(--ease-out);
  z-index: 100;
}
.v2-nav-actions .v2-has-dropdown.open .v2-dropdown,
.v2-nav-actions .v2-has-dropdown:hover .v2-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.v2-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 6px;
  font-size: 13.5px; color: var(--fg-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}
.v2-dropdown a:hover { background: var(--bg-elevated); color: var(--fg-primary); }
.v2-dropdown a.active { background: var(--bg-elevated); color: var(--fg-primary); }
@media (max-width: 880px) {
  .v2-nav-links { display: none; }
}
@media (max-width: 540px) {
  .v2-nav-action-hide-sm { display: none; }
}

/* HERO */
.v2-hero {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto;
  padding: 120px 32px 140px;
  text-align: center;
}
.v2-sparkles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 62% 46% at 50% 35%, #000 18%, rgba(0,0,0,0.72) 58%, transparent 88%);
          mask-image: radial-gradient(ellipse 62% 46% at 50% 35%, #000 18%, rgba(0,0,0,0.72) 58%, transparent 88%);
}
.v2-hero::before,
.v2-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 322px;
  z-index: 1;
  pointer-events: none;
  transform: translateX(-50%);
}
.v2-hero::before {
  width: min(680px, 72vw);
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(111,168,255,0.14) 12%, rgba(111,168,255,0.84) 48%, rgba(181,140,255,0.54) 58%, transparent 100%);
  filter: blur(1px);
  opacity: 0.76;
}
.v2-hero::after {
  width: min(360px, 46vw);
  height: 6px;
  background: linear-gradient(90deg, transparent 0%, rgba(111,168,255,0.28) 20%, rgba(255,255,255,0.72) 52%, transparent 100%);
  filter: blur(10px);
  opacity: 0.46;
}
.v2-hero > .v2-eyebrow,
.v2-hero > .v2-display,
.v2-hero > .v2-subtitle,
.v2-hero > .v2-cta-row,
.v2-hero > .v2-trust {
  position: relative;
  z-index: 2;
}
.v2-eyebrow {
  opacity: 0; transform: translateY(8px);
  animation: v2-fade-up 800ms var(--ease-out) 0.1s forwards;
}
.v2-display {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--fg-primary);
}
.v2-display .v2-word {
  display: inline-block;
  opacity: 0; transform: translateY(14px);
  animation: v2-fade-up 900ms var(--ease-out) forwards;
  background: linear-gradient(180deg, var(--fg-primary) 0%, rgba(231,236,243,0.78) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 0.02em;
}
html.light .v2-display .v2-word {
  background: linear-gradient(180deg, #0E1116 0%, rgba(38,46,56,0.78) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v2-display .v2-word-1 { animation-delay: 0.25s; }
.v2-display .v2-word-2 { animation-delay: 0.45s; }
.v2-display .v2-word-3 { animation-delay: 0.65s; }
.v2-display .v2-sep {
  display: inline-block;
  color: var(--brand);
  -webkit-text-fill-color: var(--brand);
  margin: 0 0.15em;
  font-weight: 400;
  opacity: 0; transform: scale(0.5);
  animation: v2-sep-in 600ms var(--ease-out) forwards, v2-sep-glow 3s ease-in-out infinite 1s;
  text-shadow: 0 0 24px var(--brand-glow);
}
.v2-display .v2-sep-1 { animation-delay: 0.5s, 1s; }
.v2-display .v2-sep-2 { animation-delay: 0.7s, 1.2s; }
@keyframes v2-fade-up {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes v2-sep-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes v2-sep-glow {
  0%, 100% { text-shadow: 0 0 18px rgba(111,168,255,0.4); }
  50% { text-shadow: 0 0 32px rgba(111,168,255,0.85), 0 0 60px rgba(111,168,255,0.35); }
}
.v2-subtitle {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--fg-secondary);
  max-width: 580px; margin: 0 auto 44px;
  line-height: 1.65;
  opacity: 0; transform: translateY(10px);
  animation: v2-fade-up 900ms var(--ease-out) 0.85s forwards;
}
.v2-cta-row {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
  opacity: 0; transform: translateY(10px);
  animation: v2-fade-up 900ms var(--ease-out) 1.05s forwards;
}

/* Pulse ring around primary CTA */
html.v2-home .v2-hero .v2-btn-primary { position: relative; overflow: visible; }
html.v2-home .v2-hero .v2-btn-primary::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 14px;
  border: 1.5px solid var(--brand);
  opacity: 0;
  animation: v2-pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
}
html.v2-home .v2-hero .v2-btn-primary::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 14px;
  border: 1.5px solid var(--brand);
  opacity: 0;
  animation: v2-pulse-ring 2.4s ease-out infinite 1.2s;
  pointer-events: none;
}
@keyframes v2-pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 720px) {
  .v2-hero { padding: 80px 20px 80px; }
  .v2-sparkles-canvas {
    opacity: 0.58;
    -webkit-mask-image: radial-gradient(ellipse 88% 48% at 50% 30%, #000 16%, rgba(0,0,0,0.6) 58%, transparent 90%);
            mask-image: radial-gradient(ellipse 88% 48% at 50% 30%, #000 16%, rgba(0,0,0,0.6) 58%, transparent 90%);
  }
  .v2-hero::before,
  .v2-hero::after {
    top: 238px;
  }
  .v2-hero::before { width: 82vw; }
  .v2-hero::after { width: 52vw; }
}
@media (max-width: 540px) {
  .v2-nav-inner {
    padding: 14px 16px;
    gap: 12px;
  }
  .v2-nav-actions { gap: 6px; }
  .v2-nav-actions .v2-lang-toggle { padding: 6px 7px; }
  .v2-nav-actions .v2-btn-primary { padding: 0 12px; }
  .v2-hero {
    overflow: hidden;
  }
  .v2-hero .v2-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    column-gap: 0.16em;
    row-gap: 0;
    max-width: 100%;
    font-size: clamp(34px, 12.5vw, 46px);
  }
  .v2-hero .v2-display .v2-word,
  .v2-hero .v2-display .v2-sep {
    flex: 0 0 auto;
  }
  .v2-hero .v2-display .v2-sep {
    margin: 0 0.02em;
  }
  .v2-hero .v2-subtitle {
    max-width: min(100%, 340px);
  }
  .v2-hero .v2-cta-row {
    max-width: 100%;
  }
  .v2-hero .v2-btn-lg {
    width: min(100%, 280px);
    justify-content: center;
  }
  .v2-trust {
    width: 100%;
  }
}

/* Trust strip */
.v2-trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; max-width: 920px; margin: 0 auto;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  opacity: 0; transform: translateY(14px);
  animation: v2-fade-up 900ms var(--ease-out) 1.25s forwards;
}
.v2-trust::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%);
  opacity: 0;
  animation: v2-trust-sweep 6s ease-in-out infinite 2s;
}
@keyframes v2-trust-sweep {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  20% { opacity: 1; }
  50% { opacity: 1; transform: translateX(100%); }
  60% { opacity: 0; }
}
.v2-trust-item {
  background: rgba(19, 25, 35, 0.6);
  backdrop-filter: blur(8px);
  padding: 24px 16px;
  text-align: center;
  transition: background var(--duration-normal) var(--ease-out);
}
.v2-trust-item:hover { background: rgba(19, 25, 35, 0.85); }
.v2-trust-item:hover .v2-trust-num { transform: scale(1.05); }
.v2-trust-num {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--fg-primary), var(--brand-strong));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  transition: transform var(--duration-normal) var(--ease-out);
  display: inline-block;
}
.v2-trust-label { font-size: 12.5px; color: var(--fg-muted); letter-spacing: 0.02em; }
@media (max-width: 720px) { .v2-trust { grid-template-columns: repeat(2, 1fr); } }

/* Features grid */
.v2-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 920px) { .v2-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .v2-features-grid { grid-template-columns: 1fr; } }

.v2-feature-card {
  background: var(--bg-surface);
  padding: 36px 32px;
  transition: background var(--duration-normal) var(--ease-out);
  position: relative;
}
.v2-feature-card:hover { background: var(--bg-elevated); }
.v2-feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--brand);
}
.v2-feature-icon svg { width: 22px; height: 22px; }
.v2-feature-title {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 10px; color: var(--fg-primary);
}
.v2-feature-desc {
  font-size: 13.5px; color: var(--fg-secondary);
  line-height: 1.65;
}

/* Community showcase */
.v2-community-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 920px) { .v2-community-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .v2-community-grid { grid-template-columns: 1fr; } }

.v2-room-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.v2-room-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, var(--brand-soft) 100%);
  opacity: 0; transition: opacity var(--duration-normal) var(--ease-out);
}
.v2-room-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
}
.v2-room-card:hover::before { opacity: 1; }
.v2-room-cover {
  width: 100%; height: 140px;
  border-radius: 10px;
  margin-bottom: 18px;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.v2-room-cover-1 { background: linear-gradient(135deg, #4A6FFF 0%, #6FA8FF 50%, #B58CFF 100%); }
.v2-room-cover-2 { background: linear-gradient(135deg, #FF7B7B 0%, #FFB547 100%); }
.v2-room-cover-3 { background: linear-gradient(135deg, #4ADE80 0%, #6FA8FF 100%); }
.v2-room-cover-4 { background: linear-gradient(135deg, #B58CFF 0%, #FF7B7B 100%); }
.v2-room-cover-5 { background: linear-gradient(135deg, #6FA8FF 0%, #4ADE80 50%, #FFB547 100%); }
.v2-room-cover-6 { background: linear-gradient(135deg, #1A2230 0%, #6FA8FF 100%); }
.v2-room-cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.18) 0%, transparent 50%);
}
.v2-room-title {
  font-size: 15.5px; font-weight: 600; color: var(--fg-primary);
  margin-bottom: 6px; letter-spacing: -0.01em;
}
.v2-room-tag {
  font-size: 11.5px; color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 8px; border-radius: 5px;
  display: inline-block; margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.v2-room-desc {
  font-size: 13px; color: var(--fg-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.v2-room-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px; color: var(--fg-muted);
}
.v2-room-online { display: flex; align-items: center; gap: 6px; }
.v2-room-online .v2-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

/* Pricing */
.v2-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
@media (max-width: 920px) { .v2-pricing-grid { grid-template-columns: 1fr; max-width: 480px; } }

.v2-price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}
.v2-price-card:hover { border-color: var(--border-default); }
.v2-price-card.v2-featured {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(111,168,255,0.04) 100%);
  border-color: var(--brand-soft);
  box-shadow: 0 20px 60px -20px var(--brand-glow);
}
.v2-price-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--brand-on);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 6px 20px -6px var(--brand-glow);
}
.v2-price-name {
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--fg-secondary); margin-bottom: 16px;
  text-transform: uppercase;
}
.v2-price-amount {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 8px;
}
.v2-price-currency { font-size: 18px; color: var(--fg-secondary); font-weight: 500; }
.v2-price-num {
  font-size: 48px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--fg-primary); line-height: 1;
}
.v2-price-period { font-size: 14px; color: var(--fg-muted); }
.v2-price-desc { font-size: 13.5px; color: var(--fg-secondary); margin-bottom: 28px; line-height: 1.6; min-height: 44px; }
.v2-price-cta { width: 100%; justify-content: center; }
.v2-price-features { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border-subtle); }
.v2-price-features li {
  display: flex; gap: 10px;
  font-size: 13.5px; color: var(--fg-secondary);
  padding: 7px 0;
}
.v2-price-features svg {
  width: 16px; height: 16px;
  color: var(--brand); flex-shrink: 0; margin-top: 3px;
}

/* Final CTA */
.v2-final-cta {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(111,168,255,0.06) 100%);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1100px; margin: 0 auto;
}
.v2-final-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--brand-glow) 0%, transparent 60%);
  pointer-events: none;
}
.v2-final-cta > * { position: relative; z-index: 1; }
.v2-final-cta .v2-display { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.v2-final-cta .v2-subtitle { margin-bottom: 32px; }
@media (max-width: 720px) {
  .v2-final-cta { padding: 48px 24px; }
}

/* Footer */
.v2-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  padding: 64px 0 32px;
  margin-top: 80px;
  position: relative; z-index: 2;
}
.v2-footer-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 32px;
}
.v2-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 720px) {
  .v2-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
.v2-footer-brand-block .v2-brand { margin-bottom: 14px; }
.v2-footer-tag { font-size: 13.5px; color: var(--fg-muted); max-width: 320px; line-height: 1.65; }
.v2-footer-col h4 {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--fg-primary); text-transform: uppercase;
  margin-bottom: 18px; margin-top: 0;
}
.v2-footer-col ul { list-style: none; margin: 0; padding: 0; }
.v2-footer-col li { margin-bottom: 10px; }
.v2-footer-col a {
  font-size: 13.5px; color: var(--fg-muted);
  transition: color var(--duration-fast) var(--ease-out);
}
.v2-footer-col a:hover { color: var(--fg-primary); }
.v2-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12.5px; color: var(--fg-muted);
}
.v2-footer-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.v2-footer-icp { color: var(--fg-disabled); }

/* Scroll reveal — with CSS fail-safe so the page is never blank if JS fails / IO never fires */
.v2-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  animation: v2-reveal-failsafe 0s 1500ms forwards;
}
.v2-reveal.v2-in {
  opacity: 1; transform: translateY(0);
  animation: none;
}
@keyframes v2-reveal-failsafe {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .v2-reveal,
  .v2-reveal.v2-in { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .v2-sparkles-canvas { display: none; }
  .v2-hero::before,
  .v2-hero::after { opacity: 0.24; }
}

/* Hide legacy tabler navbar in v2 mode (will be hidden via class in template) */
html.v2-home header > .navbar.fixed-top { display: none !important; }
html.v2-home main > footer.footer { display: none !important; }
html.v2-home .cookiealert { background: var(--bg-elevated); color: var(--fg-primary); border-color: var(--border-default); }
