/* ================================================================
   NEXO — Design System
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:       #0A1828;
  --navy-soft:  #16243A;
  --navy-deep:  #050E1A;
  --teal:       #178582;
  --teal-dark:  #0F5F5C;
  --teal-light: #2BA39F;
  --gold:       #F59E0B;
  --gold-light: #FBBF24;
  --gold-soft:  #FEF3C7;
  --white:      #FFFFFF;
  --cream:      #FAFAF9;
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-300:   #CBD5E1;
  --gray-400:   #94A3B8;
  --gray-500:   #64748B;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1E293B;
  --gray-900:   #0F172A;
  --success:    #10B981;
  --warning:    #F59E0B;
  --danger:     #EF4444;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Geist', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(10, 24, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 24, 40, 0.06);
  --shadow-lg: 0 16px 40px rgba(10, 24, 40, 0.08);
  --shadow-xl: 0 32px 64px rgba(10, 24, 40, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container: 1240px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
}

.eyebrow.gold { color: var(--gold); }
.eyebrow.muted { color: var(--gray-400); }

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

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.nav-brand-mark {
  width: 32px; height: 32px;
  background: var(--navy);
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.nav-brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--teal) 0%, transparent 60%);
}
.nav-brand-mark::after {
  content: 'N';
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -28px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
}

.nav-cta {
  display: flex; align-items: center; gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--gray-100);
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--navy); border-radius: 2px;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-secondary { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links a.active::after { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gray-300);
}
.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--gray-50);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--navy); }

.btn-arrow::after {
  content: '→';
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: 72px 0 32px;
  margin-top: 96px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

/* Tag/badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.badge.teal { background: rgba(23, 133, 130, 0.1); color: var(--teal-dark); }
.badge.gold { background: var(--gold-soft); color: #92400E; }
.badge.live::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1); }
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
