:root {
  --bg: #01030a;
  --panel: rgba(6, 12, 28, 0.62);
  --stroke: rgba(125, 211, 252, 0.28);
  --cyan: #38bdf8;
  --ink: #f1f7ff;
  --muted: #9fb3c8;
  --gold: #fbbf24;
}

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

html, body {
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(900px 500px at 10% 80%, rgba(124, 58, 237, 0.14), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body.has-cursor, body.has-cursor * { cursor: none !important; }

.fx-aurora, .fx-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}
.fx-aurora {
  background:
    radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.12), transparent 32%),
    radial-gradient(circle at 20% 60%, rgba(99, 102, 241, 0.12), transparent 36%);
  animation: aurora 14s ease-in-out infinite alternate;
}
.fx-grain {
  z-index: 80;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
@keyframes aurora {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-2%, 1%, 0) scale(1.06); }
}

.page { display: none; position: relative; z-index: 2; }
.page.active { display: block; animation: pageIn 0.55s ease; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.boot-screen.is-gone { opacity: 0; visibility: hidden; }
.boot-inner { text-align: center; }
.boot-inner img { height: 52px; margin-bottom: 1.1rem; }
.boot-bar {
  width: 180px; height: 3px; margin: 0 auto;
  border-radius: 99px; overflow: hidden;
  background: #111827;
}
.boot-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #22d3ee, #818cf8);
  animation: load 0.85s ease forwards;
}
@keyframes load { to { width: 100%; } }

#cursor, #cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 190;
  pointer-events: none; border-radius: 50%;
  transform: translate(-100px, -100px);
}
#cursor {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: #7dd3fc;
  box-shadow: 0 0 16px #38bdf8;
}
#cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(125, 211, 252, 0.7);
  transition: width 0.2s, height 0.2s, margin 0.2s, border-color 0.2s;
}
#cursor-ring.is-hot {
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-color: #fbbf24;
}

.promo-bar {
  position: relative;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 1.6rem;
  background: linear-gradient(90deg, rgba(2,6,23,0.95), rgba(11,27,58,0.9), rgba(2,6,23,0.95));
  border-bottom: 1px solid var(--stroke);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.promo-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.promo-btn {
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: rgba(255,255,255,0.06);
  font-weight: 600;
}
.promo-btn.featured { background: #fff; color: #020617; }

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.6rem;
  backdrop-filter: blur(22px);
  background: rgba(1, 3, 10, 0.72);
  border-bottom: 1px solid var(--stroke);
}
.nav-logo-img { height: 42px; width: auto; display: block; cursor: pointer; }
.nav-menu { display: flex; gap: 1.4rem; align-items: center; }
.nav-menu a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-menu a:hover { color: var(--cyan); }
.schedule-btn {
  border: 0;
  cursor: pointer;
  color: #021018;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #7dd3fc, #3b82f6);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45);
}
#nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--stroke);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.hero-3d {
  position: relative;
  min-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) 1.18fr;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem 2.2rem;
  z-index: 2;
}

.hero-copy {
  align-self: center;
  padding: 1.6rem 1.5rem;
  max-width: 640px;
  background: linear-gradient(180deg, rgba(2,6,23,0.72), rgba(2,6,23,0.38));
  border: 1px solid var(--stroke);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  transform: perspective(1200px) rotateY(6deg);
}

.hero-stage {
  position: relative;
  min-height: 640px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background:
    radial-gradient(circle at 50% 45%, rgba(14, 165, 233, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(2,6,23,0.2), rgba(2,6,23,0.55));
  box-shadow: inset 0 0 80px rgba(56, 189, 248, 0.08), 0 25px 70px rgba(0,0,0,0.4);
}

#agent-canvas, #agent-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#agent-labels { z-index: 2; pointer-events: none; }

.agent-label {
  position: absolute;
  left: 0; top: 0;
  padding: 0.38rem 0.6rem;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.68rem;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
.agent-label strong { display: block; color: #e0f2fe; }
.agent-label span { color: #7dd3fc; font-size: 0.62rem; }
.agent-label.is-active {
  border-color: #fbbf24;
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.35);
}

.badge {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.7);
  color: #7dd3fc;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.grad {
  background: linear-gradient(90deg, #7dd3fc, #60a5fa 40%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p { color: #cbd5e1; font-size: 1.02rem; line-height: 1.7; margin-bottom: 0.85rem; }
.hero-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.2rem 0 0.8rem; }

.btn-white, .btn-outline, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-white { background: #fff; color: #020617; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,0.2); }
.btn-outline { color: #e2e8f0; border-color: var(--stroke); background: rgba(15,23,42,0.5); }
.btn-ghost { background: transparent; color: #7dd3fc; }

.hero-hud {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  padding: 1rem 1.15rem;
  transform: perspective(900px) rotateX(8deg);
}
.hud-kicker { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #67e8f9; }
.hud-card h2 { font-family: "Space Grotesk", sans-serif; font-size: 1.45rem; margin: 0.2rem 0; }
.hud-card p { color: var(--muted); font-size: 0.88rem; }
.hud-pulse { margin-top: 0.55rem; display: flex; align-items: center; gap: 0.5rem; color: #86efac; font-size: 0.78rem; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.glass {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}

.section { position: relative; z-index: 2; padding: 4.4rem 1.8rem; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 2.4rem; }
.label { color: var(--cyan); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; }
.section-header h2, .stats-wrap h2, .cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin: 0.45rem 0;
}
.section-header p, .stats-wrap p { color: var(--muted); }

.stats-grid, .card-grid, .edu-grid, .cert-grid { display: grid; gap: 1rem; }
.stats-grid { grid-template-columns: repeat(4, 1fr); max-width: 1140px; margin: 0 auto; }
.card-grid, .edu-grid, .cert-grid { grid-template-columns: repeat(3, 1fr); max-width: 1140px; margin: 0 auto; }

.scene-3d { perspective: 1400px; }
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}
.tilt:hover { box-shadow: 0 28px 60px rgba(56, 189, 248, 0.16); }

.stat-card, .sol-card, .cert-card, .edu-card, .timeline-item { padding: 1.25rem; }
.stat-value { font-family: "Space Grotesk", sans-serif; font-size: 2.5rem; color: #7dd3fc; text-shadow: 0 0 24px rgba(56,189,248,0.35); }
.stat-label { font-size: 0.78rem; color: #93c5fd; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-card p, .sol-card p { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
.sol-card h3 { margin: 0.5rem 0; font-size: 1.15rem; }
.icon3d {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #1d4ed8, #22d3ee);
  box-shadow: 10px 10px 0 rgba(2,6,23,0.55);
  transform: translateZ(24px);
}
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: #bae6fd;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--stroke);
  background: rgba(15,23,42,0.45);
  padding: 0.95rem 0;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex; gap: 1.4rem; width: max-content;
  animation: marquee 32s linear infinite;
  color: #e2e8f0; font-weight: 600;
}
.ticker-track.reverse { animation-direction: reverse; animation-duration: 40s; }
@keyframes marquee { to { transform: translateX(-50%); } }

.approach {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  max-width: 1140px;
  margin: 0 auto;
}
.approach ol { margin-top: 1rem; padding-left: 1.1rem; color: #cbd5e1; }
.approach li { margin: 0.7rem 0; }
.mesh-panel { padding: 1.5rem; transform: perspective(900px) rotateY(10deg); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.2rem; }
.mini-stats div { background: rgba(2,6,23,0.45); border-radius: 14px; padding: 0.8rem; }
.mini-stats strong { display: block; font-size: 1.4rem; color: #7dd3fc; }

.cta {
  margin: 0 1.8rem 3rem;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
  transform: perspective(1200px) rotateX(5deg);
}
.cta p { color: #cbd5e1; max-width: 640px; margin: 0.6rem auto 1.3rem; }
.cta-buttons { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }

.page-hero { padding: 3.5rem 1.8rem 1rem; text-align: center; }
.page-hero h1 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero p { color: var(--muted); max-width: 760px; margin: 0.8rem auto 0; }

.about-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.8rem 1rem;
  align-items: center;
}
.photo-frame {
  position: relative;
  isolation: isolate;
  width: 260px; height: 260px; border-radius: 50%; padding: 7px;
  background: #06101f;
  box-shadow: 0 30px 70px rgba(56, 189, 248, 0.28);
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #fbbf24, #38bdf8, #6366f1, #fbbf24);
  animation: spin 9s linear infinite;
  z-index: -1;
}
@keyframes spin { to { transform: rotate(1turn); } }
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  background: #fff;
}
.role-title { color: #7dd3fc; font-weight: 700; font-size: 1.08rem; margin: 0.4rem 0 0.55rem; }
.tagline-strip { color: #fbbf24; font-size: 0.92rem; margin-bottom: 0.8rem; }
.summary { color: #cbd5e1; line-height: 1.75; }

.timeline { max-width: 900px; margin: 0 auto; }
.timeline-item { margin-bottom: 1rem; }
.timeline-role { font-weight: 700; }
.timeline-company { color: var(--cyan); font-size: 0.9rem; margin: 0.2rem 0 0.5rem; }
.timeline-item ul { padding-left: 1.1rem; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 1100px; margin: 0 auto; justify-content: center; }
.pill {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: #dbeafe;
  background: rgba(15,23,42,0.6);
  font-size: 0.85rem;
}

.reveal { opacity: 0; transform: translateY(28px); transition: 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--stroke);
  padding: 2.4rem 1.8rem 1.2rem;
  background: rgba(1,4,9,0.92);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 1.4rem;
  max-width: 1140px;
  margin: 0 auto 1.4rem;
}
.footer-logo-img { height: 52px; margin-bottom: 0.8rem; }
footer h4 { margin-bottom: 0.7rem; }
footer a { display: block; color: #94a3b8; text-decoration: none; margin: 0.28rem 0; font-size: 0.92rem; }
footer a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-between; color: #64748b; font-size: 0.82rem;
  border-top: 1px solid rgba(148,163,184,0.15); padding-top: 0.9rem;
}

.floating-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: #22c55e; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(34,197,94,0.4);
}
.floating-whatsapp svg { width: 28px; fill: #fff; }

@media (max-width: 980px) {
  .hero-3d, .approach, .about-hero, .stats-grid, .card-grid, .edu-grid, .cert-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy { transform: none; }
  .hero-stage { min-height: 460px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(2,6,23,0.96);
    border: 1px solid var(--stroke);
    border-radius: 16px;
  }
  .nav-menu.is-open { display: flex; }
  #nav-toggle { display: inline-flex; }
  .photo-frame { margin: 0 auto; }
  .agent-label { display: none; }
  body.has-cursor, body.has-cursor * { cursor: auto !important; }
  #cursor, #cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
