/* =========================================================
   Components — reusable UI pieces and section blocks
   ========================================================= */

/* ---- Brand + navigation ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font: 700 15px/1 var(--font-display);
  letter-spacing: .2em;
}
.brand-mark { width: 30px; height: 30px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .22s var(--ease-out), background .22s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }

/* Current section indicator — set by scrollspy.js */
.nav-links a[aria-current="true"] { color: var(--accent); background: var(--accent-tint); }

/* ---- Buttons ---- */
.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .2s var(--ease-out), background .22s var(--ease-out),
              border-color .22s var(--ease-out), box-shadow .22s var(--ease-out), color .22s var(--ease-out);
}

.nav-cta,
.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover,
.button-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
  box-shadow: var(--shadow-md);
}
/* Pressed state — physical feedback on click. */
.nav-cta:active,
.button-primary:active { transform: translateY(0) scale(.985); box-shadow: var(--shadow-sm); }

.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}
.button-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.button-secondary:active { transform: translateY(0) scale(.985); box-shadow: none; }

.band-dark .button-secondary {
  color: var(--deep-ink);
  border-color: var(--deep-line);
  background: rgba(255, 255, 255, .05);
}
.band-dark .button-secondary:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .10); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.menu-button:hover { background: var(--surface-2); border-color: var(--ink); }
.menu-button:active { transform: scale(.96); }

/* ---- Hero content ---- */
.hero h1 {
  max-width: 14ch;
  color: var(--ink);
  font: 600 clamp(3.1rem, 6.6vw, 5.9rem)/.96 var(--font-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero h1 span {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}

.hero-copy {
  max-width: 52ch;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.proof-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 4px var(--positive-soft);
}

/* ---- Hero visual: mock product interface ----------------------------
   Stays dark on purpose. It reads as a real product screenshot and
   gives the light page a strong focal anchor.
   ------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  min-height: 540px;
  perspective: 1400px;
}

.visual-glow {
  position: absolute;
  inset: 12% 6% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 130, 61, .30), rgba(224, 130, 61, .08) 40%, transparent 72%);
  filter: blur(14px);
  animation: breathe 6s ease-in-out infinite;
}

.interface {
  position: absolute;
  inset: 6% 0 2% 4%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, var(--deep-2), var(--deep) 72%);
  box-shadow:
    0 2px 4px rgba(38, 26, 14, .10),
    0 32px 70px rgba(38, 26, 14, .26),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: rotateY(-7deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}

.interface-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--deep-line);
}
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.window-label { color: var(--deep-muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.interface-body { display: grid; grid-template-columns: 84px 1fr; min-height: 410px; }
.mini-sidebar { padding: 20px 13px; border-right: 1px solid var(--deep-line); }
.side-logo {
  position: relative;
  width: 34px;
  height: 34px;
  margin: 0 auto 26px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
}
.side-logo::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--deep);
  border-radius: 4px;
}
.side-nav { display: grid; gap: 14px; }
.side-nav i {
  width: 36px;
  height: 36px;
  margin: auto;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
}
.side-nav i:first-child { border-color: rgba(224, 130, 61, .5); background: rgba(224, 130, 61, .16); }

.dashboard { padding: 22px; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dash-title strong { display: block; color: var(--deep-ink); font: 600 19px var(--font-display); }
.dash-title span { display: block; margin-top: 5px; color: var(--deep-muted); font-size: 11px; }
.status-chip {
  flex: none;
  padding: 7px 11px;
  border: 1px solid rgba(143, 213, 166, .26);
  border-radius: 999px;
  color: #8fd5a6;
  background: rgba(143, 213, 166, .10);
  font-size: 10px;
  font-weight: 700;
}

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.metric {
  padding: 13px;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
}
.metric span { color: var(--deep-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.metric strong { display: block; margin-top: 8px; color: var(--deep-ink); font: 600 18px var(--font-display); }
.metric small { display: block; margin-top: 4px; color: #8fd5a6; font-size: 9px; }

.chart-card {
  position: relative;
  height: 172px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(224, 130, 61, .07), rgba(255, 255, 255, .015));
}
.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 100% 33.33%, 20% 100%;
}
.chart-line { position: absolute; inset: 20px 18px 18px; }
.chart-line svg { width: 100%; height: 100%; overflow: visible; }
.chart-line path {
  fill: none;
  stroke: var(--accent-glow);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(224, 130, 61, .45));
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 2.4s var(--ease) .5s forwards;
}

.floating-card {
  position: absolute;
  z-index: var(--z-raised);
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-a { top: 2%; right: -3%; width: 186px; animation-delay: -.8s; }
.float-b { left: -5%; bottom: 2%; width: 206px; animation-delay: -2.6s; }
.floating-card span { display: block; color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.floating-card strong { display: block; margin-top: 7px; color: var(--ink); font: 600 18px var(--font-display); }
.floating-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.progress { height: 5px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.progress i {
  display: block;
  height: 100%;
  width: 86%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
}

/* ---- Trust strip ---- */
.trust-label {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-items span {
  color: var(--ink-2);
  font: 600 16px var(--font-display);
  letter-spacing: .01em;
}

/* ---- Service cards ---- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), border-color .3s var(--ease-out), box-shadow .35s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

/* Lead card carries the accent so the row has a clear entry point. */
.service-card.is-lead {
  border-color: rgba(169, 80, 31, .22);
  background: linear-gradient(168deg, var(--accent-soft), var(--surface) 58%);
}

.service-number {
  color: var(--accent);
  font: 600 12px var(--font-display);
  letter-spacing: .14em;
}
.service-card h3 {
  margin-top: 64px;
  color: var(--ink);
  font: 600 clamp(1.45rem, 2vw, 1.85rem)/1.12 var(--font-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.service-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
/* Pins the list to the bottom so all three align regardless of copy length. */
.service-list {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 24px;
  list-style: none;
}
.service-list li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}
.service-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.service-icon {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--accent);
  background: var(--paper);
}
.service-card.is-lead .service-icon { border-color: rgba(169, 80, 31, .2); background: var(--surface); }
.service-icon svg { width: 26px; height: 26px; }

/* ---- Work cards ---- */
.work-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--deep);
  box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-card.tall { grid-row: span 2; }
.work-card.small { min-height: 220px; }

.work-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 12%, rgba(224, 130, 61, .32), transparent 40%),
    linear-gradient(150deg, #262c36, #14171c 72%);
}
.work-backdrop.alt {
  background:
    radial-gradient(circle at 12% 92%, rgba(96, 132, 214, .26), transparent 42%),
    linear-gradient(145deg, #1b2029, #101318);
}
.work-backdrop.warm {
  background:
    radial-gradient(circle at 88% 12%, rgba(224, 130, 61, .28), transparent 46%),
    linear-gradient(160deg, #241b13, #131518);
}

.work-ui {
  position: absolute;
  inset: 74px 38px 38px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-lg);
  background: rgba(9, 11, 14, .66);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .4);
  backdrop-filter: blur(8px);
  transform: rotate(-2deg);
}
.work-ui-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 100%; }
.mock-panel {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .04);
}
.mock-panel.highlight { background: linear-gradient(150deg, rgba(224, 130, 61, .22), rgba(255, 255, 255, .03)); }

.work-meta {
  position: absolute;
  inset: 26px 28px auto;
  z-index: var(--z-raised);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.work-meta h3 { color: var(--deep-ink); font: 600 19px var(--font-display); letter-spacing: -.015em; }
.work-meta p { margin-top: 5px; color: var(--deep-muted); font-size: 12.5px; }
.work-tag {
  flex: none;
  padding: 6px 11px;
  border: 1px solid var(--deep-line);
  border-radius: 999px;
  color: var(--deep-muted);
  background: rgba(255, 255, 255, .05);
  font-size: 10px;
  font-weight: 600;
}

.mini-visual { position: absolute; inset: 84px 24px 24px; display: grid; place-items: center; }
.rings { position: relative; width: 132px; aspect-ratio: 1; }
.rings i {
  --n: 0;
  position: absolute;
  inset: calc(var(--n) * 12px);
  border: 1px solid rgba(224, 130, 61, calc(.5 - var(--n) * .09));
  border-radius: 50%;
}
.rings i:nth-child(2) { --n: 1; }
.rings i:nth-child(3) { --n: 2; }
.rings i:nth-child(4) { --n: 3; }
.rings::after {
  content: "99.9%";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--deep-ink);
  font: 600 23px var(--font-display);
}

.workflow {
  position: absolute;
  inset: 92px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 22px;
}
.workflow-node {
  position: relative;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .05);
  color: var(--deep-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.workflow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% + 4px);
  width: 14px;
  height: 1px;
  background: var(--accent-glow);
  box-shadow: 0 0 12px rgba(224, 130, 61, .6);
}

/* ---- Performance ---- */
.performance-copy > p {
  max-width: 52ch;
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.75;
  text-wrap: pretty;
}
.performance-list { display: grid; gap: 12px; margin-top: 30px; }
.performance-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
}
.performance-list li i {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--positive-soft);
  color: var(--positive);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.performance-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: center; }
.performance-card {
  display: flex;
  flex-direction: column;
  min-height: 186px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.performance-card span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.performance-card strong {
  display: block;
  margin-top: auto;
  color: var(--ink);
  font: 600 clamp(2.1rem, 3.4vw, 3.2rem)/1 var(--font-display);
  letter-spacing: -.045em;
}
.performance-card p { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---- Value ---- */
.value-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.value-panel h3 {
  margin-top: 4px;
  color: var(--ink);
  font: 600 1.75rem/1.2 var(--font-display);
  letter-spacing: -.03em;
}
.value-panel > p { max-width: 46ch; margin-top: 13px; color: var(--muted); line-height: 1.68; }

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.price-line strong {
  color: var(--ink);
  font: 600 clamp(2.6rem, 5vw, 3.6rem)/1 var(--font-display);
  letter-spacing: -.05em;
}
.price-line span { color: var(--faint); font-size: 13px; font-weight: 600; }

.value-list { display: grid; gap: 12px; margin-top: 24px; list-style: none; }
.value-list li {
  display: flex;
  gap: 11px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.value-list li::before {
  content: "✓";
  flex: none;
  color: var(--positive);
  font-weight: 700;
}
.value-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.65;
}

.value-copy { padding-top: 8px; }
.value-points { display: grid; gap: 4px; margin-top: 36px; }
.value-point {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.value-point b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: var(--accent-soft);
  font: 600 13px var(--font-display);
}
.value-point h4 { color: var(--ink); font: 600 17px var(--font-display); letter-spacing: -.01em; }
.value-point p { margin-top: 6px; max-width: 54ch; color: var(--muted); font-size: 13.5px; line-height: 1.68; }

/* ---- Contact (inside the dark closing band) ---- */
.contact-box { position: relative; }
.contact-box h2 {
  max-width: 16ch;
  color: var(--deep-ink);
  font: 600 clamp(2.3rem, 5.2vw, 4.4rem)/1.02 var(--font-display);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.contact-box p {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--deep-muted);
  font-size: 16px;
  line-height: 1.72;
  text-wrap: pretty;
}
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep-ink);
  text-decoration: none;
  font: 600 clamp(1rem, 1.6vw, 1.18rem) var(--font-display);
  border-bottom: 1px solid transparent;
  transition: border-color .22s var(--ease-out), color .22s var(--ease-out);
}
.email-link::after { content: "↗"; color: var(--accent-glow); }
.email-link:hover { border-bottom-color: var(--accent-glow); }

/* Value panel CTA should fill its column. */
.value-panel .contact-actions { margin-top: 26px; }
.value-panel .contact-actions .button { width: 100%; }

/* ---- Footer ---- */
.footer-copy { color: var(--deep-muted); font-size: 12.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a {
  color: var(--deep-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: color .2s var(--ease-out);
}
.footer-links a:hover { color: var(--accent-glow); }
