/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }

:root {
  --bg: #060608;
  --bg-2: #0c0c12;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.08);
  --text: #f2f2f5;
  --text-dim: #9a9aa8;
  --accent: #7c5cff;
  --accent-2: #00e0c6;
  --accent-3: #ff5c8a;
  --grad: linear-gradient(135deg, #7c5cff 0%, #00e0c6 50%, #ff5c8a 100%);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 1080px) { .container { padding: 0 28px; } }
@media (max-width: 680px) { .container { padding: 0 18px; } .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; } .footer-right { gap: 16px; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; cursor: none !important; }
button { cursor: none !important; }

::selection { background: var(--accent); color: #fff; }

/* ============ CURSOR ============ */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(124,92,255,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor.hover {
  width: 64px; height: 64px;
  background: rgba(124,92,255,0.15);
  border-color: var(--accent-2);
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--accent-2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

@media (pointer: coarse), (hover: none) {
  .cursor, .cursor-dot, .cursor-aura { display: none !important; }
  body, a, button, input, textarea { cursor: auto !important; }
}

/* ============ NOISE & BG ============ */
.noise {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.gradient-bg {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float 20s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c5cff, transparent 70%);
  top: -10%; left: -5%;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00e0c6, transparent 70%);
  bottom: 10%; right: -8%;
  animation-delay: -7s;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ff5c8a, transparent 70%);
  top: 50%; left: 40%;
  animation-delay: -14s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

#particles {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,6,8,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.15em; font-size: 15px;
}
.logo-mark {
  width: 12px; height: 12px;
  background: var(--grad);
  border-radius: 3px;
  animation: markSpin 6s linear infinite;
}
@keyframes markSpin {
  0% { transform: rotate(0deg); border-radius: 3px; }
  50% { transform: rotate(180deg); border-radius: 50%; }
  100% { transform: rotate(360deg); border-radius: 3px; }
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 14px; color: var(--text-dim);
  position: relative; overflow: hidden;
  transition: color 0.3s;
  display: inline-block;
}
.nav-link span { display: inline-block; transition: transform 0.35s cubic-bezier(0.65,0,0.35,1); }
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65,0,0.35,1);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.cta-mini {
  border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 100px;
  transition: border-color 0.3s, background 0.3s;
}
.cta-mini::after { display: none; }
.cta-mini:hover { border-color: var(--accent); background: rgba(124,92,255,0.1); }

.menu-btn {
  display: none;
  flex-direction: column; gap: 6px;
  background: none; border: none; padding: 8px;
}
.menu-btn span {
  width: 24px; height: 1.5px; background: var(--text);
  transition: transform 0.3s;
}
.menu-btn.active span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn.active span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(6,6,8,0.97);
  backdrop-filter: blur(30px);
  z-index: 99;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; visibility: visible; }
.mobile-link {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 600;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.mobile-menu.open .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ============ HERO ============ */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 100px;
  margin-bottom: 40px;
  background: var(--surface);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,224,198,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0,224,198,0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 8.6vw, 92px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-title .line:nth-child(1) .word { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) .word { animation-delay: 0.35s; }
.hero-title .line:nth-child(3) .word { animation-delay: 0.5s; }
@keyframes wordUp { to { transform: translateY(0); } }

.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242,242,245,0.4);
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
}

.hero-sub {
  max-width: 520px;
  font-size: 17px; line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 72px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 15px 30px; border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.btn span { position: relative; z-index: 1; }
.btn svg { position: relative; z-index: 1; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  background-size: 200% 200%;
  animation: gradShift 4s ease infinite;
}
.btn-primary:hover { box-shadow: 0 8px 40px rgba(124,92,255,0.35); transform: translateY(-2px); }
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 16px; }

.hero-stats {
  display: flex; align-items: center; gap: 40px;
  margin-bottom: 40px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.2em;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============ MARQUEE ============ */
.marquee-wrap {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(10px);
}
.marquee { display: flex; width: max-content; }
.marquee-track {
  display: flex; align-items: center; gap: 40px;
  padding-right: 40px;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--text-dim);
}
.marquee-track .dot { color: var(--accent); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto;
  padding: 140px 48px;
}
@media (max-width: 1080px) { .section { padding: 110px 28px; } }
@media (max-width: 680px) { .section { padding: 90px 18px; } }
.section-head { margin-bottom: 72px; }
.section-tag {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-2);
  text-transform: uppercase; letter-spacing: 0.15em;
  display: block; margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
  transform-style: preserve-3d;
}
.service-card:hover { border-color: rgba(124,92,255,0.4); }
.card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(124,92,255,0.12), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover .card-glow { opacity: 1; }
.card-num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim); opacity: 0.5;
}
.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  color: var(--accent);
}
.card-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14.5px; line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-tags span {
  font-family: var(--font-mono); font-size: 11px;
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: border-color 0.3s, color 0.3s;
}
.service-card:hover .card-tags span { border-color: rgba(124,92,255,0.3); color: var(--text); }

/* ============ PROCESS ============ */
.section-process { padding-bottom: 100px; }
.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px; align-items: start;
  margin-bottom: 80px;
}
.process-step { text-align: center; }
.step-circle {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--accent-2);
}
.step-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.step-ring circle {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.65,0,0.35,1);
}
.process-step.visible .step-ring circle {
  stroke: var(--accent);
  stroke-dashoffset: 0;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 14px; line-height: 1.65;
  color: var(--text-dim);
  max-width: 260px; margin: 0 auto;
}
.process-connector {
  height: 1px; width: 60px;
  margin-top: 50px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.quote {
  text-align: center;
  max-width: 700px; margin: 0 auto;
  padding: 48px 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: '"';
  position: absolute; top: -20px; left: 20px;
  font-family: var(--font-display);
  font-size: 160px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.15;
  line-height: 1;
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600; line-height: 1.5;
  position: relative;
}

/* ============ WHY US ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.why-item {
  padding: 40px 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color 0.4s, transform 0.4s;
}
.why-item:hover { border-color: rgba(0,224,198,0.35); transform: translateY(-4px); }
.why-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-2);
  display: block; margin-bottom: 18px;
  letter-spacing: 0.1em;
}
.why-item h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
}
.why-item p { font-size: 15px; line-height: 1.65; color: var(--text-dim); }

/* ============ CONTACT ============ */
.section-contact { padding-bottom: 100px; }
.contact-box {
  position: relative;
  text-align: center;
  padding: 100px 40px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
  overflow: hidden;
}
.contact-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 240px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 10vw, 72px);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  position: relative;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}
.contact-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-sub {
  max-width: 480px; margin: 0 auto 44px;
  font-size: 16px; line-height: 1.7;
  color: var(--text-dim);
  position: relative;
}
.contact-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
  position: relative;
}
.contact-meta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim);
  position: relative;
}
.meta-dot { color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 32px 40px;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-dim);
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left .logo-mark { width: 10px; height: 10px; }
.footer-right { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-right a { transition: color 0.3s; white-space: nowrap; }
.footer-right a:hover { color: var(--text); }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .process-connector { display: none; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .menu-btn { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 10px; }
  .mobile-lang { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; padding: 0 20px; }
  .mobile-lang-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); padding: 8px 12px; border-radius: 10px; font-family: var(--font-mono); font-size: 12px; min-height: 40px; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .section { padding: 90px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 70px 24px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .btn { padding: 14px 24px; font-size: 14px; }
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
}
.preloader-inner {
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
}
.preloader-ring {
  position: absolute;
  width: 160px; height: 160px;
  border: 1px solid rgba(124,92,255,0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: -30px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader-logo {
  width: 120px; height: auto;
  object-fit: contain;
  animation: logoPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(124,92,255,0.4));
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}
.preloader-text {
  display: flex; gap: 2px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.35em;
  overflow: hidden;
}
.preloader-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterUp 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}
.preloader-letter:nth-child(1) { animation-delay: 0.1s; }
.preloader-letter:nth-child(2) { animation-delay: 0.16s; }
.preloader-letter:nth-child(3) { animation-delay: 0.22s; }
.preloader-letter:nth-child(4) { animation-delay: 0.28s; }
.preloader-letter:nth-child(5) { animation-delay: 0.34s; }
.preloader-letter:nth-child(6) { animation-delay: 0.4s; }
.preloader-letter:nth-child(7) { animation-delay: 0.46s; }
.preloader-letter:nth-child(8) { animation-delay: 0.52s; }
@keyframes letterUp { to { opacity: 1; transform: translateY(0); } }
.preloader-bar {
  width: 180px; height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%; width: 0%;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.preloader-curtain {
  position: absolute; top: 0; bottom: 0;
  width: 50%;
  background: var(--bg);
  z-index: 1;
  transition: transform 0.9s cubic-bezier(0.76,0,0.24,1);
}
.curtain-left { left: 0; }
.curtain-right { right: 0; }
.preloader.done .preloader-inner {
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.4s, transform 0.4s;
}
.preloader.done .curtain-left { transform: translateX(-100%); }
.preloader.done .curtain-right { transform: translateX(100%); }
.preloader.gone { display: none; }

/* ============ LOGO IMG ============ */
.logo-img {
  height: 34px; width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}
.logo:hover .logo-img { transform: scale(1.05); }
.footer-logo {
  height: 28px; width: auto;
  object-fit: contain;
  opacity: 0.85;
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.lang-btn:hover { border-color: rgba(124,92,255,0.4); color: var(--text); background: rgba(124,92,255,0.08); }
.lang-caret { transition: transform 0.3s; }
.lang-switcher.open .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 170px;
  background: rgba(12,12,18,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  opacity: 0; pointer-events: none;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 200;
}
.lang-switcher.open .lang-dropdown { opacity: 1; pointer-events: all; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: none; border: none;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.lang-option:hover { background: rgba(124,92,255,0.1); color: var(--text); }
.lang-option.active { background: rgba(124,92,255,0.15); color: var(--text); }
.lang-code {
  font-family: var(--font-mono); font-size: 11px;
  min-width: 24px;
  color: var(--accent-2);
}
.lang-name { font-weight: 500; }

/* body language font overrides */
html[lang="ta"], html[lang="te"], html[lang="kn"], html[lang="ml"] body,
html[lang="ta"] .section-title, html[lang="te"] .section-title,
html[lang="kn"] .section-title, html[lang="ml"] .section-title {
  font-family: 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Malayalam', var(--font-body);
}
html[lang="hi"] body, html[lang="hi"] .section-title, html[lang="hi"] .hero-title, html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] .portal-title {
  font-family: 'Noto Sans Devanagari', var(--font-display), var(--font-body);
}

/* lang transition on content swap */
[data-i18n] { transition: opacity 0.25s ease; }
.swapping [data-i18n] { opacity: 0.3; }

@media (max-width: 768px) {
/* Malayalam contact title can be longer */
html[lang="ml"] .contact-title { font-size: clamp(24px, 7vw, 60px); }
  .nav-links { gap: 16px; }
  .preloader-logo { width: 90px; }
  .preloader-text { font-size: 16px; }
  .logo-img { height: 28px; width: auto; }
}

/* ============ CYBERPUNK WELCOME PORTAL (shown once) ============ */
:root {
  --portal-cursor-x: 50vw;
  --portal-cursor-y: 50vh;
  --portal-neon: #00f3ff;
  --portal-neon-2: #bc13fe;
  --portal-dark: #020205;
}

.welcome-portal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(16px, env(safe-area-inset-top, 0)) 12px max(16px, env(safe-area-inset-bottom, 0));
  background: #010103;
  color: #e8e8f2;
  font-family: var(--font-mono);
}

/* Hide portal entirely when already seen */
.welcome-portal.portal-seen {
  display: none !important;
}

/* CRT scanlines */
.portal-scanlines {
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0.4) 50%, transparent 0),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 3px 100%;
}

/* Vignette */
.portal-vignette {
  position: absolute;
  inset: 0;
  z-index: 46;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.9) 90%);
}

/* Glitch overlay container */
.portal-glitch {
  position: absolute;
  inset: 0;
  z-index: 47;
  pointer-events: none;
  opacity: 0.35;
}

/* Shutters */
.portal-shutter-top,
.portal-shutter-bottom {
  position: absolute;
  inset-x: 0;
  height: 50%;
  background: #020205;
  border: 1px solid rgba(255,255,255,0.06);
  z-index: 50;
  transition: transform 1.05s cubic-bezier(0.83, 0, 0.17, 1);
  will-change: transform;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.75rem;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
}
.portal-shutter-top {
  top: 0;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: rgba(255,255,255,0.06);
  align-items: flex-start;
  justify-content: space-between;
}
.portal-shutter-bottom {
  bottom: 0;
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: rgba(255,255,255,0.06);
  align-items: flex-end;
  justify-content: space-between;
}
.welcome-portal.portal-unlocked .portal-shutter-top { transform: translateY(-110%); }
.welcome-portal.portal-unlocked .portal-shutter-bottom { transform: translateY(110%); }

.shutter-brand { letter-spacing: 0.18em; color: var(--portal-neon); text-shadow: 0 0 10px rgba(0,243,255,0.4); }
.shutter-time { font-variant-numeric: tabular-nums; color: var(--portal-neon-2); }
.shutter-status { color: #888; }
.shutter-loc { color: rgba(255,255,255,0.45); }

/* Canvas particles behind UI */
.portal-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.5;
}

/* Core UI card */
#portal-core-ui {
  position: relative;
  z-index: 55;
  max-width: 460px;
  width: min(520px, 94vw);
  padding: 1.5rem 1.5rem 1.75rem;
  background: radial-gradient(circle at 50% 0%, rgba(0,243,255,0.16), transparent 55%), rgba(4, 4, 8, 0.85);
  border: 1px solid rgba(0,243,255,0.18);
  border-radius: 2rem;
  text-align: center;
  backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px rgba(0,243,255,0.08), 0 30px 90px -15px rgba(0,0,0,0.9);
  margin: auto;
  flex-shrink: 0;
}

/* Holographic shimmer on card */
#portal-core-ui::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 2rem;
  padding: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,243,255,0.35), transparent, rgba(188,19,254,0.35), transparent);
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.5;
  animation: portalShimmer 4s linear infinite;
  pointer-events: none;
}
@keyframes portalShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* System header dots */
.portal-system-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.system-dots { display: flex; gap: 6px; margin-right: 10px; }
.system-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 6px rgba(255,255,255,0.2);
}
.system-dot.system-dot-active {
  background: var(--portal-neon);
  box-shadow: 0 0 10px var(--portal-neon);
  animation: portalBlink 1.2s ease-in-out infinite;
}
.system-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
}
@keyframes portalBlink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Glitchy main title */
.portal-title {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  mix-blend-mode: difference;
}
.glitch-wrap {
  display: inline-block;
  position: relative;
}
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #010103;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 var(--portal-neon-2);
  animation: glitch-1 3.5s infinite linear alternate-reverse;
}
.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 var(--portal-neon);
  animation: glitch-2 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-1 {
  0% { clip: rect(62px, 9999px, 30px, 0); }
  5% { clip: rect(310px, 9999px, 15px, 0); }
  10% { clip: rect(12px, 9999px, 90px, 0); }
  15% { clip: rect(200px, 9999px, 60px, 0); }
  20% { clip: rect(80px, 9999px, 10px, 0); }
  25% { clip: rect(0, 9999px, 20px, 0); }
  30% { clip: rect(300px, 9999px, 40px, 0); }
  35% { clip: rect(10px, 9999px, 100px, 0); }
  40% { clip: rect(180px, 9999px, 10px, 0); }
  45% { clip: rect(60px, 9999px, 70px, 0); }
  100% { clip: rect(20px, 9999px, 20px, 0); }
}
@keyframes glitch-2 {
  0% { clip: rect(15px, 9999px, 80px, 0); }
  5% { clip: rect(90px, 9999px, 10px, 0); }
  10% { clip: rect(40px, 9999px, 150px, 0); }
  15% { clip: rect(10px, 9999px, 20px, 0); }
  20% { clip: rect(200px, 9999px, 10px, 0); }
  25% { clip: rect(320px, 9999px, 60px, 0); }
  30% { clip: rect(150px, 9999px, 10px, 0); }
  35% { clip: rect(5px, 9999px, 40px, 0); }
  40% { clip: rect(200px, 9999px, 90px, 0); }
  100% { clip: rect(10px, 9999px, 10px, 0); }
}

.portal-subtitle {
  margin: 0 0 1.5rem 0;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(0,243,255,0.8);
  text-shadow: 0 0 12px rgba(0,243,255,0.35);
  font-family: var(--font-mono);
}

/* Terminal typing area */
.portal-terminal {
  text-align: left;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}
.terminal-prompt {
  color: #10b981;
  font-size: 11px;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}
.terminal-line {
  color: #e8e8f2;
  font-size: 12px;
  letter-spacing: 0.05em;
  min-height: 1.3em;
}
.terminal-cursor {
  color: var(--portal-neon);
  font-size: 12px;
  animation: terminalBlink 1s step-end infinite;
}
@keyframes terminalBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Tilt stage */
.portal-tilt-stage {
  position: relative;
  margin: 0 auto 1.25rem auto;
  width: 100%;
  max-width: 360px;
  padding: 1.25rem;
  background: #000;
  border: 1px solid rgba(0,243,255,0.15);
  border-radius: 2rem;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8), 0 0 40px rgba(0,243,255,0.1);
  transition: transform 0.15s ease;
}
.portal-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Pillars */
.portal-pillar-group { cursor: pointer; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), filter 0.3s ease; transform-origin: center; }
.portal-pillar-group:hover { transform: translateY(-8px); filter: drop-shadow(0 0 26px rgba(0,243,255,0.6)); }
.portal-pillar-group.ignited-1 { filter: drop-shadow(0 0 28px rgba(0,243,255,0.8)); }
.portal-pillar-group.ignited-2 { filter: drop-shadow(0 0 28px rgba(188,19,254,0.8)); }
.portal-pillar-group.ignited-3 { filter: drop-shadow(0 0 28px rgba(16,185,129,0.8)); }

/* Ignition nodes */
.portal-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 10px;
  font-family: var(--font-mono);
}
.portal-node {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
  transition: all 0.2s ease;
  cursor: pointer;
}
.portal-node:hover {
  border-color: rgba(0,243,255,0.4);
  color: #fff;
  background: rgba(0,243,255,0.08);
}
.portal-node.portal-node-active {
  border-color: var(--portal-neon);
  background: rgba(0,243,255,0.12);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(0,243,255,0.35);
}
.portal-node.portal-node-active .portal-node-dot {
  background: var(--portal-neon);
  box-shadow: 0 0 12px var(--portal-neon);
}
.portal-node-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}

/* Progress */
.portal-progress { margin-top: 1.25rem; width: 100%; }
.portal-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
.portal-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.portal-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--portal-neon), #818cf8, #10b981);
  transition: width 0.2s ease;
  width: 34%;
  box-shadow: 0 0 18px rgba(0,243,255,0.5);
}

/* Actions */
.portal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px){ .portal-actions { flex-direction: row; align-items: center; } }

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 1.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}
.portal-btn-hold {
  background: linear-gradient(135deg, var(--portal-neon), #818cf8);
  color: #000;
  box-shadow: 0 0 30px rgba(0,243,255,0.45);
}
.portal-btn-hold:hover { filter: brightness(1.15); transform: translateY(-1px); }
.portal-btn-hold:active { transform: scale(0.96); }
.portal-btn-instant {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.portal-btn-instant:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }

.lucide-icon { width: 16px; height: 16px; display: inline-block; fill: currentColor; }

/* Access granted flash */
.portal-access-granted {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 1.25rem 0 0.5rem 0;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #10b981;
  animation: accessPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes accessPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.access-icon { font-size: 24px; filter: drop-shadow(0 0 8px rgba(16,185,129,0.6)); }
.access-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  text-shadow: 0 0 14px rgba(16,185,129,0.45);
}
.access-sub {
  font-size: 10px;
  color: rgba(16,185,129,0.7);
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
}

.portal-skip {
  margin-top: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.portal-skip:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.3); }

/* Cursor aura (global) */
.cursor-aura {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(700px circle at var(--portal-cursor-x) var(--portal-cursor-y), rgba(0,243,255,0.06), rgba(188,19,254,0.03) 35%, transparent 70%);
}

@media (max-height: 860px) {
  .welcome-portal { padding: 12px 10px; }
  #portal-core-ui { padding: 1rem 1.25rem 1.25rem; gap: 0.7rem; }
  .portal-system-header { margin-bottom: 0.5rem; }
  .portal-title { font-size: 2.2rem; margin-bottom: 0.3rem; }
  .portal-subtitle { margin-bottom: 0.6rem; font-size: 0.85rem; }
  .portal-terminal { margin-bottom: 0.6rem; font-size: 0.8rem; }
  .portal-tilt-stage { margin-bottom: 0.6rem; max-width: 240px; }
  .portal-nodes { margin-top: 0.5rem; }
  .portal-progress { margin-top: 0.5rem; }
  .portal-actions { margin-top: 0.5rem; gap: 0.5rem; }
  .portal-skip { margin-top: 0.8rem; }
}

@media (max-width: 640px) {
  #portal-core-ui { width: 86%; padding: 1.25rem 1.25rem; }
  .portal-tilt-stage { max-width: 290px; padding: 0.85rem; }
  .portal-actions { flex-direction: column; }
  .portal-title { font-size: 2rem; }
}


/* ============================================================================
   AUDIENCE INTERACTIVITY SUITE
   Interactive 3D Monolith logo module (ported from gemini-build/v2 theme),
   live sector pulse, scroll progress, telemetry cards, process console.
   ============================================================================ */

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 9998;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.scroll-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #00f3ff 0%, var(--accent) 45%, var(--accent-3) 100%);
  box-shadow: 0 0 12px rgba(0,243,255,0.5);
  transition: width 0.08s linear;
}

/* ---------- HERO: TWO COLUMN SHELL ---------- */
.hero {
  /* `margin:auto` on .hero-grid (instead of justify-content:center) keeps the
     hero anchored to the top when its content is taller than the viewport. */
  justify-content: flex-start;
  padding: 116px 40px 96px;
}
.hero-grid {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { text-align: center; }

@media (min-width: 1100px) {
  .hero { padding: 124px 40px 104px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 72px;
  }
  .hero-copy { text-align: left; }
  /* Sized so each headline line stays on a single row in the narrower column */
  .hero-title { font-size: clamp(42px, 4.2vw, 62px); }
  .hero-sub { max-width: 560px; margin-left: 0; }
  .hero-actions { justify-content: flex-start; margin-bottom: 56px; }
  .hero-stats { justify-content: flex-start; margin-bottom: 24px; }
}

/* ---------- LIVE SECTOR PULSE ---------- */
.hero-pulse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 auto 36px;
  padding: 9px 16px 9px 9px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
}
@media (min-width: 1100px) { .hero-pulse { margin: 0 0 36px; } }
.pulse-badge {
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0,224,198,0.14);
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.pulse-label { color: var(--text-dim); white-space: nowrap; }
.pulse-value {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.pulse-value.is-swapping { opacity: 0; transform: translateY(-6px); }

/* ============================================================================
   INTERACTIVE 3D MONOLITH MODULE
   ============================================================================ */
.hero-monolith {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    rgba(10, 10, 16, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 18px;
  box-shadow:
    0 40px 90px -40px rgba(0,0,0,0.9),
    0 0 0 1px rgba(0,243,255,0.04);
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.hero-monolith::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(0,243,255,0.35), transparent 38%, transparent 62%, rgba(188,19,254,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.hero-monolith:hover { border-color: rgba(0,243,255,0.28); }
.hero-monolith:hover::before { opacity: 1; }

.monolith-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.monolith-head-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55);
}
.monolith-led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00f3ff;
  box-shadow: 0 0 10px #00f3ff;
  animation: monoLed 2.4s ease-in-out infinite;
}
@keyframes monoLed {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #00f3ff; }
  50% { opacity: 0.35; box-shadow: 0 0 3px #00f3ff; }
}
.monolith-modes {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.55);
  font-family: var(--font-mono);
  font-size: 10px;
}
.mono-mode {
  border: 0;
  border-radius: 9px;
  padding: 6px 11px;
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.04em;
  cursor: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.mono-mode:hover { color: rgba(255,255,255,0.85); }
.mono-mode.is-active { background: #fff; color: #05050a; font-weight: 700; }

/* --- Stage --- */
.monolith-stage {
  position: relative;
  border-radius: 16px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 22px 18px;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
  isolation: isolate;
}
.monolith-floor {
  position: absolute;
  left: -20%; right: -20%; bottom: -40%;
  height: 70%;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(0,243,255,0.16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 26px);
  transform: perspective(600px) rotateX(72deg);
  transform-origin: bottom center;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.monolith-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f3ff, transparent);
  box-shadow: 0 0 18px rgba(0,243,255,0.55);
  opacity: 0.9;
  pointer-events: none;
  animation: monoScan 4.6s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
@keyframes monoScan {
  0% { top: 4%; opacity: 0.15; }
  50% { top: 92%; opacity: 0.85; }
  100% { top: 4%; opacity: 0.15; }
}
.monolith-tilt {
  position: relative;
  width: 100%;
  max-width: 330px;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.monolith-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 34px rgba(255,255,255,0.12));
  transition: filter 0.5s ease;
}
.mono-pillar {
  cursor: none;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease, opacity 0.4s ease;
  outline: none;
}
.mono-pillar .mono-front,
.mono-pillar .mono-bevel { transition: fill 0.45s ease; }
.mono-pillar:hover { filter: brightness(1.25) drop-shadow(0 0 16px rgba(0,243,255,0.5)); }
.mono-pillar:focus-visible { filter: brightness(1.3) drop-shadow(0 0 20px rgba(0,243,255,0.75)); }
.mono-pillar.is-lit { filter: brightness(1.18) drop-shadow(0 0 22px rgba(0,243,255,0.55)); }
.mono-pillar.is-lit .mono-front { fill: #ffffff; }
.mono-pillar.is-dim { opacity: 0.42; }

/* Flat "Original Mark" mode */
.monolith-stage.mode-flat .mono-pillar { transform: none !important; cursor: default; }
.monolith-stage.mode-flat .mono-front { fill: #dfe3ea !important; }
.monolith-stage.mode-flat .mono-bevel { fill: #6f7787 !important; }
.monolith-stage.mode-flat .monolith-scanline { opacity: 0; }
.monolith-stage.mode-flat .monolith-floor { opacity: 0.18; }
.monolith-stage.mode-flat .monolith-svg { filter: grayscale(0.35) drop-shadow(0 10px 22px rgba(0,0,0,0.6)); }
.monolith-stage.mode-flat .mono-word { fill: #e9ecf2; }
.monolith-stage.mode-flat .mono-subword { fill: #8b929f; }

/* Caption that tracks the cursor over a pillar */
.monolith-caption {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 100px;
  background: rgba(0,243,255,0.1);
  border: 1px solid rgba(0,243,255,0.3);
  color: #00f3ff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.monolith-caption.is-visible { opacity: 1; transform: translateY(0); }
.mono-caption-key { color: #fff; font-weight: 700; }

.monolith-hint {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.monolith-stage:hover .monolith-hint { opacity: 0.75; }

/* --- Step pills --- */
.monolith-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  transition: opacity 0.4s ease;
}
.mono-step {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.45);
  padding: 11px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mono-step:hover { color: rgba(255,255,255,0.9); border-color: rgba(0,243,255,0.3); }
.mono-step.is-active {
  background: #fff;
  color: #05050a;
  font-weight: 700;
  border-color: #fff;
}
.monolith-steps.is-disabled { opacity: 0.35; pointer-events: none; }

/* --- Readout --- */
.monolith-readout {
  margin-top: 12px;
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
}
.mono-readout-title {
  display: block;
  color: #00f3ff;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  font-size: 11px;
}
.mono-readout-desc { display: block; }

/* --- Keyboard hint strip --- */
.monolith-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.key-hint { display: inline-flex; align-items: center; gap: 5px; }
.monolith-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

/* ============================================================================
   SERVICE CARD TELEMETRY
   ============================================================================ */
.card-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.42);
}
.card-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  animation: monoLed 2s ease-in-out infinite;
  flex-shrink: 0;
}
.card-live-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.card-live-text.is-swapping { opacity: 0; }
.card-live-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  width: 32px; height: 32px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.35s ease;
  flex-shrink: 0;
}
.card-live-btn:hover { background: rgba(124,92,255,0.2); color: #fff; }
.card-live-btn:active { transform: rotate(180deg); }
.service-card.is-pinned .card-live-dot { background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); }

/* ============================================================================
   PROCESS CONSOLE + INTERACTIVE STEPS
   ============================================================================ */
.process-step {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  padding: 18px 12px;
  border-radius: 20px;
  cursor: none;
  transition: background 0.35s ease, transform 0.35s ease;
}
.process-step:hover { background: rgba(255,255,255,0.025); }
.process-step.is-active { background: rgba(124,92,255,0.06); }
.process-step .step-circle { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease; }
.process-step.is-active .step-circle {
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(124,92,255,0.4), 0 0 34px rgba(124,92,255,0.28);
}
.process-step.is-active .step-circle span { color: #fff; }

.process-console {
  margin-top: 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.5);
  overflow: hidden;
}
.console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45);
}
.console-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 9px var(--accent-2);
  animation: monoLed 2.2s ease-in-out infinite;
}
.console-title { flex: 1; }
.console-stage { color: var(--accent); }
.console-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  flex-wrap: wrap;
}
.console-lines {
  flex: 1;
  min-width: 240px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
}
.console-line {
  display: block;
  animation: consoleIn 0.4s ease both;
}
.console-line span { color: var(--accent-2); }
@keyframes consoleIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.console-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* ============================================================================
   WHY ITEM GLOW + BACK TO TOP
   ============================================================================ */
.why-item { position: relative; overflow: hidden; }
.why-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(0,224,198,0.12), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.why-item:hover .why-glow { opacity: 1; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(12,12,18,0.85);
  backdrop-filter: blur(12px);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
  z-index: 40;
}
.to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { border-color: rgba(124,92,255,0.5); background: rgba(124,92,255,0.18); }

/* ============ PAGES - COURSES & INTERNSHIPS ============ */
.page-hero { padding: 200px 48px 120px; position: relative; max-width: 1400px; margin: 0 auto; }
.page-hero .hero-title { font-size: clamp(46px, 10vw, 140px); font-family: var(--font-display); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; }
@media (max-width: 1080px) { .page-hero { padding: 160px 28px 90px; } }
@media (max-width: 680px) { .page-hero { padding: 140px 18px 80px; } }
.page-subtitle { max-width: 760px; margin-top: 24px; font-size: clamp(16px, 2vw, 20px); color: var(--text-dim); line-height: 1.8; }
.page-grid { display: grid; gap: 24px; }
.course-switcher { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0; }
.course-tab { border: 1px solid var(--border); background: rgba(255,255,255,0.01); color: var(--text-dim); padding: 10px 18px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; }
.course-tab.active { color: var(--text); border-color: rgba(124,92,255,0.6); box-shadow: 0 0 0 1px rgba(124,92,255,0.25); }
.course-section { display: block; }
.course-section.active { display: block; }
.course-card { position: relative; border-radius: 28px; border: 1px solid var(--border); background: radial-gradient(circle at top, rgba(124,92,255,0.12), transparent 55%), var(--surface); overflow: hidden; margin-bottom: 32px; }
.course-card-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; padding: clamp(28px,6vw,64px); }
.course-card-title { font-family: var(--font-display); font-size: clamp(28px,6vw,56px); line-height: 1.08; }
.course-card-subtitle { margin-top: 12px; color: var(--text-dim); max-width: 820px; line-height: 1.9; }
.course-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.course-tag { border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-mono); }
.course-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.course-pill { border: 1px solid var(--border); padding: 10px 16px; border-radius: 999px; font-size: 13px; }
.course-blocks { display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; padding: 0 clamp(28px,6vw,64px) clamp(28px,6vw,64px); }
.course-block { grid-column: span 12; border-radius: 22px; border: 1px solid var(--border); background: rgba(255,255,255,0.01); overflow: hidden; }
@media (min-width: 980px) {
  .course-block.info { grid-column: span 7; }
  .course-block.reg { grid-column: span 5; }
  .course-block.gains { grid-column: span 12; }
}
.course-block-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 0; }
.course-block-title { font-family: var(--font-display); font-size: 22px; }
.course-block-body { display: grid; gap: 16px; padding: 18px 28px 28px; }
.course-list { display: grid; gap: 14px; color: var(--text-dim); line-height: 1.8; }
.course-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.course-badge { border: 1px solid rgba(255,92,138,0.5); color: var(--text); padding: 8px 14px; border-radius: 999px; font-size: 13px; }
.course-badge.mono { border-color: var(--border); color: var(--text-dim); }
.course-grid-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.module-card { border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; background: rgba(255,255,255,0.01); }
.module-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.2em; }
.module-title { font-weight: 600; }
.module-list { color: var(--text-dim); display: grid; gap: 6px; font-size: 14px; }
.highlight-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 14px; }
.highlight-item { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; display: grid; gap: 6px; }
.highlight-title { font-weight: 600; }
.highlight-text { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.batch-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 1px solid rgba(0,224,198,0.4); border-radius: 999px; padding: 10px 18px; margin-bottom: 16px; }
.batch-text { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.seat-badge { border: 1px solid rgba(255,92,138,0.6); padding: 6px 12px; border-radius: 999px; font-size: 12px; }

.intern-hero { padding: 200px 48px 100px; position: relative; max-width: 1400px; margin: 0 auto; }
.intern-hero .hero-title { font-size: clamp(46px, 10vw, 140px); font-family: var(--font-display); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; }
@media (max-width: 1080px) { .intern-hero { padding: 160px 28px 80px; } }
@media (max-width: 680px) { .intern-hero { padding: 140px 18px 70px; } }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill { border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; display: flex; gap: 10px; align-items: center; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; }
.role-card { border: 1px solid var(--border); border-radius: 22px; padding: 24px; display: grid; gap: 12px; background: rgba(255,255,255,0.01); position: relative; overflow: hidden; }
.role-card:hover { border-color: rgba(124,92,255,0.4); transform: translateY(-4px); transition: transform 0.3s, border-color 0.3s; }
.role-title { font-family: var(--font-display); font-size: 24px; }
.role-skills { color: var(--text-dim); line-height: 1.8; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 16px; }
.form-field { display: grid; gap: 10px; }
.form-label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-mono); color: var(--text-dim); }
.form-input { border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); padding: 12px 18px; font-family: var(--font-body); }
.form-textarea { border-radius: 18px; border: 1px solid var(--border); background: transparent; color: var(--text); padding: 14px 18px; min-height: 140px; font-family: var(--font-body); }
.form-wrap { border: 1px solid var(--border); border-radius: 28px; padding: clamp(24px,6vw,56px); background: rgba(255,255,255,0.01); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-title .word { transform: none !important; opacity: 1 !important; }
  .system-dot, .terminal-cursor, .portal-access-granted { animation: none !important; }
  #particles, .blob, .monolith-scanline { display: none !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .hero-monolith { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-pulse { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 768px) {
  .hero { padding: 100px 20px 70px; }
  .hero-pulse { margin-bottom: 28px; }
  .hero-actions { margin-bottom: 44px; }
  .hero-stats { margin-bottom: 24px; }
  .hero-monolith { padding: 14px; border-radius: 20px; }
  .monolith-stage { min-height: 230px; padding: 16px 12px; }
  .monolith-tilt { max-width: 260px; }
  .mono-step { font-size: 9px; padding: 10px 4px; letter-spacing: 0.04em; white-space: normal; line-height: 1.15; }
  .monolith-readout { font-size: 11px; min-height: 84px; padding: 12px 13px; }
  .process-step { padding: 12px 6px; }
  .console-body { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 480px) {
  .monolith-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .monolith-modes { width: 100%; }
  .mono-mode { flex: 1; text-align: center; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* Blog styles */
.blog-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.blog-content p {
  color: var(--text-dim);
  line-height: 1.9;
  font-size: 16px;
}
.blog-content h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-top: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.blog-content h4 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 24px;
  font-weight: 600;
}
.blog-content ul {
  color: var(--text-dim);
  line-height: 2;
  display: grid;
  gap: 8px;
  margin-left: 24px;
}
.blog-content strong {
  color: var(--text);
  font-weight: 600;
}
.blog-content em {
  font-style: italic;
}

/* Responsive optimizations for all screen sizes */
@media (max-width: 1280px) {
  .nav-inner {
    gap: 16px;
  }
  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
  }
  .nav-link {
    font-size: 13px;
  }
  .hero-title {
    font-size: clamp(48px, 8vw, 80px);
  }
  .section-title {
    font-size: clamp(32px, 6vw, 56px);
  }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-right {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .nav-inner {
    padding: 10px 16px;
  }
  .section {
    padding: 60px 0;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .page-hero {
    padding: 120px 0 40px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .course-card, .role-card {
    padding: 24px;
  }
  .blog-content {
    padding: 0 16px;
  }
  .blog-content h3 {
    font-size: 24px;
  }
  .blog-content h4 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(36px, 10vw, 48px);
  }
  .section-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  .logo-text {
    font-size: 14px;
  }
  .nav-link.cta-mini {
    padding: 8px 14px;
  }
  .course-card, .role-card {
    padding: 20px;
  }
  .footer {
    padding: 32px 16px;
  }
}

@media (min-width: 1920px) {
  .container, .nav-inner, .section-head, .hero-grid, .footer-inner {
    max-width: 1400px;
  }
  .hero-title {
    font-size: clamp(80px, 6vw, 120px);
  }
  .section-title {
    font-size: clamp(56px, 4vw, 80px);
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  img, video, canvas {
    max-width: 100%;
    height: auto;
  }
  .container, .nav-inner, .section {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Touch device optimizations */
@media (pointer: coarse) {
  *, *::before, *::after { cursor: auto !important; }
  .cursor, .cursor-dot, .cursor-aura { display: none !important; }
  a, button { cursor: pointer !important; }
  .service-card, .why-item, .process-step {
    -webkit-tap-highlight-color: rgba(124, 92, 255, 0.2);
  }
}

/* Prevent horizontal scroll */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
