/* ===================================================================
   SAA Software Development — design tokens
   Concept: schematic / blueprint. The site is drawn like a technical
   drawing of the thing being built — hairline grid, mono annotation
   labels, a single trace line that connects the hero's promise to
   its proof.
=================================================================== */

:root {
  --bg: #0A0E13;
  --surface: #121922;
  --surface-2: #1A222D;
  --line: #263241;
  --line-soft: #1B242F;
  --text: #E9EDF1;
  --text-dim: #93A1B0;
  --text-faint: #5C6A78;
  --accent: #4FA8D8;
  --accent-dim: #2E6E92;
  --signal: #E1673B;
  --signal-dim: #B24F2C;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Eyebrow / annotation label — mono, uppercase, with a leader tick.
   Used wherever we need a schematic "spec code" feel. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 19, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.brand strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
}
.brand span {
  color: var(--text-faint);
  font-size: 11px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 11px 20px;
  border-radius: 3px;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-signal {
  background: var(--signal);
  border-color: var(--signal);
  color: #1A0D06;
  font-weight: 500;
}
.btn-signal:hover { background: var(--signal-dim); border-color: var(--signal-dim); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  max-width: 15ch;
}
.hero .lede {
  font-size: 18px;
  max-width: 46ch;
  color: var(--text-dim);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}
.hero-trace {
  margin-top: 64px;
  width: 100%;
  max-width: var(--max);
  height: auto;
  display: block;
}
.hero-trace path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.4s ease;
}
.hero-trace.is-visible path { stroke-dashoffset: 0; }
.hero-trace circle {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity 0.4s ease 1.1s;
}
.hero-trace.is-visible circle { opacity: 1; }
.hero-trace text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-faint);
  opacity: 0;
  transition: opacity 0.4s ease 1.3s;
}
.hero-trace.is-visible text { opacity: 1; }

/* ---------------- Sections ---------------- */
section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Capability grid ---------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cap-card {
  background: var(--bg);
  padding: 28px 24px;
  position: relative;
}
.cap-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--signal);
  display: block;
  margin-bottom: 14px;
}
.cap-card h3 { font-size: 18px; margin-bottom: 8px; }
.cap-card p { font-size: 14.5px; margin: 0; }

/* ---------------- Value band ---------------- */
.value-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.value-item { border-left: 1px solid var(--line); padding-left: 20px; }
.value-item .num { font-family: var(--font-mono); color: var(--text-faint); font-size: 12px; display: block; margin-bottom: 10px; }
.value-item h3 { font-size: 17px; margin-bottom: 6px; }
.value-item p { font-size: 14.5px; }

/* ---------------- CTA band ---------------- */
.cta-band {
  text-align: left;
  background: var(--surface);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; font-size: 26px; }
.cta-band p { margin: 0; }

/* ---------------- Page header (inner pages) ---------------- */
.page-head { padding: 64px 0 56px; border-top: none; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 48px); max-width: 20ch; }

/* ---------------- Services detail ---------------- */
.service-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: none; }
.service-row .cap-tag { font-size: 12px; }
.service-row h3 { font-size: 21px; }
.service-row .fine { font-size: 13px; color: var(--text-faint); margin-top: 14px; }

/* ---------------- About ---------------- */
.about-block { max-width: 68ch; }
.about-block h2 { margin-top: 1.6em; font-size: 22px; }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info .item { margin-bottom: 28px; }
.contact-info .item .k { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); display: block; margin-bottom: 4px; }
.contact-info .item a, .contact-info .item span.v { font-size: 16px; color: var(--text); }

form.consult { display: flex; flex-direction: column; gap: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 3px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { font-size: 13px; color: var(--text-faint); }

/* ---------------- Legal / document pages ---------------- */
.doc { max-width: 72ch; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 18px; margin-top: 2em; }
.doc p, .doc li { font-size: 15px; }
.doc .updated { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 2.4em; }
.doc .disclaimer {
  margin-top: 3em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
  font-style: italic;
}

/* ---------------- Footer ---------------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-grid a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }
}
