/* ================================================================
   NORTHSTAR GTM  —  Shared Design System
   ================================================================ */

/* ── Tokens ── */
:root {
  --void:        #07101E;
  --base:        #0C1628;
  --surface:     #112036;
  --card:        #182B44;
  --card-hov:    #1E3354;
  --base-rgb:    12, 22, 40;
  --border:      rgba(255,255,255,0.08);
  --border-hov:  rgba(79,156,249,0.4);
  --blue:        #4F9CF9;
  --blue-dim:    rgba(79,156,249,0.08);
  --blue-glow:   rgba(79,156,249,0.13);
  --gold:        #F59E0B;
  --gold-dim:    rgba(245,158,11,0.10);
  --green:       #10B981;
  --green-dim:   rgba(16,185,129,0.10);
  --red:         #F87171;
  --red-dim:     rgba(248,113,113,0.08);
  --t1:          #F1F5F9;
  --t2:          #94A3B8;
  --t3:          #475569;
  --t4:          #1E293B;
  --fd: 'Outfit', sans-serif;
  --fb: 'Plus Jakarta Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--fb);
  background: var(--base);
  color: var(--t1);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--t4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes border-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(79,156,249,0.05); }
  50%       { box-shadow: 0 0 32px rgba(79,156,249,0.15); }
}
@keyframes count-up {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ================================================================
   NAV
   ================================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(var(--base-rgb),0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fd); font-weight: 800; font-size: 1.05rem;
  color: var(--t1); text-decoration: none; letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--t2); text-decoration: none; font-size: 0.875rem;
  font-weight: 500; transition: color 0.2s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--t1); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* ── Buttons ── */
.btn-ghost {
  font-family: var(--fb); font-size: 0.875rem; font-weight: 600;
  color: var(--t2); background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem 1.1rem; cursor: pointer;
  text-decoration: none; transition: color 0.2s, border-color 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-ghost:hover { color: var(--t1); border-color: var(--t3); }

.btn-primary {
  font-family: var(--fb); font-size: 0.875rem; font-weight: 600;
  color: var(--void); background: linear-gradient(135deg, var(--blue) 0%, #3a84f5 100%); border: none;
  border-radius: 8px; padding: 0.5rem 1.25rem; cursor: pointer;
  text-decoration: none; transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 3px 12px rgba(79,156,249,0.22);
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 5px 18px rgba(79,156,249,0.34); }

.btn-hero-primary {
  font-family: var(--fb); font-weight: 700; font-size: 0.95rem;
  color: var(--void); background: var(--t1); border: none;
  border-radius: 10px; padding: 0.85rem 2rem; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: opacity 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(241,245,249,0.1);
}
.btn-hero-primary:hover {
  opacity: 0.95; transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(241,245,249,0.16);
}
.btn-hero-ghost {
  font-family: var(--fb); font-weight: 600; font-size: 0.95rem;
  color: var(--t2); background: none; border: 1px solid var(--border);
  border-radius: 10px; padding: 0.85rem 2rem; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.btn-hero-ghost:hover { color: var(--t1); border-color: var(--t3); transform: translateY(-2px); }

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
section { padding: 6rem 2rem; }
.container { max-width: 1120px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--fd);
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; color: var(--t1); margin-bottom: 1.25rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--t2); line-height: 1.7; max-width: 560px;
}
.section-header { margin-bottom: 4rem; }

/* ================================================================
   INSTANTLY DASHBOARD MOCKUP
   ================================================================ */
.instantly-card {
  background: #0D1D35;
  border: 1px solid rgba(99,123,168,0.28);
  border-radius: 12px; overflow: hidden;
  font-family: var(--fb);
}
.instantly-topbar {
  background: #0F2142;
  border-bottom: 1px solid rgba(99,123,168,0.22);
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.instantly-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; color: #fff;
}
.instantly-stats-row {
  display: flex; align-items: stretch;
  border-bottom: 1px solid rgba(99,123,168,0.15);
}
.i-stat {
  flex: 1; padding: 1rem 1.25rem;
  border-right: 1px solid rgba(99,123,168,0.12);
  display: flex; align-items: center; gap: 0.6rem;
}
.i-stat:last-child { border-right: none; }
.i-stat-icon { font-size: 0.85rem; opacity: 0.6; flex-shrink: 0; }
.i-stat-inner {}
.i-stat-val {
  font-size: 1.2rem; font-weight: 700; color: #fff;
  letter-spacing: -0.02em; line-height: 1.1;
}
.i-stat-val.gold { color: #F59E0B; }
.i-stat-val.green { color: #10B981; }
.i-stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.instantly-chart {
  padding: 1rem 1.25rem;
  background: #0C1828;
}
.instantly-chart-legend {
  display: flex; gap: 1.25rem; margin-bottom: 0.75rem;
}
.legend-dot {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; color: rgba(255,255,255,0.45);
}
.legend-dot span {
  width: 8px; height: 8px; border-radius: 50%;
}
.instantly-footer {
  padding: 0.5rem 1.25rem;
  font-size: 0.65rem; color: rgba(255,255,255,0.25);
  text-align: right; background: #0C1828;
  border-top: 1px solid rgba(99,123,168,0.1);
}

/* ── Instantly Enhanced Mockup ── */
.i-bc {
  display: flex; align-items: center; gap: 5px;
  padding: 0.42rem 1rem; background: #0A1422;
  border-bottom: 1px solid rgba(99,123,168,0.1);
  font-size: 0.62rem; color: rgba(255,255,255,0.25);
}
.i-bc-brand {
  display: flex; align-items: center; gap: 5px; margin-right: 1px;
  font-weight: 700; font-size: 0.7rem; color: rgba(255,255,255,0.55);
}
.i-bc-div { margin: 0 1px; opacity: 0.35; }
.i-bc-active { color: rgba(255,255,255,0.65); }
.i-ch {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(99,123,168,0.12);
}
.i-cn { font-size: 0.78rem; font-weight: 600; color: #fff; line-height: 1.25; }
.i-cd { font-size: 0.59rem; color: rgba(255,255,255,0.28); margin-top: 2px; }
.i-badge {
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.13rem 0.5rem; border-radius: 100px; flex-shrink: 0; margin-top: 1px;
}
.i-done { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.18); color: #10B981; }
.i-live { background: rgba(79,156,249,0.1); border: 1px solid rgba(79,156,249,0.2); color: #4F9CF9; }
.i-s5 { display: flex; align-items: stretch; border-bottom: 1px solid rgba(99,123,168,0.12); }
.i-s5b {
  flex: 1; padding: 0.58rem 0.7rem;
  border-right: 1px solid rgba(99,123,168,0.09);
  display: flex; flex-direction: column; gap: 3px;
}
.i-s5b:last-child { border-right: none; }
.i-sl { font-size: 0.57rem; color: rgba(255,255,255,0.3); font-weight: 500; white-space: nowrap; }
.i-sv { font-size: 0.9rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.i-sv.i-g { color: #10B981; }
.i-sv.i-go { color: #F59E0B; }
.i-sv.i-r { color: rgba(248,113,113,0.75); }
.i-cw { padding: 0.65rem 1rem 0.45rem; background: #0A1422; }
.i-cl { display: flex; gap: 1rem; margin-bottom: 0.45rem; }
.i-ci { display: flex; align-items: center; gap: 5px; font-size: 0.59rem; color: rgba(255,255,255,0.35); }
.i-cs { width: 10px; height: 3px; border-radius: 2px; flex-shrink: 0; }

/* ================================================================
   MARQUEE
   ================================================================ */
.marquee-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.marquee-label {
  text-align: center; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 2rem;
}
.marquee-fade-l {
  position: absolute; left: 0; top: 0; bottom: 0; width: 140px; z-index: 2;
  background: linear-gradient(to right, var(--base), transparent);
  pointer-events: none;
}
.marquee-fade-r {
  position: absolute; right: 0; top: 0; bottom: 0; width: 140px; z-index: 2;
  background: linear-gradient(to left, var(--base), transparent);
  pointer-events: none;
}
.marquee-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.tool-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 0.55rem 1.5rem;
  border-right: 1px solid var(--border); white-space: nowrap;
}
.tool-chip-icon {
  width: 22px; height: 22px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tool-chip-name { font-size: 0.9rem; font-weight: 600; font-family: var(--fd); }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem; background: var(--void);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fd); font-weight: 800; font-size: 1rem;
  color: var(--t1); text-decoration: none;
}
.footer-copy { font-size: 0.8rem; color: var(--t3); }
.footer-links { display: flex; gap: 1.75rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: var(--t3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--t1); }

/* ================================================================
   MOBILE NAV HAMBURGER
   ================================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.nav-hamburger:hover { border-color: var(--t3); }
.nav-hamburger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--t2);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.18s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--base);
  border-bottom: 1px solid var(--border);
  z-index: 98;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s 0.22s;
  display: none;
}
.nav-mobile.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.nav-mobile-links {
  list-style: none;
  padding: 0.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-links li { border-bottom: 1px solid var(--border); }
.nav-mobile-links li:last-child { border-bottom: none; }
.nav-mobile-links a {
  display: block;
  padding: 0.9rem 0;
  color: var(--t2);
  text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-mobile-links a:hover, .nav-mobile-links a.active { color: var(--t1); }
.nav-mobile-cta-btn {
  display: block;
  margin: 1rem 1.5rem 1.25rem;
  text-align: center;
  font-family: var(--fb); font-size: 0.9rem; font-weight: 600;
  color: var(--void); background: linear-gradient(135deg, var(--blue) 0%, #3a84f5 100%);
  border-radius: 8px; padding: 0.75rem 1.25rem;
  text-decoration: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }
  .nav-cta .btn-ghost { display: none; }
  .nav-mobile { display: block; }
  section { padding: 3.5rem 1.25rem; }
  .section-sub { font-size: 0.95rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-links { gap: 1.25rem; }
}

@media (min-width: 769px) {
  .nav-hamburger { display: none !important; }
  .nav-mobile { display: none !important; }
}
