:root {
  --bg-0: #050505;
  --bg-1: #0e0b0a;
  --bg-2: #16110f;
  --surface: #12110f;
  --surface-2: #1a1714;
  --text: #f6f4ef;
  --muted: #cfc8b9;
  --accent: #f4c21b;
  --accent-2: #ffda4b;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

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

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0a0706 0%, #0d0a08 35%, #120f0c 60%, #151412 100%);
  min-height: 100vh;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.65);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn.solid {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #1b1300;
  box-shadow: 0 10px 30px rgba(244, 194, 27, 0.35);
}

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

.btn.mini {
  padding: 8px 14px;
  font-size: 0.85rem;
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  padding: 120px 0 80px;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: -1;
}

.hero::before {
  background: radial-gradient(circle at 30% 30%, #ffcc55, transparent 70%);
  left: -180px;
  top: 40px;
}

.hero::after {
  background: radial-gradient(circle at 70% 40%, #603214, transparent 70%);
  right: -180px;
  top: 140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 12px 0 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(180deg, rgba(26, 23, 20, 0.9), rgba(12, 11, 9, 0.9));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.pill {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.pill.accent {
  background: rgba(244, 194, 27, 0.15);
  border-color: rgba(244, 194, 27, 0.4);
}

.card-body h3 {
  margin: 12px 0 10px;
  font-size: 1.4rem;
}

.card-body p {
  color: var(--muted);
  margin-bottom: 18px;
}

.orb {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #ffe38b, #8a4d08);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.card-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 6px;
}

.logos {
  padding: 40px 0 80px;
  text-align: center;
  color: var(--muted);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-head p {
  color: var(--muted);
  max-width: 640px;
}

.services,
.work,
.process,
.faq {
  padding: 90px 0;
}

.grid {
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.services-grid .card {
  grid-column: auto;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.services-grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 218, 75, 0.18), transparent 30%);
  opacity: 0.7;
}

.services-grid .card > * {
  position: relative;
  z-index: 1;
}

.services-grid .card:nth-child(1) {
  grid-column: auto;
}

.services-grid .card:nth-child(2) {
  grid-column: auto;
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 32px;
  align-items: center;
}

.work-copy h2 {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 16px;
}

.work-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.work-controls {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover {
  border-color: rgba(244, 194, 27, 0.7);
  transform: translateY(-1px);
}

.work-slider {
  overflow: hidden;
  position: relative;
}

.work-track {
  display: flex;
  gap: 20px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.work-track::-webkit-scrollbar {
  display: none;
}

.work-card {
  min-width: clamp(240px, 28vw, 320px);
  background: rgba(14, 12, 11, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  scroll-snap-align: start;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.work-card img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
}

.work-card p {
  color: var(--muted);
  line-height: 1.6;
  min-height: 60px;
}

.tag {
  align-self: start;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(244, 194, 27, 0.18);
  border: 1px solid rgba(244, 194, 27, 0.5);
  font-size: 0.75rem;
}

.card {
  background: rgba(20, 18, 16, 0.85);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.card ul {
  list-style: none;
  margin-top: 16px;
  color: var(--muted);
}

.card li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.card li:last-child {
  border-bottom: none;
}

.case-card {
  border-radius: 20px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.95), rgba(11, 10, 8, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(244, 194, 27, 0.08), transparent 60%);
  opacity: 0.6;
}

.case-card > * {
  position: relative;
  z-index: 1;
}

.case-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(244, 194, 27, 0.16);
  border: 1px solid rgba(244, 194, 27, 0.4);
  font-size: 0.75rem;
  margin-bottom: 18px;
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 18px;
}

.stack {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.9), rgba(12, 10, 9, 0.9));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.stack-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.stack-tiles span {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  flex: 0 0 auto;
  white-space: nowrap;
}

.stack-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.steps {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step {
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(16, 14, 12, 0.7);
}

.step span {
  color: var(--accent);
  font-weight: 700;
}

.faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.faq-item {
  background: rgba(20, 18, 16, 0.7);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 16px;
}

.cta {
  padding: 80px 0 110px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(244, 194, 27, 0.2), rgba(16, 14, 12, 0.9));
  border: 1px solid rgba(244, 194, 27, 0.5);
  border-radius: 28px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  background: rgba(10, 9, 8, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  color: var(--muted);
}

.footer-grid h4 {
  color: var(--text);
  margin-bottom: 10px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 90px;
  }

  .hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

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

@media (max-width: 620px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-cta {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-card {
    padding: 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .services-grid .card {
    grid-column: span 2;
  }

  .services-grid .card:nth-child(1) {
    grid-column: span 4;
  }

  .services-grid .card:nth-child(2) {
    grid-column: span 2;
  }
}
