@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* ── RESET & VARIABLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0A0E1A;
  --ink2: #3D4460;
  --ink3: #8892A4;
  --bg: #F4F3EF;
  --mat: #1D73BE;
  --mat-dark: #145596;
  --mat-pale: #E8F3FB;
  --green: #5CB85C;
  --border: rgba(10, 14, 26, 0.08);
  --border-md: rgba(10, 14, 26, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(244, 243, 239, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.logo-accent {
  color: var(--mat);
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: var(--green);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 13px;
  color: var(--ink2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: white;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--mat);
}

/* ── HERO ── */
.hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--mat);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-label::before {
  content: '//';
  color: var(--ink3);
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero h1 strong {
  color: var(--mat);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  background: var(--ink);
  color: white;
  padding: 11px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--mat);
}

.btn-soft {
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Fira Code', monospace;
  transition: color 0.2s;
}

.btn-soft::after {
  content: '→';
  transition: transform 0.2s;
}

.btn-soft:hover {
  color: var(--ink);
}

.btn-soft:hover::after {
  transform: translateX(3px);
}

/* ── TERMINAL ── */
.terminal {
  background: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px rgba(10, 14, 26, 0.2);
}

.term-bar {
  background: rgba(255, 255, 255, 0.04);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.term-file {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  margin-left: auto;
}

.term-body {
  padding: 1.25rem 1.4rem;
  font-family: 'Fira Code', monospace;
  font-size: 11.5px;
  line-height: 1.85;
}

.t-comment { color: rgba(255, 255, 255, 0.2); }
.t-fn      { color: #79C0FF; }
.t-str     { color: #A8D8A8; }
.t-key     { color: #7DD3B0; }
.t-val     { color: #F6AD55; }
.t-ok      { color: var(--green); }
.t-white   { color: rgba(255, 255, 255, 0.82); }

/* ── TRUST ROW ── */
.trust-row {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item .check {
  color: var(--green);
}

/* ── SECTIONS ── */
.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.section.no-top {
  padding-top: 0;
}

.sec-label {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--ink3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sec-label::before {
  content: '//';
  color: rgba(10, 14, 26, 0.2);
}

.sec-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.sec-sub {
  font-size: 0.9rem;
  color: var(--ink2);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-md);
  transform: translateY(-8px) scale(1.5);
  box-shadow: 0 20px 48px rgba(10, 14, 26, 0.15);
  position: relative;
  z-index: 10;
}

/* Browser chrome */
.project-screen {
  height: 180px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.browser-chrome {
  background: #E8E8E8;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #D5D5D5;
  flex-shrink: 0;
}

.b-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.b-bar {
  flex: 1;
  background: white;
  border-radius: 4px;
  height: 16px;
  margin: 0 6px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.b-url {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Eredivisie Preview mockup */
.ep-header {
  background: #283149;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-site-icon {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.ep-logo-text {
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ep-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.ep-nav span {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
}

.ep-body {
  background: #1E2738;
  flex: 1;
  padding: 10px 12px;
}

.ep-hero-text {
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ep-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  margin-bottom: 8px;
}

.ep-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.ep-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 5px;
  text-align: center;
}

.ep-card-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
}

.ep-card-val {
  color: #4FC3F7;
  font-size: 11px;
  font-weight: 700;
}

/* Blessures & Schorsingen mockup */
.bs-header {
  background: #C8102E;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bs-logo-text {
  color: white;
  font-size: 10px;
  font-weight: 700;
}

.bs-body {
  background: #F8F8F8;
  flex: 1;
  padding: 10px 12px;
}

.bs-title {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.bs-table {
  width: 100%;
  border-collapse: collapse;
}

.bs-table td {
  font-size: 8px;
  padding: 3px 4px;
  border-bottom: 1px solid #EEE;
  color: #444;
}

.bs-table td:first-child {
  font-weight: 600;
  color: #111;
}

.bs-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 700;
}

.bs-red    { background: #C8102E; color: white; }
.bs-orange { background: #FF6B00; color: white; }
.bs-green  { background: #5CB85C; color: white; }

/* Knocks & Bans mockup */
.kb-header {
  background: #0F172A;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kb-logo {
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
}

.kb-live-tag {
  background: #3B82F6;
  color: white;
  font-size: 7px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}

.kb-body {
  background: #0F172A;
  flex: 1;
  padding: 10px 12px;
}

.kb-title {
  color: white;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.kb-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.kb-name {
  color: rgba(255, 255, 255, 0.85);
  font-size: 8px;
  flex: 1;
}

.kb-club {
  color: rgba(255, 255, 255, 0.35);
  font-size: 7px;
}

.kb-status {
  font-size: 7px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
}

.kb-injured  { background: rgba(239, 68, 68, 0.2);  color: #F87171; }
.kb-banned   { background: rgba(251, 191, 36, 0.2);  color: #FBB024; }

/* Project card meta */
.project-meta {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-domain {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--mat);
  font-weight: 500;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.project-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.project-desc {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.6;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0.9rem;
}

/* Chips */
.chip {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--ink2);
  border: 1px solid var(--border);
  font-family: 'Fira Code', monospace;
}

.chip.matomo {
  background: var(--mat-pale);
  color: var(--mat-dark);
  border-color: rgba(29, 115, 190, 0.2);
}

/* ── IMPLEMENTATION ── */
.impl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.impl-card {
  background: white;
  border-radius: 13px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.impl-card:hover {
  border-color: var(--border-md);
  transform: translateY(-2px);
}

.impl-tag {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--mat);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.impl-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.impl-card p {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 1rem;
}

/* ── PRIVACY DARK ── */
.privacy-dark {
  background: var(--ink);
  padding: 4.5rem 2rem;
}

.privacy-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.privacy-dark .sec-label {
  color: rgba(255, 255, 255, 0.3);
}

.privacy-dark .sec-label::before {
  color: rgba(255, 255, 255, 0.12);
}

.privacy-dark .sec-title {
  color: white;
  margin-bottom: 1rem;
}

.privacy-intro {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 3rem;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
}

.p-card {
  background: var(--ink);
  padding: 1.75rem;
}

.p-card-label {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.p-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.4rem;
}

.p-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.65;
}

/* Code compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 3rem;
}

.compare-block {
  background: var(--ink);
  padding: 1.25rem 1.4rem;
}

.compare-label {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.compare-label.bad  { color: #F87171; }
.compare-label.good { color: var(--green); }

.code-line {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.35);
  display: block;
}

.code-line.hi  { color: rgba(255, 255, 255, 0.75); }
.code-line.red { color: #F87171; }
.code-line.grn { color: var(--green); }

/* ── HOW WE WORK ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.how-step {
  background: white;
  padding: 1.75rem 1.5rem;
}

.step-num {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--mat);
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.how-step h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.how-step p {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
}

/* ── CTA ── */
.cta-wrap {
  padding: 0 2rem 4rem;
}

.cta {
  max-width: 1060px;
  margin: 0 auto;
  background: var(--mat);
  border-radius: 16px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cta h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 0.5rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.65;
}

.btn-white {
  background: white;
  color: var(--mat);
  padding: 12px 26px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-white:hover {
  opacity: 0.9;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 12px;
  color: var(--ink3);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 12px;
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem 2.5rem;
  }

  .hero h1 { font-size: 2rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .impl-grid     { grid-template-columns: 1fr; }
  .privacy-grid  { grid-template-columns: 1fr; }
  .compare       { grid-template-columns: 1fr; }
  .how-grid      { grid-template-columns: 1fr 1fr; }

  .cta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.75rem;
  }

  .cta .btn-white { margin: 0 auto; display: inline-block; }

  nav { padding: 0 1.5rem; }
  .nav-link { display: none; }
  .trust-row { gap: 1.25rem; padding: 1rem 1.5rem; }
  .section { padding: 3rem 1.5rem; }
  .privacy-dark { padding: 3rem 1.5rem; }
  .cta-wrap { padding: 0 1.5rem 3rem; }
  footer { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 500px) {
  .how-grid { grid-template-columns: 1fr; }
}
