/* ==========================================================
   CSS VARIABLES
   ========================================================== */
:root {
    /* Background colors */
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-dark: #0a1628;

    /* Text colors */
    --text-primary: #0d1b2e;
    --text-secondary: #3a4f6a;
    --text-muted: #7b8fa6;

    /* Accent colors — Navy / Cyan / Neon */
    --accent-1: #00d4ff;
    --accent-2: #0057ff;
    --accent-3: #00ffa3;

    /* Gradient */
    --gradient-neon: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 212, 255, 0.18);

    /* Radius */
    --radius-md: 14px;
    --radius-sm: 8px;
    --radius-lg: 22px;
    --radius-full: 100px;

    /* Typography */
    --font-display: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    /* Layout */
    --max-w: 1200px;
    --header-h: 72px;
    --warning-h: 48px;

    /* Transition */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-card: 0 4px 32px rgba(0, 87, 255, 0.06);
    --shadow-elevated: 0 12px 48px rgba(0, 87, 255, 0.1);
    --shadow-neon: 0 0 30px rgba(0, 212, 255, 0.15);
}

/* ==========================================================
   RESET & BASE
   ========================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--warning-h) + 16px); }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

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

/* ==========================================================
   RISK WARNING BAR
   ========================================================== */
.risk-bar {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--bg-dark);
  color: #d0d5dd;
  font-size: 12px;
  text-align: center;
  padding: 10px 48px 10px 24px;
  line-height: 1.5;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.risk-bar.dismissed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  height: 0;
  padding: 0;
  overflow: hidden;
}
.risk-bar__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #d0d5dd;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  transition: color var(--transition);
}
.risk-bar__close:hover { color: #fff; }

/* ==========================================================
   HEADER / NAVIGATION
   ========================================================== */
.header {
  position: sticky;
  top: var(--warning-h);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  height: var(--header-h);
  transition: top 0.4s ease, box-shadow var(--transition);
}
.header.warning-dismissed { top: 0; }
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-neon);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}
.hamburger__line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.active .hamburger__line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger__line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav.open { display: flex; opacity: 1; }
.mobile-nav__link {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-primary);
}
.testimonials__head { text-align: center; margin-bottom: 48px; }
.testimonials__head .section-sub { margin: 0 auto; }
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--bg-dark);
  color: #d0d5dd;
  padding: 64px 0 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand-desc {
  font-size: 14px;
  color: #98a2b3;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}
.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 18px;
}
.footer__link {
  display: block;
  font-size: 14px;
  color: #98a2b3;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--accent-1); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  color: #667085;
}
.footer__bottom a { color: #98a2b3; }
.footer__bottom a:hover { color: var(--accent-1); }

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

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .testimonials { padding: 64px 0; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
