/* ==========================================================================
   Spider Development — site styles
   Built around the logo: charcoal surfaces (logo gray #3a3a3c), logo lime #d6de21 accent, Inter type.
   ========================================================================== */

:root {
  --bg: #17171a;
  --bg-alt: #1d1d20;
  --surface: #242427;
  --surface-2: #2c2c30;
  --border: #3a3a3c;
  --text: #f1f2ec;
  --text-muted: #a9aaa3;
  --accent: #d6de21;
  --accent-strong: #bfc712;
  --accent-ink: #1c1e04;
  --danger: #fb7185;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 23, 26, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-accent { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--text-muted); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .nav-cta {
  color: var(--accent-ink); background: var(--accent);
  padding: 9px 16px; border-radius: 999px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--accent-strong); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 42px; height: 38px; padding: 8px; cursor: pointer; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; border-bottom: 1px solid var(--border); }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(214, 222, 33, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 222, 33, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 780px; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }

.hero-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.35rem; color: var(--accent); }
.hero-stats span { color: var(--text-muted); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { color: var(--text); border-color: var(--border); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-intro { color: var(--text-muted); font-size: 1.05rem; }
.page-top { padding-top: 56px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(214, 222, 33, .12); color: var(--accent); margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

/* Tech grid */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tech {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: .92rem;
}
.tech-k { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.step-num { font-family: var(--mono); color: var(--accent); font-size: .85rem; display: block; margin-bottom: 12px; }

/* Quote */
.pull-quote {
  margin: 0; padding: 32px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; align-self: center;
}
.pull-quote p { font-size: 1.35rem; font-weight: 600; line-height: 1.35; margin: 0 0 12px; }
.pull-quote footer { color: var(--text-muted); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Contact / form
   -------------------------------------------------------------------------- */
.contact-split { grid-template-columns: 1fr 1.2fr; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; }
.contact-k { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .9rem; font-weight: 500; }
.req { color: var(--accent); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field textarea, .field select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa8bd' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 222, 33, .2);
}

.field-error { color: var(--danger); font-size: .82rem; }
.form-errors { color: var(--danger); font-size: .9rem; margin-bottom: 14px; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.form-note { color: var(--text-muted); font-size: .82rem; margin: 14px 0 0; text-align: center; }

/* Honeypot — keep off-screen, never display:none (some bots skip hidden inputs). */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-thanks { text-align: center; padding: 24px 8px; }
.form-thanks svg { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 14px; }
.form-thanks p { color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Prose pages (privacy, error)
   -------------------------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.25rem; margin-top: 2em; }
.prose p { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 52px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.footer-heading { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .82rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split, .contact-split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 8px 20px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-nav .nav-cta { margin-top: 12px; text-align: center; border: 0; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 60px 0; }
  .card-grid, .steps, .tech-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* --------------------------------------------------------------------------
   Illustrations
   -------------------------------------------------------------------------- */
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; max-width: var(--container); }
.hero-art img { width: 100%; height: auto; }
.art { margin: 0; }
.art img { width: 100%; height: auto; border-radius: var(--radius); }
.art-sm { max-width: 420px; margin-top: 28px; }
.feature-row { margin-top: 56px; align-items: center; }
.feature-title { font-size: 1.5rem; }
.feature-row p { color: var(--text-muted); }
address { font-style: normal; }
.site-footer address { color: var(--text-muted); margin-top: 8px; }

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
}

/* --------------------------------------------------------------------------
   Logo + slogan
   -------------------------------------------------------------------------- */
.brand img { height: 50px; width: auto; display: block; }
.footer-logo { height: 58px; width: auto; margin-bottom: 10px; }
.footer-slogan { color: var(--accent); font-weight: 600; margin: 0; }
.accent { color: var(--accent); }
@media (max-width: 720px) { .brand img { height: 38px; } }
