/* ═══════════════════════════════════════════
   autom8.it — Design System & Styles
   ═══════════════════════════════════════════ */

/* ── Reset & Variables ── */
:root {
  --bg: #080b0f;
  --bg2: #0e1318;
  --bg3: #141a22;
  --white: #eef2f7;
  --accent: #00d4ff;
  --accent2: #7c3aed;
  --green: #00ff88;
  --gray: #5a6a7a;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(0,212,255,0.2);
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Space Grotesk', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-accent2 { color: var(--accent2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-sub {
  color: var(--gray);
  font-size: 1.06rem;
  max-width: 520px;
}

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--white);
}

h2 {
  font-size: clamp(26px, 3.5vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #00bde0;
  border-color: #00bde0;
  box-shadow: 0 0 24px rgba(0,212,255,0.3);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(0,212,255,0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--gray);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.btn--full {
  width: 100%;
}

/* ── Logo ── */
.logo {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
  display: inline-flex;
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.8; }
.logo__auto { color: var(--white); }
.logo__8 { color: var(--accent); }
.logo__dot { color: var(--gray); }
.logo__it { color: var(--accent2); }
.logo__com { color: var(--gray); }

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8,11,15,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav--scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__divider {
  width: 1px;
  height: 20px;
  background: var(--gray);
  opacity: 0.4;
}

.nav__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.nav__center {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
}

.nav__right .btn {
  padding: 10px 20px;
  font-size: 10px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 24px 40px;
  border-top: 1px solid var(--border);
}

.nav__mobile.active {
  display: flex;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(38px, 6vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 900px;
  margin-bottom: 28px;
}

.hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat__number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.02em;
}

/* Grid background */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.05) 0%, transparent 70%);
  z-index: -1;
}

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */
.services {
  padding: 120px 0;
  background: var(--bg2);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.card__title {
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card__text {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card__tags li {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════ */
.process {
  padding: 120px 0;
  position: relative;
}

.process__timeline {
  position: relative;
  max-width: 720px;
}

.process__timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), transparent);
}

.process__step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  position: relative;
}

.process__step + .process__step {
  border-top: 1px solid var(--border);
}

.process__number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  min-width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border2);
  border-radius: 50%;
  background: var(--bg);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.process__content h3 {
  margin-bottom: 10px;
}

.process__content p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.process__duration {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.15);
  padding: 4px 12px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about {
  padding: 120px 0;
  background: var(--bg2);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__text strong {
  color: var(--white);
}

.about__values {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about__value {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--white);
}

.about__value-icon {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Terminal */
.terminal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  margin-left: 8px;
}

.terminal__body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
}

.terminal__line {
  white-space: nowrap;
}

.terminal__prompt {
  color: var(--accent);
  margin-right: 8px;
}

.terminal__output {
  color: var(--gray);
  padding-left: 20px;
}

.terminal__output--success {
  color: var(--green);
}

.terminal__cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ═══════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════ */
.dashboard {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.dashboard::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.04) 0%, transparent 60%);
  z-index: 0;
}

.dash {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.06),
    0 24px 80px rgba(0,0,0,0.5),
    0 0 120px rgba(0,212,255,0.03);
}

/* Chrome bar */
.dash__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.dash__dots {
  display: flex;
  gap: 7px;
}

.dash__title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  flex: 1;
}

.dash__status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dash__live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,136,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}

/* Tabs */
.dash__tabs {
  display: flex;
  gap: 0;
  padding: 0 20px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.dash__tab {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  padding: 12px 20px;
  letter-spacing: 0.03em;
  cursor: default;
  border-bottom: 2px solid transparent;
  transition: color var(--transition);
}

.dash__tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Grid */
.dash__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.dash__card {
  background: var(--bg2);
  padding: 24px;
  position: relative;
}

.dash__card--wide {
  grid-column: span 2;
}

.dash__card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.dash__card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.dash__badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash__badge--green {
  color: var(--green);
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.2);
}

.dash__badge--cyan {
  color: var(--accent);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
}

/* Health ring */
.dash__health-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.dash__ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dash__ring-fill {
  transition: stroke-dashoffset 1.5s ease;
}

.dash__ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dash__ring-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.dash__ring-unit {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.dash__ring-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* Health bars */
.dash__health-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash__hbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash__hbar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gray);
  width: 28px;
  letter-spacing: 0.03em;
}

.dash__hbar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.dash__hbar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.2s ease;
}

.dash__hbar-val {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gray);
  width: 30px;
  text-align: right;
}

/* Model list */
.dash__model-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash__model {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash__model-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash__model-dot--green { background: var(--green); }
.dash__model-dot--yellow { background: #febc2e; }

.dash__model-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  width: 100px;
  flex-shrink: 0;
}

.dash__model-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.dash__model-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.4s ease;
}

.dash__model-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  width: 36px;
  text-align: right;
}

.dash__model-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
}

/* Throughput */
.dash__throughput-display {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dash__throughput-number {
  display: flex;
  flex-direction: column;
}

.dash__big-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}

.dash__big-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Sparkline */
.dash__sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 50px;
  flex: 1;
  max-width: 160px;
}

.dash__spark {
  flex: 1;
  background: rgba(0,212,255,0.2);
  border-radius: 2px 2px 0 0;
  transition: height 0.6s ease;
  min-width: 6px;
}

.dash__spark--active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0,212,255,0.4);
  animation: sparkPulse 2s ease-in-out infinite;
}

@keyframes sparkPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.dash__throughput-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dash__tstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash__tstat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash__tstat-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

/* Pipeline */
.dash__pipeline-flow {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0 24px;
  overflow-x: auto;
}

.dash__pipe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 70px;
  flex-shrink: 0;
}

.dash__pipe-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all var(--transition);
}

.dash__pipe-icon--active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(0,212,255,0.15);
}

.dash__pipe-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.dash__pipe-stat {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash__pipe-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 24px;
  position: relative;
  overflow: hidden;
  margin-top: -22px;
}

.dash__pipe-pulse {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: pipePulse 2s linear infinite;
}

@keyframes pipePulse {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* Queue items */
.dash__pipeline-queue {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dash__queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash__queue-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  min-width: 80px;
}

.dash__queue-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.dash__queue-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 1s ease;
}

.dash__queue-fill--active {
  animation: queueProgress 3s ease-in-out infinite;
}

@keyframes queueProgress {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.dash__queue-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  min-width: 80px;
  text-align: right;
  letter-spacing: 0.03em;
}

/* Live log */
.dash__log-entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash__log-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  animation: logFade 0.4s ease forwards;
}

.dash__log-entry:nth-child(1) { animation-delay: 0.1s; }
.dash__log-entry:nth-child(2) { animation-delay: 0.3s; }
.dash__log-entry:nth-child(3) { animation-delay: 0.5s; }
.dash__log-entry:nth-child(4) { animation-delay: 0.7s; }
.dash__log-entry:nth-child(5) { animation-delay: 0.9s; }
.dash__log-entry:nth-child(6) { animation-delay: 1.1s; }

@keyframes logFade {
  to { opacity: 1; transform: translateY(0); }
}

.dash__log-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  min-width: 28px;
  text-align: right;
}

.dash__log-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash__log-msg {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--white);
  opacity: 0.8;
}

/* Savings */
.dash__savings-display {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 4px;
}

.dash__savings-dollar {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.dash__savings-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.03em;
}

.dash__savings-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.dash__savings-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.dash__savings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash__savings-label {
  font-size: 12px;
  color: var(--gray);
}

.dash__savings-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact {
  padding: 120px 0;
  position: relative;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__detail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.contact__detail a {
  color: var(--accent);
  transition: opacity var(--transition);
}

.contact__detail a:hover {
  opacity: 0.7;
}

/* Form */
.form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
}

.form__input::placeholder {
  color: rgba(90,106,122,0.6);
}

.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,212,255,0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__status {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.form__status--success {
  color: var(--green);
}

.form__status--error {
  color: #ff5f57;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer__copy {
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
}

.footer__right {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--white);
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .dash__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash__card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  html { font-size: 14px; }

  .nav__center,
  .nav__right,
  .nav__divider,
  .nav__tagline {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero__stats {
    gap: 32px;
  }

  .hero__ctas {
    margin-bottom: 48px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .services,
  .process,
  .about,
  .contact,
  .dashboard {
    padding: 80px 0;
  }

  .dash__grid {
    grid-template-columns: 1fr;
  }

  .dash__card--wide {
    grid-column: span 1;
  }

  .dash__tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dash__pipeline-flow {
    padding: 16px 8px 24px;
  }

  .dash__big-num {
    font-size: 28px;
  }

  .dash__savings-num {
    font-size: 28px;
  }

  .dash__throughput-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    margin-bottom: 48px;
  }

  .process__timeline::before {
    display: none;
  }

  .process__step {
    flex-direction: column;
    gap: 16px;
  }

  .process__number {
    width: 48px;
    height: 48px;
    font-size: 12px;
  }

  .form {
    padding: 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .terminal__body {
    font-size: 11px;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
  }
}
