:root {
  --bg: #f1ede4;
  --ink: #1b262c;
  --ink-strong: #111a1f;
  --brand: #d14529;
  --brand-deep: #8f2819;
  --panel: #fffaf2;
  --line: rgba(27, 38, 44, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(209, 69, 41, 0.12), transparent 35%),
    radial-gradient(circle at 85% 5%, rgba(27, 38, 44, 0.12), transparent 30%),
    var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.4;
}

.page-glow-left {
  background: #e57a5d;
  top: -8rem;
  left: -10rem;
}

.page-glow-right {
  background: #6d8e9a;
  top: 10rem;
  right: -14rem;
}

.container {
  width: min(70rem, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  text-transform: lowercase;
}

nav {
  display: flex;
  gap: 1.2rem;
}

nav a {
  color: var(--ink-strong);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 250, 242, 0.95);
  border: 1px solid rgba(17, 26, 31, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

nav a:hover {
  color: var(--ink-strong);
  background: #ffffff;
  border-color: rgba(17, 26, 31, 0.55);
}

nav a:focus-visible {
  outline: 3px solid var(--brand-deep);
  outline-offset: 2px;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
  animation: rise 700ms ease;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 0;
  max-width: 20ch;
}

.hero-copy {
  max-width: 54ch;
  margin-top: 1.1rem;
  font-size: 1.07rem;
}

.hero-proof {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--brand-deep);
  margin-top: 0.8rem;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* Buttons */
.btn {
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  font-weight: 500;
  transition: transform 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-deep);
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-secondary {
  background: var(--panel);
  color: var(--ink);
}

/* Sections */
.section {
  padding: 2rem 0;
}

h2 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  margin: 0 0 1rem;
}

.section-intro {
  max-width: 54ch;
  margin: -0.3rem 0 1.2rem;
  font-size: 1.02rem;
  opacity: 0.85;
}

/* Card grids */
.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 1.2rem;
  transform: translateY(8px);
  opacity: 0;
  animation: settle 600ms ease forwards;
}

.card:nth-child(2) { animation-delay: 80ms; }
.card:nth-child(3) { animation-delay: 140ms; }
.card:nth-child(4) { animation-delay: 200ms; }
.card:nth-child(5) { animation-delay: 260ms; }

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

/* Problem cards */
.problem-card p {
  font-size: 1rem;
  margin: 0;
  font-style: italic;
  opacity: 0.88;
}

.problems-cta {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.problems-cta a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
}

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

/* Example / before-after block */
.example-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.example-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 1.4rem;
}

.example-label {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.example-before .example-label {
  color: var(--ink);
  opacity: 0.5;
}

.example-after .example-label {
  color: var(--brand-deep);
}

.example-panel p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* About section */
.about-content p {
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.highlight {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 1.2rem;
  text-align: center;
  transform: translateY(8px);
  opacity: 0;
  animation: settle 600ms ease forwards;
}

.highlight:nth-child(2) { animation-delay: 120ms; }
.highlight:nth-child(3) { animation-delay: 200ms; }

.highlight-number {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.1;
}

.highlight-label {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  color: var(--ink);
  opacity: 0.75;
}

/* Services page */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  animation-delay: 0ms;
}

.service-list {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
}

.service-list li {
  margin: 0.35rem 0;
}

/* Steps */
.steps {
  display: grid;
  gap: 0.7rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.step span {
  font-family: "IBM Plex Mono", monospace;
  color: var(--brand-deep);
  font-weight: 500;
  min-width: 2ch;
}

/* Contact section */
.contact {
  border-top: 1px solid var(--line);
  margin-top: 0.8rem;
}

.contact p {
  max-width: 54ch;
  margin-bottom: 1.2rem;
}

.contact a {
  color: var(--brand-deep);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Footer */
.site-footer {
  padding: 1.3rem 0 2.2rem;
  font-size: 0.9rem;
  color: rgba(27, 38, 44, 0.8);
}

/* Animations */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 800px) {
  nav {
    gap: 0.8rem;
  }

  .card-grid-two,
  .card-grid-three {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .example-block {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.2rem;
  }
}
