/* Verjast — near-black, one cyan accent, Space Grotesk display type */

:root {
  --bg: #161616;
  --bg-subtle: #1d1d1d;
  --surface: #232323;
  --border: #2e2e2e;
  --border-light: #3d3d3d;
  --text: #f2f2f2;
  --text-muted: #9d9d9d;
  --text-dim: #6f6f6f;
  --cyan: #00d4e1;
  --cyan-dark: #00b8c4;
  --cyan-glow: rgba(0, 212, 225, 0.1);
  --cyan-glow-strong: rgba(0, 212, 225, 0.22);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- JS effect layer ---------- */

#net {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.topbar,
.hero,
.credentials,
.references,
.services,
.who,
.cta,
.footer {
  position: relative;
  z-index: 2;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  line-height: 1;
  transition: color 0.2s ease;
}

.brand:hover .brand-text {
  color: var(--cyan);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
  will-change: transform;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--cyan);
  color: #0a0a0a;
  box-shadow: 0 4px 20px var(--cyan-glow-strong);
}

.btn-primary:hover {
  background: var(--cyan-dark);
  box-shadow: 0 6px 28px var(--cyan-glow-strong);
}

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

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

/* ---------- Hero ---------- */

.hero {
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.accent-text {
  color: var(--cyan);
}

.accent-text.scrambling {
  text-shadow: 0 0 18px var(--cyan-glow-strong);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Scroll reveal (used sparingly) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Sections ---------- */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

/* ---------- Credentials ---------- */

.credentials {
  padding: 1rem 1.5rem 0;
}

.credentials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.cert-list li {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.cert-list li:hover {
  color: var(--cyan);
  border-color: var(--cyan-dark);
}

/* ---------- References / Services ---------- */

.references,
.services {
  padding: 4rem 1.5rem;
}

.references-inner,
.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Editorial index list — hairline rows, no card boxes */
.index-list {
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.index-item {
  display: grid;
  grid-template-columns: minmax(220px, 5fr) 7fr;
  gap: 2rem;
  align-items: baseline;
  padding: 1.75rem 0.25rem;
  border-top: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.index-item:hover {
  background-color: var(--bg-subtle);
}

.index-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.index-list-lg .index-item h3 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.01em;
}

.index-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- References ---------- */

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.client-logo {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.client-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.client-logo img {
  height: 2.75rem;
  width: auto;
  display: block;
}

/* ---------- Who I help ---------- */

.who {
  padding: 4rem 1.5rem;
}

.who-inner {
  max-width: 900px;
  margin: 0 auto;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.who-col {
  border-top: 2px solid var(--cyan);
  padding-top: 1.5rem;
}

.who-col h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.who-col ul {
  list-style: none;
}

.who-col li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.who-col li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ---------- CTA ---------- */

.cta {
  padding: 4.5rem 1.5rem;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 3.25rem 2rem;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.cta-mail {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

.cta-mail a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
}

.cta-mail a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  opacity: 0.7;
  line-height: 1;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- Error / placeholder page ---------- */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.error-page a:not(.btn) {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
}

.error-page a:not(.btn):hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .hero {
    padding: 4rem 1.25rem 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .index-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .who-grid {
    gap: 2.25rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .topbar-inner {
    padding: 0.75rem 1rem;
  }

  .topbar-nav {
    gap: 0.875rem;
  }

  .nav-link {
    display: none;
  }
}
