/* VerdIQ HQ v2 — enterprise system. Dark default; [data-theme="light"] switches. */
:root { --font: "Nunito Sans", "Museo Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
:root,
:root[data-theme="dark"] {
  --bg: #060807;
  --bg-2: #0C100E;
  --surface: #111613;
  --fg: #F2F4F0;
  --muted: #A7AFA6;
  --soft: #7F887E;
  --line: rgba(242, 244, 240, 0.12);
  --line-2: rgba(242, 244, 240, 0.24);
  --hover: rgba(242, 244, 240, 0.05);
  --accent: #B6F23E;
  --fill: #B6F23E;
  --on-fill: #060807;
  --topo: rgba(242, 244, 240, 0.16);
  --header: rgba(6, 8, 7, 0.82);
  --inv-bg: #F2F4F0;
  --inv-fg: #060807;
  --inv-muted: #3F473F;
  --inv-line: rgba(6, 8, 7, 0.14);
  --inv-accent: #237A3A;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F3F5F1;
  --surface: #FFFFFF;
  --fg: #0A0D0B;
  --muted: #4A524A;
  --soft: #646C63;
  --line: rgba(10, 13, 11, 0.12);
  --line-2: rgba(10, 13, 11, 0.26);
  --hover: rgba(10, 13, 11, 0.04);
  --accent: #237A3A;
  --fill: #B6F23E;
  --on-fill: #0A0D0B;
  --topo: rgba(10, 13, 11, 0.16);
  --header: rgba(255, 255, 255, 0.86);
  --inv-bg: #0A0D0B;
  --inv-fg: #F2F4F0;
  --inv-muted: #A7AFA6;
  --inv-line: rgba(242, 244, 240, 0.16);
  --inv-accent: #B6F23E;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  overflow-x: clip; transition: background-color .35s, color .35s;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; letter-spacing: -0.02em; }
ul, ol { padding: 0; list-style: none; }
.accent { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--fill); color: var(--on-fill); padding: .75rem 1rem; font-weight: 600; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 1360px; margin: 0 auto; padding-inline: clamp(1.25rem, 4.5vw, 4rem); }
.section { position: relative; padding-block: clamp(5rem, 10vw, 9rem); overflow: hidden; }
.section.tint { background: var(--bg-2); }
.section.tight { padding-block: clamp(3.5rem, 6vw, 5rem); }
.rule { border-top: 1px solid var(--line); }

/* ---------- Header + mega menu ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--header); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-header > .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-family: var(--font); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; }
.brand .mark { width: 28px; height: 28px; background: var(--fill); color: var(--on-fill); display: inline-flex; align-items: center; justify-content: center; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav > li { position: static; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem;
  font: 500 .93rem/1 var(--font); color: var(--muted); background: none; border: 0; cursor: pointer; position: relative;
  transition: color .2s;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"], .nav-link[aria-current="page"], .nav-trigger.current { color: var(--fg); }
.nav-link[aria-current="page"]::after, .nav-trigger.current::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 4px; height: 2px; background: var(--fill); }
.nav-trigger svg { transition: transform .25s; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega .wrap { display: grid; grid-template-columns: minmax(14rem, 1fr) 3fr; gap: 3rem; padding-block: 2.75rem 3rem; }
.mega .intro h3 { font-size: 1.75rem; line-height: 1.1; }
.mega .intro p { color: var(--muted); margin-top: .9rem; font-size: .95rem; }
.mega .intro a { margin-top: 1.5rem; }
.mega .links { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 2rem; }
.mega .links a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.mega .links a strong { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .98rem; }
.mega .links a span { display: block; color: var(--soft); font-size: .86rem; margin-top: .2rem; }
.mega .links a:hover strong { color: var(--accent); }
.mega .links.compact { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.mega .links.compact a { padding: .7rem 0; }
.mega .links.compact a strong { font-size: .92rem; }

/* Services mega: service rail + sub-service panels */
.mega-svc { max-height: calc(100vh - 4.75rem); overflow-y: auto; }
.mega-svc .wrap { grid-template-columns: minmax(15rem, 17rem) minmax(0, 1fr); gap: 2.5rem; padding-block: 2rem 2.25rem; align-items: start; }
.svc-rail { border-right: 1px solid var(--line); padding-right: 1.5rem; min-width: 0; }
.svc-rail ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; }
.svc-rail li { min-width: 0; }
.svc-rail li a { display: block; padding: .8rem 1rem; border-left: 2px solid transparent; transition: background-color .2s, border-color .2s; }
.svc-rail li a b { display: block; font-weight: 700; font-size: 1rem; }
.svc-rail li a small { display: block; color: var(--soft); font-size: .8rem; margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-rail li a:hover, .svc-rail li a.active { background: var(--hover); }
.svc-rail li a.active { border-left-color: var(--accent); }
.svc-rail .more { margin: 1.5rem 0 0 1rem; }
.svc-panel { display: none; }
.svc-panel.active { display: block; }
.svc-cols { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0 2rem; }
.svc-sub + .svc-sub { margin-top: 1.75rem; }
.svc-head { display: inline-block; font-weight: 700; font-size: .95rem; line-height: 1.35; color: var(--accent); margin-bottom: .5rem; }
.svc-head::after, .svc-sub ul a::after { content: "\203A\203A\203A"; margin-left: .4rem; color: var(--accent); font-size: .85em; opacity: .75; }
.svc-glabel { font: 700 .68rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 1rem 0 .35rem; }
.svc-sub ul { display: grid; }
.svc-sub ul a { display: block; padding: .38rem 0; font-size: .9rem; line-height: 1.4; color: var(--muted); transition: color .2s; }
.svc-sub ul a:hover, .svc-head:hover { color: var(--fg); }
.svc-explore { margin-top: 1.75rem; }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: 1rem; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s; }
.icon-btn:hover { background: var(--hover); }
.icon-btn .sun { display: block; } .icon-btn .moon { display: none; }
:root[data-theme="light"] .icon-btn .sun { display: none; }
:root[data-theme="light"] .icon-btn .moon { display: block; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem clamp(1.25rem, 4.5vw, 4rem) 1.5rem; display: none; max-height: calc(100svh - 4.75rem); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; padding: 0; min-height: 56px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-link[aria-current="page"]::after, .nav-trigger.current::after { display: none; }
  .mega { position: static; box-shadow: none; border: 0; display: none; opacity: 1; visibility: visible; transform: none; }
  .mega.open { display: block; }
  .mega .wrap { grid-template-columns: 1fr; padding: 0 0 1rem; gap: 0; }
  .mega .intro { display: none; }
  .mega-svc { max-height: none; overflow: visible; }
  .mega-svc .svc-panels { display: none; }
  .svc-rail { border-right: 0; padding-right: 0; }
  .svc-rail li a { padding: .7rem 0 .7rem 1rem; }
  .svc-rail li a.active { background: none; border-left-color: transparent; }
  .nav .mobile-cta { display: inline-flex; margin-top: 1.25rem; justify-content: center; }
}
@media (min-width: 1081px) { .nav .mobile-cta { display: none; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 52px; padding: 0 1.4rem;
  font: 600 .95rem/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--fill); color: var(--on-fill); }
.btn-primary:hover { background: var(--fg); color: var(--bg); }
.btn-outline { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: var(--fg); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .88rem; }
.more { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 600; font-size: .95rem; border-bottom: 1px solid currentColor; padding-top: .25rem; }
.more svg { transition: transform .25s; }
.more:hover svg { transform: translateX(4px); }

/* ---------- Type ---------- */
.kicker { display: inline-flex; align-items: center; gap: .65rem; font: 600 .78rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: 1.5rem; }
.kicker::before { content: ""; width: .6rem; height: .6rem; background: var(--fill); }
.h-display { font-size: clamp(3rem, 7.4vw, 7.6rem); line-height: .96; letter-spacing: -0.045em; font-weight: 600; }
.h-1 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: 1; letter-spacing: -0.04em; }
.h-2 { font-size: clamp(2.1rem, 4.2vw, 3.75rem); line-height: 1.05; letter-spacing: -0.035em; }
.h-3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.65; color: var(--muted); max-width: 40rem; }
.text { color: var(--muted); line-height: 1.7; }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }

/* ---------- Parallax layers ---------- */
.layer { position: absolute; pointer-events: none; will-change: transform; }
.topo { inset: -15% -5% auto -5%; width: 110%; height: 130%; color: var(--topo); }
.topo.accent-layer { color: var(--accent); opacity: .55; }
.grid-lines { inset: 0; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 6) 100%; opacity: .55; }
.big-word { white-space: nowrap; font-family: var(--font); font-weight: 700; letter-spacing: -0.05em; line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--line-2); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(58rem, 100svh); display: flex; flex-direction: column; }
.hero .hero-body { position: relative; flex: 1; display: flex; align-items: center; }
.hero .hero-body .wrap { width: 100%; padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero .h-display { max-width: 12ch; }
.hero .lead { margin-top: 2rem; }
.hero .actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 22%, transparent 75%); pointer-events: none; }
.featured { position: relative; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); }
.featured .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.featured a { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem 1.75rem 1.75rem 0; border-right: 1px solid var(--line); position: relative; transition: background-color .25s; }
.featured a + a { padding-left: 1.75rem; }
.featured a:last-child { border-right: 0; }
.featured a:hover { background: var(--hover); }
.featured .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.featured strong { font-family: var(--font); font-weight: 600; font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.featured strong svg { flex: none; margin-top: .2rem; }

.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; padding-block: clamp(5.5rem, 11vw, 9rem) clamp(4rem, 8vw, 6rem); }
.page-hero .h-1 { max-width: 16ch; }
.page-hero .lead { margin-top: 1.75rem; }
.crumbs { display: flex; gap: .6rem; font-size: .85rem; color: var(--soft); margin-bottom: 2rem; }
.crumbs a:hover { color: var(--fg); }

/* ---------- Layout helpers ---------- */
.duo { display: flex; flex-wrap: wrap; gap: clamp(2.5rem, 6vw, 6rem); align-items: flex-start; }
.duo > .side { flex: 1 1 18rem; min-width: 0; }
.duo > .main { flex: 2.2 1 34rem; min-width: 0; }
.duo.center { align-items: center; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.75rem, 5vw, 4rem); }
.head .lead { max-width: 30rem; font-size: 1.05rem; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 1rem; min-height: 24rem; padding: 2rem 1.75rem 2rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .35s;
}
.tile::before { content: ""; position: absolute; inset: 0; background: var(--fill); transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.7,.2,1); z-index: -1; }
.tile:hover::before { transform: none; }
.tile:hover { color: var(--on-fill); }
.tile:hover p, .tile:hover .idx, .tile:hover .foot { color: var(--on-fill); }
.tile .idx { font: 600 .8rem/1 var(--font); letter-spacing: .14em; color: var(--soft); transition: color .35s; }
.tile .icon { width: 3rem; height: 3rem; color: var(--accent); margin-top: 1.25rem; transition: color .35s; }
.tile:hover .icon { color: var(--on-fill); }
.tile h3 { font-size: 1.6rem; line-height: 1.12; margin-top: auto; }
.tile p { color: var(--muted); font-size: .95rem; line-height: 1.6; transition: color .35s; }
.tile .foot { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .9rem; color: var(--fg); transition: color .35s; }
.tile.compact { min-height: 0; }
.tile.compact h3 { margin-top: .5rem; font-size: 1.3rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 2.25rem 1.5rem 2.25rem 0; border-bottom: 1px solid var(--line); }
.stat .num { font-family: var(--font); font-weight: 600; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; }
.stat .num .ph { color: var(--soft); }
.stat p { margin-top: .9rem; color: var(--muted); max-width: 16rem; }

/* ---------- Industry rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row-link { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 3rem; gap: 1.5rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .35s; }
.row-link .n { font-size: .82rem; color: var(--soft); font-weight: 600; letter-spacing: .1em; }
.row-link h3 { font-size: clamp(1.4rem, 2.6vw, 2.25rem); line-height: 1.1; transition: color .25s; }
.row-link p { color: var(--muted); font-size: .95rem; }
.row-link .arrow { width: 3rem; height: 3rem; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; transition: background-color .25s, color .25s, border-color .25s; }
.row-link:hover { padding-left: 1rem; }
.row-link:hover h3 { color: var(--accent); }
.row-link:hover .arrow { background: var(--fill); color: var(--on-fill); border-color: transparent; }
@media (max-width: 760px) { .row-link { grid-template-columns: 1fr 3rem; } .row-link p { grid-column: 1 / 2; grid-row: 2; } .row-link .arrow { grid-row: 1 / span 2; grid-column: 2; } }

/* Industry list (industries.html) */
.ind-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 6rem; }
.ind-row:first-child { border-top: 1px solid var(--line); }
.ind-row h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.12; font-weight: 300; }
.ind-row p { color: var(--muted); font-size: .97rem; line-height: 1.65; }
.ind-row p.pressure { color: var(--fg); font-weight: 600; margin-bottom: .35rem; }
.ind-row .svc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ind-row .svc a { font-size: .8rem; font-weight: 600; padding: .4rem .75rem; border: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
.ind-row .svc a:hover { color: var(--accent); border-color: var(--accent); }
.ind-row:target h3 { color: var(--accent); }
.tile[id] { scroll-margin-top: 6rem; }
@media (max-width: 760px) { .ind-row { grid-template-columns: 1fr; gap: .6rem; } }

/* ---------- Inverted band ---------- */
.band { background: var(--inv-bg); color: var(--inv-fg); }
.band .kicker { color: var(--inv-muted); }
.band .lead, .band .text { color: var(--inv-muted); }
.band .accent { color: var(--inv-accent); }
.band .btn-outline { border-color: var(--inv-line); color: var(--inv-fg); }
.band .btn-outline:hover { border-color: var(--inv-fg); }
.band .topo { color: var(--inv-line); }
.band .list li { border-color: var(--inv-line); }
.band .list li span { color: var(--inv-muted); }
.band .list svg { color: var(--inv-accent); }

/* layered panel (FDE visual) */
.stack { position: relative; min-height: 36rem; }
.stack .panel { position: absolute; border: 1px solid var(--inv-line); background: color-mix(in srgb, var(--inv-bg) 90%, var(--inv-fg) 10%); padding: 1.25rem 1.4rem; will-change: transform; box-shadow: 0 24px 48px -28px rgba(0,0,0,.45); }
.stack .panel .lbl { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-muted); font-weight: 600; }
.stack .panel .val { font-family: var(--font); font-weight: 600; font-size: 1.35rem; margin-top: .35rem; letter-spacing: -0.01em; }
.stack .panel.hot { background: var(--fill); color: var(--on-fill); border-color: transparent; }
.stack .panel.hot .lbl { color: var(--on-fill); opacity: .75; }
.stack .bar { height: 6px; background: var(--inv-line); margin-top: .9rem; position: relative; }
.stack .bar i { position: absolute; inset: 0 auto 0 0; background: var(--inv-accent); }

/* lists */
.list { display: grid; }
.list li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.list li:first-child { border-top: 1px solid var(--line); }
.band .list li:first-child { border-top-color: var(--inv-line); }
.list svg { flex: none; margin-top: .2rem; color: var(--accent); }
.list li span { color: var(--muted); }
.list li b { color: inherit; font-weight: 600; display: block; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: s; }
.step { padding: 2rem 1.75rem 2.25rem 0; border-top: 2px solid var(--line-2); position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -2px; width: 3rem; height: 2px; background: var(--fill); }
.step .n { font: 600 .82rem/1 var(--font); letter-spacing: .14em; color: var(--accent); }
.step h3 { margin: 1.1rem 0 .7rem; font-size: 1.6rem; }
.step p { color: var(--muted); font-size: .96rem; line-height: 1.65; max-width: 20rem; }

/* insight cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s; }
.card:hover { border-color: var(--line-2); }
.card .art { height: 13rem; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.card .art svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--topo); transition: transform .6s; }
.card:hover .art svg { transform: scale(1.06); }
.card .art .chip { position: absolute; left: 1.25rem; bottom: 1.25rem; background: var(--fill); color: var(--on-fill); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .7rem; }
.card .body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: .94rem; }
.card .foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }

/* detail blocks */
.detail { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--line); position: relative; }
.detail > div:first-child { flex: 1 1 22rem; min-width: 0; }
.detail > div:last-child { flex: 1.3 1 26rem; min-width: 0; }
.detail .idx-big { font-family: var(--font); font-weight: 700; font-size: clamp(5rem, 11vw, 9.5rem); line-height: .8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.detail h2 { margin-top: 1.75rem; }
.label { font: 600 .76rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin: 2rem 0 1rem; }
.label:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span { border: 1px solid var(--line-2); padding: .55rem .85rem; font-size: .86rem; color: var(--muted); }

/* compare */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); border: 1px solid var(--line); }
.compare > div { padding: 2.25rem; }
.compare > div + div { border-left: 1px solid var(--line); }
.compare .us { background: var(--inv-bg); color: var(--inv-fg); }
.compare h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.compare .us .list li { border-color: var(--inv-line); }
.compare .us .list li span { color: var(--inv-muted); }
.compare .us .list svg { color: var(--inv-accent); }
.compare .them .list svg { color: var(--soft); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; font-family: var(--font); font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; transition: transform .3s, background-color .3s; }
.faq details[open] .pm { transform: rotate(45deg); background: var(--fill); color: var(--on-fill); border-color: transparent; }
.faq details p { padding-bottom: 1.6rem; max-width: 46rem; color: var(--muted); line-height: 1.7; }

/* CTA band */
.cta-band { background: var(--fill); color: var(--on-fill); position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; padding-block: clamp(4.5rem, 9vw, 7.5rem); display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; }
.cta-band .h-1 { max-width: 14ch; }
.cta-band p { margin-top: 1.25rem; max-width: 32rem; font-size: 1.1rem; line-height: 1.6; color: color-mix(in srgb, var(--on-fill) 78%, transparent); }
.cta-band .btn { background: var(--on-fill); color: var(--fill); }
.cta-band .btn:hover { background: transparent; color: var(--on-fill); border-color: var(--on-fill); }
.cta-band .big-word { -webkit-text-stroke-color: color-mix(in srgb, var(--on-fill) 18%, transparent); right: -2rem; top: -1rem; font-size: clamp(10rem, 24vw, 22rem); }

/* contact */
.form { display: grid; gap: 1.25rem; }
.form .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line-2); border-radius: 0; padding: .9rem 1rem; min-height: 52px; width: 100%; transition: border-color .2s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.choices legend { font-size: .85rem; font-weight: 600; margin-bottom: .6rem; padding: 0; }
.choices label { position: relative; }
.choices input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line-2); font-size: .9rem; color: var(--muted); transition: all .2s; }
.choices input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.note { display: none; padding: 1rem 1.25rem; background: var(--bg-2); border-left: 3px solid var(--fill); color: var(--muted); font-size: .92rem; }
.note.show { display: block; }
.aside-box { border: 1px solid var(--line); padding: 2rem; background: var(--surface); }
.next { display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.next li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .8rem; color: var(--muted); }
.next li::before { content: ""; width: .5rem; height: .5rem; margin-top: .55rem; background: var(--accent); }
.next li b { display: block; color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.f-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.f-top .h-2 { max-width: 15ch; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 2.5rem; padding-block: 3rem; }
.f-grid h4 { font: 600 .76rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: 1.1rem; }
.f-grid ul { display: grid; gap: .2rem; }
.f-grid a { color: var(--muted); font-size: .93rem; min-height: 34px; display: inline-flex; align-items: center; transition: color .2s; }
.f-grid a:hover { color: var(--fg); }
.f-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--soft); }
.f-base nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.f-base a:hover { color: var(--fg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .85s cubic-bezier(.2,.7,.2,1), translate .85s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; translate: 0 0; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .tile::before { transition: none; }
}
@media (max-width: 640px) {
  .featured a, .featured a + a { padding: 1.25rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .compare > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .stack { min-height: 30rem; }
  .stack .panel { width: 78% !important; }
  .stack .panel .val { font-size: 1.1rem; }
  .hero .shade { background: linear-gradient(180deg, transparent, var(--bg) 70%); }
}

.band .chips span { border-color: var(--inv-line); color: var(--inv-muted); }

/* ================= EPAM-inspired typographic layer ================= */
body { font-size: 1.0625rem; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }
.h-display { font-weight: 300; font-size: clamp(3rem, 7vw, 7rem); line-height: 1.02; letter-spacing: -0.03em; }
.h-1 { font-weight: 300; font-size: clamp(2.5rem, 5.2vw, 5rem); line-height: 1.05; letter-spacing: -0.025em; }
.h-2 { font-weight: 300; font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 1.12; letter-spacing: -0.02em; }
.h-display .accent, .h-1 .accent, .h-2 .accent, .h-display b, .h-1 b, .h-2 b { font-weight: 800; }
.h-display span[style*="italic"], .h-1 span[style*="italic"], .h-2 span[style*="italic"] { font-style: normal !important; font-weight: 800; }
.tile h3, .step h3, .card h3, .row-link h3, .mega .intro h3, .compare h3, .faq summary, .featured strong, .stack .panel .val { font-weight: 700; }
.row-link h3 { font-weight: 300; }
.row-link:hover h3 { font-weight: 300; }
.stat .num { font-weight: 300; letter-spacing: -0.03em; }
.big-word { font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; }
.detail .idx-big { font-weight: 900; }
.brand { font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; font-size: 1.35rem; }

/* uppercase, tracked UI */
.nav-link, .nav-trigger { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; }
.btn { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; min-height: 54px; padding: 0 1.6rem; gap: 1.5rem; }
.btn-sm { font-size: .75rem; min-height: 44px; padding: 0 1.1rem; gap: 1rem; }
.more, .tile .foot, .card .foot { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; }
.kicker, .label, .f-grid h4, .featured .tag, .tile .idx, .step .n, .row-link .n, .crumbs, .stack .panel .lbl { letter-spacing: .14em; font-weight: 800; }
.crumbs { text-transform: uppercase; font-size: .72rem; }
.mega .links a strong { font-weight: 700; }

/* ================= Hero carousel ================= */
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease, visibility .7s; }
.slide.active { opacity: 1; visibility: visible; transform: none; }
.tabs { position: relative; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); }
.tabs .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: stretch; }
.tab {
  appearance: none; background: none; border: 0; color: var(--soft); text-align: left; cursor: pointer; font: inherit;
  padding: 1.5rem 1.5rem 1.6rem 0; display: flex; flex-direction: column; gap: .45rem; position: relative; transition: color .25s;
}
.tab + .tab { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.tab .t-num { font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.tab .t-title { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.tab:hover, .tab[aria-selected="true"] { color: var(--fg); }
.tab .prog { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; overflow: hidden; }
.tab + .tab .prog { left: 1.5rem; }
.tab[aria-selected="true"] .prog i { position: absolute; inset: 0; background: var(--fill); transform-origin: left; animation: vq-prog var(--dur, 7s) linear forwards; }
.carousel.paused .tab .prog i { animation-play-state: paused; }
.carousel.static .tab[aria-selected="true"] .prog i { animation: none; transform: none; }
@keyframes vq-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pause { align-self: center; margin-left: 1.5rem; }
@media (max-width: 760px) {
  .tabs .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .tab, .tab + .tab { padding: 1.1rem .75rem 1.2rem 0; border-left: 0; }
  .tab + .tab .prog { left: 0; }
  .tab .t-title { display: none; }
  .pause { margin-left: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; transform: none; } }
.hero { min-height: max(40rem, min(58rem, calc(100svh - 4.75rem))); }
.tab .t-num { text-transform: uppercase; }

/* ================= Palettes: set data-palette on <html> (lime | teal | cobalt | ember | violet) ================= */
:root[data-palette="teal"][data-theme="dark"]{
  --bg:#050C0B;--bg-2:#0A1513;--surface:#0F1B19;--fg:#EEF5F3;--muted:#A3B3AF;--soft:#7C8D89;
  --line:rgba(238,245,243,0.12);--line-2:rgba(238,245,243,0.26);--hover:rgba(238,245,243,0.05);--topo:rgba(238,245,243,0.16);
  --accent:#2FE6C8;--fill:#2FE6C8;--on-fill:#03110E;--header:rgba(5,12,11,0.82);
  --inv-bg:#EEF5F3;--inv-fg:#05100E;--inv-muted:#3C4B48;--inv-line:rgba(5,16,14,0.16);--inv-accent:#0B7A68;
}
:root[data-palette="teal"][data-theme="light"]{
  --bg:#FFFFFF;--bg-2:#EFF6F4;--surface:#FFFFFF;--fg:#06110F;--muted:#46534F;--soft:#5F6D69;
  --line:rgba(6,17,15,0.12);--line-2:rgba(6,17,15,0.26);--hover:rgba(6,17,15,0.05);--topo:rgba(6,17,15,0.16);
  --accent:#0B7A68;--fill:#2FE6C8;--on-fill:#03110E;--header:rgba(255,255,255,0.86);
  --inv-bg:#06110F;--inv-fg:#EEF5F3;--inv-muted:#A3B3AF;--inv-line:rgba(238,245,243,0.16);--inv-accent:#2FE6C8;
}
:root[data-palette="cobalt"][data-theme="dark"]{
  --bg:#060914;--bg-2:#0B1020;--surface:#10172B;--fg:#F1F3F8;--muted:#A6ADBD;--soft:#808899;
  --line:rgba(241,243,248,0.12);--line-2:rgba(241,243,248,0.26);--hover:rgba(241,243,248,0.05);--topo:rgba(241,243,248,0.16);
  --accent:#7DA6FF;--fill:#3D6BFF;--on-fill:#FFFFFF;--header:rgba(6,9,20,0.82);
  --inv-bg:#EEF1F8;--inv-fg:#070B18;--inv-muted:#424A5C;--inv-line:rgba(7,11,24,0.16);--inv-accent:#2A4FD6;
}
:root[data-palette="cobalt"][data-theme="light"]{
  --bg:#FFFFFF;--bg-2:#F1F4FA;--surface:#FFFFFF;--fg:#070B18;--muted:#4A5163;--soft:#646B7C;
  --line:rgba(7,11,24,0.12);--line-2:rgba(7,11,24,0.26);--hover:rgba(7,11,24,0.05);--topo:rgba(7,11,24,0.16);
  --accent:#2A4FD6;--fill:#3D6BFF;--on-fill:#FFFFFF;--header:rgba(255,255,255,0.86);
  --inv-bg:#070B18;--inv-fg:#F1F3F8;--inv-muted:#A6ADBD;--inv-line:rgba(241,243,248,0.16);--inv-accent:#7DA6FF;
}
:root[data-palette="ember"][data-theme="dark"]{
  --bg:#0E0A08;--bg-2:#17110D;--surface:#1D1612;--fg:#F7F2EE;--muted:#B5AAA2;--soft:#8E837B;
  --line:rgba(247,242,238,0.12);--line-2:rgba(247,242,238,0.26);--hover:rgba(247,242,238,0.05);--topo:rgba(247,242,238,0.16);
  --accent:#FF8A5B;--fill:#FF6B35;--on-fill:#160904;--header:rgba(14,10,8,0.82);
  --inv-bg:#F6F1EC;--inv-fg:#120C09;--inv-muted:#52463F;--inv-line:rgba(18,12,9,0.16);--inv-accent:#B8400F;
}
:root[data-palette="ember"][data-theme="light"]{
  --bg:#FFFFFF;--bg-2:#F7F2EE;--surface:#FFFFFF;--fg:#120C09;--muted:#554943;--soft:#6F635C;
  --line:rgba(18,12,9,0.12);--line-2:rgba(18,12,9,0.26);--hover:rgba(18,12,9,0.05);--topo:rgba(18,12,9,0.16);
  --accent:#B8400F;--fill:#FF6B35;--on-fill:#160904;--header:rgba(255,255,255,0.86);
  --inv-bg:#120C09;--inv-fg:#F7F2EE;--inv-muted:#B5AAA2;--inv-line:rgba(247,242,238,0.16);--inv-accent:#FF8A5B;
}
:root[data-palette="violet"][data-theme="dark"]{
  --bg:#08070F;--bg-2:#100E1C;--surface:#161326;--fg:#F2F1F8;--muted:#ABA8BE;--soft:#86829A;
  --line:rgba(242,241,248,0.12);--line-2:rgba(242,241,248,0.26);--hover:rgba(242,241,248,0.05);--topo:rgba(242,241,248,0.16);
  --accent:#A89BFF;--fill:#8D7BFF;--on-fill:#0A0716;--header:rgba(8,7,15,0.82);
  --inv-bg:#F1F0F8;--inv-fg:#0B0916;--inv-muted:#47445A;--inv-line:rgba(11,9,22,0.16);--inv-accent:#5640D9;
}
:root[data-palette="violet"][data-theme="light"]{
  --bg:#FFFFFF;--bg-2:#F3F2FA;--surface:#FFFFFF;--fg:#0B0916;--muted:#4B4860;--soft:#66627A;
  --line:rgba(11,9,22,0.12);--line-2:rgba(11,9,22,0.26);--hover:rgba(11,9,22,0.05);--topo:rgba(11,9,22,0.16);
  --accent:#5640D9;--fill:#8D7BFF;--on-fill:#0A0716;--header:rgba(255,255,255,0.86);
  --inv-bg:#0B0916;--inv-fg:#F2F1F8;--inv-muted:#ABA8BE;--inv-line:rgba(242,241,248,0.16);--inv-accent:#A89BFF;
}
