/* =============================================
   AUTHENTIC_AI — Global Design System
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --bg-primary: #080C18;
  --bg-surface: #0F1628;
  --bg-surface-2: #161E35;
  --accent-cyan: #00D4FF;
  --accent-cyan-dim: rgba(0, 212, 255, 0.08);
  --accent-cyan-glow: rgba(0, 212, 255, 0.25);
  --accent-purple: #7C5CBF;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #4A5568;
  --border: #1E2D4A;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --glow: 0 0 30px rgba(0, 212, 255, 0.25);
  --glow-strong: 0 0 50px rgba(0, 212, 255, 0.45);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --section-padding: 100px 0;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem);     font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem);   font-weight: 600; }
h4 { font-size: 1.05rem;                       font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.8; }

.cyan { color: var(--accent-cyan); }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-padding); }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header .section-subtitle {
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 1.1rem;
}

.divider {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
  margin: 18px 0 28px;
}

.divider.center { margin: 18px auto 28px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #060A14;
  border-color: var(--accent-cyan);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-cyan);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.btn-outline:hover {
  background: var(--accent-cyan-dim);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: #060A14;
  border-color: #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-1px);
}

.btn-pulse {
  animation: pulse-glow 2.8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(0,212,255,0.25); }
  50%       { box-shadow: 0 0 36px rgba(0,212,255,0.55), 0 0 70px rgba(0,212,255,0.15); }
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(8, 12, 24, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav__logo span { color: var(--accent-cyan); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav__links a:hover { color: var(--text-primary); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--accent-cyan); }
.nav__links a.active::after { width: 100%; }

.nav__cta { padding: 10px 22px; font-size: 0.88rem; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: rgba(8, 12, 24, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 0;
  z-index: 999;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav__mobile a:last-of-type { border-bottom: none; }
.nav__mobile a:hover { color: var(--accent-cyan); padding-left: 8px; }

.nav__mobile .btn { margin-top: 16px; justify-content: center; }

/* =============================================
   CTA BANNER (Shared Component)
   ============================================= */
.cta-banner {
  padding: 90px 0;
  background: linear-gradient(135deg, #0d1a2e 0%, #09121f 50%, #050d18 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.5;
}

.cta-banner h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-banner p {
  max-width: 480px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.cta-banner .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer__logo span { color: var(--accent-cyan); }

.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer__tagline {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  opacity: 0.7;
}

.footer__col h4 {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer__col a:hover {
  color: var(--accent-cyan);
  padding-left: 6px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer__socials a svg {
  width: 16px;
  height: 16px;
}

.footer__socials a:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in {
  opacity: 0;
  transition: opacity 0.65s ease;
}

.fade-up.visible,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }

/* =============================================
   CARDS (shared)
   ============================================= */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--glow), 0 20px 60px rgba(0,0,0,0.3);
}

.card:hover::before { opacity: 1; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root { --section-padding: 72px 0; }

  .nav__links { display: none; }
  .nav__cta.desktop-only { display: none; }
  .nav__hamburger { display: flex; }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root { --section-padding: 56px 0; }

  .footer__top { grid-template-columns: 1fr; }

  .btn { padding: 13px 22px; font-size: 0.9rem; }
}
