/* =========================================================
   Next Byte Studio — global stylesheet
   System fonts only. No external requests.
   WCAG 2.2 AA contrast. Mobile-first.
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg:            #0a0d0c;
  --bg-elev:       #111614;
  --surface:       #131918;
  --surface-2:     #1a2120;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:          #e9efe9;
  --text-soft:     #c2cac4;
  --text-muted:    #8a948e;

  --accent:        #b6ff5c;        /* electric lime */
  --accent-press:  #9eea3e;
  --accent-dim:    #4d7a1f;
  --accent-glow:   rgba(182, 255, 92, 0.18);

  --warn:          #ffb84d;
  --danger:        #ff6b6b;
  --ok:            #6cf28a;

  --max-width:     1200px;
  --gutter:        clamp(1rem, 4vw, 2rem);
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 12px 40px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(182,255,92,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(60,180,255,0.04), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

/* ----- typography ----- */

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; color: var(--text-soft); }
p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-soft);
  max-width: 62ch;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

code, kbd, samp, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

::selection { background: var(--accent); color: #0a0d0c; }

/* ----- skip link ----- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0a0d0c;
  padding: 0.75rem 1rem;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ----- layout ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 4rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
}

/* ----- navigation ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 12, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.nav-brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #0a0d0c;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 1.6rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 100%; height: 2px;
  background: var(--accent);
  margin-top: 4px;
  border-radius: 2px;
}

.nav-cta { margin-left: auto; }
.nav-toggle {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-cta { margin-left: 0; }
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem var(--gutter) 1.25rem;
  display: grid;
  gap: 0.25rem;
}
.mobile-menu a {
  display: block;
  padding: 0.85rem 0.25rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { text-decoration: none; color: var(--accent); }
.mobile-menu .btn { margin-top: 0.75rem; width: 100%; }

@media (min-width: 880px) { .mobile-menu { display: none !important; } }

/* ----- buttons ----- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #0a0d0c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: -0.005em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 120ms var(--ease), background 120ms var(--ease), box-shadow 120ms var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-press); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface); color: var(--text); }
.btn--lg { padding: 1.05rem 1.5rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
}
.text-link:hover { gap: 0.65rem; text-decoration: none; }
.text-link svg { width: 14px; height: 14px; }

/* ----- pre-hero banner ----- */
.pre-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.65rem 0;
  text-align: center;
}
.pre-hero strong {
  color: var(--text-soft);
  font-weight: 600;
}
.pre-hero-pin {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.55rem;
  vertical-align: middle;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ----- hero ----- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}
.hero h1 .accent-underline {
  background-image: linear-gradient(transparent 60%, var(--accent-glow) 60%);
  padding: 0 0.1em;
}
.hero-sub {
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  margin: 1.2rem 0 2rem;
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-meta strong {
  display: block;
  font-family: var(--font-sans);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ----- lighthouse gauge ----- */
.gauge-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-2);
}
.gauge-card::before {
  content: "// real-time benchmark";
  position: absolute;
  top: 1rem; left: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.gauge-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}
.gauge {
  position: relative;
  width: 130px;
  aspect-ratio: 1;
}
.gauge svg { transform: rotate(-90deg); }
.gauge-track { stroke: rgba(255,255,255,0.08); }
.gauge-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: stroke-dashoffset 1.2s var(--ease);
}
.gauge-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
}
.gauge-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.gauge-info dt { color: var(--text-muted); }
.gauge-info dd { margin: 0; color: var(--text); font-weight: 600; }
.gauge-info dd .ok { color: var(--ok); }

.gauge-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.gauge-foot span { display: inline-flex; align-items: center; gap: 0.4rem; }
.gauge-foot span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ----- generic section heading ----- */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ----- problem cards ----- */
.problem-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.problem-card .pc-num {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.problem-card .pc-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255, 107, 107, 0.1);
  color: var(--danger);
  border-radius: 8px;
  margin-bottom: 1rem;
}
.problem-card .pc-icon svg { width: 18px; height: 18px; }
.problem-card h3 { margin-bottom: 0.5rem; }
.problem-card p { margin: 0; color: var(--text-soft); font-size: 0.97rem; }

/* ----- solution / numbered points ----- */
.solution {
  position: relative;
  background:
    linear-gradient(180deg, transparent, rgba(182,255,92,0.03) 50%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.solution-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .solution-grid { grid-template-columns: 1fr 1.1fr; } }

.solution-points {
  display: grid;
  gap: 1rem;
}
.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.point-num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #0a0d0c;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
}
.point h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.point p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

/* ----- services grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.service:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.service-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(182,255,92,0.08);
  color: var(--accent);
  border: 1px solid rgba(182,255,92,0.2);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.service-icon svg { width: 20px; height: 20px; }
.service h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.service p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.service-tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(182,255,92,0.08);
  border: 1px solid rgba(182,255,92,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ----- proof / benchmarks ----- */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }

.proof {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.proof::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.6;
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.proof-figure {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.proof-figure .unit { color: var(--accent); font-size: 0.7em; }
.proof p { margin: 0.6rem 0 0; color: var(--text-soft); font-size: 0.95rem; }

/* ----- callout / self-test ----- */
.callout {
  position: relative;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background:
    linear-gradient(135deg, rgba(182,255,92,0.06), rgba(60,180,255,0.04));
  border: 1px solid rgba(182,255,92,0.25);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 760px) {
  .callout { grid-template-columns: 1.5fr auto; gap: 2rem; }
}
.callout h2 { margin-bottom: 0.4rem; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.callout p { margin: 0; color: var(--text-soft); }
.callout .btn { white-space: nowrap; }

/* ----- final CTA ----- */
.final-cta {
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(182,255,92,0.08), transparent 60%);
}
.final-cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.final-cta p { max-width: 56ch; margin-left: auto; margin-right: auto; }
.final-cta .btn { margin-top: 1.5rem; }

/* ----- footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 36ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--text-soft); }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ----- about page ----- */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.page-hero h1 { max-width: 18ch; }
.page-hero p.lead { margin-top: 1rem; }

.timeline {
  display: grid;
  gap: 1rem;
}
.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.timeline-step .step-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  padding-top: 2px;
  min-width: 36px;
}
.timeline-step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.timeline-step p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.value p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.value .v-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-block {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-block p {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--text);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

/* ----- contact form ----- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }

.contact-info dl {
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.contact-info dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}
.contact-info dd a { color: var(--text); }
.contact-info dd a:hover { color: var(--accent); text-decoration: none; }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.form-row { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.form-help {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.form-input,
.form-textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.18);
}
.form-error {
  display: block;
  margin-top: 0.4rem;
  color: var(--danger);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.form-success {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(108,242,138,0.08);
  border: 1px solid rgba(108,242,138,0.3);
  color: var(--ok);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* ----- 404 ----- */
.notfound {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px - 200px);
  text-align: center;
  padding: 4rem 0;
}
.notfound-code {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px var(--accent-glow);
}
.notfound h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.notfound p { max-width: 50ch; margin-left: auto; margin-right: auto; }

/* ----- cookie banner ----- */
.cookie {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-2);
  display: none;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie[data-visible="true"] { display: flex; }
.cookie p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  flex: 1 1 240px;
}
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie .btn { padding: 0.6rem 1rem; font-size: 0.9rem; }

@media (min-width: 760px) {
  .cookie { inset: auto auto 1.5rem 1.5rem; max-width: 520px; }
}

/* ----- work / portfolio ----- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 760px)  { .work-grid { grid-template-columns: repeat(2, 1fr); } }

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}
.work-card .work-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(182,255,92,0.08);
  border: 1px solid rgba(182,255,92,0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.work-card h3 { font-size: 1.2rem; margin: 0; }
.work-card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.work-card .work-stats {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.work-card .work-stats span { display: block; }
.work-card .work-stats strong {
  display: block;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.work-card .work-stats em { color: var(--text-muted); font-style: normal; }

.empty-state {
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}
.empty-state h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.empty-state p { max-width: 50ch; margin: 0 auto 1.5rem; }

/* ----- pricing strip (services page) ----- */
.pricing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .pricing { grid-template-columns: 1fr 1fr; } }

.pricing-tier h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.pricing-tier .price {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin: 0.5rem 0 0.4rem;
}
.pricing-tier .price small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.4rem;
}
.pricing-tier ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.pricing-tier li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.pricing-tier li::before {
  content: "";
  width: 16px; height: 16px; flex: 0 0 16px;
  margin-top: 4px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

/* ----- utility ----- */
.text-mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.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;
}

/* ----- scheduler inline embed (Cal.com) -----
   Cal renders an entire HTML page inside its iframe. The .main flex
   wrapper has no bg class and the Cal.com watermark uses mt-auto to
   push to the bottom, expanding any white gap between the booker card
   and the bottom of the iframe.

   We can't reach inside the cross-origin iframe with CSS, so we have
   to drive everything via Cal's API. cssVarsPerTheme.dark sets every
   cal-bg-* variant dark (including speculative names like cal-bg-page,
   cal-bg-app, cal-bg-default) so whichever variable Cal's body uses
   internally, we've covered it. */
.scheduler-wrap {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  /* Initial height holds the loading spinner; lift the floor once Cal
     reports its real content height so the iframe rules its own size
     across calendar / form / confirmation views. */
  min-height: 480px;
  position: relative;
  box-shadow: var(--shadow-2);
}
.scheduler-wrap[data-loaded="true"] { min-height: 0; }
.scheduler-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  background: var(--surface);
  color-scheme: dark;
}
.scheduler-wrap > #my-cal-inline-discovery-call-15-minutes {
  width: 100%;
}
.scheduler-fallback {
  padding: 2rem;
  text-align: center;
  color: var(--text-soft);
  margin: 0;
}
.scheduler-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  pointer-events: none;
}
.scheduler-wrap[data-loaded="true"] .scheduler-placeholder { display: none; }
.scheduler-spinner {
  width: 36px; height: 36px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .scheduler-spinner { animation: none; border-top-color: var(--border-strong); }
}

/* ----- form section divider ----- */
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ----- footer-bottom inline link ----- */
.footer-bottom a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}
.footer-bottom a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ----- long-form prose (privacy, terms, etc.) ----- */
.prose {
  max-width: 70ch;
  margin: 0 auto;
}
.prose p { color: var(--text-soft); }
.prose h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}
.prose li {
  margin-bottom: 0.5rem;
  color: var(--text-soft);
}
.prose a { font-weight: 500; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0 1.5rem;
}
.prose .updated {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose th {
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prose td { color: var(--text-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose code {
  background: var(--surface);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88em;
}
.prose .sig {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: normal;
}
.prose .sig p { margin: 0; color: var(--text); font-weight: 500; }
.prose .sig p + p { margin-top: 0.25rem; color: var(--text-soft); font-weight: 400; font-size: 0.95rem; }

/* ----- print ----- */
@media print {
  .site-header, .site-footer, .cookie, .nav-toggle, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
