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

html { scroll-behavior: smooth; }

body {
  background: #0A0A0A;
  color: #F0EEE8;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.accent { color: #00C9A7; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover { filter: brightness(0.9); transform: translateY(-1px); }
.btn:active { transform: scale(0.98) translateY(0); filter: brightness(0.85); }

.btn-accent {
  background: #00C9A7;
  color: #0A0A0A;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0A0A0A;
  border-bottom: 0.5px solid #1E1E1E;
  transition: border-color 0.3s, backdrop-filter 0.3s, background 0.3s;
}

#nav.nav--scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: #2A2A2A;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00C9A7;
  box-shadow: 0 0 6px #00C9A780;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px #00C9A780; }
  50%       { box-shadow: 0 0 10px #00C9A7cc; }
}

.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #F0EEE8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  color: #6B6B6B;
  transition: color 0.2s;
}

.nav-link:hover { color: #F0EEE8; }

.nav-cta { margin-left: 1rem; }

/* Mobile nav */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 60px; /* nav height */
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── Hero copy ── */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #141414;
  border: 1px solid #1E1E1E;
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #6B6B6B;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00C9A7;
  box-shadow: 0 0 5px #00C9A7aa;
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  color: #F0EEE8;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.05rem;
  color: #6B6B6B;
  line-height: 1.7;
  max-width: 480px;
}

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

.hero-text-link {
  font-size: 0.9rem;
  color: #6B6B6B;
  transition: color 0.2s;
}

.hero-text-link:hover { color: #F0EEE8; }

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #F0EEE8;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  color: #6B6B6B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: #1E1E1E;
  flex-shrink: 0;
}

/* ── Hero diagram ── */
.hero-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
}

#workflow-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  overflow: visible;
}

/* SVG text styles */
.wf-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  fill: #F0EEE8;
}

.wf-sublabel {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  fill: #6B6B6B;
}

.wf-icon {
  font-size: 13px;
  dominant-baseline: middle;
}

.wf-hub-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  fill: #00C9A7;
  letter-spacing: 0.04em;
}

.wf-hub-sublabel {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  fill: #6B6B6B;
  letter-spacing: 0.06em;
}

/* Emoji inside foreignObject — flexbox centres them inside the circle */
.wf-emoji {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

/* ── Hero responsive ── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-diagram {
    order: -1;
  }

  #workflow-svg {
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .hero-inner { padding: 48px 20px 60px; }

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

  .hero-stats { gap: 1rem; }

  .stat-value { font-size: 1.25rem; }

  #workflow-svg { max-width: 290px; }
}

@media (max-width: 375px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.5rem;
  }
  .stat-divider { display: none; }
  /* £0 stat spans full width so it doesn't sit alone */
  .hero-stats .stat:last-child { grid-column: 1 / -1; }
}

/* ── Placeholder sections ─────────────────────────────────────────────────── */
#case-study,
#about,
#contact {
  padding: 80px 24px;
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid #1E1E1E;
}

/* ── Shared section layout ────────────────────────────────────────────────── */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  margin-bottom: 56px;
}

.section-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: #F0EEE8;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1rem;
  color: #6B6B6B;
  line-height: 1.7;
  max-width: 560px;
}

/* ── Fade-up animation ────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WHAT WE DO ───────────────────────────────────────────────────────────── */
#what-we-do {
  border-top: 1px solid #1E1E1E;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #1E1E1E;
  border: 1px solid #1E1E1E;
  border-radius: 12px;
  overflow: hidden;
}

.service-tile {
  background: #141414;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: 1px solid transparent;
  outline-offset: -1px;
}

.service-tile:hover {
  background: #181818;
  outline-color: rgba(0, 201, 167, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.tile-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #00C9A7;
  letter-spacing: 0.1em;
}

.tile-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #F0EEE8;
  letter-spacing: -0.01em;
}

.tile-desc {
  font-size: 0.9rem;
  color: #6B6B6B;
  line-height: 1.65;
}

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

  .service-tile {
    padding: 28px 24px;
  }
}

/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */
#how-it-works {
  border-top: 1px solid #1E1E1E;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 32px 24px 0;
  border-radius: 8px;
  transition: transform 0.2s;
}

.step:hover { transform: translateY(-2px); }

.step:last-child { padding-right: 0; }

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #00C9A7;
  letter-spacing: 0.1em;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #F0EEE8;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.9rem;
  color: #6B6B6B;
  line-height: 1.65;
}

.step-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .steps-row {
    flex-direction: column;
    gap: 40px;
  }

  .step {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .section-inner { padding: 72px 20px; }
}

/* ── CASE STUDY ───────────────────────────────────────────────────────────── */
#case-study {
  background: #0D0D0D;
  border-top: 1px solid #1E1E1E;
}

.cs-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.cs-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00C9A7;
}

/* Cards row */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cs-card {
  position: relative;
  background: #141414;
  border: 0.5px solid #1E1E1E;
  border-radius: 10px;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}

.cs-card:hover { border-color: #2A2A2A; }

.cs-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: #3A3A3A;
  background: #1A1A1A;
  border: 1px solid #242424;
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.03em;
}

.cs-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #F0EEE8;
  letter-spacing: -0.01em;
  padding-right: 56px;
}

.cs-card-desc {
  font-size: 0.875rem;
  color: #6B6B6B;
  line-height: 1.7;
}

/* Pull quote */
.cs-quote {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 40px 48px;
  background: #141414;
  border: 0.5px solid #1E1E1E;
  border-radius: 10px;
  position: relative;
}

.cs-quote-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;
  line-height: 0.7;
  color: #00C9A7;
  opacity: 0.5;
  user-select: none;
}

.cs-quote-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #F0EEE8;
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 680px;
}

.cs-quote-attr {
  font-size: 0.8rem;
  color: #6B6B6B;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* Case study responsive */
@media (max-width: 860px) {
  .cs-cards {
    grid-template-columns: 1fr;
  }

  .cs-quote {
    padding: 32px 28px;
  }
}

@media (max-width: 480px) {
  .cs-inner { padding: 72px 20px; }

  .cs-quote-mark { font-size: 3.5rem; }
}

/* ── ABOUT ────────────────────────────────────────────────────────────────── */
#about {
  border-top: 1px solid #1E1E1E;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-body {
  font-size: 1rem;
  color: #6B6B6B;
  line-height: 1.75;
}

/* Credentials card */
.about-card {
  background: #141414;
  border: 0.5px solid #1E1E1E;
  border-radius: 10px;
  padding: 32px 28px;
}

.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cred-item {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: #B0AEA8;
  line-height: 1.55;
}

.cred-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid #00C9A7;
  border-bottom: 1.5px solid #00C9A7;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .about-card { padding: 24px 20px; }
}

/* ── CONTACT ──────────────────────────────────────────────────────────────── */
#contact {
  border-top: 1px solid #1E1E1E;
  display: flex;
  flex-direction: column;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.contact-h2 {
  max-width: 560px;
}

.contact-sub {
  font-size: 1rem;
  color: #6B6B6B;
  line-height: 1.7;
  max-width: 480px;
}

.contact-actions {
  padding-top: 0.5rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.contact-email {
  font-size: 0.85rem;
  color: #6B6B6B;
}

.contact-email-link {
  color: #F0EEE8;
  border-bottom: 1px solid #2A2A2A;
  transition: border-color 0.2s, color 0.2s;
}

.contact-email-link:hover {
  color: #00C9A7;
  border-color: #00C9A7;
}

/* Footer */
.site-footer {
  padding: 20px 24px;
  border-top: 1px solid #1E1E1E;
  text-align: center;
}

.site-footer p {
  font-size: 0.75rem;
  color: #3A3A3A;
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  .contact-inner { padding: 72px 20px 60px; }
}
