/* ============================================================
   ATOMIQ TECHNOLOGIES — Brand Design System
   Primary: Deep Midnight Navy #020B1F | Accent: Electric Cyan #00E5FF
   Font: Poppins (primary), IBM Plex Mono (technical)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --navy-deep:   #020B1F;
  --navy-rich:   #07142E;
  --navy-panel:  #0B1D3A;
  --navy-card:   #0F2347;
  --navy-border: #1A3560;
  --cyan:        #00E5FF;
  --cyan-dim:    #00B8CC;
  --cyan-glow:   rgba(0,229,255,0.15);
  --cyan-subtle: rgba(0,229,255,0.07);
  --white:       #F4F7FA;
  --silver:      #D9E1EA;
  --muted:       #A0AAB8;
  --text:        #C8D4E0;
  --grad-hero:   linear-gradient(135deg, #020B1F 0%, #071428 60%, #0A1E3A 100%);
  --grad-card:   linear-gradient(135deg, #0F2347 0%, #091A35 100%);
  --grad-cyan:   linear-gradient(90deg, #00E5FF, #00B8CC);
  --radius:      12px;
  --radius-sm:   6px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-cyan: 0 0 32px rgba(0,229,255,0.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--navy-deep);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(2,11,31,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--navy-border);
  padding: 0 40px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
}
.nav-logo svg { width: 38px; height: 38px; }
.nav-wordmark {
  font-size: 17px; font-weight: 700; color: var(--white);
  letter-spacing: -0.01em;
}
.nav-wordmark em { color: var(--cyan); font-style: normal; }
.nav-tagline {
  font-size: 9px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); background: var(--cyan-subtle); }
.nav-cta {
  background: var(--cyan); color: var(--navy-deep) !important;
  font-weight: 700 !important; padding: 9px 20px !important;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: #00CCEE !important; transform: translateY(-1px); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--white); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  background-image: url('../images/hero-bg.png?v=2');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 40px 80px;
  position: relative; overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(2,11,31,0.45);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 820px; }
.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 20px;
  font-family: 'IBM Plex Mono', monospace;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title .accent { color: var(--cyan); }
.hero-sub {
  font-size: 18px; color: var(--muted); line-height: 1.7;
  max-width: 600px; margin: 0 auto 40px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--cyan); color: var(--navy-deep);
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  padding: 14px 32px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: 'Poppins', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #00CCEE; transform: translateY(-2px); box-shadow: var(--shadow-cyan); }
.btn-secondary {
  background: transparent; color: var(--white);
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  padding: 14px 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--navy-border);
  cursor: pointer; transition: border-color 0.2s, color 0.2s, transform 0.15s;
  font-family: 'Poppins', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--navy-border);
}
.hero-stats > div { padding: 0 20px; border-right: 1px solid var(--navy-border); text-align: center; }
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div:last-child { border-right: none; padding-right: 0; }
.hero-stat-val {
  font-size: 36px; font-weight: 800; color: var(--cyan);
  letter-spacing: -0.02em; line-height: 1;
}
.hero-stat-lbl { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ── SECTIONS ── */
.section { padding: 100px 40px; }
.section-sm { padding: 60px 40px; }
.container { max-width: 1140px; margin: 0 auto; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 14px;
  font-family: 'IBM Plex Mono', monospace;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; color: var(--white);
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 17px; color: var(--muted); max-width: 620px; line-height: 1.7;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-lead { margin: 0 auto; }
.divider { height: 1px; background: var(--navy-border); margin: 0; }

/* ── CARDS ── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: rgba(0,229,255,0.3); transform: translateY(-3px); box-shadow: var(--shadow-cyan); }
.card-icon {
  width: 44px; height: 44px; margin-bottom: 18px;
  background: var(--cyan-subtle); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,229,255,0.15);
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.card-title {
  font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 10px;
}
.card-body { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── GRID ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── FEATURE STRIP ── */
.feature-strip {
  background: var(--navy-panel);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}
.feature-strip-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around;
  padding: 28px 40px; gap: 16px; flex-wrap: wrap;
}
.feature-pill {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--silver);
}
.feature-pill span.dot {
  width: 7px; height: 7px; background: var(--cyan);
  border-radius: 50%; flex-shrink: 0;
}

/* ── PROCESS STEPS ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 0 24px; position: relative;
}
.step:not(:last-child)::after {
  content: ''; position: absolute;
  left: 39px; top: 56px; bottom: -1px;
  width: 2px; background: var(--navy-border);
}
.step-num {
  width: 80px; display: flex; flex-direction: column; align-items: center; padding-top: 20px;
}
.step-num-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-card); border: 2px solid var(--navy-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  position: relative; z-index: 1;
  transition: border-color 0.2s, background 0.2s;
}
.step:hover .step-num-circle { border-color: var(--cyan); background: var(--cyan-subtle); }
.step-body {
  padding: 20px 0 40px;
  border-bottom: 1px solid var(--navy-border);
}
.step:last-child .step-body { border-bottom: none; }
.step-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 6px;
  font-family: 'IBM Plex Mono', monospace;
}
.step-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
.pricing-card {
  background: var(--grad-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-cyan); }
.pricing-card.featured {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: var(--navy-deep);
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 14px;
  border-radius: 20px;
}
.pricing-tier {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 8px;
  font-family: 'IBM Plex Mono', monospace;
}
.pricing-name { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.pricing-size { font-size: 13px; color: var(--muted); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--navy-border); }
.pricing-range { font-size: 28px; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.pricing-range span { font-size: 14px; font-weight: 400; color: var(--muted); }
.pricing-impl { font-size: 13px; color: var(--muted); margin-top: 4px; margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li {
  font-size: 13px; color: var(--text); display: flex; align-items: flex-start; gap: 10px;
}
.pricing-features li::before {
  content: '✓'; color: var(--cyan); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: var(--navy-panel);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 36px;
}
.testimonial-quote {
  font-size: 17px; color: var(--white); line-height: 1.7;
  margin-bottom: 24px; font-style: italic;
}
.testimonial-quote::before { content: '\201C'; color: var(--cyan); font-size: 28px; line-height: 0; vertical-align: -8px; margin-right: 4px; }
.testimonial-attr { font-size: 13px; color: var(--muted); }
.testimonial-attr strong { color: var(--silver); display: block; margin-bottom: 2px; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, #071428 0%, #0A1E3A 100%);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  text-align: center; padding: 80px 40px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(26px,4vw,44px); font-weight: 700; color: var(--white); margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-banner p { font-size: 17px; color: var(--muted); max-width: 540px; margin: 0 auto 36px; }

/* ── FOOTER ── */
.footer {
  background: var(--navy-rich);
  border-top: 1px solid var(--navy-border);
  padding: 60px 40px 32px;
}
.footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name { font-size: 16px; font-weight: 700; color: var(--white); margin: 14px 0 10px; }
.footer-brand-name em { color: var(--cyan); font-style: normal; }
.footer-brand-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--silver); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1140px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--navy-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--cyan); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--grad-hero);
  background-image: url('../images/page-header-bg.png?v=2');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding: 140px 40px 80px;
  text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(2,11,31,0.5);
  pointer-events: none;
}
.page-header-content { position: relative; max-width: 700px; margin: 0 auto; }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--silver); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--navy-card);
  border: 1px solid var(--navy-border); border-radius: var(--radius-sm);
  color: var(--white); padding: 12px 16px;
  font-size: 14px; font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── MONO BADGE ── */
.mono { font-family: 'IBM Plex Mono', monospace; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 20px;
  font-family: 'IBM Plex Mono', monospace;
}
.badge-cyan { background: var(--cyan-subtle); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }

/* ── CASE STUDY CARD ── */
.case-card {
  background: var(--grad-card); border: 1px solid var(--navy-border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.case-card:hover { border-color: rgba(0,229,255,0.3); transform: translateY(-3px); box-shadow: var(--shadow-cyan); }
.case-card-header {
  background: var(--navy-panel); padding: 24px 28px;
  border-bottom: 1px solid var(--navy-border);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.case-sector {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 6px;
  font-family: 'IBM Plex Mono', monospace;
}
.case-org { font-size: 18px; font-weight: 700; color: var(--white); }
.case-card-body { padding: 24px 28px; }
.case-metric { margin-bottom: 16px; }
.case-metric-val { font-size: 28px; font-weight: 800; color: var(--cyan); letter-spacing: -0.02em; line-height: 1; }
.case-metric-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.case-quote { font-size: 14px; color: var(--text); line-height: 1.7; font-style: italic; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--navy-border); }

/* ── ABOUT ── */
.team-card {
  background: var(--grad-card); border: 1px solid var(--navy-border);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--navy-panel); border: 2px solid var(--navy-border);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--cyan);
}
.team-name { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--cyan); margin-bottom: 10px; }
.team-bio { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--navy-rich);
    border-bottom: 1px solid var(--navy-border);
    padding: 16px 20px 24px;
    z-index: 999;
  }
  .hero { padding: 110px 24px 60px; }
  .hero-stats { grid-template-columns: repeat(2,1fr) !important; gap: 24px !important; }
  .hero-stats > div { border-right: none !important; padding: 0 !important; }
  .hero-stats { gap: 32px; }
  .section, .section-sm { padding: 64px 24px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .feature-strip-inner { flex-direction: column; gap: 12px; text-align: center; }

  /* Product page specific grids */
  .arch-grid { grid-template-columns: 1fr 1fr !important; }
  .benefits-grid { grid-template-columns: 1fr !important; }
  .benefits-col { border-right: none !important; padding: 0 0 16px !important; border-bottom: 1px solid var(--navy-border); margin-bottom: 4px; }
  .benefits-col:last-child { border-bottom: none; padding-bottom: 0; }

  /* Fix all inline grid layouts that don't use CSS classes */
  [style*="grid-template-columns: repeat(3"] ,
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(4"] ,
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-template-columns: 1fr auto"] ,
  [style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 2fr 1fr"] ,
  [style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 1fr 1.6fr"] ,
  [style*="grid-template-columns:1fr 1.6fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 180px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 1fr 300px"] ,
  [style*="grid-template-columns:1fr 300px"] {
    grid-template-columns: 1fr !important;
  }

  /* Founding client banner */
  .section [style*="grid-template-columns: 1fr auto"] {
    grid-template-columns: 1fr !important;
  }

  /* Architecture layer grid on product page */
  [style*="grid-template-columns: repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Pricing grid */
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr !important; }

  /* Post layout on blog */
  .post-layout { grid-template-columns: 1fr !important; }
  .post-sidebar { position: static !important; }

  /* Benefit columns on product page */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* General overflow fix */
  body { overflow-x: hidden; }
  .container { padding-left: 20px; padding-right: 20px; }
  img { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
