/* ========================================================================
   BuildsByVic — Design System
   Palette:  #0A0D12 base / #131922 surface / #1A2230 surface-hi
             #2CA1F0 signal blue / #FF8A3D warm amber / #F5F7FA off-white
             #8A96A6 slate (secondary text)
   Type:     Space Grotesk (display) / Inter (body) / JetBrains Mono (spec/price)
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0A0D12;
  --surface: #131922;
  --surface-hi: #1A2230;
  --border: #232C3A;
  --blue: #2CA1F0;
  --blue-dim: #1C7BC0;
  --amber: #FF8A3D;
  --amber-dim: #E06F22;
  --white: #F5F7FA;
  --slate: #8A96A6;
  --slate-dim: #5C6675;

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

  --container: 1140px;
  --radius: 10px;
  --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

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

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

/* Faint circuit-grid ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(44,161,240,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,161,240,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.lede {
  color: var(--slate);
  font-size: 1.1rem;
  max-width: 56ch;
}

.mono { font-family: var(--font-mono); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.btn-primary {
  background: var(--amber);
  color: #14100A;
}
.btn-primary:hover { background: #FFA05F; transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(255,138,61,0.5); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,13,18,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.15s ease;
  position: relative;
}

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

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -18px;
  height: 2px;
  background: var(--blue);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-secondary { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
  font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--blue); }

/* ---------- Circuit trace divider (signature element) ---------- */

.trace-divider {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0 auto;
}

.trace-divider path {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}

.trace-divider circle {
  fill: var(--bg);
  stroke: var(--blue-dim);
  stroke-width: 1.5;
}

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

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: var(--blue-dim); }

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

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img { height: 30px; margin-bottom: 14px; }
.footer-desc { color: var(--slate); font-size: 0.92rem; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  color: var(--slate);
  font-size: 0.92rem;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--blue); }

.footer-social { display: flex; gap: 14px; margin-top: 6px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.footer-social a:hover { border-color: var(--blue); background: rgba(44,161,240,0.08); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--slate); }
.footer-social a:hover svg { stroke: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--slate-dim);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Utility ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--slate);
}

.badge-amber {
  color: var(--amber);
  border-color: rgba(255,138,61,0.3);
  background: rgba(255,138,61,0.08);
}
.badge-blue {
  color: var(--blue);
  border-color: rgba(44,161,240,0.3);
  background: rgba(44,161,240,0.08);
}

/* Reveal-on-scroll removed for reliability — content is always visible by
   default so nothing depends on JS timing or IntersectionObserver support. */
.reveal { opacity: 1; }

/* ---------- Page hero shared ---------- */

.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
