/* =========================================================================
   Edge Labs — standalone site styles
   No build step. Edit the tokens below to retheme the whole site.
   ========================================================================= */

:root {
  /* Brand */
  --accent: #0FE26E;
  --accent-dark: #0BC95E;
  --accent-ink: #063D1F;
  --accent-tint: rgba(15, 226, 110, 0.12);

  /* Light surfaces */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F3F4F5;
  --border: #E5E7EA;
  --ink: #111417;
  --ink-2: #3D444B;
  --muted: #6B7380;

  /* Dark surfaces */
  --dark-bg: #0B0D0F;
  --dark-surface: #14171B;
  --dark-surface-2: #1B1F24;
  --dark-border: rgba(255, 255, 255, 0.09);
  --dark-ink: #F4F5F6;
  --dark-muted: #9AA1A9;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Berkeley Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: calc(var(--section-y) * 0.6); padding-bottom: calc(var(--section-y) * 0.6); }
.section--alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--dark-bg); color: var(--dark-ink); }
.section--dark .muted { color: var(--dark-muted); }
.section--accent { background: var(--accent); color: var(--accent-ink); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 1rem; }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.section--dark .section-head p { color: var(--dark-muted); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}
.section--dark .eyebrow { color: var(--accent); }

.muted { color: var(--muted); }
.lede { font-size: 1.25rem; line-height: 1.55; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.split--wide-right { grid-template-columns: 1fr 1.3fr; }
.split--top { align-items: start; }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide-right { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9375rem; font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--border); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.section--dark .btn--ghost, .hero .btn--ghost { border-color: rgba(255,255,255,0.18); color: var(--dark-ink); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(255,255,255,0.06); }
.btn--light { background: var(--surface); color: var(--accent-ink); }
.btn--light:hover { background: #F0F0F0; }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.link { color: var(--accent-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link svg { width: 16px; height: 16px; }
.section--dark .link { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 15, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--dark-border);
  color: var(--dark-ink);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: -0.01em; }
.brand img { height: 20px; width: auto; }
.brand span { font-size: 1.125rem; line-height: 1; padding-top: 1px; }
.brand small {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark-muted); margin-left: 0.5rem; padding-left: 0.6rem; border-left: 1px solid var(--dark-border);
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-size: 0.9375rem; color: var(--dark-muted); transition: color 0.15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--dark-ink); }
.nav .btn { margin-left: 0.5rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--dark-border); color: var(--dark-ink);
  border-radius: 8px; width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .brand small { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark-bg); border-bottom: 1px solid var(--dark-border);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--dark-border); font-size: 1.0625rem; }
  .nav a:last-of-type { border-bottom: 0; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark-bg); color: var(--dark-ink);
  padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  right: -20vw; top: -30vw;
  background: radial-gradient(circle, rgba(15, 226, 110, 0.16), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: 1.02; margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: var(--dark-muted); max-width: 36rem; margin-bottom: 2.25rem; }
.hero--page { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero--page h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
a.card { display: block; }
.card:hover { border-color: var(--accent); box-shadow: 0 14px 40px -24px rgba(0,0,0,0.25); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.9875rem; }
.card--dark { background: var(--dark-surface); border-color: var(--dark-border); color: var(--dark-ink); }
.card--dark p { color: var(--dark-muted); }
.card--dark:hover { border-color: rgba(15, 226, 110, 0.5); box-shadow: none; }
.card--featured { border-color: var(--accent); box-shadow: 0 20px 50px -30px rgba(15, 226, 110, 0.5); }
.card--static:hover { border-color: var(--border); box-shadow: none; transform: none; }
.card--dark.card--static:hover { border-color: var(--dark-border); }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent-dark); margin-bottom: 1.25rem;
}
.icon-badge svg { width: 22px; height: 22px; }
.section--dark .icon-badge, .card--dark .icon-badge { color: var(--accent); }

.step-no { font-family: var(--font-mono); font-weight: 700; color: var(--accent-dark); font-size: 0.875rem; margin-bottom: 1rem; display: block; }
.section--dark .step-no { color: var(--accent); }

.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0; }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 0.25rem; color: var(--accent-dark); }
.section--dark .check-list li { color: #D5D9DE; }
.section--dark .check-list svg, .card--dark .check-list svg { color: var(--accent); }

.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-mono); font-size: 2.5rem; color: var(--accent); line-height: 1; }
.stat span { display: block; margin-top: 0.5rem; font-size: 0.875rem; color: var(--dark-muted); }

/* Case-study cards */
.case { display: flex; flex-direction: column; gap: 1rem; }
.case .metric { font-family: var(--font-mono); font-size: 2.25rem; line-height: 1; font-weight: 700; color: var(--ink); }
.case .metric small { display: block; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-top: 0.4rem; }
.case .tag { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-size: 1.125rem; }

/* Industry chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.9rem; font-weight: 500; transition: border-color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--accent); background: var(--accent-tint); }
.chip svg { width: 16px; height: 16px; color: var(--accent-dark); }

/* ---------- Placeholders (replace before launch) ---------- */
.ph {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
    var(--dark-surface-2);
  border: 1px dashed rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark-muted); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 1rem;
}
.ph--light {
  background: repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 12px, transparent 12px 24px), var(--surface-2);
  border-color: #C9CDD2; color: var(--muted);
}
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--portrait { aspect-ratio: 3 / 4; }

.logo-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; align-items: center; }
.logo-strip .ph { aspect-ratio: 3 / 1; border-radius: 10px; font-size: 0.6875rem; }
@media (max-width: 900px) { .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid .ph:first-child { grid-column: 1 / -1; }
.media-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .media-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Report card ---------- */
.report {
  background: var(--dark-surface); border: 1px solid var(--dark-border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2.25rem); color: var(--dark-ink);
}
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--dark-border); margin-bottom: 1.25rem; }
.report-head .eyebrow { margin: 0; }
.report-head time { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--dark-muted); }
.report h3 { font-size: 1.375rem; margin-bottom: 1.25rem; }
.report-item { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; padding: 0.9rem 0; border-top: 1px solid var(--dark-border); }
.report-item:first-of-type { border-top: 0; }
.report-item .k { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); font-weight: 700; padding-top: 0.2rem; }
.report-item b { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.report-item p { font-size: 0.9rem; color: var(--dark-muted); }
.report-skeleton { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
.report-skeleton i { display: block; height: 8px; border-radius: 999px; background: var(--dark-surface-2); }
.report-skeleton i:nth-child(2) { width: 82%; }
.report-skeleton i:nth-child(3) { width: 61%; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.9875rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.8rem 0.95rem; -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7380' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.85rem center; background-repeat: no-repeat; background-size: 1.1rem; padding-right: 2.5rem;
}
.form-note { font-size: 0.8125rem; color: var(--muted); }

/* ---------- Definition / detail lists ---------- */
.detail { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.detail:last-child { border-bottom: 1px solid var(--border); }
.detail dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.detail dd { margin: 0; }
@media (max-width: 640px) { .detail { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.person h3 { font-size: 1.0625rem; margin-top: 1rem; }
.person p { font-size: 0.9rem; }
.person .role { color: var(--accent-dark); font-weight: 600; font-size: 0.8125rem; margin-bottom: 0.4rem; }

/* ---------- Prose (long-form pages) ---------- */
.prose { max-width: 44rem; }
.prose p + p { margin-top: 1.1rem; }
.prose h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin: 1rem 0; }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--accent-dark); }

/* ---------- CTA band ---------- */
.cta-band .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(6, 61, 31, 0.8); }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 900px) {
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-bg); color: var(--dark-muted); border-top: 1px solid var(--dark-border); padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-grid h4 { color: var(--dark-ink); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono); margin-bottom: 1rem; }
.footer-grid li { margin: 0.45rem 0; }
.footer-grid a:hover { color: var(--dark-ink); }
.footer-brand p { max-width: 26rem; margin-top: 1rem; }
.footer-brand .brand { color: var(--dark-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--dark-border); font-size: 0.8125rem; }
.footer-bottom a:hover { color: var(--dark-ink); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.max-w-prose { max-width: 44rem; }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.small { font-size: 0.875rem; }

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