/* ============================================================
   NorthGrid — Option B: "Clean Signal"
   Crisp white + deep navy + gold. Editorial. Confident.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --navy-950: #070f1c;
  --navy-900: #0d1b2a;
  --navy-800: #122236;
  --navy-700: #1a2f47;
  --gold-600: #d4870a;
  --gold-500: #f5a623;
  --gold-400: #f8bc55;
  --white:    #ffffff;
  --off-white: #f7f8fa;
  --light-200: #eef1f6;
  --light-300: #d8dfe9;
  --text-900: #0d1b2a;
  --text-600: #3c4f66;
  --text-400: #6b7f99;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 72px;
  --radius: 12px;
  --transition: 0.25s ease;
}

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

/* ── Scroll-reveal ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"] { transition-delay: 0.10s; }
[data-reveal][data-delay="2"] { transition-delay: 0.20s; }
[data-reveal][data-delay="3"] { transition-delay: 0.30s; }
[data-reveal][data-delay="4"] { transition-delay: 0.40s; }

/* ── NAV ────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 5%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(255,255,255,0.97);
  border-color: var(--light-300);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  color: var(--text-600);
  position: relative; transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold-500); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--navy-900); }
.nav-links a:hover::after { transform: scaleX(1); }
.btn-login {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  padding: 9px 22px; border-radius: 6px;
  background: var(--navy-900); color: #F8BC55 !important;
  transition: background var(--transition), transform var(--transition);
}
.btn-login:hover { background: var(--navy-700); transform: translateY(-1px); }
.menu-toggle {
  display: none; background: none; border: none; color: var(--navy-900);
  cursor: pointer; padding: 4px;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 5% 80px;
  display: flex; align-items: center;
  background: var(--off-white);
  position: relative; overflow: hidden;
}
/* Decorative corner elements */
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 45%; height: 100%;
  background: linear-gradient(145deg, var(--light-200) 0%, var(--off-white) 100%);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; right: 5%;
  width: 400px; height: 400px;
  border: 1px solid var(--light-300);
  border-radius: 50%;
  opacity: 0.6;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.eyebrow-line {
  display: block; width: 40px; height: 2px; background: var(--gold-500);
}
.eyebrow-text {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-400);
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 900; line-height: 1.06; color: var(--navy-900);
  margin-bottom: 28px;
}
.hero h1 .accent {
  color: var(--gold-600);
  font-style: italic;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-600); max-width: 480px;
  margin-bottom: 42px; line-height: 1.8; font-weight: 400;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  padding: 15px 32px; border-radius: 8px;
  background: var(--navy-900); color: var(--white);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--navy-700); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,27,42,0.25);
}
.btn-secondary {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  padding: 15px 32px; border-radius: 8px;
  background: transparent; border: 1.5px solid var(--light-300);
  color: var(--text-600);
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color var(--transition), color var(--transition);
}
.btn-secondary:hover { border-color: var(--navy-900); color: var(--navy-900); }

/* Hero visual panel */
.hero-panel {
  background: var(--navy-900);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 40px 80px rgba(13,27,42,0.25), -8px -8px 0 var(--gold-500);
  position: relative;
}
.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.panel-title {
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.9); letter-spacing: 0.02em;
}
.panel-badge {
  font-size: 0.65rem; padding: 4px 10px; border-radius: 20px;
  background: rgba(245,166,35,0.2); color: var(--gold-400);
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.panel-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px;
}
.kpi {
  background: rgba(255,255,255,0.05); border-radius: 10px; padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}
.kpi-val {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  line-height: 1; margin-bottom: 4px;
  color: var(--white);
}
.kpi-val.gold { color: var(--gold-400); }
.kpi-val.green { color: #6ee7b7; }
.kpi-lbl { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); font-weight: 600; }
.panel-chart {
  margin-bottom: 20px;
}
.chart-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4); margin-bottom: 10px; font-weight: 600;
}
.chart-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 60px;
}
.bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: rgba(245,166,35,0.3);
  transition: background 0.2s;
}
.bar.active { background: var(--gold-500); }
.bar:hover { background: var(--gold-400); }
.panel-list { display: flex; flex-direction: column; gap: 8px; }
.pl-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.pl-ind {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.pl-ind.g { background: #6ee7b7; }
.pl-ind.y { background: var(--gold-500); }
.pl-ind.r { background: #fca5a5; }
.pl-name { font-size: 0.72rem; color: rgba(255,255,255,0.7); flex: 1; }
.pl-status {
  font-size: 0.62rem; font-weight: 600; padding: 2px 8px; border-radius: 8px;
}
.pl-status.ok { background: rgba(110,231,183,0.15); color: #6ee7b7; }
.pl-status.soon { background: rgba(245,166,35,0.15); color: var(--gold-400); }
.pl-status.over { background: rgba(252,165,165,0.15); color: #fca5a5; }

/* ── TRUST STRIP ────────────────────────────────────────── */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--light-300);
  border-bottom: 1px solid var(--light-300);
  padding: 36px 5%;
}
.trust-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.trust-item {
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  border-right: 1px solid var(--light-300);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy-900); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-text {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  color: var(--text-900); line-height: 1.3;
}

/* ── SECTIONS BASE ──────────────────────────────────────── */
section { padding: 100px 5%; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-label {
  display: block; font-family: var(--font-body); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 16px;
}
.section-h2 {
  font-family: var(--font-head); font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 900; color: var(--navy-900); line-height: 1.14; margin-bottom: 20px;
}
.section-lead {
  font-size: 1.05rem; color: var(--text-600); max-width: 620px;
  line-height: 1.8; margin-bottom: 60px;
}

/* ── OFFERS ─────────────────────────────────────────────── */
.offers { background: var(--off-white); }
.offers-intro {
  max-width: 600px; margin-bottom: 60px;
}
.offers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.offer-card {
  background: var(--white); border-radius: var(--radius); padding: 40px 32px;
  border: 1px solid var(--light-300);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.offer-card:hover {
  border-color: var(--gold-400); transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13,27,42,0.1);
}
.offer-num {
  font-family: var(--font-head); font-size: 3rem; font-weight: 900;
  color: var(--light-200); line-height: 1; margin-bottom: 20px;
  transition: color var(--transition);
}
.offer-card:hover .offer-num { color: var(--gold-400); }
.offer-card h3 {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  color: var(--navy-900); margin-bottom: 12px; line-height: 1.25;
}
.offer-card p { font-size: 0.93rem; color: var(--text-600); line-height: 1.75; }
.offer-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-size: 0.85rem; font-weight: 600; color: var(--navy-900);
  transition: gap var(--transition), color var(--transition);
}
.offer-link:hover { gap: 10px; color: var(--gold-600); }

/* ── TICKER ─────────────────────────────────────────────── */
.ticker-section {
  padding: 0; overflow: hidden;
  background: var(--navy-900);
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-item {
  padding: 18px 36px; white-space: nowrap;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 28px;
}
.ticker-item::after { content: '—'; color: var(--gold-500); }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FEATURE SECTIONS ───────────────────────────────────── */
.feature-section { background: var(--white); }
.feature-section.alt { background: var(--off-white); }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.feature-grid.flip { direction: rtl; }
.feature-grid.flip > * { direction: ltr; }
.feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 0.95rem; color: var(--text-600); padding-bottom: 14px;
  border-bottom: 1px solid var(--light-200);
}
.feature-list li:last-child { border-bottom: none; padding-bottom: 0; }
.list-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.feature-img-wrap {
  border-radius: 16px; overflow: hidden;
  position: relative;
}
.feature-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: var(--light-200);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--text-400);
  border: 1px solid var(--light-300);
  border-radius: 16px;
}
.feature-img-placeholder.dark {
  background: var(--navy-800);
  color: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.06);
}
.placeholder-label { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
/* Gold accent bar on feature images */
.feature-img-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold-500); z-index: 1;
}

/* ── WHY NORTHGRID ──────────────────────────────────────── */
.why { background: var(--navy-900); }
.why .section-label { color: var(--gold-400); }
.why .section-h2 { color: var(--white); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.why-body { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 24px; }
.why-body + .why-body { margin-top: -4px; }
.why-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.why-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 28px 22px;
  transition: border-color var(--transition), background var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(245,166,35,0.3); }
.why-card-icon { color: var(--gold-500); margin-bottom: 14px; }
.why-card h4 {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.why-card p { font-size: 0.83rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── CTA ────────────────────────────────────────────────── */
.cta-section {
  background: var(--off-white);
  padding: 120px 5%;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; left: -100px; top: -100px;
  width: 400px; height: 400px;
  border: 1px solid var(--light-300); border-radius: 50%; opacity: 0.5;
}
.cta-inner {
  max-width: 720px; margin: 0 auto; text-align: center; position: relative;
}
.cta-inner .section-h2 { margin-bottom: 20px; }
.cta-inner p { color: var(--text-600); margin-bottom: 40px; font-size: 1.05rem; }

/* ── CONTACT ────────────────────────────────────────────── */
.contact-section { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info .section-h2 { margin-bottom: 18px; }
.contact-info > p { color: var(--text-600); margin-bottom: 32px; }
.contact-detail {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-600); font-size: 0.95rem; margin-bottom: 14px;
}
.contact-detail svg { color: var(--gold-600); flex-shrink: 0; }
.contact-detail a:hover { color: var(--navy-900); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-600);
}
.form-group input, .form-group textarea {
  background: var(--off-white);
  border: 1px solid var(--light-300);
  border-radius: 8px; padding: 13px 16px;
  color: var(--text-900); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(13,27,42,0.07);
}
.form-group textarea { min-height: 130px; resize: vertical; }
::placeholder { color: var(--text-400); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--navy-950);
  padding: 60px 5% 40px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 48px;
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: none; border-bottom: 1px solid var(--light-300); padding-bottom: 20px; }
  .trust-item:nth-child(3), .trust-item:last-child { border-bottom: none; }
  .offers-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid, .feature-grid.flip { grid-template-columns: 1fr; direction: ltr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 20px 5%; gap: 0;
    transform: translateY(-120%); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    border-bottom: 2px solid var(--gold-500);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--light-200); width: 100%; }
  .nav-links a::after { display: none; }
  .btn-login { margin-top: 14px; width: 100%; text-align: center; display: block; padding: 12px; }
  .menu-toggle { display: flex; }
  section { padding: 70px 5%; }
  .offers-grid { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--light-300); padding-bottom: 18px; }
  .trust-item:last-child { border-bottom: none; }
}
