/* ═══════════════════════════════════════════
   OmniForge Dynamics — Shared Styles
   main.css
═══════════════════════════════════════════ */

:root {
  /* Light palette */
  --white:          #FFFFFF;
  --ice:            #F0F4FF;
  --border:         rgba(59, 130, 246, 0.15);
  --border-strong:  rgba(59, 130, 246, 0.32);

  /* Dark palette */
  --navy:           #0B1535;
  --navy2:          #0D1B4B;
  --dark-card:      #122045;

  /* Text */
  --text:           #0F172A;
  --muted:          #475569;
  --dim:            #94A3B8;
  --inv:            #F1F5F9;
  --inv-muted:      #94A3B8;
  --inv-dim:        #64748B;

  /* Accents */
  --blue:           #3B82F6;
  --blue-dark:      #2563EB;
  --purple:         #8B5CF6;
  --purple-dark:    #7C3AED;
  --cyan:           #22D3EE;
  --green:          #4ADE80;
  --amber:          #F59E0B;

  /* Gradients */
  --grad-hero:      linear-gradient(135deg, #0B1535 0%, #1B0A45 100%);
  --grad-accent:    linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --grad-card:      linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(124,58,237,0.06) 100%);

  /* Subtle grid */
  --grid:           rgba(59, 130, 246, 0.035);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--white);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

nav.nav-scrolled {
  box-shadow: 0 2px 20px rgba(37, 99, 235, 0.07);
}

/* On dark hero — nav starts transparent */
nav.nav-hero {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.08);
}

nav.nav-hero.nav-scrolled {
  background: rgba(255,255,255,0.94);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

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

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-dark); }

nav.nav-hero .nav-links a { color: rgba(255,255,255,0.65); }
nav.nav-hero .nav-links a:hover { color: var(--white); }
nav.nav-hero.nav-scrolled .nav-links a { color: var(--muted); }
nav.nav-hero.nav-scrolled .nav-links a:hover { color: var(--blue-dark); }

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--grad-accent);
  text-decoration: none;
  border: none;
  padding: 9px 20px;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

.nav-back {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--blue-dark); }

/* ── SECTION SCAFFOLDING ── */
section, footer { position: relative; z-index: 1; }

.section-pad    { padding: 72px 24px; }
.section-pad-sm { padding: 48px 24px; }

.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: attr(data-num);
  color: var(--dim);
  font-size: 10px;
}
.section-label.on-dark { color: var(--blue); }

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 12vw, 64px);
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 0.93;
  margin-bottom: 32px;
}
.section-title.on-dark { color: var(--inv); }

/* ── TICKER ── */
.ticker {
  background: var(--navy);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.ticker-inner {
  display: inline-block;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--inv-dim);
  text-transform: uppercase;
  margin: 0 36px;
}
.ticker-item span { color: var(--blue); margin-right: 6px; }

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

/* ── BUTTONS ── */
.btn-primary {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--grad-accent);
  padding: 16px 28px;
  border: none;
  text-decoration: none;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: transparent;
  padding: 15px 28px;
  border: 1px solid var(--border-strong);
  text-decoration: none;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--blue-dark);
  background: rgba(37,99,235,0.04);
}

.btn-ghost.on-dark {
  color: var(--inv);
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost.on-dark:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
}

/* ── FADE-IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── SHARED SPEC TABLE ── */
.spec-list { border-top: 1px solid var(--border); }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.spec-key {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
.spec-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 56px 24px 36px;
}

.footer-brand {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 18px;
  display: block;
}

.footer-tagline { font-size: 14px; line-height: 1.7; color: var(--inv-muted); }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 24px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--inv-muted);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--inv-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--inv-dim);
}

.footer-location {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--inv-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-location::before { content: '◈'; color: var(--blue); font-size: 8px; }

/* ── GLOBAL ANIMATIONS ── */
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ── DESKTOP NAV LINKS ── */
@media (min-width: 640px) {
  .nav-links { display: flex; }
}
