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

/* ── TOKENS ── */
:root {
  --navy:      #0A0F1E;
  --navy-2:    #111827;
  --navy-3:    #1E293B;
  --blue:      #0EA5E9;
  --blue-dim:  #0284C7;
  --blue-glow: rgba(14,165,233,0.15);
  --teal:      #06B6D4;
  --white:     #F8FAFC;
  --grey-1:    #94A3B8;
  --grey-2:    #475569;
  --border:    rgba(14,165,233,0.18);
  --card-bg:   rgba(30,41,59,0.6);
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --max-w: 1200px;
  --section-py: 100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── GRID TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
nav.scrolled { background: rgba(10,15,30,0.98); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.nav-logo span { color: var(--white); }
.nav-logo span em { color: var(--blue); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-1);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: opacity var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ── HERO CANVAS ── */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── SECTION LABEL ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* ── HEADINGS ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}
.section-title span { color: var(--blue); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-1);
  max-width: 600px;
  line-height: 1.75;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  box-shadow: 0 4px 24px rgba(14,165,233,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(14,165,233,0.45); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(14,165,233,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(14,165,233,0.12);
}

/* ── STAT ── */
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-label { font-size: 0.875rem; color: var(--grey-1); margin-top: 4px; }

/* ── TAG / BADGE ── */
.tag {
  display: inline-block;
  background: var(--blue-glow);
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ── ICON BOX ── */
.icon-box {
  width: 52px; height: 52px;
  background: var(--blue-glow);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14,165,233,0.08), transparent);
  border-bottom: 1px solid var(--border);
}

/* ── FOOTER ── */
footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--grey-1); font-size: 0.9rem; margin-top: 16px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--grey-1); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: var(--grey-2); font-size: 0.8rem; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--grey-1);
  transition: all var(--transition);
}
.footer-socials a:hover { border-color: var(--blue); color: var(--blue); }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-1); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select option { background: var(--navy-2); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-py: 70px; }
  .container { padding: 0 20px; }
  nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(10,15,30,0.98); padding: 24px; gap: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
