/* ==========================================================================
   NESTONE - RADIANT LIGHT & RICH MOTION DESIGN SYSTEM
   High energy, radiant color glows, glassmorphism, and deep contrast
   ========================================================================== */

:root {
  /* Radiant Colors & Light */
  --navy-obsidian: #050b14;
  --navy-deep: #0a1424;
  --navy-surface: #0f1e36;
  --navy-card: rgba(15, 30, 54, 0.85);
  
  --cobalt-primary: #1456fd;
  --cobalt-neon: #2563eb;
  --cyan-glow: #06b6d4;
  --cyan-bright: #38bdf8;
  --emerald-neon: #10b981;
  --amber-warm: #f59e0b;

  --glow-cobalt: 0 0 35px rgba(20, 86, 253, 0.45);
  --glow-cyan: 0 0 35px rgba(6, 182, 212, 0.45);
  --glow-emerald: 0 0 30px rgba(16, 185, 129, 0.4);

  --bg-pure: #ffffff;
  --bg-warm: #f8fafc;
  --bg-slate: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-headline: #050b14;
  --text-body: #1e293b;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --text-light-muted: #cbd5e1;

  --border-light: rgba(226, 232, 240, 0.8);
  --border-medium: #cbd5e1;
  --border-neon: rgba(37, 99, 235, 0.35);

  --shadow-card: 0 15px 35px -5px rgba(10, 20, 36, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 25px 50px -10px rgba(20, 86, 253, 0.22), 0 0 25px rgba(6, 182, 212, 0.15);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1260px;
  --header-height: 76px;
}

/* Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-warm);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* Ambient Luminous Orbs in Background */
.ambient-glow-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.glow-orb-1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 86, 253, 0.22) 0%, transparent 70%);
}

.glow-orb-2 {
  top: 40%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.glow-orb-3 {
  bottom: -10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -10s;
}

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

@media (max-width: 768px) {
  .glow-orb {
    filter: blur(60px);
    opacity: 0.3;
  }
}

/* Interactive Ambient Canvas */
#ambientBgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 3;
}

@media (max-width: 576px) {
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

.section-padding {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }
}

/* Radiant Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-headline);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cobalt-primary);
  background: rgba(20, 86, 253, 0.08);
  border: 1px solid rgba(20, 86, 253, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(20, 86, 253, 0.1);
  backdrop-filter: blur(8px);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2.25rem;
  }
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #050b14 0%, #1e293b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.18;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
  .section-subtitle {
    font-size: 0.98rem;
  }
}

/* Radiant Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(10, 20, 36, 0.08);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.25s ease;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-body);
  transition: all 0.2s ease;
  position: relative;
  padding: 0.35rem 0;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--cobalt-primary), var(--cyan-bright));
  transition: width 0.25s ease;
  border-radius: 3px;
}

.nav-link:hover {
  color: var(--cobalt-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--navy-obsidian);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  line-height: 1;
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 2px solid var(--border-light);
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 100;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 0.6rem 0;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-actions .btn-sm {
    display: none; /* Hide top CTA on small mobile to avoid header squishing */
  }
}

/* Luminous Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.85rem 1.85rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-obsidian) 0%, var(--navy-surface) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(5, 11, 20, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5, 11, 20, 0.35);
}

.btn-cobalt {
  background: linear-gradient(135deg, var(--cobalt-primary) 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 22px rgba(20, 86, 253, 0.35);
}

.btn-cobalt:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 86, 253, 0.45);
}

.btn-outline {
  background: #ffffff;
  color: var(--navy-obsidian);
  border: 1.5px solid var(--border-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  background: #ffffff;
  border-color: var(--cobalt-primary);
  color: var(--cobalt-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 86, 253, 0.15);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

@media (max-width: 576px) {
  .btn-lg {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.98rem;
  }
}

/* Scroll Reveal Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
