/* ═══════════════════════════════════════════════════════════
   ABL Digital Technologies — Shared Stylesheet
   All pages import this file via <link rel="stylesheet">
═══════════════════════════════════════════════════════════ */

:root {
  --ink:        #f4f1eb;
  --paper:      #0a0d14;
  --gold:       #a07828;
  --gold-light: #c8941e;
  --steel:      #e8e4d6;
  --steel-mid:  #ddd9c8;
  --accent:     #007a5e;
  --accent-dim: rgba(0,122,94,0.12);
  --muted:      #5a6878;
  --line:       rgba(160,120,40,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(244,241,235,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo .abl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.nav-logo .sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: none;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  padding: 1rem 2.4rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(10,13,20,0.2);
  padding: 1rem 2.4rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-primary:disabled,
.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── SECTION COMMONS ──────────────────────────────────── */
section { padding: 7rem 4rem; }

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}

.section-sub {
  color: rgba(10,13,20,0.55);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
}

/* ── PAGE HERO (inner pages) ──────────────────────────── */
.page-hero {
  padding: 10rem 4rem 5rem;
  background: var(--steel);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(160,120,40,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .section-tag { margin-bottom: 1rem; }

.page-hero .section-title {
  font-size: clamp(3.5rem, 5vw, 6rem);
}

.page-hero .section-sub { max-width: 600px; }

/* ── STATS BAR ────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(200,195,180,0.5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(8px);
}

.stat-item {
  padding: 2rem 3rem;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.6s ease;
}

.stat-item:hover::before { width: 100%; }

/* ── TICKER ───────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(200,168,75,0.03);
  padding: 0.8rem 0;
}

.ticker {
  display: flex;
  gap: 4rem;
  animation: ticker 25s linear infinite;
  width: max-content;
}

.ticker-item {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ticker-item span { color: var(--gold); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CTA BANNER ───────────────────────────────────────── */
.cta-banner {
  padding: 7rem 4rem;
  background: var(--steel);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,168,75,0.05) 0%, transparent 50%, rgba(0,122,94,0.05) 100%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 5vw, 6rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.cta-sub {
  color: rgba(10,13,20,0.6);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: rgba(218,213,198,1);
  padding: 4rem 4rem 2rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .abl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  display: block;
  line-height: 1;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(10,13,20,0.5);
  line-height: 1.7;
  margin-top: 0.8rem;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }

.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(10,13,20,0.5);
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
}

.footer-col ul li a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: rgba(10,13,20,0.4);
  letter-spacing: 0.1em;
}

.footer-domain {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ── ANIMATIONS ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── HAMBURGER (hidden on desktop) ────────────────────── */
.nav-hamburger { display: none; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {

  /* Nav bar */
  nav {
    padding: 1.1rem 1.5rem;
    position: relative;
  }
  .nav-cta { display: none; }

  /* Hamburger button */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
  }
  .nav-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--paper);
    transition: transform 0.25s ease, opacity 0.18s ease;
    transform-origin: center;
  }
  nav.mobile-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  nav.mobile-open .nav-hamburger span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
  }
  nav.mobile-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile dropdown menu */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(244,241,235,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 0.4rem 0 0.8rem;
    gap: 0;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.22s ease;
    z-index: 99;
  }
  nav.mobile-open .nav-links {
    pointer-events: all;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }

  /* Rest of layout */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  section { padding: 4rem 2rem; }
  .page-hero { padding: 8rem 2rem 3rem; }
  .cta-banner { padding: 4rem 2rem; }
  footer { padding: 3rem 2rem 2rem; }
}
