/* ============================================================
   Hasnex Systems — Landing Page
   Light theme, option B: emerald on warm bone.

   Colour roles (contrast measured against the page background):
     #10B981  fill only — dots, chips, rules. NEVER text on light (2.5:1)
     #047857  primary action, buttons                          (5.5:1)
     #065F46  links and emphasised text                        (7.7:1)
     #12181C  body ink                                        (16.6:1)

   The hero, closing CTA and footer stay dark — they carry .on-dark,
   which re-points the text/line tokens instead of restyling components.
   ============================================================ */

:root {
  /* brand greens */
  --green-bright: #10B981;
  --green:        #047857;
  --green-deep:   #065F46;
  --green-darker: #064E3B;

  /* light surfaces */
  --paper: #FAF9F5;
  --band:  #F1EEE6;
  --card:  #FFFFFF;
  --tint:  #E9F4EF;

  /* ink */
  --ink:   #12181C;
  --ink-2: #4A5551;
  --ink-3: #626B66;

  /* dark-section surfaces */
  --dark:   #0C1512;
  --dark-2: #122019;

  /* semantic tokens — .on-dark re-points these */
  --text:    var(--ink);
  --muted:   var(--ink-2);
  --muted-2: var(--ink-3);
  --line:    rgba(18, 24, 28, .10);
  --line-2:  rgba(18, 24, 28, .17);
  --surface: var(--card);

  --grad: linear-gradient(120deg, var(--green), var(--green-darker));

  --shadow-sm:    0 2px 8px rgba(18, 24, 28, .05);
  --shadow-md:    0 10px 30px -12px rgba(18, 24, 28, .16);
  --shadow-lg:    0 28px 64px -28px rgba(18, 24, 28, .28);
  --shadow-green: 0 12px 28px -10px rgba(4, 120, 87, .42);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-head: "Sora", "Inter", system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Dark bookends. Only tokens change — components inherit. */
.on-dark {
  --text:    #EAF2EE;
  --muted:   #9DAEA7;
  --muted-2: #7E9089;
  --line:    rgba(255, 255, 255, .10);
  --line-2:  rgba(255, 255, 255, .16);
  --surface: rgba(255, 255, 255, .045);
  color: var(--text);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.05rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--muted); }
a  { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

::selection { background: var(--green-bright); color: #04241A; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--green); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { left: 12px; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--green-bright); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 820px; }

.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }

/* Warm band, not a gradient — flat reads cleaner on light. */
.section--alt {
  background: var(--band);
  border-block: 1px solid rgba(18, 24, 28, .06);
}

.sec-head { max-width: 700px; margin-bottom: 54px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-sub { font-size: 1.06rem; color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
}
.on-dark .eyebrow { color: var(--green-bright); }
.eyebrow--light { color: rgba(255, 255, 255, .85); }

.grad { color: var(--green-deep); }
.on-dark .grad {
  background: linear-gradient(100deg, #34D399, var(--green-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-body);
  font-weight: 650;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn--primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -12px rgba(4, 120, 87, .5);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--tint);
  border-color: var(--green);
  color: var(--green-deep);
  transform: translateY(-2px);
}
.on-dark .btn--ghost { background: rgba(255, 255, 255, .05); }
.on-dark .btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(16, 185, 129, .55);
  color: #fff;
}
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: .62; cursor: wait; transform: none; box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--green-deep); font-weight: 600; font-size: .92rem;
  margin-top: 4px;
}
.link-arrow svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease);
}
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- nav ---------- */
/* Transparent over the dark hero, then flips to paper once stuck. */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-stuck {
  background: rgba(250, 249, 245, .88);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(18, 24, 28, .09);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

.logo { display: inline-flex; align-items: center; }
.logo__text {
  font-family: var(--f-head); font-weight: 800; font-size: 1.16rem;
  letter-spacing: -.02em; color: #fff;
  transition: color .3s var(--ease);
}
.logo__text span { color: var(--green-bright); }
.nav.is-stuck .logo__text { color: var(--ink); }
.nav.is-stuck .logo__text span { color: var(--green); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) {
  font-size: .93rem; font-weight: 500;
  color: rgba(255, 255, 255, .72);
  transition: color .2s; position: relative;
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--green-bright); border-radius: 2px; transition: width .25s var(--ease);
}
.nav__links > a:not(.btn):hover { color: #fff; }
.nav__links > a:not(.btn):hover::after { width: 100%; }
.nav.is-stuck .nav__links > a:not(.btn) { color: var(--ink-2); }
.nav.is-stuck .nav__links > a:not(.btn):hover { color: var(--green-deep); }
.nav.is-stuck .nav__links > a:not(.btn)::after { background: var(--green); }
/* LinkedIn in the header — inherits the nav's light/stuck colour flip */
.nav__social {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.nav__social svg {
  width: 17px; height: 17px;
  fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .25s var(--ease);
}
.nav__social:hover {
  background: rgba(16, 185, 129, .18);
  border-color: rgba(16, 185, 129, .45);
  transform: translateY(-2px);
}
.nav__social:hover svg { stroke: #6EE7B7; }

.nav.is-stuck .nav__social { border-color: var(--line-2); background: transparent; }
.nav.is-stuck .nav__social svg { stroke: var(--ink-2); }
.nav.is-stuck .nav__social:hover { background: var(--tint); border-color: var(--green); }
.nav.is-stuck .nav__social:hover svg { stroke: var(--green-deep); }

.nav__cta { margin-left: 6px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, background .3s;
}
.nav.is-stuck .nav__toggle span { background: var(--ink); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero (dark) ---------- */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 92px) 0 clamp(48px, 6vw, 76px);
  margin-top: -76px;
  padding-top: calc(clamp(52px, 7vw, 92px) + 76px);
  background: var(--dark);
  overflow: hidden;
}

.hero__glow {
  position: absolute; inset: -30% -10% auto -10%; height: 780px;
  background:
    radial-gradient(46% 52% at 22% 30%, rgba(16, 185, 129, .28), transparent 70%),
    radial-gradient(40% 48% at 82% 18%, rgba(4, 120, 87, .30), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(72% 62% at 50% 32%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 32%, #000 30%, transparent 78%);
  opacity: .55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 60px;
  align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .32);
  color: #6EE7B7;
  font-size: .82rem; font-weight: 600;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .7);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.lead { font-size: 1.13rem; max-width: 560px; margin-bottom: 32px; }
.lead em { color: #6EE7B7; font-style: normal; font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero .btn--primary { background: var(--green-bright); color: #04241A; }
.hero .btn--primary:hover { background: #34D399; }

.hero__ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; }
.hero__ticks li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .89rem; color: var(--muted); font-weight: 500;
}
.hero__ticks svg {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: var(--green-bright); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}

/* hero console visual */
.hero__visual { position: relative; }

.console {
  background: linear-gradient(165deg, var(--dark-2), #0A1310);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2.5deg);
  transition: transform .6s var(--ease);
}
.console:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-4px); }

.console__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #F87171; } .dot--y { background: #FBBF24; } .dot--g { background: var(--green-bright); }
.console__title { margin-left: 10px; font-size: .76rem; color: var(--muted-2); letter-spacing: .02em; }

.console__body { padding: 20px 18px; }

.node {
  display: flex; align-items: center; gap: 13px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 13px 14px;
}
.node strong { display: block; font-size: .92rem; color: #fff; font-weight: 600; line-height: 1.3; }
.node span:not(.tag) { display: block; font-size: .78rem; color: var(--muted-2); }
.node > div:nth-child(2) { flex: 1; min-width: 0; }
.node--win { border-color: rgba(16, 185, 129, .42); background: rgba(16, 185, 129, .1); }

.node__ico {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(16, 185, 129, .15);
  border: 1px solid rgba(16, 185, 129, .28);
}
.node__ico svg {
  width: 18px; height: 18px;
  fill: none; stroke: #6EE7B7; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.node__ico--win { background: var(--green-bright); border-color: transparent; }
.node__ico--win svg { stroke: #04241A; }

.tag {
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .07); color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .1);
}
.tag--live { background: rgba(16, 185, 129, .18); color: #6EE7B7; border-color: rgba(16, 185, 129, .3); }
.tag--win  { background: var(--green-bright); color: #04241A; border-color: transparent; }

.wire {
  width: 2px; height: 22px; margin-left: 37px;
  background: linear-gradient(180deg, rgba(16, 185, 129, .65), rgba(16, 185, 129, .15));
  position: relative;
}
.wire::after {
  content: ""; position: absolute; left: -2px; width: 6px; height: 6px;
  border-radius: 50%; background: #6EE7B7;
  box-shadow: 0 0 10px 2px rgba(16, 185, 129, .8);
  animation: flow 2.6s var(--ease) infinite;
}
@keyframes flow {
  0%   { top: -3px; opacity: 0; }
  25%  { opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

.float-card {
  position: absolute;
  background: rgba(18, 32, 25, .94);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  animation: bob 6s ease-in-out infinite;
}
.float-card--1 { left: -34px; top: 16%; }
.float-card--2 { right: -22px; bottom: 12%; animation-delay: -3s; }
.float-card__label { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.float-card__value { display: block; font-family: var(--f-head); font-size: 1.4rem; font-weight: 700; color: #6EE7B7; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* trust strip */
.trust {
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.trust__label {
  display: block; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 18px;
}
.trust__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.trust__logos span {
  font-family: var(--f-head); font-weight: 700; font-size: 1.02rem;
  color: rgba(255, 255, 255, .45);
  transition: color .25s;
}
.trust__logos span:hover { color: #6EE7B7; }

/* ---------- pain ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.pain:hover { border-color: rgba(4, 120, 87, .35); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain__num {
  font-family: var(--f-head); font-size: 2.1rem; font-weight: 800;
  color: #3F9470; display: block; line-height: 1; margin-bottom: 14px;
}
.pain h3 { margin-bottom: .45em; }
.pain p { margin: 0; font-size: .96rem; }

.pain-answer {
  margin: 40px auto 0; max-width: 640px; text-align: center;
  font-size: 1.08rem; color: var(--muted);
}
.pain-answer strong { color: var(--ink); }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.svc:hover {
  transform: translateY(-5px);
  border-color: rgba(4, 120, 87, .4);
  box-shadow: 0 26px 50px -24px rgba(4, 120, 87, .3);
}
.svc--wide { grid-column: span 2; }
.svc--accent { border-color: rgba(4, 120, 87, .3); background: var(--tint); }

.svc__ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--tint);
  border: 1px solid rgba(4, 120, 87, .22);
  margin-bottom: 18px;
}
.svc--accent .svc__ico { background: #fff; }
.svc__ico svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--green); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.svc h3 { font-size: 1.16rem; }
.svc p { font-size: .96rem; margin-bottom: 0; }
.svc__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.svc__list li { position: relative; padding-left: 24px; font-size: .93rem; color: var(--muted); }
.svc__list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--green-bright);
}
.svc .link-arrow { margin-top: auto; padding-top: 16px; }

/* ---------- process ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.step { position: relative; padding-top: 28px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(4, 120, 87, .15));
  border-radius: 2px;
}
.step__n {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--green); color: #fff;
  font-family: var(--f-head); font-weight: 800; font-size: 1.05rem;
  margin-bottom: 16px;
  box-shadow: var(--shadow-green);
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.why__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.why__list li { display: flex; gap: 14px; align-items: flex-start; }
.why__list div { font-size: .99rem; color: var(--muted); line-height: 1.6; }
.why__list strong { color: var(--ink); font-weight: 650; }
.why__ico {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; margin-top: 3px;
  background: var(--tint); border: 1px solid rgba(4, 120, 87, .25);
}
.why__ico svg {
  width: 13px; height: 13px; fill: none; stroke: var(--green); stroke-width: 3.4;
  stroke-linecap: round; stroke-linejoin: round;
}

.why__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.stat:hover { border-color: rgba(4, 120, 87, .38); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat__v {
  display: block;
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.stat__l { font-size: .86rem; color: var(--muted-2); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.quote:hover { border-color: rgba(4, 120, 87, .35); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote__stars { color: #8A6410; letter-spacing: 3px; font-size: .95rem; }
.quote blockquote { margin: 0; font-size: 1rem; color: var(--ink); line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption strong { display: block; font-size: .93rem; color: var(--ink); }
.quote figcaption span:not(.av) { display: block; font-size: .82rem; color: var(--muted-2); }
.av {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  font-family: var(--f-head); font-weight: 700; font-size: .85rem;
}

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: center; }

.founder__photo { position: relative; }
.founder__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(4, 120, 87, .2);
  box-shadow: var(--shadow-lg);
  background: var(--band);
  aspect-ratio: 1 / 1;
}
.founder__frame img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}
/* On light the photo needs the opposite treatment to the dark build:
   a warm lift at the bottom so the grey studio backdrop meets the bone page. */
.founder__frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(250, 249, 245, .5) 100%),
    linear-gradient(145deg, rgba(4, 120, 87, .1), transparent 55%);
  pointer-events: none;
}
.founder__photo::before {
  content: "";
  position: absolute;
  inset: 12% -8% -10% -8%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(4, 120, 87, .16), transparent 70%);
  filter: blur(36px);
  z-index: -1;
}

.founder__badge {
  position: absolute;
  right: -14px;
  bottom: 26px;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: .84rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.founder__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .7);
  animation: ping 2.2s infinite;
}

.founder__copy p { font-size: 1.03rem; }

.founder__facts {
  list-style: none; padding: 0; margin: 28px 0;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.founder__facts li {
  display: grid; grid-template-columns: 148px 1fr; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.founder__fact-k {
  font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--green-deep);
}
.founder__fact-v { font-size: .97rem; color: var(--muted); }

.founder__sign { margin-bottom: 26px; }
.founder__sig {
  font-family: var(--f-head); font-size: 1.45rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.02em; line-height: 1.2;
}
.founder__role { font-size: .88rem; color: var(--muted-2); }

/* ---------- pricing (markup lives in snippets/pricing-section.html) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(4, 120, 87, .35); box-shadow: var(--shadow-md); }
.plan--featured {
  position: relative;
  border-color: rgba(4, 120, 87, .45);
  background: var(--tint);
  box-shadow: 0 28px 60px -30px rgba(4, 120, 87, .4);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-size: 1.28rem; margin-bottom: .25em; }
.plan__for { font-size: .88rem; color: var(--muted-2); margin-bottom: 20px; }
.plan__price {
  font-family: var(--f-head); font-weight: 800; font-size: 2.1rem; color: var(--ink);
  line-height: 1.1; padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.plan__from { font-family: var(--f-body); font-size: .8rem; font-weight: 500; color: var(--muted-2); display: block; }
.plan__unit { font-family: var(--f-body); font-size: .9rem; font-weight: 500; color: var(--muted-2); }
.plan__feat { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.plan__feat li { position: relative; padding-left: 26px; font-size: .94rem; color: var(--muted); line-height: 1.5; }
.plan__feat li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, .35);
}
.plan__feat li::after {
  content: ""; position: absolute; left: 4.5px; top: .58em;
  width: 6px; height: 3px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }
.plans__note { text-align: center; margin: 34px auto 0; max-width: 620px; font-size: .92rem; color: var(--muted-2); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, background .3s;
}
.faq__item[open] { border-color: rgba(4, 120, 87, .4); background: var(--tint); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600; font-size: 1.02rem; color: var(--ink);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__i { position: relative; flex: none; width: 20px; height: 20px; }
.faq__i::before, .faq__i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--green); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .3s;
}
.faq__i::before { width: 13px; height: 2px; }
.faq__i::after  { width: 2px; height: 13px; }
.faq__item[open] .faq__i::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__item p { margin: 0; padding: 0 24px 22px; font-size: .97rem; }

/* ---------- CTA (dark) ---------- */
.cta {
  position: relative;
  padding: clamp(72px, 9vw, 116px) 0;
  background:
    radial-gradient(70% 100% at 20% 0%, rgba(16, 185, 129, .16), transparent 70%),
    var(--dark);
}
.cta__inner { display: grid; grid-template-columns: 1fr .88fr; gap: 60px; align-items: center; }
.cta__copy p { font-size: 1.05rem; max-width: 500px; }
.cta__ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.cta__ticks li { position: relative; padding-left: 26px; font-size: .96rem; color: var(--muted); }
.cta__ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--green-bright); font-weight: 700;
}

/* ---------- form ---------- */
/* A paper card on the dark band — highest-contrast element on the page,
   which is what you want the eye to land on. */
.form {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .6);
  color: var(--ink);
}
.form__title { color: var(--ink); font-size: 1.24rem; margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: .84rem; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px;
}
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--f-body); font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(18, 24, 28, .18);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5551' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: #98A29D; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, .16);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192, 57, 43, .13);
}
.form .btn { margin-top: 8px; }
.form__note { text-align: center; font-size: .84rem; color: var(--ink-3); margin: 14px 0 0; }
.form__note.is-ok { color: var(--green-deep); font-weight: 600; }
.form__note.is-err { color: #A93226; font-weight: 600; }

/* ---------- footer (dark) ---------- */
.footer { padding: 60px 0 28px; background: #08110E; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 40px;
}
.footer__brand p { font-size: .93rem; margin: 16px 0 0; max-width: 320px; }
.footer .logo__text { color: #fff; }
.footer__col h4 {
  font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px; font-family: var(--f-body); font-weight: 700;
}
.footer__col a {
  display: block; font-size: .93rem; color: var(--muted);
  margin-bottom: 10px; transition: color .2s, transform .2s var(--ease);
}
.footer__col a:hover { color: #6EE7B7; transform: translateX(3px); }
.footer__hint { font-size: .9rem; color: var(--muted); margin: 0 0 12px; max-width: 250px; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 10px; margin: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.footer__social a:hover { background: rgba(16, 185, 129, .16); border-color: rgba(16, 185, 129, .4); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__social a:hover svg { stroke: #6EE7B7; }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--muted-2);
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: #6EE7B7; }

/* ---------- reveal animation ----------
   Scoped to .js so the page stays fully visible without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .hero__inner { grid-template-columns: 1fr; gap: 54px; }
  .hero__copy { max-width: 660px; }
  .console { transform: none; }
  .console:hover { transform: translateY(-4px); }
  .float-card--1 { left: 0; }
  .float-card--2 { right: 0; }

  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
  .why { grid-template-columns: 1fr; gap: 44px; }
  .founder { grid-template-columns: 1fr; gap: 46px; justify-items: start; }
  .founder__photo { max-width: 380px; width: 100%; }
  .quotes { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 780px) {
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow-md);
    padding: 10px 24px 26px;
    transform: translateY(-14px);
    opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  /* Panel is paper even when the nav sits over the dark hero. */
  .nav__links > a:not(.btn),
  .nav.is-stuck .nav__links > a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--ink-2);
  }
  .nav__links > a:not(.btn):hover { color: var(--green-deep); }
  .nav__links > a:not(.btn)::after { display: none; }

  /* The panel is paper regardless of stuck state, so force the light treatment
     and stop the icon stretching to full width under align-items: stretch. */
  .nav__social,
  .nav.is-stuck .nav__social {
    align-self: flex-start;
    margin-top: 18px;
    border-color: var(--line-2);
    background: transparent;
  }
  .nav__social svg,
  .nav.is-stuck .nav__social svg { stroke: var(--ink-2); }
  .nav__social:hover { background: var(--tint); border-color: var(--green); }
  .nav__social:hover svg { stroke: var(--green-deep); }

  .nav__cta { margin: 18px 0 0; }
  .nav__toggle { display: flex; }

  .pain-grid, .svc-grid, .steps { grid-template-columns: 1fr; }
  .svc--wide { grid-column: span 1; }
  .why__stats { grid-template-columns: repeat(2, 1fr); }
  .founder__photo { max-width: none; }
  .founder__badge { right: 50%; transform: translateX(50%); bottom: -16px; }
  .float-card { display: none; }
  .trust__logos { gap: 12px 26px; }
  .trust__logos span { font-size: .92rem; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .form { padding: 26px 22px; }
  .plan { padding: 30px 24px; }
  .founder__facts li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
