/* ================== Fonts ================== */
@font-face {
  font-family: 'SN Pro';
  src: url('fonts/SNPro-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SN Pro';
  src: url('fonts/SNPro-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ================== Tokens ================== */
:root {
  --primary: #6B2CF5;
  --primary-600: #5a20d9;
  --primary-400: #8a57f8;
  --primary-200: #c7b0fc;
  --primary-50: #f2ecff;

  --bg: #ffffff;
  --bg-alt: #faf8ff;
  --surface: #ffffff;
  --fg: #0B0714;
  --fg-2: #3a3447;
  --fg-3: #6e6880;
  --border: #ebe6f5;
  --border-strong: #d8cff0;

  --shadow-sm: 0 2px 8px rgba(11, 7, 20, 0.04);
  --shadow-md: 0 8px 30px rgba(107, 44, 245, 0.08);
  --shadow-lg: 0 30px 80px rgba(107, 44, 245, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme="dark"] {
  --bg: #07040e;
  --bg-alt: #0e0820;
  --surface: #120b27;
  --fg: #f6f3ff;
  --fg-2: #c9c0e4;
  --fg-3: #8a82a3;
  --border: #241a42;
  --border-strong: #362659;
  --primary-50: #1a0f36;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(107, 44, 245, 0.25);
  --shadow-lg: 0 30px 80px rgba(107, 44, 245, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'SN Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* ================== Background modes ================== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.bg-layer {
  background:
    radial-gradient(circle at 15% 10%, rgba(107, 44, 245, 0.12), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(138, 87, 248, 0.10), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(199, 176, 252, 0.06), transparent 60%);
}
[data-theme="dark"] .bg-layer {
  background:
    radial-gradient(circle at 15% 10%, rgba(107, 44, 245, 0.25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(138, 87, 248, 0.18), transparent 45%);
}

/* ================== Typography ================== */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--fg); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  background: var(--surface);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse 2s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ================== Layout ================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; }

/* ================== Nav ================== */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-400));
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(107, 44, 245, 0.35);
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4), transparent 70%);
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--fg); background: var(--primary-50); }

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

.lang-toggle {
  display: flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-toggle button {
  background: transparent;
  border: none;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-3);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.lang-toggle button.active {
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}

.theme-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--fg-2);
  transition: all 0.2s var(--ease-out);
}
.theme-btn:hover { color: var(--primary); border-color: var(--primary-200); }

/* ================== Buttons ================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 24px rgba(107, 44, 245, 0.35);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-400), var(--primary));
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(107, 44, 245, 0.5);
}
.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ================== Hero ================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 28px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-400) 50%, var(--primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientMove 6s ease-in-out infinite;
  font-style: italic;
  font-weight: 600;
}
@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--fg-2);
  max-width: 640px;
  margin: 0 auto 44px;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Floating modules hero visual */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 420px;
  margin: 0 auto;
  perspective: 1600px;
  perspective-origin: 50% 30%;
}
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s var(--ease-out);
  will-change: transform;
  text-align: left;
}
.float-card:hover {
  box-shadow: 0 40px 100px rgba(107, 44, 245, 0.3);
}

/* Central dashboard card */
.fc-dash {
  width: 520px;
  left: 50%;
  top: 20px;
  transform: translateX(-50%) rotateX(8deg) rotateY(0deg);
  z-index: 3;
  padding: 20px;
}
.fc-dash .dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.fc-dash .dash-title { font-weight: 600; font-size: 14px; }
.fc-dash .dash-dots { display: flex; gap: 5px; }
.fc-dash .dash-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
}
.fc-dash .dash-dots span:first-child { background: var(--primary); }

.dash-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.dash-stat {
  padding: 12px;
  background: var(--bg-alt);
  border-radius: 12px;
}
.dash-stat .dash-label { font-size: 11px; color: var(--fg-3); margin-bottom: 4px; font-weight: 500; }
.dash-stat .dash-value { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.dash-stat .dash-trend { font-size: 11px; color: var(--primary); font-weight: 600; }

.dash-chart {
  height: 90px;
  position: relative;
  background: linear-gradient(180deg, transparent, var(--primary-50));
  border-radius: 10px;
  overflow: hidden;
}
.dash-chart svg { width: 100%; height: 100%; display: block; }
.dash-chart path.line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 3s var(--ease-out) forwards;
}
.dash-chart path.area {
  fill: url(#chartGrad);
  opacity: 0;
  animation: fadeIn 1s 1.5s var(--ease-out) forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* Orbiting side cards */
.fc-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}
.fc-badge .fc-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.fc-1 { top: 60px; left: 4%; animation: float1 8s var(--ease-in-out) infinite; }
.fc-2 { top: 150px; right: 6%; animation: float2 9s var(--ease-in-out) infinite; }
.fc-3 { bottom: 80px; left: 10%; animation: float3 7s var(--ease-in-out) infinite; }
.fc-4 { bottom: 40px; right: 12%; animation: float4 10s var(--ease-in-out) infinite; }
.fc-5 { top: 20px; right: 28%; animation: float5 11s var(--ease-in-out) infinite; }

@keyframes float1 { 0%,100% { transform: translate3d(0,0,40px) rotate(-6deg); } 50% { transform: translate3d(6px,-14px,40px) rotate(-4deg); } }
@keyframes float2 { 0%,100% { transform: translate3d(0,0,60px) rotate(5deg); } 50% { transform: translate3d(-8px,-10px,60px) rotate(7deg); } }
@keyframes float3 { 0%,100% { transform: translate3d(0,0,30px) rotate(-4deg); } 50% { transform: translate3d(4px,-12px,30px) rotate(-2deg); } }
@keyframes float4 { 0%,100% { transform: translate3d(0,0,50px) rotate(6deg); } 50% { transform: translate3d(-6px,-16px,50px) rotate(4deg); } }
@keyframes float5 { 0%,100% { transform: translate3d(0,0,70px) rotate(-3deg); } 50% { transform: translate3d(8px,-8px,70px) rotate(-5deg); } }

/* Hero glow */
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  background: radial-gradient(circle, rgba(107, 44, 245, 0.18), transparent 60%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 8s var(--ease-in-out) infinite;
}
[data-theme="dark"] .hero-glow { background: radial-gradient(circle, rgba(107, 44, 245, 0.35), transparent 60%); }
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -30%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -30%) scale(1.1); }
}

/* ================== Section shared ================== */
.section {
  padding: 140px 0;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.section-head p {
  font-size: 18px;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ================== Advantages (Bento) ================== */
.advantages {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}
.adv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 240px;
}
.adv-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}
.adv-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.adv-card p {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.55;
}
.adv-card .adv-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.adv-1 { grid-column: span 7; background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: white; border: none; }
.adv-1 h3 { color: white; font-size: 28px; }
.adv-1 p { color: rgba(255,255,255,0.8); font-size: 15px; }
.adv-1 .adv-num { color: rgba(255,255,255,0.9); }
.adv-2 { grid-column: span 5; }
.adv-3 { grid-column: span 5; }
.adv-4 { grid-column: span 7; }

/* Orbit visual — three roles around Academo core */
.adv-orbit {
  position: relative;
  height: 180px;
  margin-top: 10px;
}
.adv-orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.adv-orbit-core-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 12px rgba(255,255,255,0.9);
  animation: pulse 2s var(--ease-in-out) infinite;
}
.adv-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.25);
  pointer-events: none;
}
.adv-orbit-ring-1 {
  width: 200px; height: 200px;
  animation: ringSpin 40s linear infinite;
}
.adv-orbit-ring-2 {
  width: 320px; height: 320px;
  border-color: rgba(255,255,255,0.14);
  animation: ringSpin 60s linear infinite reverse;
}
@keyframes ringSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.adv-orbit-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  background: white;
  color: var(--fg);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  z-index: 2;
  white-space: nowrap;
}
.adv-orbit-pill em {
  font-style: normal;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  padding-left: 4px;
  border-left: 1px solid var(--border);
  margin-left: 2px;
}
.adv-orbit-pill-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  letter-spacing: 0;
  flex-shrink: 0;
}
.adv-orbit-pill-avatar[data-color="a"] { background: linear-gradient(135deg, #8a57f8, #6B2CF5); }
.adv-orbit-pill-avatar[data-color="b"] { background: linear-gradient(135deg, #ff7e5f, #feb47b); }
.adv-orbit-pill-avatar[data-color="c"] { background: linear-gradient(135deg, #1e90ff, #00c6ff); }

.adv-orbit-pill-1 {
  top: 6%;
  left: 6%;
  animation: orbitFloat1 6s var(--ease-in-out) infinite;
}
.adv-orbit-pill-2 {
  top: 12%;
  right: 4%;
  animation: orbitFloat2 7s var(--ease-in-out) infinite;
}
.adv-orbit-pill-3 {
  bottom: 8%;
  left: 26%;
  animation: orbitFloat3 8s var(--ease-in-out) infinite;
}
@keyframes orbitFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -6px); }
}
@keyframes orbitFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, 4px); }
}
@keyframes orbitFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -4px); }
}

@media (max-width: 640px) {
  .adv-orbit { height: 150px; }
  .adv-orbit-ring-1 { width: 160px; height: 160px; }
  .adv-orbit-ring-2 { width: 240px; height: 240px; }
  .adv-orbit-pill { font-size: 11px; padding: 5px 10px 5px 5px; }
  .adv-orbit-pill-avatar { width: 18px; height: 18px; font-size: 8px; }
}

/* Animated visual inside card 1 — people network (legacy) */
.adv-visual-network {
  position: relative;
  height: 100px;
  margin-top: 8px;
}
.adv-visual-network .node {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: white;
}
.adv-visual-network .node.n1 { left: 8%; top: 30px; animation: bob 4s var(--ease-in-out) infinite; }
.adv-visual-network .node.n2 { left: 30%; top: 5px; animation: bob 4s 0.5s var(--ease-in-out) infinite; }
.adv-visual-network .node.n3 { left: 52%; top: 45px; animation: bob 4s 1s var(--ease-in-out) infinite; }
.adv-visual-network .node.n4 { left: 72%; top: 10px; animation: bob 4s 1.5s var(--ease-in-out) infinite; }
.adv-visual-network .node.n5 { left: 90%; top: 35px; animation: bob 4s 2s var(--ease-in-out) infinite; }
.adv-visual-network svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Automation visual — animated bars */
.adv-visual-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}
.adv-visual-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--primary-400), var(--primary));
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: barGrow 2.4s var(--ease-in-out) infinite;
}
.adv-visual-bars span:nth-child(1) { animation-delay: 0s; --h: 70%; }
.adv-visual-bars span:nth-child(2) { animation-delay: 0.1s; --h: 50%; }
.adv-visual-bars span:nth-child(3) { animation-delay: 0.2s; --h: 90%; }
.adv-visual-bars span:nth-child(4) { animation-delay: 0.3s; --h: 65%; }
.adv-visual-bars span:nth-child(5) { animation-delay: 0.4s; --h: 80%; }
.adv-visual-bars span:nth-child(6) { animation-delay: 0.5s; --h: 45%; }
.adv-visual-bars span:nth-child(7) { animation-delay: 0.6s; --h: 75%; }
.adv-visual-bars span:nth-child(8) { animation-delay: 0.7s; --h: 95%; }
@keyframes barGrow {
  0%, 100% { height: var(--h); opacity: 0.6; }
  50% { height: 100%; opacity: 1; }
}

/* Eye / scan visual for transparency */
.adv-visual-scan {
  position: relative;
  height: 80px;
  background: var(--bg-alt);
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}
.adv-visual-scan .rows {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 8px 12px;
  z-index: 1;
}
.adv-visual-scan .rows i {
  height: 6px;
  background: var(--border-strong);
  border-radius: 3px;
  font-style: normal;
}
.adv-visual-scan .rows i:nth-child(1) { width: 80%; }
.adv-visual-scan .rows i:nth-child(2) { width: 55%; }
.adv-visual-scan .rows i:nth-child(3) { width: 70%; }
.adv-visual-scan .rows i:nth-child(4) { width: 40%; }
.adv-visual-scan .scanline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 24px 4px var(--primary), 0 0 8px var(--primary);
  animation: scan 3s linear infinite;
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: normal;
}
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(80px); opacity: 0; }
}

/* Management visual — animated gauge */
.adv-visual-gauge {
  display: flex;
  align-items: center;
  gap: 18px;
}
.gauge-circle {
  width: 80px; height: 80px;
  flex-shrink: 0;
}
.gauge-circle svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.gauge-circle .track {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}
.gauge-circle .fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 60;
  animation: gaugeFill 3s var(--ease-out) forwards;
}
@keyframes gaugeFill { from { stroke-dashoffset: 220; } }
.gauge-info .gauge-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.gauge-info .gauge-label { font-size: 12px; color: var(--fg-3); }

/* ================== Capabilities ================== */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap-item {
  background: var(--surface);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.cap-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.cap-item:hover::before { transform: scaleX(1); }
.cap-item:hover { background: var(--bg-alt); }
.cap-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease-out);
}
.cap-item:hover .cap-icon {
  background: var(--primary);
  color: white;
  transform: rotate(-6deg) scale(1.05);
}
.cap-item h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.cap-item p {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.55;
}
.cap-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

/* ================== Modules (horizontal scroll) ================== */
.modules-section {
  overflow: hidden;
  padding: 140px 0;
}
.modules-head {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.modules-head .section-head { margin: 0; text-align: left; max-width: 640px; }
.modules-head h2 { text-align: left; }

.modules-scroller {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.modules-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  container-type: inline-size;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  min-height: 460px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s var(--ease-out);
}
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}
.module-card .m-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.module-card .m-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.module-card .m-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: all 0.35s var(--ease-out);
}
.module-card:hover .m-icon {
  background: var(--primary);
  color: white;
  transform: rotate(-6deg);
}
.module-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.module-card p {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.6;
}

/* Mini visual for each module */
.m-visual {
  margin-top: auto;
  height: 140px;
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Module 1: Applications inbox */
.mv-inbox { display: flex; flex-direction: column; gap: 7px; }
.mv-inbox .row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-2);
  opacity: 0;
  animation: slideInRow 0.5s var(--ease-out) forwards;
}
.module-card:hover .mv-inbox .row { animation: slideInRow 0.5s var(--ease-out) forwards; }
.mv-inbox .row:nth-child(1) { animation-delay: 0.1s; }
.mv-inbox .row:nth-child(2) { animation-delay: 0.25s; }
.mv-inbox .row:nth-child(3) { animation-delay: 0.4s; }
.mv-inbox .row::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}
.mv-inbox .row i { margin-left: auto; font-size: 10px; color: var(--fg-3); font-style: normal; }
@keyframes slideInRow {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Module 2: HR people */
.mv-hr { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; padding-top: 10px; }
.mv-hr .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-400), var(--primary));
  color: white;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  border: 2px solid var(--surface);
  margin-left: -10px;
}
.mv-hr .avatar:first-child { margin-left: 0; }
.mv-hr .avatar.plus { background: var(--bg-alt); color: var(--fg-3); border: 2px dashed var(--border-strong); }
.mv-hr-stats { margin-left: auto; text-align: right; }

@container (max-width: 290px) {
  .mv-hr { flex-wrap: wrap; }
  .mv-hr-stats { flex-basis: 100%; margin-left: 0; text-align: left; }
}
.mv-hr-stats .val { font-size: 22px; font-weight: 700; }
.mv-hr-stats .lab { font-size: 10px; color: var(--fg-3); }


/* Module 3: Grades */
.mv-grades { display: flex; flex-direction: column; gap: 8px; }
.mv-grades .grade-row { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.mv-grades .grade-row .subj { flex: 1; color: var(--fg-2); }
.mv-grades .grade-row .bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  flex: 2;
  overflow: hidden;
}
.mv-grades .grade-row .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-400), var(--primary));
  border-radius: 3px;
  width: 0;
  animation: fillBar 1.5s var(--ease-out) forwards;
}
.mv-grades .grade-row:nth-child(1) .bar i { animation-delay: 0.1s; --w: 92%; }
.mv-grades .grade-row:nth-child(2) .bar i { animation-delay: 0.25s; --w: 78%; }
.mv-grades .grade-row:nth-child(3) .bar i { animation-delay: 0.4s; --w: 85%; }
.mv-grades .grade-row .score { font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
@keyframes fillBar { to { width: var(--w); } }

/* Module 4: Test */
.mv-test { padding: 8px; }
.mv-test .q {
  font-size: 12px; font-weight: 500; color: var(--fg); margin-bottom: 10px;
}
.mv-test .opt {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 7px;
  font-size: 11px;
  color: var(--fg-2);
  margin-bottom: 5px;
  transition: all 0.3s;
}
.mv-test .opt.correct {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.mv-test .opt::before {
  content: ''; width: 12px; height: 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
}
.mv-test .opt.correct::before {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--surface);
}

/* Module 5: Documents */
.mv-docs { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.mv-docs .doc {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
}
.mv-docs .doc .doc-icon {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 9px; font-weight: 700;
}
.mv-docs .doc .doc-name { flex: 1; color: var(--fg-2); }
.mv-docs .doc .doc-status {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 600;
}
.mv-docs .doc .doc-status.ok { background: #e8f8ee; color: #1e7c3a; }
[data-theme="dark"] .mv-docs .doc .doc-status.ok { background: #0d3b1d; color: #50d378; }
.mv-docs .doc .doc-status.pending { background: var(--primary-50); color: var(--primary); }

/* Module 6: Analytics */
.mv-analytics {
  display: flex; align-items: flex-end; gap: 5px;
  height: 100%;
  padding-bottom: 4px;
}
.mv-analytics .abar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary-400), var(--primary));
  border-radius: 3px 3px 0 0;
  min-height: 8px;
  position: relative;
  opacity: 0.85;
}
.mv-analytics .abar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}
.module-card:hover .mv-analytics .abar { opacity: 1; }

/* ================== CTA ================== */
.cta-section {
  padding: 100px 0 140px;
}
.cta-card {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  border-radius: 36px;
  padding: 80px 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(107, 44, 245, 0.35);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -40%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
  animation: orbitGlow 20s linear infinite;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
  pointer-events: none;
  animation: orbitGlow 25s linear infinite reverse;
}
@keyframes orbitGlow {
  0% { transform: rotate(0deg) translateX(0); }
  100% { transform: rotate(360deg) translateX(0); }
}
.cta-card-inner { position: relative; z-index: 1; }
.cta-card h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 20px;
  line-height: 1;
}
.cta-card p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin: 0 auto 40px;
}
.cta-card .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.cta-card .btn-primary::before { background: #f5f3ff; }
.cta-card .btn-primary:hover { color: var(--primary-600); }
.cta-card .btn-arrow { background: var(--primary-50); color: var(--primary); }

/* ================== Footer ================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 360px; }
.footer-brand p {
  font-size: 14px;
  color: var(--fg-3);
  margin-top: 16px;
  line-height: 1.55;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a,
.footer-col span {
  font-size: 14px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--fg-3);
  flex-wrap: wrap;
  gap: 12px;
}

.app-badges {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
  width: 190px;
  height: 60px;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.app-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-50), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  pointer-events: none;
}
.app-badge:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(107, 44, 245, 0.18);
  color: var(--fg);
}
.app-badge:hover::before { opacity: 1; }
.app-badge > * { position: relative; z-index: 1; }
.app-badge svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.app-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.app-badge small {
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  text-transform: none;
}
.app-badge strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-top: 1px;
}
.gp-badge small { text-transform: uppercase; letter-spacing: 0.08em; font-size: 9px; }
.as-badge svg { color: var(--fg); }

/* ================== Scroll reveal ================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ================== Responsive ================== */
/* Tablet */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .section { padding: 100px 0; }
  .section-head { margin-bottom: 56px; }
  .hero { padding: 120px 28px 60px; }
  .hero-stage { height: 360px; max-width: 700px; }
  .fc-dash { width: 420px; }

  .advantages { grid-template-columns: repeat(2, 1fr); }
  .adv-1, .adv-2, .adv-3, .adv-4 { grid-column: span 1; }
  .adv-1 { grid-column: span 2; }
  .adv-4 { grid-column: span 2; }

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

  .modules-head { flex-direction: column; align-items: flex-start; }
  .modules-track { grid-template-columns: repeat(2, 1fr); }

  .cta-card { padding: 60px 40px; border-radius: 28px; }

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

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px 14px;
    border-radius: 24px;
  }
  .nav-right .lang-toggle button { padding: 4px 8px; font-size: 11px; }
  .nav-right .theme-btn { width: 32px; height: 32px; }

  .hero { padding: 110px 20px 40px; min-height: auto; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 16px; margin-bottom: 32px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }

  .hero-stage { height: 320px; max-width: 100%; perspective: 1200px; }
  .fc-dash { width: 300px; padding: 14px; top: 10px; }
  .fc-dash .dash-stat { padding: 8px; }
  .fc-dash .dash-stat .dash-value { font-size: 15px; }
  .fc-dash .dash-stat .dash-label { font-size: 9px; }
  .fc-dash .dash-stat .dash-trend { font-size: 9px; }
  .dash-chart { height: 60px; }

  .fc-badge { font-size: 11px; padding: 8px 12px; }
  .fc-badge .fc-icon { width: 22px; height: 22px; }
  .fc-1 { left: -4%; top: 30px; }
  .fc-2 { right: -4%; top: 130px; }
  .fc-3 { bottom: 40px; left: 0%; }
  .fc-4 { bottom: 10px; right: 0%; }
  .fc-5 { display: none; }

  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 34px; }
  .section-head p { font-size: 15px; }

  .advantages { grid-template-columns: 1fr; }
  .adv-1, .adv-2, .adv-3, .adv-4 { grid-column: span 1; }
  .adv-card { padding: 24px; min-height: auto; }
  .adv-1 h3 { font-size: 24px; }

  .capabilities { grid-template-columns: 1fr; }
  .cap-item { padding: 28px 24px; }

  .modules-section { padding: 70px 0; }
  .modules-head { padding: 0 20px; }
  .modules-scroller { padding: 0 20px; }
  .modules-track { grid-template-columns: 1fr; gap: 16px; }
  .module-card { padding: 24px; min-height: 420px; }

  .cta-section { padding: 60px 0 70px; }
  .cta-card { padding: 48px 24px; border-radius: 20px; }
  .cta-card h2 { font-size: 36px; }
  .cta-card p { font-size: 15px; }

  .footer { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { font-size: 13px; }
  .footer-col h4 { font-size: 11px; margin-bottom: 14px; }
  .footer-col ul { gap: 10px; }
  .footer-col a, .footer-col span { font-size: 13px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 12px;
  }
  .app-badges { flex-direction: column; gap: 8px; width: 100%; }
  .app-badge { width: 100%; justify-content: center; padding: 10px 16px; }
}


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

/* ================== Cookie banner ================== */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 720px;
  transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
  opacity: 0;
}
#cookie-banner.cookie-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  backdrop-filter: blur(12px);
}
.cookie-ico {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.85;
}
.cookie-text {
  flex: 1;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-decline {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-decline:hover { background: var(--bg-alt); color: var(--fg); }
.cookie-accept {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-accept:hover { background: var(--primary-600); }

@media (max-width: 640px) {
  #cookie-banner { bottom: 16px; width: calc(100% - 32px); }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-decline, .cookie-accept { flex: 1; text-align: center; }
}
