/*
Theme Name: IntelliProp
Author: IntelliProp, Inc.
Version: 2.1
*/

/* ============================================================
   DESIGN TOKENS — v2.1
   See DESIGN.md for full rationale
   ============================================================ */
:root {
  /* Backgrounds */
  --void:          #04060e;
  --ink:           #07091a;
  --surface:       #0b0f20;
  --plate:         #10162a;
  --rim:           #1a2240;

  /* Primary signal — cobalt sapphire (brand blue) */
  --signal:        #2d6fff;
  --signal-dim:    rgba(45, 111, 255, 0.10);
  --signal-line:   rgba(45, 111, 255, 0.32);

  /* Secondary — brand green (from logo) */
  --green:         #3ecf82;
  --green-dim:     rgba(62, 207, 130, 0.10);
  --green-line:    rgba(62, 207, 130, 0.30);

  /* Tertiary — maroon / burgundy */
  --maroon:        #8b1a2f;
  --maroon-mid:    #a8203a;
  --maroon-dim:    rgba(139, 26, 47, 0.15);
  --maroon-line:   rgba(168, 32, 58, 0.35);

  /* Text — all pass WCAG AA on --void */
  --chalk:         #e8edf8;   /* headings / primary */
  --mist:          #9aaac4;   /* labels / captions — was --ash */
  --ash:           #6b7a99;   /* body text */
  --soot:          #4a5878;   /* muted, minimum readable on dark bg */

  /* Borders */
  --wire:          rgba(255, 255, 255, 0.055);
  --wire-bright:   rgba(255, 255, 255, 0.13);

  /* Fonts */
  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'Instrument Sans', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;

  /* Layout */
  --pad:  clamp(1.25rem, 4vw, 2.5rem);
  --max:  1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  background: var(--void);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ============================================================
   SCANLINE — oscilloscope CRT texture
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.14) 2px,
    rgba(0, 0, 0, 0.14) 4px
  );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--chalk);
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--chalk);
}

/* Mono label — now uses --mist for readability */
.label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.body-text {
  font-size: 0.95rem;
  color: var(--ash);
  line-height: 1.75;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: clamp(4rem, 9vw, 8rem) 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

.btn-primary {
  background: var(--signal);
  color: #fff;
  font-weight: 600;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover {
  background: #4d85ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(45, 111, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--wire-bright);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-ghost:hover {
  color: var(--chalk);
  border-color: var(--signal-line);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.65rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--wire);
  padding: 1.75rem;
  position: relative;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 12px; height: 12px;
  border-width: 0 1px 1px 0;
  border-style: solid;
  border-color: transparent;
  transition: border-color 0.2s var(--ease);
}
.card:hover { border-color: var(--signal-line); background: var(--plate); }
.card:hover::after { border-color: var(--signal); }

/* ============================================================
   TAG — blinking dot label
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--green-line);
}
.tag-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.8s step-end infinite;
}

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

/* ============================================================
   SIGNAL RULE — PCB trace divider
   ============================================================ */
.sig-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sig-rule::before { content: ''; flex: 1; height: 1px; background: var(--wire); }
.sig-rule::after  { content: ''; width: 5px; height: 5px; background: var(--signal); transform: rotate(45deg); flex-shrink: 0; }

/* ============================================================
   SECTION LABEL ROW
   ============================================================ */
.section-label {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-up { animation: fadeUp 0.65s var(--ease) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.44s; }

/* ============================================================
   GRID
   ============================================================ */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }

@media (max-width: 860px) {
  .g3 { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .g2 { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: 1fr; }
}

/* Footer sticks to bottom */
.site-footer { margin-top: auto; }
