/* ============================================================
   3L3V8T3D INTEGRATION — DESIGN SYSTEM
   Anti-corporate. Brutalist. Elevated grit.
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg:          #080808;
  --surface:     #111111;
  --surface-2:   #161616;
  --text:        #f0ece0;
  --text-muted:  #888888;
  --text-dim:    #444444;
  --accent:      #ff4d00;
  --accent-2:    #b8ff00;
  --border:      #222222;
  --border-light:#2e2e2e;

  --font-display: 'Courier New', Courier, monospace;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max-w: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Utility ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono { font-family: var(--font-display); }
.label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.label--accent { color: var(--accent-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ── Glitch animation ──────────────────────────────────────── */
@keyframes glitch-1 {
  0%, 90%, 100% { clip-path: none; transform: none; }
  92%  { clip-path: polygon(0 20%, 100% 20%, 100% 35%, 0 35%); transform: translate(-3px, 0); }
  94%  { clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%); transform: translate(3px, 0); }
  96%  { clip-path: polygon(0 5%,  100% 5%,  100% 15%, 0 15%); transform: translate(-2px, 0); }
}
@keyframes glitch-2 {
  0%, 85%, 100% { opacity: 0; }
  87%  { opacity: 1; transform: translate(4px, -2px); color: var(--accent); }
  89%  { opacity: 1; transform: translate(-4px, 2px); color: var(--accent-2); }
  91%  { opacity: 0; }
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  border-color: var(--border);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(12px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav__logo-mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
  display: inline-block;
}
.nav__logo-mark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--accent);
  animation: glitch-2 7s infinite;
  pointer-events: none;
}
.nav__logo-mark { animation: glitch-1 7s infinite; }
.nav__logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #080808;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(var(--max-w) / 12),
      rgba(255,255,255,0.015) calc(var(--max-w) / 12),
      rgba(255,255,255,0.015) calc(var(--max-w) / 12 + 1px)
    );
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(4rem, 12vh, 8rem);
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent-2);
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.hero__headline em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero__note {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2rem;
  letter-spacing: 0.04em;
}
.hero__deco {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-light);
  user-select: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
}
.hero__cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: cursor-blink 1.1s step-end infinite;
  margin-left: 0.1em;
}

/* ── Section shared ────────────────────────────────────────── */
.section {
  padding-block: clamp(4rem, 10vw, 7rem);
  position: relative;
}
.section--alt { background: var(--surface); }
.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 0.75rem;
}

/* ── Diagonal divider ──────────────────────────────────────── */
.divider-clip {
  height: 60px;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
  margin-top: -1px;
}
.divider-clip--reverse {
  background: var(--bg);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

/* ── Pain cards ─────────────────────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pain-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  border-left: 3px solid var(--accent);
  position: relative;
  transition: background 0.2s;
}
.pain-card:hover { background: var(--surface-2); }
.pain-card__num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.pain-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.pain-card__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Services (The Work) ────────────────────────────────────── */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.work-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: start;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
.work-item:hover { border-color: var(--border-light); }
.work-item__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--border-light);
  letter-spacing: -0.05em;
  line-height: 1;
  transition: color 0.2s;
}
.work-item:hover .work-item__num { color: var(--accent); }
.work-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.work-item__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.7;
}
.work-item__arrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  align-self: center;
  white-space: nowrap;
  transition: color 0.2s;
}
.work-item:hover .work-item__arrow { color: var(--accent); }

/* ── Process timeline ───────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--border-light);
}
.process-step {
  padding: 0 2rem 0 0;
  position: relative;
  z-index: 1;
}
.process-step__dot {
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--border-light);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.process-step--active .process-step__dot {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(184,255,0,0.06);
}
.process-step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.process-step__body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 28ch;
}

/* ── Social proof bar ───────────────────────────────────────── */
.proof-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem;
}
.proof-bar__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.proof-stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
.proof-stat__num span { color: var(--accent); }
.proof-stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.proof-divider {
  width: 1px;
  height: 3rem;
  background: var(--border);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__brand strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.footer__links {
  display: flex;
  gap: 2rem;
}
.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--accent); }

/* ── Confirmation page ──────────────────────────────────────── */
.confirm-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}
.confirm-hero__inner {
  padding-block: 4rem;
}
.confirm-hero__code {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--accent-2);
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
}
.confirm-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.confirm-hero__body {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__deco { display: none; }

  .work-item {
    grid-template-columns: 48px 1fr;
  }
  .work-item__arrow { display: none; }

  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-grid::before { display: none; }
  .process-step { padding: 0 0 2rem; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer__links { flex-wrap: wrap; gap: 1rem; }

  .proof-bar__inner { gap: 1.5rem; }
  .proof-divider { display: none; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}
