/* ==========================================================================
   GROUPE MAGAGI CONSULTING ET SERVICES — EXECUTIVE CGP EDITION
   Dark Aesthetic (#0b0c10, #121319, #2997ff)
   Auto-Playing Infinite Loop Keynote Hero Slider with Bottom Tabs & Progress
   ========================================================================== */

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

:root {
  /* Dark Theme (Apple Pro Titanium / CGP Executive Default) */
  --bg-main: #0b0c10;
  --bg-sec: #121319;
  --bg-card: rgba(22, 24, 32, 0.78);
  --bg-card-hover: rgba(30, 33, 44, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-heavy: rgba(11, 12, 16, 0.9);
  
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  --text-sub: #515154;
  
  --accent: #2997ff;
  --accent-hover: #0077ed;
  --accent-subtle: rgba(41, 151, 255, 0.15);
  
  --gold: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.25);

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-accent: rgba(41, 151, 255, 0.3);

  --sh-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --sh-md: 0 16px 40px rgba(0, 0, 0, 0.5);
  --sh-lg: 0 30px 80px rgba(0, 0, 0, 0.7);
  --sh-glow: 0 0 35px rgba(41, 151, 255, 0.2);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 980px;

  --tr-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --tr: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

  --font-main: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Space Grotesk', 'SF Pro Display', sans-serif;
}

/* Light Theme Variant */
[data-theme="light"] {
  --bg-main: #fbfbfd;
  --bg-sec: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-glass-heavy: rgba(251, 251, 253, 0.92);
  
  --text-main: #1d1d1f;
  --text-muted: #6e6e73;
  --text-sub: #86868b;
  
  --accent: #0066cc;
  --accent-hover: #004499;
  --accent-subtle: rgba(0, 102, 204, 0.08);

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.2);
  --border-accent: rgba(0, 102, 204, 0.2);

  --sh-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
  --sh-md: 0 12px 32px rgba(0, 0, 0, 0.07);
  --sh-lg: 0 24px 60px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color var(--tr), color var(--tr);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-main);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.title-gradient {
  background: linear-gradient(180deg, var(--text-main) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-blue {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====== TOPBAR ====== */
.topbar {
  background: rgba(10, 11, 14, 0.95);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1001;
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-left strong {
  color: var(--text-main);
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.topbar-item a:hover { color: var(--text-main); }

/* ====== NAVIGATION ====== */
.nav {
  position: fixed;
  top: 35px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border);
  transition: all var(--tr);
}

.nav.scrolled {
  top: 0;
  box-shadow: var(--sh-sm);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--text-main);
  color: var(--bg-main);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--tr-fast);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text-main);
}

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

.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.theme-toggle:hover { background: var(--bg-card-hover); }

.lang-segmented {
  display: flex;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: var(--r-full);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.lang-btn.active {
  background: var(--text-main);
  color: var(--bg-main);
}

.nav-cta {
  padding: 8px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--r-full);
  background: var(--text-main);
  color: var(--bg-main);
  transition: all var(--tr-fast);
}

.nav-cta:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-main);
  transition: all var(--tr-fast);
}

.toggle-on span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.toggle-on span:nth-child(2) { opacity: 0; }
.toggle-on span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ====== HERO KEYNOTE SLIDER (AUTO-PLAY INFINITE LOOP) ====== */
.hero-cgp {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #0b0c10;
  color: #ffffff;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 6s ease-out;
  filter: brightness(0.48) contrast(1.1);
  transform: scale(1.06);
}

.hero-video-item.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.6) 0%, rgba(11, 12, 16, 0.4) 50%, rgba(11, 12, 16, 0.98) 100%);
  pointer-events: none;
}

.hero-main-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  width: 100%;
  margin: auto auto;
  padding: 170px 28px 80px;
}

.hero-slide-text {
  display: none;
  max-width: 840px;
}

.hero-slide-text.active {
  display: block;
  animation: heroSlideFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hero-cgp-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-cgp-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 40px;
  max-width: 680px;
  font-weight: 400;
}

.btn-keynote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-full);
  backdrop-filter: blur(20px);
  transition: all var(--tr-fast);
  cursor: pointer;
}

.btn-keynote:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.02);
}

/* CGP Bottom Segmented Slider Bar & Auto-Fill Progress */
.hero-bottom-bar {
  position: relative;
  z-index: 4;
  width: 100%;
  background: rgba(15, 16, 22, 0.88);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.hero-tab-item {
  position: relative;
  padding: 22px 20px;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--tr-fast);
  text-align: left;
  user-select: none;
}

.hero-tab-item:last-child { border-right: none; }

.hero-tab-item.active {
  background: rgba(255, 255, 255, 0.07);
}

.hero-tab-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--tr-fast);
  margin-bottom: 4px;
}

.hero-tab-item.active .hero-tab-title,
.hero-tab-item:hover .hero-tab-title {
  color: #ffffff;
}

.hero-tab-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.05em;
}

.hero-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

.hero-tab-item.active .hero-tab-progress {
  transition: width 5s linear;
  width: 100%;
}

.hero-controls {
  position: absolute;
  right: 32px;
  bottom: 110px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: all var(--tr-fast);
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* ====== METRICS STRIP ====== */
.trust {
  background: var(--bg-sec);
  padding: 64px 28px;
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 24px 16px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--tr-fast);
}

.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--sh-glow);
}

.stat-num {
  display: inline-block;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.04em;
  line-height: 1;
  font-family: var(--font-heading);
}

.stat-suf {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-muted);
}

.stat-lbl {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ====== SECTIONS ====== */
.section {
  padding: 130px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 80px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== ABOUT ====== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
}

.about-visual-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform var(--tr-slow);
}

.about-visual-wrap:hover .about-visual-img {
  transform: scale(1.02);
}

.about-overlay-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-overlay-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 700;
}

.about-overlay-badge span {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.7;
}

.about-quote {
  font-size: 1.25rem !important;
  color: var(--text-main) !important;
  font-style: italic;
  font-weight: 600 !important;
  border-left: 3px solid var(--text-main);
  padding-left: 24px;
  margin-top: 32px !important;
  line-height: 1.5;
}

.about-cards {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.about-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--tr-fast);
}

.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.card-icon-svg {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.about-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====== IMMERSIVE MOTION DESIGN EXPERTISE (PLUNGING ENVIRONMENT) ====== */
.expertise-scrollytelling-wrapper {
  position: relative;
  width: 100%;
  background: #07080b;
}

.expertise-pinned-viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.environment-3d-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.environment-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.35) translateZ(0);
  filter: brightness(0.42) contrast(1.15);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.environment-bg-layer.active {
  opacity: 1;
  transform: scale(1.02) translateZ(0);
}

.environment-particle-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(41, 151, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.environment-gradient-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    linear-gradient(180deg, rgba(11, 12, 16, 0.85) 0%, rgba(11, 12, 16, 0.2) 50%, rgba(11, 12, 16, 0.95) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(7, 8, 11, 0.85) 100%);
  pointer-events: none;
}

.environment-hud-tracker {
  position: absolute;
  top: 50%;
  left: 48px;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hud-step-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  opacity: 0.35;
  transition: all var(--tr-fast);
}

.hud-step-indicator.active { opacity: 1; }

.hud-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  transition: all var(--tr-fast);
}

.hud-step-indicator.active .hud-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  transform: scale(1.3);
}

.hud-step-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-transform: uppercase;
}

.environment-scene-stage {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  width: 100%;
  padding: 0 28px;
}

.environment-card-stage {
  max-width: 620px;
  background: rgba(15, 18, 26, 0.78);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
  padding: 48px 52px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 40px rgba(41, 151, 255, 0.1);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.environment-card-stage.active {
  transform: translateY(0);
  opacity: 1;
}

.env-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.3);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.env-scene-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.env-scene-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin-bottom: 28px;
}

.env-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.env-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #ffffff;
}

.env-feature-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.expertise-scroll-trigger-spacer {
  height: 500vh;
}

/* ====== INTERACTIVE PLATFORM ====== */
.platform-section {
  background: var(--bg-sec);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.platform-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
  box-shadow: var(--sh-md);
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.platform-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.platform-tab-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 22px 24px;
  border-radius: var(--r-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--tr-fast);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.platform-tab-btn:hover,
.platform-tab-btn.active {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.platform-tab-btn.active {
  border-color: var(--text-main);
}

.platform-tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-tab-btn.active .platform-tab-icon {
  background: var(--text-main);
  color: var(--bg-main);
}

.platform-tab-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.platform-tab-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.platform-demo-window {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000000;
  box-shadow: var(--sh-md);
}

.window-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.window-dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 500;
}

.platform-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

/* ====== LANGUAGES ====== */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lang-card {
  text-align: left;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 44px 36px;
  border: 1px solid var(--border);
  transition: all var(--tr-fast);
}

.lang-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--sh-sm);
}

.lang-code {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.lang-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.lang-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.translation-sampler {
  margin-top: 48px;
  background: var(--bg-sec);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  text-align: center;
}

.sampler-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-weight: 600;
}

.sampler-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.sampler-btn {
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--r-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--tr-fast);
}

.sampler-btn.active {
  background: var(--text-main);
  color: var(--bg-main);
  border-color: var(--text-main);
}

.sampler-output {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
}

/* ====== CALCULATOR ====== */
.calc-section {
  background: var(--bg-sec);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--bg-glass);
  transition: all var(--tr-fast);
}

.form-control option {
  background: #121319;
  color: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--text-main);
}

.calc-output {
  background: var(--bg-sec);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.calc-val {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 20px 0;
  letter-spacing: -0.03em;
}

/* ====== PROCESS ====== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.proc-step {
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: all var(--tr-fast);
}

.proc-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.proc-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.proc-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.proc-step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.proc-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====== CONTACT ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: color var(--tr-fast);
}

.contact-item:hover { color: var(--accent); }

.contact-ic {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  flex-shrink: 0;
  transition: all var(--tr-fast);
}

.contact-item:hover .contact-ic {
  background: var(--text-main);
  color: var(--bg-main);
}

.contact-form {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 44px;
  border: 1px solid var(--border);
}

.form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--text-main);
}

.form-check label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ====== FOOTER ====== */
.footer {
  background: #08090c;
  color: var(--text-muted);
  padding: 90px 28px 36px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--tr-fast);
}

.footer-col a:hover { color: var(--text-main); }

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
}

.newsletter-input:focus { border-color: var(--text-main); }

.newsletter-btn {
  padding: 10px 18px;
  background: var(--text-main);
  color: var(--bg-main);
  border: none;
  border-radius: var(--r-full);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--tr-fast);
}

.newsletter-btn:hover { opacity: 0.9; }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.footer-tag {
  font-style: italic;
  color: var(--text-muted) !important;
}

/* ====== REVEAL ANIMATIONS ====== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
  .about-grid,
  .platform-grid,
  .calc-card,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-bottom-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .environment-hud-tracker { display: none; }
}

@media (max-width: 768px) {
  .topbar-right { display: none; }
  .nav { top: 0; }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--tr);
  }

  .nav-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .svc-grid,
  .lang-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-bottom-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-controls { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 90px 0; }
  .environment-card-stage { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .trust-inner { grid-template-columns: 1fr; }
  .hero-bottom-inner { grid-template-columns: 1fr; }

  .contact-form,
  .platform-container,
  .calc-card {
    padding: 24px;
  }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--text-sub); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
