/* ============================================================
 * ATLAS TEK — Shared Design System
 * Fortune 200 / federal-adjacent enterprise aesthetic
 * Built 2026-06-13 by Eddie
 *
 * Color palette: deep navy + cyan accent
 * Typography: Inter (display + body) + JetBrains Mono (technical)
 * Layout: 1280px max, 120px section padding desktop / 64px mobile
 * ============================================================ */

/* ── Reset / base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy);
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --navy:        #0A0E1A;   /* page background */
  --navy-2:      #0F1421;   /* section alt */
  --navy-3:      #131826;   /* card */
  --navy-4:      #1C2235;   /* card hover / elevation */
  --navy-5:      #252C42;   /* border accent */

  /* Brand */
  --cyan:        #00D4FF;   /* primary brand */
  --cyan-2:      #00B8E0;   /* hover */
  --cyan-3:      #007A99;   /* muted */

  /* Status */
  --green:       #00E676;
  --amber:       #FFB300;
  --red:         #FF5252;

  /* Text */
  --text:        #E8ECF4;
  --text-dim:    #9AA3B8;
  --text-mute:   #5C6477;

  /* Lines */
  --border:      rgba(0, 212, 255, 0.12);
  --border-2:    rgba(255, 255, 255, 0.06);
  --border-3:    rgba(255, 255, 255, 0.12);

  /* Shadows */
  --shadow-1:    0 1px 2px rgba(0,0,0,0.2);
  --shadow-2:    0 4px 12px rgba(0,0,0,0.3);
  --shadow-3:    0 12px 32px rgba(0,0,0,0.4);
  --shadow-cyan: 0 0 24px rgba(0, 212, 255, 0.15);

  /* Radii */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Layout */
  --maxw: 1280px;
  --pad:  120px;
  --pad-m: 64px;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); letter-spacing: -0.02em; }
h4 { font-size: 1.25rem; letter-spacing: -0.01em; }
h5 { font-size: 1.0625rem; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.12em; }

p { color: var(--text-dim); }
p.lead { font-size: 1.25rem; line-height: 1.5; color: var(--text); }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  display: inline-block;
}
.eyebrow.dim { color: var(--text-dim); }
.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

/* ── Layout primitives ──────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
section { padding: var(--pad) 0; }
section.alt { background: var(--navy-2); }
section.dark { background: #060912; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  :root { --pad: 64px; }
  .container, .container-wide { padding: 0 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
}
.brand img { width: 32px; height: 32px; }
.brand-text { color: var(--text); }
.brand-text .accent { color: var(--cyan); }
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 0.9375rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.cta-btn:hover { background: var(--cyan-2); transform: translateY(-1px); box-shadow: var(--shadow-cyan); }
.cta-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-3); }
.cta-btn.ghost:hover { background: var(--navy-3); border-color: var(--cyan); color: var(--cyan); }
.cta-btn.arrow::after { content: '→'; transition: transform 0.2s ease; }
.cta-btn.arrow:hover::after { transform: translateX(3px); }
@media (max-width: 700px) {
  .nav { display: none; }
  .topbar .cta-btn { padding: 8px 14px; font-size: 0.875rem; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.4) 0%, rgba(10, 14, 26, 0.85) 70%, var(--navy) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.hero h1 {
  margin-bottom: 32px;
}
.hero h1 .heavy { color: var(--text); }
.hero h1 .carries { color: var(--cyan); }
.hero p.lead {
  max-width: 640px;
  margin-bottom: 40px;
  font-size: 1.25rem;
  color: var(--text-dim);
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.trust-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  /* no max-width — let chips sit naturally in the hero column; on wide viewports they spread out as a single line, on narrow viewports they wrap neatly */
}
@media (min-width: 1100px) {
  .trust-chips { gap: 12px; }
}
@media (max-width: 600px) {
  .trust-chips { justify-content: center; }   /* when they wrap to 2x2, center the rows so they don't look left-orphaned */
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.chip:hover { background: rgba(0, 212, 255, 0.1); color: var(--text); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ── Three-word typographic anchor ───────────────────────── */
.anchor-block {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
  overflow: hidden;
}
.anchor-block::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.anchor-words {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(1.75rem, 5vw, 3.5rem);   /* 51px desktop, 28px mobile — fits inside container with breathing room at all viewports */
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 64px;
  position: relative;
}
.anchor-words .row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;   /* row-gap col-gap: room above/below wraps, side gap between words */
  max-width: 100%;
}
.anchor-words .word {
  padding: 0 12px;
  position: relative;
  color: var(--text);
  transition: color 0.3s ease;
  white-space: nowrap;
}
.anchor-words .word:hover { color: var(--cyan); cursor: default; }
.anchor-words .sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
  flex: 0 0 auto;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.anchor-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}
.anchor-sub .item .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.anchor-sub .item .body {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .anchor-words { font-size: clamp(1.5rem, 8vw, 2.75rem); }   /* much smaller on narrow viewports so 3 words fit in 1 line */
  .anchor-words .word { padding: 0 8px; }
  .anchor-words .sep { width: 4px; height: 4px; }              /* keep the dot (don't switch back to a 40px line) */
  .anchor-sub { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Kinetic number (2,000 → 20) ────────────────────────── */
.kinetic {
  padding: 120px 0;
  text-align: center;
  background: var(--navy-2);
  position: relative;
  overflow: hidden;
}
.kinetic::before, .kinetic::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  opacity: 0.2;
}
.kinetic::before { left: 25%; }
.kinetic::after { right: 25%; }
.kinetic-eyebrow { color: var(--cyan); margin-bottom: 24px; }
.kinetic h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
  color: var(--text-dim);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.kinetic-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.kinetic-numbers .from {
  color: var(--text-mute);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 4px;
  opacity: 0.7;
}
.kinetic-numbers .arrow {
  color: var(--cyan);
  font-size: 0.5em;
  font-weight: 400;
  animation: pulse 2s ease-in-out infinite;
}
.kinetic-numbers .to {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.5);
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.kinetic-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--navy-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { font-size: 0.9375rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--cyan);
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap 0.2s ease;
}
.card-link:hover { gap: 10px; }
.card-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.card-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  margin-bottom: 16px;
}

/* ── Vertical cards (the 4 capability cards) ───────────── */
.vcard {
  background: var(--navy-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.vcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.vcard:hover::before { transform: scaleX(1); }
.vcard:hover { border-color: var(--border); }
.vcard-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}
.vcard h3 { font-size: 1.375rem; margin-bottom: 16px; }
.vcard p { font-size: 1rem; line-height: 1.6; }

/* ── WebGateway architecture diagram ────────────────────── */
.arch-section {
  padding: 120px 0;
  background: var(--navy-2);
}
.arch-quote {
  max-width: 880px;
  margin: 0 auto 64px;
  text-align: center;
}
.arch-quote blockquote {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  position: relative;
  padding: 0 24px;
}
.arch-quote blockquote::before, .arch-quote blockquote::after {
  content: '"';
  color: var(--cyan);
  font-size: 1.5em;
  font-weight: 800;
  line-height: 0;
  position: relative;
  top: 0.2em;
}
.arch-diagram {
  background: var(--navy-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 56px 32px;
  overflow-x: auto;
}
.arch-diagram svg { margin: 0 auto; }
.arch-attrs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 56px auto 0;
  text-align: center;
}
.arch-attr .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.arch-attr .body {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .arch-attrs { grid-template-columns: 1fr; gap: 24px; }
  .arch-diagram { padding: 32px 16px; }
}

/* ── Federal verticals grid ─────────────────────────────── */
.verticals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.vertical {
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy-2) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.vertical::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.vertical .icon { font-size: 2rem; margin-bottom: 16px; }
.vertical h3 { font-size: 1.5rem; margin-bottom: 8px; }
.vertical .tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.vertical p { font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 900px) {
  .verticals { grid-template-columns: 1fr; }
}

/* ── Closing CTA ────────────────────────────────────────── */
.closing {
  text-align: center;
  padding: 160px 0;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.closing h2 {
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.closing h2 .accent { color: var(--cyan); }
.closing p.lead {
  max-width: 640px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}
.closing-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.closing-tag {
  margin-top: 64px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: #060912;
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 1.125rem;
}
.footer-tag { color: var(--text-dim); font-size: 0.9375rem; max-width: 320px; }
.footer h6 { font-size: 0.75rem; color: var(--cyan); margin-bottom: 20px; font-weight: 600; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: var(--text-dim); font-size: 0.9375rem; transition: color 0.2s ease; }
.footer ul li a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Demo page: full-width admin console embed ──────────── */
.demo-wrap {
  background: var(--navy-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.demo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: var(--amber);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: var(--shadow-2);
}
.demo-frame {
  width: 100%;
  height: 1400px;
  border: 0;
  display: block;
  background: var(--navy);
}
@media (max-width: 1024px) {
  .demo-frame { display: none; }
}
.demo-scroll {
  display: none;
}
@media (max-width: 1024px) {
  .demo-scroll { display: block; }
  .demo-mobile-hint {
    text-align: center;
    color: var(--text-mute);
    font-size: 0.875rem;
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
  }
}
.demo-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.demo-screenshots img {
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--navy-3);
}
@media (max-width: 600px) {
  .demo-screenshots { grid-template-columns: 1fr; }
}

/* ── Misc / utility ─────────────────────────────────────── */
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.125rem; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
  margin: 0 auto;
  max-width: 600px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
