/* ==========================================================
   Hoot Labs — dark mode, deep blues, single orange accent
   ========================================================== */

:root {
  /* Surfaces */
  --bg:        #08090d;
  --bg-alt:    #0b0e17;
  --surface:   #11141d;
  --surface-2: #171b27;
  --line:      rgba(148, 163, 200, 0.12);
  --line-2:    rgba(148, 163, 200, 0.22);

  /* Text */
  --text:      #eef1f8;
  --muted:     #8b93a7;

  /* Brand */
  --orange:    #ff6a1a;
  --orange-2:  #ff8a47;
  --blue:      #3d6bff;
  --blue-2:    #7aa2ff;
  --navy:      #0f1a3d;
  --violet:    #6d4aff;

  /* Type */
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius:    16px;
  --radius-lg: 24px;
  --max:       1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
h1 em, h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--orange); letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.muted  { color: var(--muted); }
.center { text-align: center; }
.mono   { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.label  { color: var(--orange); margin-bottom: 18px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--orange); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange); color: #120700;
  box-shadow: 0 0 0 1px rgba(255,106,26,.4), 0 8px 30px -8px rgba(255,106,26,.6);
}
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue-2); background: rgba(61,107,255,.08); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; color: var(--text); }
.brand-mark .eye { fill: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .25s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child  { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 80px; text-align: center; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 40% at 50% 35%, rgba(61,107,255,.35), transparent 70%),
    radial-gradient(30% 30% at 70% 55%, rgba(109,74,255,.25), transparent 70%),
    radial-gradient(22% 22% at 30% 60%, rgba(255,106,26,.16), transparent 70%);
  filter: blur(10px);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 55% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(17,20,29,.6);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted);
  margin-bottom: 28px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }

.hero h1 { font-size: clamp(48px, 8.5vw, 104px); }
.lead { max-width: 620px; margin: 26px auto 0; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Orbit visual */
.hero-visual { margin: 80px auto 0; width: min(560px, 100%); aspect-ratio: 2 / 1; position: relative; }
.orbit { position: absolute; inset: 0; }
.ring {
  position: absolute; left: 50%; top: 100%;
  border: 1px solid var(--line-2); border-radius: 50%;
  transform: translate(-50%, -50%);
}
.r1 { width: 100%; aspect-ratio: 1; border-color: rgba(122,162,255,.28); }
.r2 { width: 70%;  aspect-ratio: 1; border-color: rgba(122,162,255,.20); }
.r3 { width: 40%;  aspect-ratio: 1; border-color: rgba(255,106,26,.35); }
.node {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue-2); box-shadow: 0 0 18px var(--blue);
  offset-rotate: 0deg;
}
.n1 { left: 6%;  top: 78%; }
.n2 { left: 72%; top: 22%; background: var(--orange); box-shadow: 0 0 18px var(--orange); }
.n3 { left: 38%; top: 58%; }
.n1, .n2, .n3 { animation: pulse 3.2s ease-in-out infinite; }
.n2 { animation-delay: .8s; }
.n3 { animation-delay: 1.6s; }
@keyframes pulse { 0%,100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- Proof ---------- */
.proof { padding: 36px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-row {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 56px;
  color: #59617a; font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2, .about h2, .cta h2 { font-size: clamp(36px, 5vw, 60px); }
.section-head p.muted { margin-top: 16px; font-size: 17px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(122,162,255,.35); transform: translateY(-3px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(61,107,255,.12); border: 1px solid rgba(122,162,255,.25); margin-bottom: 28px;
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue-2); stroke-width: 1.6; stroke-linecap: round; }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }
.card-link { display: inline-block; margin-top: 24px; color: var(--orange); font-size: 14px; font-weight: 500; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.step { padding: 28px 24px 0 0; position: relative; }
.step::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 10px var(--orange);
}
.step-num { font-family: var(--font-mono); font-size: 12px; color: var(--blue-2); }
.step h3 { font-size: 22px; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* Work */
.work-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.work-card { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .25s; }
.work-card:hover { border-color: var(--line-2); }
.work-card:hover .work-thumb { transform: scale(1.03); }
.work-thumb { aspect-ratio: 4 / 3; transition: transform .5s ease; }
.t1 { background: radial-gradient(70% 70% at 30% 30%, rgba(61,107,255,.7), transparent 70%), radial-gradient(60% 60% at 80% 80%, rgba(255,106,26,.55), transparent 70%), var(--navy); }
.t2 { background: radial-gradient(60% 60% at 70% 30%, rgba(109,74,255,.6), transparent 70%), linear-gradient(160deg, #0d1430, #06070b); }
.t3 { background: radial-gradient(55% 55% at 40% 70%, rgba(255,106,26,.5), transparent 70%), linear-gradient(200deg, #121a33, #07080c); }
.work-meta { padding: 22px 24px 26px; }
.work-meta h3 { font-size: 19px; margin-bottom: 6px; }
.work-meta p { font-size: 14px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-body p { font-size: 17px; }
.about-body p + p { margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line-2); }
.stats dt { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 96px 32px; border-radius: 32px;
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line-2);
}
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(61,107,255,.30), transparent 70%),
    radial-gradient(30% 40% at 50% 100%, rgba(255,106,26,.22), transparent 70%);
}
.cta > * { position: relative; }
.cta p.muted { max-width: 520px; margin: 20px auto 34px; font-size: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner a:hover { color: var(--text); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid .work-card:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px; background: rgba(8,9,13,.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links .btn { margin-top: 18px; justify-content: center; }

  .hero { padding: 80px 0 56px; }
  .section { padding: 84px 0; }
  .cards, .work-grid, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stats dt { font-size: 30px; }
  .cta { padding: 64px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
