@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --purple: #5B4FCF;
  --purple-light: #7B6FEF;
  --purple-soft: #9D93F0;
  --blue: #2B5C8A;
  --blue-light: #4A8FD4;
  --navy: #0f0f1a;
  --navy-mid: #161625;
  --navy-card: #1c1c30;
  --navy-border: rgba(255,255,255,0.05);
  --text-bright: #f0f0f5;
  --text-primary: #c8c8d8;
  --text-muted: rgba(255,255,255,0.35);
  --accent-glow: rgba(91,79,207,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--navy);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ============================= */
/* NAV                           */
/* ============================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,15,26,0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--navy-border);
  transition: background 0.4s;
}
.nav.scrolled { background: rgba(15,15,26,0.92); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-wordmark {
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 21px; color: var(--text-bright); letter-spacing: 0.5px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  padding: 8px 16px; border-radius: 8px;
  transition: all 0.25s; letter-spacing: 0.2px;
}
.nav-link:hover, .nav-link.active { color: var(--text-bright); background: rgba(255,255,255,0.04); }
.nav-cta-btn {
  display: inline-flex; align-items: center;
  margin-left: 12px; padding: 9px 22px;
  background: var(--purple); color: white;
  font-size: 13px; font-weight: 600; border-radius: 8px;
  transition: all 0.3s; letter-spacing: 0.2px;
}
.nav-cta-btn:hover { background: var(--purple-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(91,79,207,0.35); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text-bright); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(15,15,26,0.97); backdrop-filter: blur(20px);
    flex-direction: column; padding: 16px 24px 24px; gap: 2px;
    border-bottom: 1px solid var(--navy-border);
    transform: translateY(-120%); opacity: 0; transition: all 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-link { width: 100%; padding: 14px 16px; font-size: 15px; display: block; }
  .nav-cta-btn { width: 100%; text-align: center; margin: 8px 0 0; padding: 14px; justify-content: center; }
}

/* ============================= */
/* ANIMATED LOGO                 */
/* ============================= */
.nav-logo svg .e-letter { animation: none; }
.nav-logo svg .bar-1 { animation: barPulse 2.8s ease-in-out infinite 0s; }
.nav-logo svg .bar-2 { animation: barPulse 2.8s ease-in-out infinite 0.3s; }
.nav-logo svg .bar-3 { animation: barPulse 2.8s ease-in-out infinite 0.6s; }

@keyframes barPulse {
  0%, 100% { opacity: var(--base-opacity); transform: scaleY(1); }
  50% { opacity: calc(var(--base-opacity) + 0.25); transform: scaleY(1.08); }
}

.nav-logo:hover svg .bar-1 { animation: barWave 0.6s ease-out 0s 1; }
.nav-logo:hover svg .bar-2 { animation: barWave 0.6s ease-out 0.1s 1; }
.nav-logo:hover svg .bar-3 { animation: barWave 0.6s ease-out 0.2s 1; }

@keyframes barWave {
  0% { transform: scaleY(1); }
  40% { transform: scaleY(1.25); }
  100% { transform: scaleY(1); }
}

/* Footer logo - subtle glow on hover */
.footer .nav-logo:hover svg { filter: drop-shadow(0 0 8px rgba(123,111,239,0.4)); transition: filter 0.3s; }

/* ============================= */
/* BUTTONS                       */
/* ============================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 14px 30px; border-radius: 10px;
  cursor: pointer; transition: all 0.3s; border: none;
  letter-spacing: 0.2px; text-decoration: none;
}
.btn-primary { background: var(--purple); color: white; }
.btn-primary:hover { background: var(--purple-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(91,79,207,0.3); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text-bright); border: 1px solid rgba(255,255,255,0.1); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.btn-white { background: white; color: var(--purple); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.12); }
.btn-arrow::after { content: '→'; margin-left: 4px; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============================= */
/* PAGE HERO                     */
/* ============================= */
.page-hero {
  position: relative; padding: 160px 0 80px; overflow: hidden;
}
.page-hero .page-hero-bg {
  position: absolute; inset: 0;
}
.page-hero .page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.2);
}
.page-hero .page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, transparent 100%);
}
.page-hero-content {
  position: relative; z-index: 2; max-width: 600px;
}
.page-hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(34px, 5vw, 52px); font-weight: 700;
  color: white; line-height: 1.08; margin-bottom: 16px;
}
.page-hero-content p { font-size: 17px; color: rgba(255,255,255,0.55); line-height: 1.7; }

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--purple-soft);
  margin-bottom: 24px;
}
.hero-label::before {
  content: ''; width: 28px; height: 1px;
  background: var(--purple-soft);
}

/* ============================= */
/* SECTION HEADERS               */
/* ============================= */
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; flex-wrap: wrap; gap: 16px;
}
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--purple-soft); margin-bottom: 10px;
}
.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 36px; font-weight: 700; color: var(--text-bright);
  line-height: 1.15;
}

/* ============================= */
/* CTA SECTION                   */
/* ============================= */
.cta-section {
  position: relative; padding: 100px 0; overflow: hidden;
}
.cta-section .cta-bg {
  position: absolute; inset: 0;
}
.cta-section .cta-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.2) contrast(1.1);
}
.cta-section .cta-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(91,79,207,0.25) 0%, rgba(15,15,26,0.8) 100%);
}
.cta-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 560px; margin: 0 auto;
}
.cta-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; color: white; line-height: 1.15; margin-bottom: 16px;
}
.cta-content p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 32px; line-height: 1.7; }

/* ============================= */
/* FOOTER                        */
/* ============================= */
.footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--navy-border);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--navy-border);
}
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-top: 14px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-muted);
  padding: 5px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-bright); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { font-size: 12px; color: rgba(255,255,255,0.15); }
.footer-tagline {
  font-size: 11px; color: rgba(255,255,255,0.15);
  letter-spacing: 3px; text-transform: uppercase;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

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

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

/* subtle grain */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
  opacity: 0.5;
}
