/* ============================================
   WS Agency — Stylesheet
   Design Reference: kore.ai
   ============================================ */

/* ── VariableProximity ─────────────────────── */
.variable-proximity {
  display: inline;
  cursor: default;
}
.vp-word   { display: inline-block; white-space: nowrap; }
.vp-letter { display: inline-block; will-change: font-variation-settings; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── TrueFocus ─────────────────────────────── */
.tf-container {
  position: relative;
  display: flex;
  gap: 0.24em;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  overflow: visible;
  cursor: default;
  user-select: none;
}

.tf-word {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.tf-frame {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  box-sizing: content-box;
}

.tf-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid var(--tf-border, #10B981);
  filter: drop-shadow(0 0 6px var(--tf-glow, rgba(16,185,129,0.6)));
  border-radius: 2px;
}

.tf-tl { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.tf-tr { top: -10px; right: -10px; border-left: none; border-bottom: none; }
.tf-bl { bottom: -10px; left: -10px; border-right: none; border-top: none; }
.tf-br { bottom: -10px; right: -10px; border-left: none; border-top: none; }

/* ── TextType ──────────────────────────────── */
.text-type {
  display: inline;
}
.text-type__content {
  display: inline;
}
.text-type__cursor {
  display: inline-block;
  margin-left: 1px;
  color: #10B981;
  font-weight: 400;
  animation: tt-blink 0.5s ease-in-out infinite alternate;
}
.text-type__cursor--hidden {
  display: none;
}
@keyframes tt-blink {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #0A0F1E;
  --primary-darker: #060a14;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --text-white: #0A0F1E;
  --text-light: #4A5568;
  --text-muted: #8892A4;
  --text-dark: #1A1A2E;
  --text-dark-secondary: #4A4A6A;
  --bg-white: #FFFFFF;
  --bg-light: #F5F7FA;
  --bg-dark: #F5F7FA;
  --card-bg: #FFFFFF;
  --card-border: rgba(10, 15, 30, 0.10);
  --card-hover: rgba(10, 15, 30, 0.03);
  --nav-height: 72px;
  --container-max: 1200px;
  --section-padding: 120px;
  --border-radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: transparent;
  color: var(--text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(10, 15, 30, 0.25);
}

.btn-outline:hover {
  border-color: var(--text-white);
  background: rgba(10, 15, 30, 0.05);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--primary-dark);
  color: #FFFFFF;
}

.btn-dark:hover {
  background: #141b2d;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 15, 30, 0.3);
}

.btn-full {
  width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: calc(var(--container-max) - 48px);
  height: 56px;
  z-index: 1000;
  transition: var(--transition);
  background: var(--bg-white);
  border-radius: 100px;
  box-shadow: 0 2px 20px rgba(10, 15, 30, 0.08), 0 0 0 1px rgba(10, 15, 30, 0.04);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(10, 15, 30, 0.1), 0 0 0 1px rgba(10, 15, 30, 0.04);
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 100px;
  width: 100px;
  display: block;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: multiply;
}

.logo-ws {
  color: var(--text-dark);
  font-weight: 800;
  font-size: 22px;
}

.logo-dot {
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
}

.logo-agency {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 16px;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark-secondary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a svg {
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--text-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.nav-active::after {
  width: 100%;
}

/* Active state for dropdown sub-items */
.dropdown-menu a.nav-active-sub {
  font-weight: 700;
  color: var(--accent);
}

/* Dropdown */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Center the Explore dropdown under its trigger */
.nav-links > li:last-child .dropdown-menu {
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}

.nav-links > li:last-child:hover .dropdown-menu,
.nav-links > li:last-child.open .dropdown-menu {
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--bg-white);
  border: 1px solid rgba(10, 15, 30, 0.08);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(10, 15, 30, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease 0.1s, transform 0.2s ease;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  transition: opacity 0.2s ease, visibility 0s, transform 0.2s ease;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark-secondary);
  transition: var(--transition);
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark-secondary);
}

.nav-signin:hover {
  color: var(--text-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--primary-dark);
  color: #FFFFFF;
  transition: var(--transition);
  text-transform: uppercase;
}

.nav-cta:hover {
  background: #141b2d;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(10, 15, 30, 0.2);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  overflow: hidden;
  background: transparent;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bg-anim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #F5F7FA;
  overflow: hidden;
  pointer-events: none;
}

.bg-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(245, 247, 250, 0.70);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(10, 15, 30, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 15, 30, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 3;
}

.hero-container {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 32px;
}

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.highlight {
  background: linear-gradient(120deg, #10B981 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  min-height: 2.2em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero .hero-headline,
.hero .hero-sub,
.hero .hero-badge,
.hero .hero-stat-number,
.hero .hero-stat-suffix,
.hero .hero-stat-label {
  color: var(--primary-dark);
}

.hero .hero-badge {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.30);
}

.hero .hero-stat-number,
.hero .hero-stat-suffix {
  color: var(--accent);
}

.hero .hero-sub {
  color: var(--text-light);
}

.hero .hero-stat-label {
  color: var(--text-muted);
}

.hero .btn-outline {
  color: var(--primary-dark);
  border-color: rgba(10, 15, 30, 0.30);
}

.hero .btn-outline:hover {
  color: var(--primary-dark);
  border-color: rgba(10, 15, 30, 0.60);
  background: rgba(10, 15, 30, 0.05);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(10, 15, 30, 0.12);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  display: inline;
}

.hero-stat-suffix {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   SECTIONS — General
   ============================================ */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-dark {
  background: rgba(245, 247, 250, 0.82);
}

.section-light {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.15);
  margin-bottom: 20px;
}

.section-tag-dark {
  color: var(--primary-dark);
  background: rgba(10, 15, 30, 0.06);
  border-color: rgba(10, 15, 30, 0.1);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-title-dark {
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   CARDS — What We Build (Products style)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 28px;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
  opacity: 0;
  overflow: hidden;
  cursor: pointer;
}

.card.visible {
  opacity: 1;
}

.card:hover {
  background: var(--card-hover);
  border-color: rgba(10, 15, 30, 0.15);
  transform: translateY(-4px);
}

.products-card {
  text-decoration: none;
  color: inherit;
}

/* Card head area (title + arrow) */
.card-head {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

.card-head-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(10, 15, 30, 0.06);
  color: var(--text-light);
  transition: var(--transition);
}

.card:hover .card-head-icon {
  background: var(--accent);
  color: var(--primary-dark);
}

.card-head-icon svg {
  width: 14px;
  height: 12px;
  transition: var(--transition);
}

.card:hover .card-head-icon svg {
  transform: translateX(3px);
}

.card-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Card illustration / image area */
.card-img {
  position: relative;
  z-index: 3;
  margin-top: auto;
  border-radius: 12px;
  overflow: hidden;
  height: 160px;
}

.card-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Blur background effect */
.card-bg-blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.card:hover .card-bg-blur {
  opacity: 1;
}

/* Per-card blur colors */
.products-card[data-popup="0"] .card-bg-blur {
  background: radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
}

.products-card[data-popup="1"] .card-bg-blur {
  background: radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
}

.products-card[data-popup="2"] .card-bg-blur {
  background: radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
}

.products-card[data-popup="3"] .card-bg-blur {
  background: radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
}

/* Card background video layer */
.card-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transition: var(--transition);
}

.card:hover .card-video {
  opacity: 0.5;
}

.card-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.85) 0%, rgba(10, 15, 30, 0.6) 50%, rgba(10, 15, 30, 0.85) 100%);
}

/* Card link (kept for popup trigger compatibility) */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.card-link span {
  transition: var(--transition);
}

.card-link:hover span {
  transform: translateX(4px);
  display: inline-block;
}

.card-link:hover {
  color: var(--accent-hover);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  font-size: 64px;
  font-weight: 800;
  color: rgba(245, 158, 11, 0.25);
  line-height: 1;
  margin-bottom: 16px;
}

.step-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 24px;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.step-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   RESULTS
   ============================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.result-block {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--border-radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), background var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.result-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.result-block:hover {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.04);
}

.result-number {
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: inline;
}

.result-suffix {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.result-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.6;
}

/* ============================================
   TRAINING HERO
   ============================================ */
.section-hero-training {
  position: relative;
  padding: 140px 0 80px;
  background: transparent;
  text-align: center;
  overflow: hidden;
}

.section-hero-training .hero-overlay {
  background: rgba(5, 8, 15, 0.42);
}

.section-hero-training .hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.section-hero-training .training-hero-content h1,
.section-hero-training .training-hero-content p {
  color: #FFFFFF;
}

.section-hero-training .training-hero-content p {
  color: rgba(255, 255, 255, 0.75);
}

.section-hero-training > .container {
  position: relative;
  z-index: 4;
}

.training-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.training-hero-content h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 20px;
}

.training-hero-content p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ============================================
   TRAINING
   ============================================ */
.training-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.training-content .section-tag,
.training-content .section-title {
  text-align: left;
}

.training-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.training-content .btn {
  margin-top: 16px;
}

.training-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.training-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 15, 30, 0.08);
  transition: var(--transition);
}

.training-card:hover {
  transform: translateX(8px);
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 20px rgba(10, 15, 30, 0.06);
}

.training-card-icon {
  flex-shrink: 0;
}

.training-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.training-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.section-contact {
  background: #FFFFFF;
  padding: var(--section-padding) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-headline {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.contact-subtext {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(10, 15, 30, 0.12);
  background: #F5F7FA;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-success.show {
  display: block;
}

.form-success p {
  color: #10B981;
  font-weight: 600;
  font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #EEF1F8;
  padding: 36px 0 0;
  border-top: 1px solid rgba(10, 15, 30, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(10, 15, 30, 0.08);
}

.footer-brand .nav-logo,
.footer-brand .logo-ws,
.footer-brand .logo-dot,
.footer-brand .logo-agency {
  color: var(--text-white);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
  max-width: 280px;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text-white);
}

.footer-contact p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(10, 15, 30, 0.08);
  color: var(--text-light);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-bottom {
  padding: 16px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   LOGO WALL / ROULETTE
   ============================================ */
.logo-wall {
  background: #FFFFFF;
  padding: 32px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(10, 15, 30, 0.08);
}

.logo-wall-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.logo-roulette-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-roulette {
  display: flex;
  gap: 48px;
  animation: logoScroll 30s linear infinite;
  width: max-content;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--text-muted);
  opacity: 1;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.logo-item:hover {
  color: var(--text-dark);
}

.logo-item svg {
  flex-shrink: 0;
}

.logo-item span {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.logo-roulette:hover {
  animation-play-state: paused;
}

/* ============================================
   PORTAL / SIGN-IN SECTION
   ============================================ */
.portal-section {
  position: relative;
  padding: 120px 0 80px;
  background: var(--bg-light);
  overflow: hidden;
}

.portal-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.portal-section > .container {
  position: relative;
  z-index: 4;
}

.portal-header {
  text-align: left;
  margin-bottom: 48px;
}

.portal-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.portal-subtitle {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Main Platform Card */
.portal-card-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(10, 15, 30, 0.10);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10, 15, 30, 0.08);
  margin-bottom: 32px;
}

.portal-card-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-card-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.portal-card-content p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 28px;
}

.portal-card-visual {
  background: #F5F7FA;
  border-left: 1px solid rgba(10, 15, 30, 0.08);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat Mockup */
.portal-mockup {
  width: 100%;
  max-width: 360px;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(10, 15, 30, 0.08);
  padding: 20px;
  position: relative;
}

.mockup-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.mockup-msg-user {
  justify-content: flex-end;
}

.mockup-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.mockup-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 240px;
}

.mockup-msg-bot .mockup-bubble {
  background: var(--bg-light);
  color: var(--text-dark);
}

.mockup-msg-user .mockup-bubble {
  background: var(--primary-dark);
  color: #FFFFFF;
}

.mockup-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 15, 30, 0.06);
  font-size: 11px;
  color: var(--text-dark-secondary);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Product Cards */
.portal-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.portal-product-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(10, 15, 30, 0.08);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(10, 15, 30, 0.06);
  transition: var(--transition);
}

.portal-product-card:hover {
  box-shadow: 0 8px 32px rgba(10, 15, 30, 0.08);
  transform: translateY(-2px);
}

.portal-product-visual {
  background: #F5F7FA;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-product-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.portal-product-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Mini dash mockup */
.mini-dash {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-bar {
  height: 10px;
  border-radius: 6px;
  opacity: 0.8;
}

/* Mini chat mockup */
.mini-chat {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-msg {
  height: 12px;
  width: 70%;
  border-radius: 6px;
  background: rgba(10, 15, 30, 0.08);
}

.mini-msg-dark {
  width: 55%;
  background: var(--primary-dark);
  opacity: 0.15;
  align-self: flex-end;
}

/* Mini pipeline mockup */
.mini-pipeline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pipeline-step {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(10, 15, 30, 0.06);
  color: var(--text-dark-secondary);
}

.pipeline-active {
  background: var(--primary-dark);
  color: #FFFFFF;
}

/* Bottom CTA Cards */
.portal-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.portal-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 15, 30, 0.08);
  box-shadow: 0 2px 12px rgba(10, 15, 30, 0.06);
}

.portal-cta-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.portal-cta-card p {
  font-size: 14px;
  color: var(--text-light);
}

.portal-cta-featured {
  background: #F5F7FA;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(10, 15, 30, 0.25);
  transition: var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-outline-dark:hover {
  border-color: var(--text-dark);
  background: rgba(10, 15, 30, 0.05);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ============================================
   SIGN-IN FORM PAGE
   ============================================ */
.signin-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
  background: var(--bg-light);
  overflow: hidden;
}

.signin-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.signin-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  background: var(--bg-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(10, 15, 30, 0.08), 0 0 0 1px rgba(10, 15, 30, 0.04);
}

.signin-card {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}

.signin-header {
  margin-bottom: 32px;
}

.signin-logo {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 28px;
}

.signin-logo .logo-ws {
  font-size: 20px;
}

.signin-logo .logo-dot {
  font-size: 20px;
}

.signin-logo .logo-agency {
  font-size: 14px;
}

.signin-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.signin-header p {
  font-size: 15px;
  color: var(--text-dark-secondary);
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signin-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.signin-field input {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(10, 15, 30, 0.12);
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.signin-field input::placeholder {
  color: var(--text-dark-secondary);
  opacity: 0.5;
}

.signin-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.signin-forgot {
  font-size: 12px;
  color: var(--text-dark-secondary);
  text-align: right;
  margin-top: 2px;
}

.signin-forgot:hover {
  color: var(--text-dark);
}

.signin-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.signin-divider::before,
.signin-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(10, 15, 30, 0.08);
}

.signin-divider span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signin-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signin-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(10, 15, 30, 0.12);
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.signin-social-btn:hover {
  background: var(--bg-light);
  border-color: rgba(10, 15, 30, 0.18);
}

.signin-footer {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
}

.signin-footer p {
  font-size: 13px;
  color: var(--text-dark-secondary);
}

.signin-footer a {
  color: var(--text-dark);
  font-weight: 600;
}

.signin-footer a:hover {
  text-decoration: underline;
}

/* Sign-in side panel */
.signin-side {
  background: var(--primary-dark);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signin-side-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 12px;
}

.signin-side-content > p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.7;
  margin-bottom: 32px;
}

.signin-side-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signin-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.signin-feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.signin-feature span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   SERVICE POPUP MODAL
   ============================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  position: relative;
  max-width: 700px;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(10, 15, 30, 0.10);
  border-radius: 20px;
  padding: 40px 40px 36px;
  box-shadow: 0 24px 80px rgba(10, 15, 30, 0.18), 0 0 0 1px rgba(10, 15, 30, 0.04);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-overlay.active .popup-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Custom scrollbar for popup */
.popup-modal::-webkit-scrollbar {
  width: 6px;
}

.popup-modal::-webkit-scrollbar-track {
  background: transparent;
}

.popup-modal::-webkit-scrollbar-thumb {
  background: rgba(10, 15, 30, 0.12);
  border-radius: 3px;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 30, 0.05);
  border: 1px solid rgba(10, 15, 30, 0.08);
  border-radius: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  z-index: 1;
}

.popup-close:hover {
  background: rgba(10, 15, 30, 0.10);
  color: var(--text-dark);
  transform: rotate(90deg);
}

/* Popup header: icon + title/desc side by side */
.popup-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(10,15,30,0.07);
}

.popup-icon {
  flex-shrink: 0;
}

.popup-icon svg {
  width: 56px;
  height: 56px;
  display: block;
}

.popup-header-text {
  flex: 1;
  min-width: 0;
}

.popup-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.popup-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 20px;
}

.popup-description {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* Popup body sections */
.popup-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.popup-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8892A4;
  margin-bottom: 12px;
}

/* How It Works steps */
.popup-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.popup-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 1px;
}

.popup-step-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.popup-step-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Features grid (2-column) */
.popup-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.popup-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(10,15,30,0.025);
  border: 1px solid rgba(10,15,30,0.06);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}

.popup-feature-check {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Meta row: tech stack + best for + timeline */
.popup-meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(10,15,30,0.07);
}

.popup-meta-block {
  flex: 1;
  min-width: 140px;
}

.popup-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.popup-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}

.popup-pill-tech {
  background: rgba(10,15,30,0.05);
  color: #4A5568;
  border: 1px solid rgba(10,15,30,0.08);
}

.popup-pill-use {
  background: rgba(10,15,30,0.04);
  color: #6B7280;
  border: 1px dashed rgba(10,15,30,0.12);
}

.popup-timeline-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid;
  font-size: 13px;
  font-weight: 700;
}

.popup-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(10,15,30,0.07);
}

.popup-cta {
  text-decoration: none;
}

.popup-dismiss {
  cursor: pointer;
}

/* Popup responsive */
@media (max-width: 768px) {
  .popup-overlay { padding: 16px; }
  .popup-modal { padding: 32px 24px 28px; }
  .popup-feature-grid { grid-template-columns: 1fr; }
  .popup-meta-row { gap: 16px; }
}

@media (max-width: 480px) {
  .popup-header { flex-direction: column; gap: 14px; }
  .popup-title { font-size: 19px; }
  .popup-actions { flex-direction: column; }
  .popup-actions .btn { width: 100%; text-align: center; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SCROLL ANIMATIONS — ENHANCED TARGETS
   ============================================ */

.section-tag,
.section-title,
.section-subtitle {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-tag.visible,
.section-title.visible,
.section-subtitle.visible {
  opacity: 1;
  transform: none;
}

.training-content {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.training-content.visible {
  opacity: 1;
  transform: none;
}

.training-visual {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.training-visual.visible {
  opacity: 1;
  transform: none;
}

.training-card {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.training-card.visible { opacity: 1; }

.contact-content {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-content.visible {
  opacity: 1;
  transform: none;
}

.contact-form {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-form.visible {
  opacity: 1;
  transform: none;
}

.logo-wall-label {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-wall-label.visible {
  opacity: 1;
  transform: none;
}

.footer-brand,
.footer-nav,
.footer-contact {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-brand.visible,
.footer-nav.visible,
.footer-contact.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   PRODUCT SHOWCASE — kore.ai style tabbed slider
   ============================================ */
/* ============================================
   WHAT WE BUILD — Horizontal Scroll Layout
   ============================================ */

.wwb-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 60px;
  align-items: start;
}

/* ── Left column (sticky intro) ─────────────── */
.wwb-left {
  position: sticky;
  top: 100px;
}

.wwb-headline {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}

.wwb-subtext {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 26px;
}

.wwb-left-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  padding: 18px 0;
  border-top: 1px solid rgba(10,15,30,0.08);
  border-bottom: 1px solid rgba(10,15,30,0.08);
}

.wwb-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wwb-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.wwb-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wwb-left-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* ── Right column ───────────────────────────── */
.wwb-right { min-width: 0; }

/* Filter tabs */
.wwb-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.wwb-tab {
  padding: 6px 15px;
  border-radius: 20px;
  border: 1px solid rgba(10,15,30,0.14);
  background: #FFFFFF;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.wwb-tab:hover {
  border-color: rgba(10,15,30,0.28);
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(10,15,30,0.06);
}

.wwb-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0F1E;
  box-shadow: 0 3px 12px rgba(245,158,11,0.3);
}

/* Horizontal scroll track */
.wwb-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.wwb-track:active { cursor: grabbing; }
.wwb-track::-webkit-scrollbar { display: none; }

/* ── Cards ──────────────────────────────────── */
.wwb-card {
  flex: 0 0 430px;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(10,15,30,0.08);
  box-shadow: 0 2px 12px rgba(10,15,30,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.wwb-card:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow: 0 16px 48px rgba(10,15,30,0.12);
}

/* Card image area */
.wwb-card-visual {
  height: 188px;
  position: relative;
  overflow: hidden;
  background: #F5F7FA;
}

.wwb-card[data-cat="voice"]     .wwb-card-visual { background: rgba(245,158,11,0.06); }
.wwb-card[data-cat="marketing"] .wwb-card-visual { background: rgba(59,130,246,0.06); }
.wwb-card[data-cat="content"]   .wwb-card-visual { background: rgba(139,92,246,0.06); }
.wwb-card[data-cat="hiring"]    .wwb-card-visual { background: rgba(16,185,129,0.06); }

.wwb-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: transform 0.5s ease;
}

.wwb-card:hover .wwb-card-visual img {
  transform: scale(1.04) translateZ(0);
}

.wwb-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 40%, rgba(255,255,255,0.15) 100%);
  pointer-events: none;
}

/* Accent bar at bottom of image */
.wwb-card[data-cat="voice"]     .wwb-card-visual::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:#F59E0B; }
.wwb-card[data-cat="marketing"] .wwb-card-visual::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:#3B82F6; }
.wwb-card[data-cat="content"]   .wwb-card-visual::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:#8B5CF6; }
.wwb-card[data-cat="hiring"]    .wwb-card-visual::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:#10B981; }

/* Status badge */
.wwb-card-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  z-index: 2;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.22);
  color: #059669;
}

.wwb-badge-blue   { background: rgba(59,130,246,0.1)  !important; border-color: rgba(59,130,246,0.2)  !important; color: #2563EB !important; }
.wwb-badge-purple { background: rgba(139,92,246,0.1)  !important; border-color: rgba(139,92,246,0.2)  !important; color: #7C3AED !important; }
.wwb-badge-green  { background: rgba(16,185,129,0.12) !important; border-color: rgba(16,185,129,0.22) !important; color: #059669 !important; }

.wwb-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

/* Card body */
.wwb-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category pill */
.wwb-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 11px;
  background: rgba(245,158,11,0.1);
  color: #D97706;
  border: 1px solid rgba(245,158,11,0.2);
}

.wwb-cat-blue   { background: rgba(59,130,246,0.1)  !important; color: #2563EB !important; border-color: rgba(59,130,246,0.2)  !important; }
.wwb-cat-purple { background: rgba(139,92,246,0.1)  !important; color: #7C3AED !important; border-color: rgba(139,92,246,0.2)  !important; }
.wwb-cat-green  { background: rgba(16,185,129,0.1)  !important; color: #059669 !important; border-color: rgba(16,185,129,0.2)  !important; }

.wwb-card-body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 9px;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.wwb-card-body p {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* Feature list */
.wwb-feat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wwb-feat-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.4;
}

.wwb-feat-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #F59E0B;
}

.wwb-card[data-cat="marketing"] .wwb-feat-list li::before { background: #3B82F6; }
.wwb-card[data-cat="content"]   .wwb-feat-list li::before { background: #8B5CF6; }
.wwb-card[data-cat="hiring"]    .wwb-feat-list li::before { background: #10B981; }

/* Card footer */
.wwb-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(10,15,30,0.07);
}

.wwb-best-for {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wwb-best-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wwb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wwb-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(10,15,30,0.05);
  color: var(--text-light);
  white-space: nowrap;
  border: 1px solid rgba(10,15,30,0.07);
}

/* ── Scroll controls ────────────────────────── */
.wwb-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.wwb-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(10,15,30,0.14);
  background: #FFFFFF;
  color: var(--text-dark-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(10,15,30,0.06);
  -webkit-tap-highlight-color: transparent;
}

.wwb-arrow:hover {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.35);
  color: #D97706;
  box-shadow: 0 3px 12px rgba(245,158,11,0.15);
}

.wwb-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.wwb-dots {
  display: flex;
  gap: 6px;
  flex: 1;
  align-items: center;
}

.wwb-dot {
  height: 6px;
  width: 6px;
  border-radius: 3px;
  background: rgba(10,15,30,0.15);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
  border: none;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.wwb-dot.active {
  width: 22px;
  background: var(--accent);
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .signin-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .signin-side {
    display: none;
  }

  .portal-card-main {
    grid-template-columns: 1fr;
  }

  .portal-products {
    grid-template-columns: 1fr;
  }

  .portal-cta-row {
    grid-template-columns: 1fr;
  }

  .portal-cta-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* What We Build — tablet */
  .wwb-layout {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }

  .wwb-card { flex: 0 0 380px; }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .training-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  .portal-section {
    padding: 100px 0 60px;
  }

  .portal-card-content {
    padding: 28px;
  }

  .portal-card-visual {
    padding: 24px;
  }

  .portal-mockup {
    max-width: 280px;
  }

  .portal-title {
    font-size: 32px;
  }

  .navbar {
    top: 12px;
    width: calc(100% - 24px);
  }

  .signin-card {
    padding: 32px 24px;
  }

/* Nav */
  .nav-links,
  .nav-right {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle span {
    background: var(--text-dark);
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(245, 247, 250, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.active a {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
  }

  .mobile-toggle.active span {
    background: var(--text-white);
  }

  /* Mobile dropdown */
  .nav-links.active .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .nav-links.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    width: auto;
    padding: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
  }

  .nav-links.active .nav-dropdown.open .dropdown-menu {
    display: flex;
  }

  .nav-links.active .dropdown-menu a {
    font-size: 18px !important;
    color: var(--text-light);
    padding: 0;
  }

  .nav-links.active .dropdown-menu a:hover {
    background: none;
    color: var(--text-dark);
  }

  .nav-links.active .nav-dropdown > a svg {
    transition: transform 0.25s ease;
    display: inline-block;
  }

  .nav-links.active .nav-dropdown.open > a svg {
    transform: rotate(180deg);
  }

  .logo-item span {
    font-size: 14px;
  }

  .logo-roulette {
    gap: 32px;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + 40px);
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-headline {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero-sub br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  /* What We Build — mobile */
  .wwb-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wwb-left {
    position: static;
  }

  .wwb-left-stats {
    gap: 16px;
  }

  .wwb-card {
    flex: 0 0 300px;
  }

  .wwb-card-visual {
    height: 152px;
  }

  .wwb-card-body {
    padding: 18px 18px 20px;
  }

  .wwb-left-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step-number {
    font-size: 48px;
  }

  /* Results */
  .results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .result-block {
    padding: 28px 20px;
  }

  .result-number {
    font-size: 40px;
  }

  /* Contact */
  .contact-headline {
    font-size: clamp(28px, 7vw, 40px);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer {
    padding: 48px 0 0;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  .card {
    padding: 28px;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

/* ============================================
   SMOOTH SCROLL SNAP (optional enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #EEF1F8;
}

::-webkit-scrollbar-thumb {
  background: rgba(10, 15, 30, 0.20);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 15, 30, 0.35);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: var(--text-white);
}

/* ============================================
   EXTENDED ANIMATIONS — GPU-OPTIMISED (120 fps)
   Only transform + opacity on the compositor thread.
   No box-shadow, width, height, or color animations.
   ============================================ */

/* ── Keyframes (transform/opacity only) ── */
@keyframes float {
  0%, 100% { transform: translate3d(0, 0px, 0); }
  50%       { transform: translate3d(0, -8px, 0); }
}

@keyframes ping {
  0%   { transform: scale3d(1,1,1);   opacity: 0.75; }
  100% { transform: scale3d(2.4,2.4,1); opacity: 0; }
}

@keyframes shimmer-bg {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Glow via pseudo-element opacity — NO box-shadow animation */
@keyframes glow-breathe {
  0%, 100% { opacity: 0.20; }
  50%       { opacity: 0.50; }
}

@keyframes ripple-expand {
  to { transform: scale3d(4,4,1); opacity: 0; }
}

/* ── GPU layer promotion ── */
.hero-badge,
.section-tag,
.hero-glow,
.hero-container,
.anim-fade-up,
.anim-fade-left,
.anim-fade-right,
.btn-primary,
.nav-cta,
.card,
.training-card,
.result-block,
.step,
.product-tab,
.panel-img {
  will-change: transform;
  backface-visibility: hidden;
}

/* ── Scroll progress bar — scaleX, NOT width (no layout) ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;                        /* always full width */
  transform: scaleX(0);               /* JS drives scaleX(0→1) */
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent) 0%, #FBBF24 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer-bg 2.4s linear infinite;
  z-index: 99999;
  /* Glow via filter — GPU, no repaint */
  filter: drop-shadow(0 0 6px rgba(245,158,11,0.55));
  pointer-events: none;
}

/* ── Hero badge float ── */
.hero-badge {
  animation: float 4s ease-in-out infinite;
}

/* ── Section tags float ── */
.section-tag {
  animation: float 4.5s ease-in-out 0.5s infinite;
}

/* ── Highlight shimmer (background-position on GPU) ── */
.highlight {
  background: linear-gradient(90deg, var(--accent) 0%, #FBBF24 40%, var(--accent) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-bg 3s linear infinite;
  will-change: auto; /* background-clip forces compositing anyway */
}

/* ── Nav underline — transform scaleX (not width) ── */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ── Primary button: glow via ::after opacity, NOT box-shadow ── */
.btn-primary {
  position: relative;
  isolation: isolate;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--accent);
  opacity: 0;
  filter: blur(14px);
  z-index: -1;
  transition: opacity 0.3s ease;
  will-change: opacity;
}
.btn-primary:hover::after {
  opacity: 0.35;
  animation: glow-breathe 1.4s ease-in-out infinite;
}

/* ── Ripple — transform scale only ── */
.btn {
  position: relative;
  overflow: hidden;
}
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: rgba(255,255,255,0.30);
  transform: scale3d(0,0,1);
  animation: ripple-expand 0.55s cubic-bezier(0.4,0,0.2,1) forwards;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ── Live ping dots — transform scale + opacity only ── */
.badge-dot,
.mockup-dot {
  position: relative;
}
.badge-dot::before,
.mockup-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16,185,129,0.45);
  animation: ping 1.6s ease-out infinite;
  will-change: transform, opacity;
}

/* ── Card hover — shadow via ::after opacity, NOT box-shadow transition ── */
.card {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 20px 48px rgba(10,15,30,0.14);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  will-change: opacity;
}
.card:hover::after { opacity: 1; }

/* ── Training card ── */
.training-card {
  position: relative;
  transition: transform 0.3s ease;
}
.training-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 14px 36px rgba(10,15,30,0.11);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  will-change: opacity;
}
.training-card:hover { transform: translate3d(0,-5px,0); }
.training-card:hover::after { opacity: 1; }

/* ── Result block ── */
.result-block {
  position: relative;
  transition: transform 0.3s ease;
}
.result-block::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 12px 32px rgba(10,15,30,0.10);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  will-change: opacity;
}
.result-block:hover { transform: translate3d(0,-4px,0); }
.result-block:hover::after { opacity: 1; }

/* ── Step hover ── */
.step {
  transition: transform 0.25s ease;
}
.step:hover { transform: translate3d(0,-4px,0); }
.step-number {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.step:hover .step-number {
  transform: scale3d(1.12,1.12,1) rotate(-4deg);
}

/* ── Product tab ── */
.product-tab:not(.active):hover {
  transform: translate3d(4px,0,0);
}

/* ── Portal product card ── */
.portal-product-card {
  position: relative;
  transition: transform 0.3s ease;
}
.portal-product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 12px 32px rgba(10,15,30,0.10);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  will-change: opacity;
}
.portal-product-card:hover { transform: translate3d(0,-4px,0); }
.portal-product-card:hover::after { opacity: 1; }

/* ── Logo item ── */
.logo-item {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.logo-item:hover {
  transform: scale3d(1.08,1.08,1) translate3d(0,-2px,0);
}

/* ── Panel image zoom ── */
.panel-img-wrap { overflow: hidden; }
.panel-img {
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.panel-img:hover { transform: scale3d(1.04,1.04,1); }

/* ── Directional reveal utilities ── */
.anim-fade-up {
  opacity: 0;
  transform: translate3d(0,28px,0);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.anim-fade-up.anim-visible,
.anim-fade-up.visible { opacity: 1; transform: translate3d(0,0,0); }

.anim-fade-left {
  opacity: 0;
  transform: translate3d(-30px,0,0);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.anim-fade-left.anim-visible,
.anim-fade-left.visible { opacity: 1; transform: translate3d(0,0,0); }

.anim-fade-right {
  opacity: 0;
  transform: translate3d(30px,0,0);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.anim-fade-right.anim-visible,
.anim-fade-right.visible { opacity: 1; transform: translate3d(0,0,0); }

/* ── Respect reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-progress { display: none; }
}