/* Techzura redesign — design tokens */
:root {
  --bg: #FAFAF8;
  --bg-elev: #FFFFFF;
  --bg-sunken: #F2F2EF;
  --ink: #0A0A0B;
  --ink-2: #2B2B2E;
  --ink-3: #5E5E63;
  --ink-4: #9A9A9F;
  --line: #E6E5E1;
  --line-2: #D6D5CF;

  --accent: #008EE6;
  --accent-ink: #0070B8;
  --accent-wash: #E8F4FC;

  --ok: #1E9E55;
  --warn: #C77E00;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-xl: 32px;

  --shadow-s: 0 1px 2px rgba(10,10,11,0.04), 0 1px 1px rgba(10,10,11,0.03);
  --shadow-m: 0 10px 30px -12px rgba(10,10,11,0.12), 0 2px 6px rgba(10,10,11,0.04);
  --shadow-l: 0 40px 80px -30px rgba(10,10,11,0.22), 0 8px 20px -10px rgba(10,10,11,0.06);

  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --container: 1280px;
  --container-wide: 1440px;
  --gutter: 32px;
}

@media (max-width: 820px) {
  :root { --gutter: 24px; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
}

/* Prevent any rogue horizontal scroll on small screens */
html, body { overflow-x: clip; }

:root[data-theme="dark"] {
  --bg: #0A0A0B;
  --bg-elev: #141416;
  --bg-sunken: #050506;
  --ink: #F6F6F3;
  --ink-2: #D6D6D2;
  --ink-3: #9A9A9F;
  --ink-4: #5E5E63;
  --line: #24242A;
  --line-2: #33333A;

  --accent: #2AA8F0;
  --accent-ink: #7CC9F5;
  --accent-wash: #0F2A3C;

  --ok: #34C871;
  --warn: #E5A84A;

  --shadow-s: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-m: 0 10px 30px -12px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-l: 0 40px 80px -30px rgba(0,0,0,0.7), 0 8px 20px -10px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

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

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 580;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
}
.display-xl { font-size: clamp(44px, 8vw, 112px); line-height: 1; }
.display-l  { font-size: clamp(36px, 6vw, 84px); line-height: 1.02; }
.display-m  { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.05; }
.display-s  { font-size: clamp(22px, 2.6vw, 40px); line-height: 1.1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.lede {
  font-size: clamp(19px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  max-width: 58ch;
}
.body-m { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.body-s { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.mono  { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-3); }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(48px, 6vw, 80px) 0; }
section + section { border-top: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500; font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #1c1c20; }
:root[data-theme="dark"] .btn-primary { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-plain { padding: 0; height: auto; background: none; color: var(--ink); border: none; border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn-plain:hover { color: var(--accent); border-color: var(--accent); transform: none; }

.arrow { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.75; fill: none; }

/* Pills & chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 20%, transparent); }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* Card */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
}

/* Utility: dotted grid background */
.bg-grid {
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Scroll anchor offset */
[id] { scroll-margin-top: 96px; }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Section header block */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head .title { flex: 1 1 360px; min-width: 0; }
.sec-head .title h2 { margin: 12px 0 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; max-width: 22ch; }
.sec-head .aside { flex: 0 1 360px; max-width: 42ch; }
@media (max-width: 900px) { .sec-head { margin-bottom: 28px; gap: 20px; } }

/* Divider line with mono label */
.rule {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 24px 0;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule.one-side::before { display: none; }
