/* ============================================================
   ROSEGOLD LABS — DESIGN TOKENS
   Rose-pink primary + champagne gold secondary, on warm cream.
   Mono for structural/operator chrome. Geist for human voice.
   ============================================================ */
:root {
  /* Backgrounds — warm, slightly pink-tinted creams */
  --bg-base: #FBF7F4;
  --bg-surface: #FFFFFF;
  --bg-warm: #F6EFE9;
  --bg-blush: #F5E6E2;
  --bg-ink: #1A1614;

  /* Rose-pink — the dominant accent */
  --rose-50:  #FBEEEC;
  --rose-100: #F5D5CF;
  --rose-300: #E5A8A2;
  --rose-500: #D4858E;  /* primary */
  --rose-600: #C66E78;
  --rose-700: #A8525D;
  --rose-900: #5C2A30;

  /* Champagne gold — secondary accent for depth */
  --gold-100: #F0E4D2;
  --gold-300: #D9C19A;
  --gold-500: #B8975E;
  --gold-700: #8B6F47;

  /* Text — warm charcoals, not pure black */
  --text-primary: #1F1A18;
  --text-secondary: #5C534F;
  --text-tertiary: #8A7E78;
  --text-inverse: #FBF7F4;

  /* Borders */
  --border-hairline: rgba(31, 26, 24, 0.08);
  --border-soft: rgba(31, 26, 24, 0.14);
  --border-rose: rgba(212, 133, 142, 0.35);

  /* Shadows — pink-tinted, soft */
  --shadow-soft: 0 1px 3px rgba(92, 42, 48, 0.04), 0 4px 16px rgba(92, 42, 48, 0.06);
  --shadow-lift: 0 2px 6px rgba(92, 42, 48, 0.06), 0 12px 36px rgba(92, 42, 48, 0.10);

  /* Typography */
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max: 1180px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 8rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-base: 280ms;
  --t-slow: 540ms;
}

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

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--rose-100); color: var(--rose-900); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.mono { font-family: var(--font-mono); font-feature-settings: "calt" 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Reveal on load — staggered */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 720ms var(--ease) forwards;
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BACKGROUND TEXTURE — soft rose mesh
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 88% 8%, rgba(212, 133, 142, 0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 6% 92%, rgba(184, 151, 94, 0.08), transparent 60%);
}
body > * { position: relative; z-index: 1; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  padding: 1.5rem 0;
  backdrop-filter: blur(8px);
  background: rgba(251, 247, 244, 0.72);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border-hairline); }
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(212, 133, 142, 0.15);
}
.brand-loc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-tertiary);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--rose-700); }
.nav-links a.active { color: var(--rose-700); }
.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 6px;
  background: var(--text-primary);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav-cta:hover {
  background: var(--rose-700);
  transform: translateY(-1px);
}
/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  transition: background var(--t-fast) var(--ease);
}
.nav-hamburger:hover { background: var(--bg-warm); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--container-pad) 1rem;
    background: rgba(251, 247, 244, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-hairline);
    box-shadow: 0 8px 24px rgba(92, 42, 48, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-hairline);
    font-size: 0.9rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-hamburger span { transition: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-eyebrow {
  margin-bottom: 1.75rem;
  animation-delay: 80ms;
}
.hero-eyebrow::before {
  content: "// ";
  color: var(--rose-500);
}
.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  max-width: 16ch;
  animation-delay: 160ms;
}
.hero-headline .accent {
  color: var(--rose-500);
  font-style: italic;
  font-weight: 400;
  position: relative;
}
.hero-headline .line-2 {
  display: block;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.62em;
  margin-top: 0.4rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.25rem;
  animation-delay: 240ms;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 3.5rem;
  animation-delay: 320ms;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--rose-500);
  color: white;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--rose-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.btn-primary .arrow { transition: transform var(--t-fast) var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}
.btn-ghost:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}
.trust-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-left: 0.5rem;
}
@media (max-width: 540px) {
  .trust-line { margin-left: 0; width: 100%; }
}

/* ============================================================
   PROCESS — the 3-step Discover/Implement/Enable
   ============================================================ */
.process {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation-delay: 420ms;
}
.process-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-base);
}
.process-header .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.process-header .label::before { content: "// "; color: var(--rose-500); }
.process-header .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--rose-700);
}
.step {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem 1.6rem;
  align-items: center;
  border-bottom: 1px solid var(--border-hairline);
  transition: background var(--t-base) var(--ease);
}
.step:last-child { border-bottom: none; }
.step:hover { background: rgba(212, 133, 142, 0.025); }
.step-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--rose-500);
  letter-spacing: -0.02em;
}
.step-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 56ch;
}
.step-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding: 0.3rem 0.65rem;
  background: var(--bg-warm);
  border-radius: 6px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .step {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .step-time {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }
  .step-num { font-size: 1.4rem; }
}

/* ============================================================
   SERVICES — what we actually do (detail under the 3 steps)
   ============================================================ */
.services {
  padding: var(--section-pad) 0;
}
.services-head {
  max-width: 720px;
  margin-bottom: 3rem;
}
.services-head .eyebrow { margin-bottom: 1rem; }
.services-head .eyebrow::before { content: "// "; color: var(--rose-500); }
.services-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.services-head p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 1.75rem;
  transition: transform var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--rose-500);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-rose);
  box-shadow: var(--shadow-lift);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.service-card ul {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.service-card ul li {
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card ul li::before {
  content: "→";
  color: var(--rose-500);
}

/* ============================================================
   PROOF — why work with us
   ============================================================ */
.proof {
  padding: var(--section-pad) 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.proof-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
}
.proof-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}
.proof-head .eyebrow::before { content: "// "; color: var(--rose-500); }
.proof-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.proof-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-hairline);
}
.proof-item:last-child { border-bottom: none; }
.proof-item .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--rose-500);
  font-weight: 500;
  padding-top: 0.15rem;
}
.proof-item h4 {
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  letter-spacing: -0.005em;
}
.proof-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================
   CTA — closing
   ============================================================ */
.cta {
  padding: var(--section-pad) 0;
}
.cta-card {
  background: var(--bg-ink);
  color: var(--text-inverse);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 92% 18%, rgba(212, 133, 142, 0.28), transparent 65%),
    radial-gradient(ellipse 40% 50% at 8% 88%, rgba(184, 151, 94, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card .eyebrow {
  color: var(--rose-300);
  margin-bottom: 1.25rem;
}
.cta-card .eyebrow::before { content: "// "; color: var(--rose-500); }
.cta-card h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1rem;
  max-width: 18ch;
}
.cta-card .accent {
  color: var(--rose-300);
  font-style: italic;
  font-weight: 400;
}
.cta-card p {
  color: rgba(251, 247, 244, 0.7);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cta-card .btn-primary {
  background: var(--rose-500);
}
.cta-card .btn-primary:hover { background: var(--rose-600); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--rose-700); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 0.75rem;
}
