/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f1a;
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.12);
  --cyan-glow: rgba(0, 212, 255, 0.4);
  --purple: #7c3aed;
  --purple-dim: rgba(124, 58, 237, 0.15);
  --purple-glow: rgba(124, 58, 237, 0.4);
  --white: #ffffff;
  --gray-400: #9090a8;
  --gray-600: #44445a;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 72px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; }
p { color: var(--gray-400); }

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-dark { background: var(--bg-2); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-sub {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 24px var(--cyan-glow);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 44px var(--cyan-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}
.btn-large { padding: 17px 40px; font-size: 1.05rem; border-radius: 10px; }

/* ============================================================
   Navigation
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--glass-border);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px var(--cyan-glow);
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan) !important;
  padding: 8px 18px;
  border-radius: 6px;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: var(--cyan) !important;
  color: #000 !important;
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(18px);
  z-index: 99;
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--glass-border);
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-400);
  border-radius: 8px;
  transition: all 0.2s;
}
.mobile-menu a:hover { color: var(--cyan); background: var(--cyan-dim); }

/* ============================================================
   Hero
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 24px;
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Animated orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orb-float 9s ease-in-out infinite;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.16) 0%, transparent 70%);
  top: -120px; right: -120px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: -4.5s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(24px, -32px) scale(1.04); }
  66%       { transform: translate(-18px, 22px) scale(0.96); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.2s;
}
.hero-title {
  margin-bottom: 28px;
  min-height: 2.6em;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.5s;
  line-height: 1.2;
}
.cursor {
  display: inline-block;
  color: var(--cyan);
  animation: blink 0.85s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.75;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.8s;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 1.1s;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 1.6s;
}
.hero-scroll-hint span {
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%       { opacity: 1;    transform: scaleY(1.15); }
}

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 36px var(--cyan-dim), 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }
.card-icon {
  font-size: 1.3rem;
  color: var(--cyan);
  margin-bottom: 20px;
  display: block;
  position: relative;
  z-index: 1;
}
.service-card h3 {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  color: var(--white);
}
.service-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Why Section / Pillars
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.pillar-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 36px var(--cyan-glow);
  margin-bottom: 16px;
  line-height: 1;
}
.pillar h4 {
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pillar p { font-size: 0.92rem; }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .section-eyebrow { text-align: left; }
.about-text h2 { margin-bottom: 24px; color: var(--white); }
.about-text p { margin-bottom: 20px; font-size: 1rem; line-height: 1.75; }
.about-text .btn { margin-top: 8px; }

/* Decorative visual */
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
}
.visual-orb {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 0%, var(--purple) 100%);
  opacity: 0.9;
  filter: blur(2px);
  box-shadow: 0 0 70px var(--cyan-glow), 0 0 130px var(--purple-glow);
}
.visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ring-spin linear infinite;
}
.ring-1 { width: 220px; height: 220px; border-color: rgba(0, 212, 255, 0.3); animation-duration: 12s; }
.ring-2 { width: 300px; height: 300px; border-color: rgba(124, 58, 237, 0.2); animation-duration: 20s; animation-direction: reverse; }
.ring-3 { width: 380px; height: 380px; border-color: rgba(0, 212, 255, 0.07); animation-duration: 32s; }
@keyframes ring-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.visual-label {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan-glow);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.contact-inner h2 { margin-bottom: 20px; }
.contact-inner .section-sub { margin-bottom: 40px; }
.contact-tagline {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--glass-border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}
.footer-copy { font-size: 0.78rem; color: var(--gray-600); }
.footer-email {
  font-size: 0.82rem;
  color: var(--gray-400);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--cyan); }

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays */
.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.5s; }
.pillars-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.pillars-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { height: 280px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .ring-2, .ring-3 { display: none; }
}
