/* Tecnomaly LLC — site styles
   Two themes off one token set:
   - default (company): purple/black/white
   - .theme-stageaim: the StageAim brand board (near-black, lime, bone) */

:root {
  --ink: #0c0a11;
  --panel: #14111c;
  --accent: #8b5cf6;
  --accent-soft: #c4b5fd;
  --fg: #f6f4fa;
  --muted: #9b93ad;
  --hairline: #241f31;
  --measure: 68rem;
}

.theme-stageaim {
  --ink: #0b0d08;
  --panel: #12150e;
  --accent: #a3e635;
  --accent-soft: #a3e635;
  --fg: #f4f7ee;
  --muted: #96a188;
  --hairline: #232818;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }

.site-nav {
  display: flex;
  gap: 1.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent-soft); text-decoration: none; }

/* ---------- hero (shared bones) ---------- */

.hero {
  padding: 6rem 0 4.5rem;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.eyebrow .tick { color: var(--accent); }

/* Company home: upright, corporate. */
.hero h1 {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  max-width: 16em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-soft);
}

/* StageAim page: the wordmark's italic posture. */
.theme-stageaim .hero h1 {
  font-style: italic;
  text-transform: uppercase;
}
.theme-stageaim .hero h1 em { font-style: italic; }

.hero .lede {
  max-width: 34em;
  color: var(--muted);
  margin: 0 0 3rem;
}

/* Signature (home): the anomaly grid — one dot off the lattice. */
.anomaly-grid {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  opacity: 0.9;
}
@media (max-width: 56rem) {
  .anomaly-grid { display: none; }
}

/* Signature (StageAim): hit-factor equation, range-timer readout. */
.hf-equation {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.1rem;
  padding: 1.4rem 1.7rem;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  background: var(--panel);
  font-family: "IBM Plex Mono", monospace;
}
.hf-equation .num {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--fg);
}
.hf-equation .op {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--muted);
}
.hf-equation .result { color: var(--accent); }
.hf-equation .unit {
  display: block;
  width: 100%;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- sections ---------- */

section { padding: 4.5rem 0; border-bottom: 1px solid var(--hairline); }

.section-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2.2rem;
}

/* Capability list (home) */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.capability {
  background: var(--panel);
  padding: 1.8rem 1.6rem;
}
.capability h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.7rem;
}
.capability p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Product cards (home) */
.product-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  border: 1px solid var(--hairline);
  background: var(--panel);
  padding: 2rem 1.8rem;
}
.product-card + .product-card { margin-top: 1rem; }
.product-card .mark { flex: 0 0 auto; }
.product-card .body { flex: 1 1 16rem; }
.product-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-style: italic;
}
.product-card h3 .aim { color: #a3e635; }
.product-card p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 38em; }
.product-card .cta {
  flex: 0 0 auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent-soft);
  padding: 0.65rem 1.1rem;
}
.product-card .cta:hover { background: var(--accent); color: var(--ink); text-decoration: none; }

.product-card.upcoming { border-style: dashed; background: transparent; }
.product-card.upcoming h3 { color: var(--muted); font-style: normal; }

.pill {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.6rem;
}

/* ---------- StageAim page pieces ---------- */

.stageaim-lockup {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 0.9rem;
}
.stageaim-lockup h2 {
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}
.stageaim-lockup h2 .aim { color: var(--accent); }

.tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 1.6rem;
}
.tagline .dot { color: var(--accent); }

.stageaim-intro { max-width: 38em; color: var(--muted); margin: 0 0 3rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.feature {
  background: var(--panel);
  padding: 1.8rem 1.6rem;
}
.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.7rem;
}
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.status-line {
  margin: 2.2rem 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-line::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.6rem;
}

/* about / contact */
.prose { max-width: 40em; color: var(--muted); }
.prose strong { color: var(--fg); }

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.05rem;
}

/* ---------- footer ---------- */

.site-footer { padding: 2.2rem 0 3rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-soft); }

/* ---------- privacy page ---------- */

.legal { padding: 4rem 0; }
.legal h1 {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
}
.legal .updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.5rem;
}
.legal h2 { font-size: 1.15rem; margin: 2.2rem 0 0.6rem; }
.legal p, .legal li { color: var(--muted); max-width: 44em; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero > .wrap > * {
    animation: rise 0.6s ease-out both;
  }
  .hero .lede { animation-delay: 0.08s; }
  .hero .hf-equation { animation-delay: 0.16s; }
  .anomaly-grid .stray { animation: drift 5s ease-in-out infinite alternate; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.6rem); }
    to { opacity: 1; transform: none; }
  }
  @keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(6px, -8px); }
  }
}

@media (max-width: 40rem) {
  .site-nav { gap: 1rem; }
  .hero { padding: 3.5rem 0 3rem; }
}
