/* Hamingcs — shared styles
   Base: near-black + off-white. Teal is the primary accent, copper a secondary highlight. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0A0D12;
  --bg-2: #10141B;
  --bg-3: #161B24;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);
  --fg: #F2F4F7;
  --fg-2: rgba(242,244,247,.66);
  --fg-3: rgba(242,244,247,.42);
  --fg-4: rgba(242,244,247,.22);
  --teal: #1FC9B0;
  --teal-deep: #0F6B63;
  --copper: #E0A25E;
  --white: #FFFFFF;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --display: 'Space Grotesk', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --container: 1080px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--teal); color: #06110F; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- chips ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 12px;
  border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--fg-2);
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(31,201,176,.75); flex: none; }

/* ---------- headings ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--fg);
}

.h2 { font-size: 2.1rem; line-height: 1.25; letter-spacing: -.02em; margin-top: 14px; }
.h2__b { color: var(--fg-3); display: block; }

.lede { font-size: 1.08rem; line-height: 1.6; color: var(--fg-2); max-width: 58ch; }

.section-head {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: end; margin-bottom: 44px;
}
.section-head__p { font-size: .98rem; line-height: 1.6; color: var(--fg-2); padding-bottom: 4px; }

/* ---------- justified description copy ---------- */

.lede, .intro-p, .section-head__p, .service-card p, .plan__blurb,
.qa__a, .principle p, .pillar p, .footer-brand p, .cta p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 28px;
  border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #06110F; }
.btn-primary:hover { background: #3EE0C6; transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(31,201,176,.55); }

.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: var(--fg-4); }

/* ---------- nav ---------- */

.site-nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(10,13,18,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.site-nav.is-scrolled { background: rgba(10,13,18,.86); border-bottom-color: var(--line); }

.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-mark img { height: 34px; width: auto; display: block; }

.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; color: var(--fg); }
.wordmark span { color: var(--teal); }

.footer-logo { height: 28px; width: auto; display: block; }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: .88rem; font-weight: 500; }
.nav-links a { color: var(--fg-2); padding: 9px 16px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,.06); }
.nav-links a[aria-current="page"] { color: var(--fg); background: rgba(31,201,176,.12); }

.nav-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px;
  background: rgba(255,255,255,.08); font-size: .86rem; font-weight: 600; transition: background .25s; }
.nav-cta:hover { background: rgba(255,255,255,.15); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--bg); padding: 100px 0 96px; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 60% at 85% 0%, rgba(31,201,176,.16), rgba(31,201,176,0) 60%),
              radial-gradient(70% 50% at 10% 100%, rgba(224,162,94,.10), rgba(224,162,94,0) 70%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-bg-svg { position: absolute; top: 0; right: 0; height: 100%; width: auto; opacity: .5; z-index: 0; pointer-events: none; }

.hero .chip { margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.1; max-width: 15ch; }
.hero .lede { margin-top: 20px; }

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

.page-hero { padding: 64px 0 56px; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2rem, 4vw, 2.6rem); }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }

/* ---------- console panel (hero graphic) ---------- */

.console {
  border-radius: 20px; overflow: clip; background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.7), 0 0 0 6px rgba(255,255,255,.02);
}
.console__bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.console__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }

.pillar { padding: 24px 26px; }
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--teal); margin-bottom: 8px; }
.pillar h3 { font-size: 1.02rem; margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--fg-2); font-size: .92rem; }

/* ---------- sections ---------- */

section.block { padding: 96px 0; }
section.block.tight { padding: 72px 0; }
section.block.on-2 { background: var(--bg-2); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

/* stat row */

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card {
  padding: 28px 26px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line);
}
.stat-num { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--teal); }
.stat-label { font-size: .86rem; color: var(--fg-2); margin-top: 6px; line-height: 1.5; }

/* intro statement */

.intro-stack { max-width: 700px; }
.intro-p { font-size: 1.55rem; line-height: 1.4; letter-spacing: -.01em; color: var(--fg-3); margin-top: 30px; transition: color .3s; }
.intro-p:first-of-type { margin-top: 28px; }
.intro-p.is-lead { color: var(--fg); }

/* ---------- service groups &amp; cards ---------- */

.service-group-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.service-group-icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.service-group-icon svg { width: 30px; height: 30px; }
.service-group-head .chip { margin-bottom: 6px; }
.service-group-head h3 { font-size: 1.3rem; }

.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  padding: 24px 22px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.service-card h4 { font-size: .96rem; font-weight: 600; margin: 0 0 8px; color: var(--fg); }
.service-card p { margin: 0; color: var(--fg-2); font-size: .88rem; line-height: 1.55; }

/* ---------- plans / engagement models ---------- */

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  padding: 32px 28px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
}
.plan--raised { background: var(--bg-3); border-color: var(--line-2); box-shadow: 0 30px 70px -40px rgba(31,201,176,.35); }
.plan__label { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--fg-2); }
.plan__mode { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--fg); }
.plan__blurb { color: var(--fg-2); font-size: .9rem; margin: 0; }
.plan__rows { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan__rows li { display: flex; gap: 10px; font-size: .88rem; color: var(--fg-2); }
.plan__rows li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--teal); }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.faq-tabs { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.faq-tabs button { padding: 12px 14px; border-radius: 10px; font-size: .88rem; color: var(--fg-2); text-align: left; transition: background .2s, color .2s; }
.faq-tabs button.is-active { background: rgba(31,201,176,.12); color: var(--fg); }
.faq-tabs button:hover { color: var(--fg); }

.faq-set { display: none; flex-direction: column; gap: 10px; }
.faq-set.is-active { display: flex; }

.qa { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; background: var(--bg-2); }
.qa summary { list-style: none; padding: 16px 0; font-weight: 500; font-size: .96rem; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--fg-3); font-size: 1.2rem; flex: none; }
.qa[open] summary::after { content: '\2212'; }
.qa__a { padding: 0 0 18px; color: var(--fg-2); font-size: .92rem; line-height: 1.6; }

/* ---------- CTA ---------- */

.cta { position: relative; overflow: hidden; padding: 100px 0; text-align: center; background: var(--bg-2); }
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 70% at 50% 100%, rgba(31,201,176,.16), rgba(31,201,176,0) 70%);
}
.cta .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta .h2 { max-width: 16ch; }
.cta p { color: var(--fg-2); max-width: 50ch; margin: 18px auto 0; }
.cta .btn { margin-top: 34px; }

/* ---------- about principles ---------- */

.principle { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle-mark { font-family: var(--mono); color: var(--copper); font-size: .82rem; padding-top: 3px; }
.principle h3 { font-size: 1rem; margin-bottom: 4px; }
.principle p { margin: 0; color: var(--fg-2); font-size: .92rem; }

.merge-illustration { width: 100%; height: auto; margin-top: 32px; display: block; }

/* ---------- contact ---------- */

.contact-card { border: 1px solid var(--line); border-radius: 20px; padding: 12px 36px; background: var(--bg-2); }
.contact-line { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); gap: 20px; }
.contact-line:first-child { border-top: none; }
.contact-line .label { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--fg-3); }
.contact-line .value { font-weight: 500; }

/* ---------- footer ---------- */

footer.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--fg-2); font-size: .88rem; margin-top: 14px; max-width: 32ch; }
.footer-col h5 { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--fg-3); margin: 0 0 14px; font-weight: 500; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; color: var(--fg-2); font-size: .9rem; padding: 6px 0; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--fg-3); flex-wrap: wrap; gap: 10px; }

/* ---------- scroll progress ---------- */

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 2px; pointer-events: none; }
.progress__bar {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(31,201,176,.8), var(--teal) 60%, #CFFBF2);
  box-shadow: 0 0 12px rgba(31,201,176,.7); will-change: transform;
}
.progress__head {
  position: absolute; top: -3px; left: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 3px rgba(31,201,176,.85); transform: translateX(0);
  opacity: 0; transition: opacity .3s var(--ease); will-change: transform;
}
.progress.is-on .progress__head { opacity: 1; }

/* ---------- reveal-on-scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .stat-row, .plans-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-tabs { flex-direction: row; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .wrap { padding: 0 20px; }
}

@media (max-width: 560px) {
  .service-cards { grid-template-columns: 1fr; }
  .service-group-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
