/* mattgreenworks.co.uk — shared site styles */

:root {
  --bg: #0b0b0d;
  --bg-soft: #131318;
  --panel: #17171c;
  --panel-hover: #1f1f26;
  --border: #25252e;
  --border-hover: #4a4a55;
  --text: #f2f2f4;
  --muted: #9a9aa6;
  --muted-soft: #6e6e7a;
  --accent: #ffd500;        /* TVR yellow / brand */
  --accent-hot: #ff7a18;    /* spike-hook orange for CTAs */
  --accent-cool: #00d2ff;   /* tech / app accent */
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--text);
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.nav-links {
  display: flex; gap: 22px;
  flex: 1;
  font-size: 14px;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-hot);
  color: #000 !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--accent-hot);
}
@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ── Layout ────────────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 800;
}
h1 .accent { color: var(--accent); }
h1 .hot { color: var(--accent-hot); }
h1 .cool { color: var(--accent-cool); }
h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}
h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.lede strong { color: var(--text); font-weight: 600; }

.section-head {
  margin-bottom: 32px;
}
.section-head .eyebrow { margin-bottom: 8px; }
.section-head .sub {
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 620px;
  font-size: 16px;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 20% 10%, rgba(255, 213, 0, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 30%, rgba(255, 122, 24, 0.07), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent-hot);
  color: #000 !important;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px var(--accent-hot);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-hover);
  color: var(--text) !important;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}
.btn-accent {
  background: var(--accent);
  color: #000 !important;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px var(--accent);
}

/* ── Cards ─────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  text-decoration: none;
  background: var(--panel-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.card-tag {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 213, 0, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.card-tag.cool { color: var(--accent-cool); background: rgba(0, 210, 255, 0.08); }
.card-tag.hot  { color: var(--accent-hot);  background: rgba(255, 122, 24, 0.08); }
.card-tag.muted{ color: var(--muted);       background: rgba(154, 154, 166, 0.08); }
.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.card-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--muted-soft);
  font-size: 18px;
  transition: color 0.15s, transform 0.15s;
}
.card:hover .card-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.card-foot {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
}
.card-foot .meta { color: var(--accent); }
.card.featured {
  border-color: rgba(255, 213, 0, 0.3);
  background: linear-gradient(180deg, rgba(255, 213, 0, 0.06), var(--panel) 70%);
}
.card.featured:hover { border-color: var(--accent); }

.card.cool { background: linear-gradient(180deg, rgba(0, 210, 255, 0.05), var(--panel) 70%); }
.card.hot  { background: linear-gradient(180deg, rgba(255, 122, 24, 0.05), var(--panel) 70%); }

/* ── YouTube CTA banner ───────────────────────────────────────── */
.subscribe-banner {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 0, 0, 0.18), transparent 60%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.subscribe-banner h2 {
  margin: 0;
  font-size: 26px;
  flex: 1 1 320px;
}
.subscribe-banner h2 .yt { color: #ff0000; }
.subscribe-banner p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}
.subscribe-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Stats strip ───────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 28px 0 0;
}
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.stat .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
}
.stat .label {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}

/* ── Two-col split ─────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}
.split-art {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Spec table ────────────────────────────────────────────────── */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec th, .spec td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.spec th {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spec td { color: var(--text); }
.spec tr:last-child td { border-bottom: 0; }

/* ── Pill list ─────────────────────────────────────────────────── */
.pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; padding: 0; margin: 16px 0 0;
}
.pills li {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

/* ── Process list ──────────────────────────────────────────────── */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0; margin: 0;
}
.steps li {
  counter-increment: step;
  padding: 14px 14px 14px 56px;
  border-left: 2px solid var(--border);
  margin-left: 14px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.steps li strong { display: block; margin-bottom: 4px; }
.steps li p { color: var(--muted); margin: 0; font-size: 14px; }

/* ── Footer ────────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 13px;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
}
footer.site h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 600;
}
footer.site ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
footer.site ul a { color: var(--muted); }
footer.site ul a:hover { color: var(--text); text-decoration: none; }
footer.site .colophon { margin-top: 24px; color: var(--muted-soft); }
footer.site .colophon strong { color: var(--text); }

/* ── Page header (used by sub-pages) ──────────────────────────── */
.page-head {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 16px 0 12px;
}
.page-head .lede { margin-bottom: 0; }

/* ── Utility ───────────────────────────────────────────────────── */
.muted { color: var(--muted); }
.text-sm { font-size: 14px; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.flex { display: flex; gap: 12px; align-items: center; }
.wrap-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
