:root {
  --ink: #0c0f14;
  --ink-2: #1c222b;
  --blue: #2e6bff;
  --blue-2: #5b8cff;
  --slate: #5a6472;
  --slate-dark: #9aa1ab;
  --slate-darker: #6b7482;
  --cream: #f7f6f3;
  --tint: #efede8;
  --border-light: #e4e1da;
  --border-light-2: #d6d3cc;
  --model-1: #2e6bff;
  --model-2: #1d9a6c;
  --model-3: #c97a2e;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

/* ---- Scroll-reveal + utility animations --------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .reveal-stagger.is-visible > * {
    transition-delay: calc(var(--stagger-index, 0) * 90ms);
  }
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 3%) scale(1.06); }
}

.card,
.model-card,
.proto-card,
.svc-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.card:hover,
.model-card:hover,
.proto-card:hover,
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(12, 15, 20, 0.25);
}

.btn-primary,
.btn-dark {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(46, 107, 255, 0.45);
}

/* ---- Header ------------------------------------------------------------ */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-mark {
  color: var(--slate);
  display: inline-flex;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav a:hover,
nav a.active {
  color: var(--ink);
}

nav a.nav-cta {
  color: var(--cream);
  background: var(--ink);
  padding: 10px 16px;
}

nav a.nav-cta:hover {
  background: var(--blue);
  color: white;
}

/* ---- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 14px 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn-outline {
  border: 1px solid var(--ink-2);
  color: var(--cream);
}

.btn-outline:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.btn-outline-light {
  border: 1px solid var(--border-light-2);
  color: var(--ink);
}

.btn-outline-light:hover {
  border-color: var(--ink);
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.hero-circuit {
  position: absolute;
  right: -80px;
  top: 0;
  opacity: 0.16;
  pointer-events: none;
  animation: float-orb 16s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 24px 96px;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 24px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  max-width: 820px;
}

.hero p.lead {
  color: var(--slate-dark);
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 620px;
  margin-top: 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.badge {
  font-family: "IBM Plex Mono", monospace;
  border: 1px solid var(--ink-2);
  color: var(--slate-dark);
  padding: 6px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-2);
}

.hero-stats .stat strong {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.hero-stats .stat span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-darker);
}

/* ---- Sections ------------------------------------------------------------ */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
}

.section-dark .lead {
  color: var(--slate-dark);
}

.section-tint {
  background: var(--tint);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-alt {
  background: white;
}

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  line-height: 1.1;
}

.section .lead {
  color: var(--slate);
  max-width: 660px;
  margin-bottom: 44px;
  font-size: 1.05rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.section-head .lead {
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 800px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---- Service cards (grid with hairline separators) ------------------------ */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}

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

.svc-card {
  background: white;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}

.svc-card.svc-dark {
  background: var(--ink);
  color: var(--cream);
  justify-content: space-between;
}

.svc-card .svc-icon svg {
  display: block;
}

.svc-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.svc-card p {
  color: var(--slate);
  font-size: 0.92rem;
  margin: 0;
}

.svc-card .svc-tag {
  margin-top: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-darker);
}

/* ---- Generic cards -------------------------------------------------------- */

.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.card p {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  padding-left: 26px;
  position: relative;
  color: var(--slate);
}

.feature-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.1rem;
}

.feature-list strong {
  color: var(--ink);
}

.cta-band {
  background: var(--blue);
  color: white;
  text-align: center;
  padding: 72px 24px;
}

.cta-band h2 {
  margin-top: 0;
  color: white;
}

.cta-band .btn-primary {
  background: white;
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: var(--ink);
  color: white;
}

/* ---- Process steps --------------------------------------------------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

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

.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-step .step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.process-step .step-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.process-step .step-bar {
  flex: 1;
  height: 2px;
  background: var(--border-light-2);
}

.process-step:first-child .step-bar {
  background: var(--blue);
}

.process-step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.process-step p {
  color: var(--slate);
  font-size: 0.92rem;
  margin: 0;
}

/* ---- Industry list --------------------------------------------------------- */

.industry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--border-light-2);
  font-size: 1.15rem;
  font-weight: 500;
}

.industry-row:last-child {
  border-bottom: 1px solid var(--border-light-2);
}

.industry-row span.tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--slate-darker);
  font-weight: 400;
}

/* ---- Model / protocol cards (product page) ------------------------------- */

.model-card {
  background: white;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--m-color, var(--blue));
  padding: 22px;
}

.model-card h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 600;
}

.model-card .model-sub {
  font-weight: 600;
  color: var(--m-color, var(--blue));
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.model-card p {
  color: var(--slate);
  font-size: 0.9rem;
  margin: 0;
}

.proto-card {
  background: white;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.proto-card h3 {
  background: var(--ink);
  color: white;
  margin: 0;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

.proto-card .proto-body {
  padding: 20px;
}

.proto-card p {
  color: var(--slate);
  font-size: 0.9rem;
}

.proto-card .req {
  display: inline-block;
  margin-top: 12px;
  background: var(--tint);
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 12px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.spec-table th {
  text-align: left;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--slate);
}

.spec-table tr:nth-child(even) td {
  background: var(--tint);
}

.led-table {
  width: 100%;
  border-collapse: collapse;
}

.led-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--slate);
}

.led-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
}

.led-dot.on-green { background: #1d9a6c; }
.led-dot.on-red { background: #d84f4f; }
.led-dot.off { background: var(--border-light-2); }
.led-dot.blink {
  background: #1d9a6c;
  border: 2px solid #bfe6d7;
  animation: blink-dot 1.4s ease-in-out infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

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

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

.timeline-step {
  background: white;
  border: 1px solid var(--border-light);
  padding: 22px;
}

.timeline-step .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 14px;
}

.timeline-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.timeline-step p {
  color: var(--slate);
  font-size: 0.88rem;
  margin: 0;
}

/* ---- Products index -------------------------------------------------------- */

.product-line {
  border-top: 2px solid var(--blue);
  padding-top: 26px;
  margin-top: 8px;
}

.product-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-darker);
}

/* ---- Contact form -------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
}

.contact-detail dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-darker);
  width: 90px;
  flex-shrink: 0;
}

.contact-detail dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

form {
  background: var(--tint);
  border: 1px solid var(--border-light);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input,
textarea {
  border: 1px solid var(--border-light-2);
  background: var(--cream);
  color: var(--ink);
  padding: 12px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* ---- Footer --------------------------------------------------------------- */

footer {
  background: var(--ink);
  color: var(--slate-dark);
  padding: 56px 24px 36px;
}

.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo {
  color: var(--cream);
}

.footer-tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--slate-darker);
}

.footer-links {
  display: flex;
  gap: 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--slate-dark);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  color: var(--slate-darker);
}
