/* ============================================================
   KOPI STUDIO — INNER PAGES DARK THEME
   Exact copy of homepage CSS values
   ============================================================ */

/* Fonts loaded via <link> in HTML head */

:root {
  --z-bg: 0;
  --z-fx: 1;
  --z-content: 5;
  --z-nav: 20;

  --bg-0: #0b0908;
  --bg-1: #14110f;
  --surface-0: #1c1714;
  --surface-1: #231c18;
  --text-0: #f2e9df;
  --text-1: #cbbdaf;
  --text-2: #c3b8ac;
  --text-3: rgba(216, 194, 172, 0.55);
  --accent: #c98a54;
  --accent-main: #c98a54;
  --accent-soft: #e2b98d;
  --accent-cool: #7ea0b2;
  --border: rgba(226, 185, 141, 0.07);
  --border-hover: rgba(226, 185, 141, 0.18);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.15), 0 24px 48px rgba(0,0,0,0.12);

  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;

  --container: min(1180px, 90vw);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --theme-mix: 0;
  --progress: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

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

html, body {
  min-height: 100%;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-0);
  background: var(--bg-0);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body { position: relative; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-fx);
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(201, 138, 84, 0.16) 0 1px, transparent 1.6px),
    radial-gradient(circle at 76% 64%, rgba(126, 160, 178, 0.12) 0 1px, transparent 1.6px),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1.5px),
    radial-gradient(1200px 700px at 16% 8%, rgba(201, 138, 84, 0.16), transparent 62%),
    radial-gradient(1100px 620px at 84% 12%, rgba(126, 160, 178, 0.12), transparent 64%),
    linear-gradient(180deg, #0b0908 0%, #12100f 46%, #151311 100%);
  background-size: 280px 280px, 330px 330px, 150px 150px, auto, auto, auto;
  opacity: 0.95;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-fx) + 1);
  pointer-events: none;
  background:
    radial-gradient(920px 520px at 50% -20%, rgba(252, 239, 222, 0.04), transparent 70%),
    radial-gradient(900px 520px at 50% 110%, rgba(201, 138, 84, 0.03), transparent 74%);
  opacity: 0.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid rgba(226, 185, 141, 0.95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(226, 185, 141, 0.22);
  border-radius: 8px;
}

.site-shell { position: relative; z-index: var(--z-content); }
.wrap, .container { width: var(--container); margin: 0 auto; }

/* ── TYPOGRAPHY ── */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text-0);
}

h1 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(2.15rem, 4.8vw, 4.4rem); }
h3 { font-size: clamp(1.02rem, 1.4vw, 1.2rem); }

p { color: var(--text-1); }

/* ── SCROLL PROGRESS ── */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(226, 185, 141, 0.12);
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--accent-soft), var(--accent-main));
  transition: transform 0.08s linear;
}

/* ── NAV (exact homepage copy) ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1rem 0;
  color: rgba(242, 233, 223, 0.94);
  background: rgba(11, 9, 8, 0.88);
  border-bottom: 1px solid rgba(226, 185, 141, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.24s var(--ease-out), border-color 0.24s var(--ease-out);
}

.nav-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  color: rgba(244, 233, 220, 0.96);
}

.brand-mark-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  flex: 0 0 auto;
}

.brand-word {
  font-family: 'DM Serif Display', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  line-height: 1;
  white-space: nowrap;
}

.nav-links { list-style: none; display: flex; align-items: center; gap: 1.7rem; }

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(234, 220, 204, 0.85);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.32rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent-main), var(--accent-soft));
  transition: transform 0.2s var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active { color: var(--text-0); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

/* Nav CTA */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.66rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1a120c;
  background: linear-gradient(140deg, var(--accent-soft) 0%, var(--accent-main) 100%);
  border: 1px solid rgba(243, 223, 201, 0.3);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.26s var(--ease-out), box-shadow 0.26s var(--ease-out), filter 0.26s var(--ease-out);
  cursor: pointer;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 14px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.22);
}

/* ── BUTTONS (exact homepage copy) ── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.76rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1a120c;
  background: linear-gradient(140deg, var(--accent-soft) 0%, var(--accent-main) 100%);
  border: 1px solid rgba(243, 223, 201, 0.3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.26s var(--ease-out), box-shadow 0.26s var(--ease-out), filter 0.26s var(--ease-out);
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 14px 28px rgba(0, 0, 0, 0.28), 0 28px 48px rgba(201, 138, 84, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.76rem 1.4rem;
  border: 1px solid rgba(226, 185, 141, 0.28);
  color: rgba(241, 229, 216, 0.95);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.26s var(--ease-out), background 0.26s var(--ease-out), transform 0.26s var(--ease-out), box-shadow 0.26s var(--ease-out);
}

.btn-secondary:hover {
  border-color: rgba(226, 185, 141, 0.4);
  background: rgba(201, 138, 84, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ── LINK ANIMATIONS ── */

.link-draw {
  position: relative;
  color: var(--accent-soft);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(226, 185, 141, 0.3);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.link-draw:hover {
  color: var(--accent-main);
  text-decoration-color: var(--accent-main);
}

.accent {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(226, 185, 141, 0.3);
  transition: color 0.2s;
}

.accent:hover { color: var(--accent-main); }

/* ── SECTION SYSTEM (exact homepage copy) ── */

.section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }

.section-header { margin-bottom: 2.2rem; text-align: center; }

.section-eyebrow {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(216, 194, 172, 0.92);
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-main), transparent);
}

.section-header .section-eyebrow::before {
  display: none;
}

/* ── PAGE HERO ── */

.page-hero {
  padding: clamp(8rem, 14vh, 10rem) 0 clamp(2.5rem, 4vh, 4rem);
  position: relative;
}

.page-hero h1 {
  max-width: 18ch;
  margin: 0 0 1.2rem;
  line-height: 1.02;
}

.page-hero p {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.64;
  color: rgba(220, 204, 187, 0.9);
  max-width: 56ch;
  margin: 0;
}

.page-hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 138, 84, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── CONTENT SECTIONS ── */

.section {
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 1.4rem;
  max-width: 770px;
}

.section p {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-1);
  max-width: 62ch;
  margin: 0 0 1rem;
}

.section p:last-child { margin-bottom: 0; }

/* Section desc (matches homepage .section-desc) */
.section-header p,
.section-header .section-desc {
  max-width: 62ch;
  color: var(--text-1);
  font-size: 1.02rem;
  line-height: 1.72;
  margin: 0 auto;
}

.section-header h2,
.section-header .section-title {
  max-width: 770px;
  margin: 0 auto 1.4rem;
}

/* ── CARDS (exact homepage .how-step pattern) ── */

.glass, .process-card {
  background: rgba(28, 23, 20, 0.6);
  border: 1px solid rgba(226, 185, 141, 0.07);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: border-color 0.28s var(--ease-out), transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.glass:hover, .process-card:hover {
  border-color: rgba(226, 185, 141, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.14), 0 20px 40px rgba(0, 0, 0, 0.08);
}

.glass-glow {
  background: rgba(28, 23, 20, 0.6);
  border: 1px solid rgba(226, 185, 141, 0.15);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 40px rgba(201, 138, 84, 0.06);
  transition: border-color 0.28s var(--ease-out), transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.glass-glow:hover {
  border-color: rgba(226, 185, 141, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.14), 0 0 60px rgba(201, 138, 84, 0.1);
}

.glass-static {
  background: rgba(28, 23, 20, 0.6);
  border: 1px solid rgba(226, 185, 141, 0.07);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ── PROCESS GRID (matches homepage .how-steps) ── */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.process-card {
  padding: 1.8rem 1.4rem;
  text-align: center;
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text-0);
  letter-spacing: -0.01em;
}

.process-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

.process-card a {
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(226, 185, 141, 0.3);
}

.process-card a:hover { color: var(--accent-main); }

/* ── BENEFITS LIST ── */

.benefits-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.benefit-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.benefit-item:hover {
  background: rgba(201, 138, 84, 0.04);
  border-color: var(--border);
}

.benefit-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 138, 84, 0.15);
  color: var(--accent-main);
  font-size: 0.8rem;
  font-weight: 700;
}

.benefit-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-0);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.benefit-text p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
  max-width: 52ch;
}

/* ── CASE BRIEF ── */

.case-brief {
  margin-top: 1.5rem;
  padding: 2rem;
}

.case-brief p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-1);
}

.case-brief-stat {
  display: inline-block;
  margin: 0.75rem 1.2rem 0 0;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  background: rgba(201, 138, 84, 0.1);
  border: 1px solid rgba(226, 185, 141, 0.12);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.case-brief-stat strong {
  color: var(--text-0);
}

/* ── BREADCRUMB ── */

.breadcrumb {
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--text-3);
}

.breadcrumb a {
  color: var(--text-2);
  transition: color 200ms;
}

.breadcrumb a:hover { color: var(--accent-main); }

.breadcrumb span {
  margin: 0 0.4rem;
  color: var(--text-3);
}

/* ── CTA DARK BAND ── */

.cta-dark {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-dark h2 {
  max-width: 20ch;
  margin: 0 auto 1rem;
}

.cta-dark p {
  color: var(--text-2);
  max-width: 52ch;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.cta-dark .btn-primary {
  margin-top: 1rem;
}

/* ── CTA SECTION (inline card) ── */

.cta-section {
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
}

.cta-section h2 { max-width: 100%; }
.cta-section p { max-width: 52ch; margin: 0 auto 1.5rem; }

/* ── FAQ ACCORDION ── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(28, 23, 20, 0.6);
  transition: border-color 0.28s var(--ease-out);
  overflow: hidden;
}

.faq-item:hover,
.faq-item.open {
  border-color: var(--border-hover);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}

.faq-icon {
  flex: 0 0 auto;
  font-size: 1.15rem;
  color: var(--accent-main);
  transition: transform 0.3s var(--ease-out);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
}

.faq-item.open .faq-a {
  max-height: 300px;
  opacity: 1;
}

.faq-a-inner {
  padding: 0 1.4rem 1.4rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-1);
}

/* ── NUM BADGE ── */

.num-badge {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-main);
}

[data-countup] {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* ── GRADIENT DIVIDERS ── */

.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 185, 141, 0.15) 20%, rgba(226, 185, 141, 0.15) 80%, transparent);
  border: none;
}

/* ── MOBILE MENU (exact homepage copy) ── */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(226, 185, 141, 0.32);
  background: rgba(25, 20, 16, 0.7);
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-toggle-line {
  position: absolute;
  width: 18px;
  height: 1.8px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.26s var(--ease-out), opacity 0.26s var(--ease-out);
}

.nav-toggle-line:nth-child(1) { transform: translateY(-5px); }
.nav-toggle-line:nth-child(2) { transform: translateY(0); }
.nav-toggle-line:nth-child(3) { transform: translateY(5px); }
.nav-toggle[aria-expanded='true'] .nav-toggle-line:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle-line:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 70px 1rem auto;
  z-index: calc(var(--z-nav) - 1);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(20, 17, 15, 0.95);
  padding: 1rem;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
}

.mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid rgba(226, 185, 141, 0.08);
  color: rgba(242, 233, 223, 0.9);
  font-size: 0.94rem;
  font-weight: 500;
}

.mobile-menu a:last-child { border-bottom: 0; }

/* ── FOOTER (exact homepage copy) ── */

.footer {
  padding: 3.5rem 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg-0);
  position: relative;
  z-index: var(--z-content);
}

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

.footer .nav-logo {
  color: rgba(244, 233, 220, 0.96);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.24s var(--ease-out);
}

.footer-link:hover { color: var(--accent-main); }

.footer-copy {
  width: 100%;
  margin-top: 2.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.79rem;
  color: var(--text-2);
  line-height: 1.35;
  text-align: center;
}

/* ── SCROLL REVEAL (GSAP-powered, CSS fallback) ── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

[data-reveal].revealed,
.no-gsap [data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
}

[data-reveal-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 400ms; }

/* ── STATS BAR (exact homepage copy) ── */

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 3.2rem 0;
  border-top: 1px solid rgba(226, 185, 141, 0.08);
  border-bottom: 1px solid rgba(226, 185, 141, 0.08);
  margin: 0 auto;
  max-width: 780px;
}

.stat-block { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 0.3rem;
  line-height: 1.35;
}

/* ── CENTERED HERO ── */

.page-hero.hero-center {
  text-align: center;
}

.page-hero.hero-center h1 {
  max-width: 22ch;
  margin: 0 auto 1.2rem;
}

.page-hero.hero-center p {
  max-width: 54ch;
  margin: 0 auto;
}

.page-hero.hero-center .page-hero-actions {
  justify-content: center;
}

/* ── NUMBERED STEPS (matches homepage .how-step) ── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.step-card {
  padding: 1.8rem 1.4rem;
  text-align: center;
  background: rgba(28, 23, 20, 0.6);
  border: 1px solid rgba(226, 185, 141, 0.07);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: border-color 0.28s var(--ease-out), transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.step-card:hover {
  border-color: rgba(226, 185, 141, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.14);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(201, 138, 84, 0.15);
  color: var(--accent-main);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 0.8rem;
  line-height: 1;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text-0);
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

.section.section-center {
  text-align: center;
}

.section.section-center h2 {
  max-width: 770px;
  margin: 0 auto 1.4rem;
}

.section.section-center p {
  max-width: 62ch;
  margin: 0 auto 1rem;
}

.section.section-center p:last-child {
  margin-bottom: 0;
}

/* ── CONTACT PAGE OVERRIDES ── */

.c-hero { padding: clamp(8rem, 14vh, 10rem) 0 2rem; }
.c-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); max-width: 18ch; margin: 0 0 1.2rem; }
.c-hero p { font-size: 1.1rem; line-height: 1.7; color: var(--text-1); max-width: 56ch; margin: 0; }

.c-section { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.c-section h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: 0 0 1.25rem; max-width: 22ch; }
.c-section p { font-size: 1rem; line-height: 1.8; color: var(--text-1); max-width: 62ch; margin: 0 0 1rem; }
.c-section p:last-child { margin-bottom: 0; }

.c-email {
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: rgba(28, 23, 20, 0.6);
  border: 1px solid rgba(226, 185, 141, 0.15);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08), 0 0 40px rgba(201, 138, 84, 0.06);
}

.c-email-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-main); margin-bottom: 0.4rem; }
.c-email-addr { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--text-0); margin-bottom: 0.75rem; letter-spacing: -0.01em; font-weight: 600; }
.c-email-desc { font-size: 0.95rem; line-height: 1.7; color: var(--text-1); max-width: 52ch; margin-bottom: 1.5rem; }

.c-steps-container { position: relative; padding-left: 2.5rem; }
.c-line { position: absolute; left: 17px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--accent-main), rgba(226, 185, 141, 0.1)); transform-origin: top center; transform: scaleY(0); transition: transform 0.6s var(--ease-out); }

.c-step { display: grid; grid-template-columns: 36px 1fr; gap: 1.25rem; align-items: baseline; padding: 1.25rem 0; position: relative; border-radius: 0.75rem; transition: background 0.3s ease; }
.c-step:hover { background: rgba(201, 138, 84, 0.04); }

.c-step-num { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: #1a120c; background: linear-gradient(135deg, var(--accent-soft), var(--accent-main)); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; line-height: 1; }
.c-step h3 { font-size: 1.1rem; margin: 0 0 0.3rem; color: var(--text-0); }
.c-step p { font-size: 0.92rem; line-height: 1.65; color: var(--text-1); max-width: 52ch; margin: 0; }

.c-section ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.c-section ul li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--text-1); padding-left: 1.2rem; position: relative; }
.c-section ul li::before { content: "\2013"; position: absolute; left: 0; color: var(--text-3); }
.c-section ul li:first-child { border-top: 1px solid var(--border); }

.c-callout { padding: 2rem 0; margin: 1rem 0; }
.c-callout-inner { max-width: 640px; padding: 2rem; border-radius: 16px; background: rgba(28, 23, 20, 0.6); border: 1px solid rgba(226, 185, 141, 0.07); box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08); }
.c-callout p { font-size: 0.95rem; line-height: 1.7; color: var(--text-1); margin: 0; }
.c-callout strong { color: var(--text-0); }

.c-ready { padding: 3.5rem 0 0; border-top: 1px solid var(--border); }
.c-ready h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: 0 0 1rem; }
.c-ready p { font-size: 1rem; line-height: 1.8; color: var(--text-1); max-width: 62ch; margin: 0 0 0.75rem; }
.c-ready a.c-link { color: var(--accent-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(226, 185, 141, 0.3); transition: color 150ms; }
.c-ready a.c-link:hover { color: var(--accent-main); }

/* ── FLOATING PARTICLES ── */

.particles {
  position: fixed;
  inset: 0;
  z-index: var(--z-fx);
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 185, 141, 0.6) 0%, rgba(226, 185, 141, 0) 70%);
  animation: particle-float var(--dur, 20s) ease-in-out infinite var(--delay, 0s);
  opacity: 0;
}

@keyframes particle-float {
  0% { transform: translate3d(var(--sx, 0), var(--sy, 0), 0) scale(var(--s, 1)); opacity: 0; }
  15% { opacity: var(--alpha, 0.4); }
  50% { transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(calc(var(--s, 1) * 1.2)); opacity: var(--alpha, 0.4); }
  85% { opacity: var(--alpha, 0.4); }
  100% { transform: translate3d(var(--ex, 0), var(--ey, 0), 0) scale(var(--s, 1)); opacity: 0; }
}

/* ── CSS COMETS (from homepage) ── */

.comets-layer {
  position: fixed;
  inset: -8% -10%;
  z-index: calc(var(--z-fx) + 1);
  pointer-events: none;
  overflow: hidden;
  opacity: 0.5;
}

.comet {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--trail-l, 220px);
  height: var(--trail-h, 2px);
  border-radius: 999px;
  background: transparent;
  transform: translate3d(var(--sx), var(--sy), 0) rotate(var(--rot));
  opacity: 0;
  filter: blur(var(--trail-blur, 0px));
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: comet-flight var(--dur, 14s) cubic-bezier(0.22, 0.61, 0.36, 1) infinite var(--delay, 0s);
}

.comet::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      var(--trail-c1, rgba(252, 228, 198, 0.06)) 10%,
      var(--trail-c2, rgba(226, 185, 141, 0.18)) 28%,
      var(--trail-c3, rgba(226, 185, 141, 0.65)) 52%,
      var(--trail-c4, rgba(255, 240, 218, 0.9)) 78%,
      var(--trail-c5, rgba(255, 255, 255, 0.6)) 100%
    );
  box-shadow:
    0 0 8px var(--glow-inner, rgba(226, 185, 141, 0.35)),
    0 0 20px var(--glow-mid, rgba(226, 185, 141, 0.18)),
    0 0 40px var(--glow-outer, rgba(126, 160, 178, 0.12)),
    0 0 60px var(--glow-halo, rgba(180, 140, 100, 0.06));
  animation: comet-shimmer var(--shimmer-dur, 2.4s) ease-in-out infinite alternate;
}

.comet::after {
  content: '';
  position: absolute;
  right: calc(-3px + var(--head-offset, 0px));
  top: 50%;
  width: var(--head-size, 6px);
  height: var(--head-size, 6px);
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle,
    rgba(255, 254, 248, 1) 0%,
    rgba(255, 240, 220, 0.92) 20%,
    var(--head-mid, rgba(252, 210, 170, 0.6)) 45%,
    var(--head-outer, rgba(180, 140, 200, 0.15)) 75%,
    transparent 100%
  );
  box-shadow:
    0 0 6px rgba(255, 252, 245, 1),
    0 0 14px var(--glow-inner, rgba(255, 227, 193, 0.95)),
    0 0 28px var(--glow-mid, rgba(226, 185, 141, 0.6)),
    0 0 52px var(--glow-outer, rgba(180, 140, 200, 0.25)),
    0 0 80px var(--glow-halo, rgba(120, 160, 180, 0.12));
  animation: comet-head-pulse var(--pulse-dur, 1.8s) ease-in-out infinite alternate;
}

.comet-ion {
  position: absolute;
  right: calc(6px + var(--head-offset, 0px));
  top: 50%;
  width: calc(var(--trail-l, 220px) * 0.7);
  height: max(1px, calc(var(--trail-h, 2px) * 1.2));
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
    rgba(255, 246, 232, 0) 0%,
    var(--ion-c1, rgba(246, 208, 162, 0.25)) 20%,
    var(--ion-c2, rgba(200, 170, 220, 0.18)) 50%,
    var(--ion-c3, rgba(126, 180, 178, 0.08)) 80%,
    transparent 100%
  );
  filter: blur(0.6px);
  opacity: 0.78;
}

.comet-spark {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255, 252, 245, 0.95) 0%, rgba(255, 220, 180, 0.4) 50%, transparent 100%);
  animation: spark-twinkle var(--spark-dur, 0.8s) ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes comet-flight {
  0% { transform: translate3d(var(--sx), var(--sy), 0) rotate(var(--rot)); opacity: 0; }
  6% { opacity: calc(var(--alpha, 0.92) * 0.5); }
  14% { opacity: var(--alpha, 0.92); }
  50% { transform: translate3d(var(--mx), var(--my), 0) rotate(var(--mrot)); opacity: calc(var(--alpha, 0.92) * 0.88); }
  78% { opacity: calc(var(--alpha, 0.92) * 0.45); }
  92% { opacity: calc(var(--alpha, 0.92) * 0.12); }
  100% { transform: translate3d(var(--ex), var(--ey), 0) rotate(var(--erot)); opacity: 0; }
}

@keyframes comet-shimmer {
  0% { opacity: 0.85; filter: brightness(1); }
  100% { opacity: 1; filter: brightness(1.2); }
}

@keyframes comet-head-pulse {
  0% { transform: translateY(-50%) scale(1); opacity: 0.9; }
  100% { transform: translateY(-50%) scale(1.18); opacity: 1; }
}

@keyframes spark-twinkle {
  0% { opacity: 0.3; transform: translateY(-50%) scale(0.7); }
  100% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* ── RESPONSIVE (matches homepage breakpoints) ── */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }

  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .section { padding: clamp(2.2rem, 4vw, 3.2rem) 0; }
  .section-header { margin-bottom: 1.4rem; }
  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  .page-hero { padding: clamp(6rem, 10vh, 7rem) 0 2rem; }
  .page-hero-actions { flex-direction: column; }
}

@media (max-width: 600px) {
  .stats-bar { gap: 1.2rem; flex-wrap: wrap; padding: 2rem 0; }
  .stat-block { min-width: 80px; }
  .stat-value { font-size: 1.35rem; }
  .stat-label { font-size: 0.72rem; }
}

@media (max-width: 550px) {
  .process-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 0.85rem; }
}

@media (max-width: 500px) {
  :root { --container: min(100%, calc(100vw - 24px)); }
  .brand-word { font-size: 1.2rem; }
  .stats-bar { gap: 1rem; }
}

@media (max-width: 768px) {
  .benefit-item { padding: 1rem; gap: 1rem; }
  .benefit-check { width: 28px; height: 28px; font-size: 0.75rem; }

  .case-brief { padding: 1.5rem; }
  .case-brief-stat { display: block; margin: 0.5rem 0 0; }

  .cta-section { padding: 1.5rem; }

  .c-steps-container { padding-left: 1.5rem; }
  .c-line { left: 13px; }
  .c-step { grid-template-columns: 28px 1fr; gap: 0.75rem; }
  .c-step-num { width: 28px; height: 28px; font-size: 0.75rem; }
}
