@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

/* ============================================================
   Variant G — Pencil / Sketch / Interlude Design System
   All colors: OKLCH only. No hex, no rgb.
   ============================================================ */

:root {
  --bg:            oklch(98.5% 0.010 86);
  --text:          oklch(15% 0.010 70);
  --accent-yellow: oklch(80% 0.145 92);
  --accent-pink:   oklch(68% 0.125 355);
  --sketch-line:   oklch(24% 0.010 70);
  --font-mono:     "IBM Plex Mono", monospace;
  --font-display:  "Instrument Serif", Georgia, serif;

  /* Extended tokens */
  --text-dim:      oklch(48% 0.010 65);
  --text-faint:    oklch(68% 0.008 70);
  --surface:       oklch(96.5% 0.012 84);
  --surface-warm:  oklch(93.5% 0.018 82);
  --border:        oklch(78% 0.012 80);
  --border-light:  oklch(88% 0.008 80);
  --yellow-dim:    oklch(92% 0.10 90);
  --pink-dim:      oklch(92% 0.08 350);
  --shadow-warm:   0 1.4rem 4rem oklch(50% 0.035 72 / 0.12);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Type scale */
  --text-xs:   0.65rem;
  --text-sm:   0.78rem;
  --text-base: 0.92rem;
  --text-lg:   1.1rem;
  --text-xl:   1.35rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.4rem;
  --text-4xl:  3.5rem;
  --text-5xl:  5rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; }

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

body {
  background:
    radial-gradient(circle at 12% 8%, oklch(91% 0.055 92 / 0.55), transparent 28rem),
    radial-gradient(circle at 86% 20%, oklch(92% 0.045 355 / 0.38), transparent 24rem),
    linear-gradient(180deg, var(--bg), oklch(96% 0.014 84));
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(90deg, oklch(30% 0.01 70 / 0.035) 1px, transparent 1px),
    linear-gradient(oklch(30% 0.01 70 / 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black 0%, transparent 75%);
}

/* Sketch filter wrapper
   Apply class="sketch-filter" to any element that should look hand-drawn.
   Requires SVG <defs> with id="sketch" to be present in the HTML body. */
.sketch-filter {
  filter: url(#sketch);
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

p { max-width: 60ch; }
p + p { margin-top: var(--space-4); }

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--sketch-line);
  outline-offset: 4px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-12);
  background: oklch(98.5% 0.010 86 / 0.90);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(16px);
}

.nav-logo {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-accent {
  background: var(--accent-yellow);
  color: var(--text);
  padding: 0 var(--space-1);
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

/* Layout helpers */
.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--space-12);
}

.section { padding-block: var(--space-32); }

.section-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-6);
}

/* Hero */
.hero {
  padding-top: calc(var(--space-32) + var(--space-12));
  padding-bottom: var(--space-24);
  min-height: 92svh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7.6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-subheadline {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-dim);
  margin-top: var(--space-6);
  max-width: 48ch;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1.5px solid transparent;
  box-shadow: none;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent-yellow);
  color: var(--text);
  border-color: var(--accent-yellow);
  box-shadow: 0 0.65rem 0 oklch(66% 0.12 92 / 0.18);
}

.btn-primary:hover {
  background: oklch(76% 0.18 90);
  border-color: oklch(76% 0.18 90);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--sketch-line); }

.btn:active { transform: translateY(1px) scale(0.99); }

/* Sketch SVG illustrations */
.sketch-svg { overflow: visible; }

.sketch-svg path,
.sketch-svg circle,
.sketch-svg rect,
.sketch-svg line,
.sketch-svg polyline,
.sketch-svg ellipse {
  fill: none;
  stroke: var(--sketch-line);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Feature rows — asymmetric, not identical card grid */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  padding-block: var(--space-16);
  border-top: 1px solid var(--border-light);
  position: relative;
}

.feature-row:last-child { border-bottom: 1px solid var(--border-light); }

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-number {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}

.feature-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.feature-body {
  color: var(--text-dim);
  font-size: var(--text-base);
  line-height: 1.75;
}

.feature-tag {
  display: inline-block;
  margin-top: var(--space-6);
  padding: var(--space-1) var(--space-3);
  background: var(--yellow-dim);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* Proof / numbers strip */
.proof-strip {
  background:
    linear-gradient(135deg, oklch(95% 0.025 88), var(--surface-warm));
  border-block: 1px solid var(--border-light);
  padding-block: var(--space-16);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.65), inset 0 -1px 0 oklch(70% 0.02 80 / 0.18);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
}

.proof-item {
  border-left: 2px solid var(--accent-yellow);
  padding-left: var(--space-6);
  min-width: 0;
}

.proof-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.proof-label {
  font-size: var(--text-sm);
  color: var(--text-dim);
  margin-top: var(--space-2);
  font-weight: 400;
}

/* Services section */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-12);
  gap: var(--space-8);
}

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: var(--space-8);
  align-items: start;
  padding-block: var(--space-8);
  border-top: 1px solid var(--border-light);
  transition: background 0.18s ease, padding-inline 0.18s ease;
}

.service-item:hover {
  background: oklch(97% 0.018 86 / 0.72);
  padding-inline: var(--space-4);
}

.service-item:last-child { border-bottom: 1px solid var(--border-light); }

.service-index {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  padding-top: 0.1rem;
}

.service-name {
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-dim);
  font-weight: 300;
  max-width: 52ch;
}

.service-price {
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  padding-top: 0.15rem;
}

/* Footer */
.footer {
  background:
    radial-gradient(circle at 82% 20%, oklch(88% 0.045 92 / 0.42), transparent 22rem),
    var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--space-16);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.footer-brand {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-dim);
  font-weight: 300;
  max-width: 32ch;
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  color: var(--text-dim);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-faint);
}
