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

:root {
  /* Colors come from the linked theme CSS file */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Utility ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 2rem;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 1rem;
  }
}

/* ─── Scroll reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 46px;
  padding-inline: 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-shadow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-shadow);
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--accent-bg);
  color: var(--accent);
  border: 2px solid rgba(var(--accent-rgb), 0.55);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(var(--accent-rgb), 0.13);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.btn-lg {
  height: 52px;
  padding-inline: 2rem;
  font-size: 1rem;
}

/* ─── Section label ─────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ─── Nav ───────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}
.logo span {
  color: var(--accent);
}

/* ─── Hero ──────────────────────────────────────────────── */
#hero {
  padding-top: 8rem;
  padding-bottom: 6rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero text */
#hero::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--accent-rgb), 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--fg);
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.hero-heading em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--fg-muted);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ─── Section base ──────────────────────────────────────── */
section {
  padding-block: 6rem;
}
section.compact {
  padding-block: 4rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--fg);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* ─── What We Do ────────────────────────────────────────── */
#what {
  background: var(--bg);
}

.what-body {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.what-body p {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* ─── Who We Work With ──────────────────────────────────── */
#who {
  background: var(--bg-soft);
}

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

.who-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.who-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.who-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.who-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.who-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.who-card p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── How It Works ──────────────────────────────────────── */
#how {
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.step p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* connector line between steps (desktop only) */
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── Why Lancer Lab ────────────────────────────────────── */
#why {
  background: var(--bg-soft);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .why-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.why-text h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--fg);
}

.why-text p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

.why-callout {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.why-callout blockquote {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fg);
  font-style: normal;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

/* ─── Final CTA ─────────────────────────────────────────── */
#cta {
  background: var(--fg);
  padding-block: 8rem;
  text-align: center;
}

#cta .label {
  color: rgba(255, 255, 255, 0.4);
}

#cta h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

#cta p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 420px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

#cta .btn-primary {
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
}
#cta .btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.5);
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.footer-logo span {
  color: var(--accent);
}

footer p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ─── Divider ───────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
