/* ============================================================
   VELTRIX AUTOMATION — Design System
   Industrial / technical aesthetic with editorial polish
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Archivo+Black&family=Manrope:wght@300;400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800;9..144,900&display=swap');

:root {
  /* Color tokens */
  --navy:        #0A1628;
  --navy-2:      #0F1E36;
  --navy-3:      #142844;
  --navy-4:      #1A3358;
  --cyan:        #00E0FF;
  --cyan-dim:    #00B8D4;
  --amber:       #FFB627;
  --amber-dim:   #E69500;
  --red:         #FF3B5C;
  --green:       #2EE89F;
  --magenta:     #C084FC;
  --text:        #E6F0FA;
  --text-bright: #FFFFFF;
  --text-dim:    #7A8FA8;
  --text-muted:  #4A5C75;
  --grid:        rgba(0, 224, 255, 0.06);
  --grid-strong: rgba(0, 224, 255, 0.12);
  --border:      rgba(0, 224, 255, 0.18);
  --border-soft: rgba(0, 224, 255, 0.10);
  --glass:       rgba(15, 30, 54, 0.6);

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-impact:  'Archivo Black', sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --max-width: 1320px;
  --gutter: 48px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   BACKGROUND ATMOSPHERE — applied to body
   ============================================================ */
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: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: all var(--t-base);
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 22, 40, 0.92);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--text-bright);
}
.brand-mark {
  width: 32px; height: 32px;
  position: relative;
  display: inline-block;
}
.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--cyan);
}
.brand-mark::before {
  transform: rotate(45deg) scale(0.7);
  border-color: var(--amber);
}
.brand-mark::after {
  transform: scale(0.8);
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a:hover { color: var(--text-bright); }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 1px;
  background: var(--cyan);
}
.nav-cta {
  margin-left: 12px;
  padding: 10px 20px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover {
  background: transparent;
  color: var(--cyan);
}
.nav-links a.nav-cta.active { color: var(--navy); }
.nav-links a.nav-cta.active::after { display: none; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-bright);
  transition: all var(--t-fast);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--cyan);
}
.eyebrow.amber { color: var(--amber); }
.eyebrow.amber::before { background: var(--amber); }

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  font-weight: 600;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text-bright);
}
.h-display em {
  font-style: italic;
  font-weight: 500;
  color: var(--cyan);
  font-variation-settings: 'opsz' 144;
}

.h-impact {
  font-family: var(--font-impact);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--text-bright);
}
.h-impact .stroke {
  -webkit-text-stroke: 2px var(--text-bright);
  color: transparent;
}

.h1 { font-size: clamp(40px, 5.5vw, 88px); }
.h2 { font-size: clamp(32px, 4vw, 56px); }
.h3 { font-size: clamp(22px, 2.4vw, 32px); }
.h4 { font-size: clamp(18px, 1.4vw, 22px); }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  font-weight: 400;
  max-width: 620px;
}
.lead strong { color: var(--text-bright); font-weight: 600; }

.body-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
}
.body-text p { margin-bottom: 16px; }
.body-text strong { color: var(--text); font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  transition: all var(--t-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
}
.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-bright);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}
.btn-arrow {
  transition: transform var(--t-fast);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; z-index: 1; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }
.section-pad-lg { padding: 160px 0 120px; }

.section-head {
  margin-bottom: 80px;
  max-width: 800px;
}
.section-head .h2 { margin-bottom: 24px; }

/* ============================================================
   CORNER MARKS — used as decorative element
   ============================================================ */
.corner-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.corner-marks::before,
.corner-marks::after,
.corner-marks > span::before,
.corner-marks > span::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--cyan);
  border-style: solid;
  border-width: 0;
  opacity: 0.4;
}
.corner-marks::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corner-marks::after { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corner-marks > span::before { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corner-marks > span::after { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--navy-2);
  border: 1px solid var(--border-soft);
  padding: 32px;
  position: relative;
  transition: all var(--t-base);
  overflow: hidden;
}
.card:hover {
  border-color: var(--border);
  background: var(--navy-3);
  transform: translateY(-4px);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--cyan);
  transition: width var(--t-base);
}
.card:hover::before { width: 100%; }

.card-icon {
  width: 56px; height: 56px;
  border: 1.5px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 24px;
  transition: all var(--t-base);
}
.card:hover .card-icon {
  background: var(--cyan);
  color: var(--navy);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  transition: all var(--t-fast);
}
.footer-social a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 224, 255, 0.05);
}
.footer-bottom .status::before {
  content: '●';
  color: var(--green);
  margin-right: 8px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   ANIMATIONS — page load and scroll reveal
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helpers */
.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }
.reveal[data-delay="4"] { transition-delay: 400ms; }
.reveal[data-delay="5"] { transition-delay: 500ms; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-cyan { color: var(--cyan); }
.text-amber { color: var(--amber); }
.text-bright { color: var(--text-bright); }
.text-dim { color: var(--text-dim); }
.mono { font-family: var(--font-mono); }
.uppercase { text-transform: uppercase; letter-spacing: 0.2em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section-pad { padding: 80px 0; }
  .section-pad-lg { padding: 100px 0 80px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .h1 { font-size: 44px; }
  .section-head { margin-bottom: 48px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile menu open state */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  flex-direction: column;
  gap: 0;
  background: var(--navy-2);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.nav-links.open a {
  padding: 14px 24px;
  width: 100%;
}
.nav-links.open .nav-cta {
  margin: 12px 24px;
  text-align: center;
  justify-content: center;
}
