/* TalentMatch Pro — analog gauge cluster + digital readings
   Palette from logo only: field #223DFE, ice mark #CCE7FE, white type. */

:root {
  --blue:        #223DFE;
  --blue-mid:    #1829c4;
  --blue-deep:   #0b1466;
  --ink:         #070B2E;
  --ink-2:       #0a1040;
  --panel:       #10186a;
  --ice:         #CCE7FE;
  --ice-bright:  #E8F4FF;
  --white:       #F4F8FF;
  --muted:       #C5D6FE;
  --line:        rgba(204, 231, 254, 0.22);
  --line-strong: rgba(204, 231, 254, 0.42);
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --maxw:        1160px;
  --header-h:    72px;
  --display:     "Quantico", "Trebuchet MS", sans-serif;
  --sans:        "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius:      18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .g-read, .g-name, .val, .ch, .ch-id, .industry, .eyebrow, .tele-head, .cluster-tag, .console-bar {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: break-word;
}
p, li { overflow-wrap: break-word; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p, ul, ol, figure, dl { margin: 0; }
ul { padding: 0; }
li { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 400;
  background: var(--ice); color: var(--ink);
  padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 0; }

.eyebrow, .industry, .cluster-tag, .ch-id, .bank-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  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), color .25s var(--ease);
}
.btn-primary {
  background: var(--ice); color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(204, 231, 254, .55);
}
.btn-ghost {
  background: transparent; color: var(--white);
  border-color: var(--line-strong);
}

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 46, .88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { border-radius: 9px; }
.brand-name { font-size: 18px; color: var(--white); }
.brand-pro { color: var(--ice); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; color: var(--muted); transition: color .2s var(--ease); }
.nav .nav-cta {
  color: var(--white); border: 1px solid var(--line-strong);
  padding: 8px 18px; border-radius: 999px; font-family: var(--display);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}

.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: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero / console ===== */
.hero {
  position: relative;
  padding: 108px 0 72px;
  background:
    radial-gradient(900px 480px at 82% 18%, rgba(34, 61, 254, .38), transparent 60%),
    radial-gradient(700px 420px at 8% 80%, rgba(204, 231, 254, .08), transparent 55%),
    var(--ink);
}
.console-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; color: var(--ice);
  margin-bottom: 36px; padding: 0 24px; flex-wrap: wrap;
}
.console-bar .sep { opacity: .45; }
.led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ice); box-shadow: 0 0 10px var(--ice);
}
.led.pulse { animation: led-pulse 1.8s ease-in-out infinite; }
@keyframes led-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--ice); }
  50% { opacity: .35; box-shadow: 0 0 2px var(--ice); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  color: var(--white);
  margin: 12px 0 18px;
  max-width: 16ch;
}
.hero-sub { color: var(--muted); max-width: 42ch; margin-bottom: 28px; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Gauge cluster ===== */
.cluster {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(34, 61, 254, .35), transparent 55%),
    linear-gradient(180deg, #121a78 0%, #0a1254 55%, #070b2e 100%);
  border: 1px solid var(--line-strong);
  border-radius: 22px 22px 36px 36px / 16px 16px 42px 42px;
  box-shadow:
    inset 0 1px 0 rgba(204, 231, 254, .28),
    inset 0 -18px 40px rgba(0, 0, 0, .35),
    0 28px 50px -18px rgba(0, 0, 0, .55);
  padding: 22px 18px 16px;
  overflow: hidden;
}
.cluster-tag {
  text-align: center;
  margin-bottom: 8px;
  color: var(--muted);
}
.cluster-scan {
  position: absolute; inset: 0 auto 0 -30%;
  width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(204, 231, 254, .1), transparent);
  animation: scan 5.5s ease-in-out infinite;
}
@keyframes scan {
  0% { transform: translateX(0); }
  100% { transform: translateX(320%); }
}
.rivet {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8f4ff, #7ea0ff 45%, #223DFE 70%, #0b1466);
  box-shadow: 0 0 0 1px rgba(204, 231, 254, .35);
}
.r-tl { top: 12px; left: 12px; }
.r-tr { top: 12px; right: 12px; }
.r-bl { bottom: 12px; left: 12px; }
.r-br { bottom: 12px; right: 12px; }

.cluster-gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.gauge { margin: 0; text-align: center; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-bezel { fill: #223DFE; }
.g-face { fill: #121a78; }
.g-well { fill: #0a1258; stroke: rgba(204, 231, 254, .18); stroke-width: 1; }
.g-track {
  fill: none; stroke: rgba(204, 231, 254, .16); stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 293.2 440;
  transform-origin: 120px 120px;
  transform-box: view-box;
  transform: rotate(-210deg);
}
.g-value {
  fill: none; stroke: var(--ice); stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: calc(var(--pct) * 2.932) 440;
  transform-origin: 120px 120px;
  transform-box: view-box;
  transform: rotate(-210deg);
  filter: drop-shadow(0 0 6px rgba(204, 231, 254, .65));
}
.tick-maj { stroke: var(--ice); stroke-width: 2; }
.tick-min { stroke: rgba(204, 231, 254, .45); stroke-width: 1.2; }
.g-num {
  fill: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}
.gauge-needle {
  transform-box: view-box;
  transform-origin: 120px 120px;
  transform: rotate(-120deg);
  filter: drop-shadow(0 0 4px rgba(204, 231, 254, .85));
}
.gauge-needle polygon { fill: var(--ice); }
.g-hub-ring { fill: #0b1466; stroke: var(--ice); stroke-width: 2; }
.g-hub { fill: var(--ice); }

.reveal.in .gauge-needle {
  animation: needle-run 5.2s cubic-bezier(.15, .85, .2, 1) var(--delay, 0s) infinite;
}
@keyframes needle-run {
  0%   { transform: rotate(-120deg); }
  16%  { transform: rotate(calc(var(--needle) + 7deg)); }
  24%  { transform: rotate(var(--needle)); }
  52%  { transform: rotate(calc(var(--needle) + 1.6deg)); }
  76%  { transform: rotate(calc(var(--needle) - 1.1deg)); }
  100% { transform: rotate(var(--needle)); }
}

.gauge figcaption {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: -6px; padding-bottom: 6px;
}
.g-name { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.g-read { font-size: 1.55rem; color: var(--ice); letter-spacing: 0.04em; }

/* Digital readings strip */
.readings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 10px 8px 6px;
  border-top: 1px solid var(--line);
}
.reading {
  background: #05081f;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 10px 9px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "ch lab" "ch val" "note note";
  gap: 0 8px;
}
.reading .ch { grid-area: ch; font-size: 10px; color: var(--ice); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.14em; }
.reading .lab { grid-area: lab; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: var(--display); }
.reading .val { grid-area: val; font-family: var(--display); font-size: 1.35rem; color: var(--white); letter-spacing: 0.04em; }
.reading .note { grid-area: note; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.3; }

/* ===== Bands ===== */
.band { padding: 88px 0; }
.band-brief {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-channels { background: var(--ink); }
.band-banks {
  background: linear-gradient(180deg, #0a1040 0%, #070B2E 100%);
  border-top: 1px solid var(--line);
}
.band-quote { background: var(--blue); padding: 72px 0; }
.band-faq { background: var(--ink-2); border-top: 1px solid var(--line); }
.band-contact { background: var(--ink); }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2, .brief-copy h2, .contact-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--white);
  margin: 10px 0 14px;
}
.lead, .brief-copy p, .channel p, .bank p { color: var(--muted); }
.brief-copy p + p { margin-top: 14px; }

.brief-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}
.telemetry {
  background: #05081f;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 22px 10px;
  box-shadow: inset 0 1px 0 rgba(204, 231, 254, .16);
}
.tele-head {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ice); margin-bottom: 12px;
}
.tele-list div {
  display: grid; grid-template-columns: 92px 1fr;
  gap: 10px; padding: 12px 0;
  border-top: 1px solid var(--line);
}
.tele-list dt { color: var(--muted); font-size: 13px; font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.tele-list dd { color: var(--white); font-weight: 600; }

/* Horizontal analog meters */
.channel-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.channel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: inset 0 1px 0 rgba(204, 231, 254, .12);
}
.channel h3 { font-size: 1.2rem; margin: 8px 0 10px; color: var(--white); }
.meter {
  position: relative; height: 18px; margin-bottom: 18px;
}
.meter-track, .meter-fill {
  position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 99px;
}
.meter-track { background: rgba(204, 231, 254, .18); }
.meter-fill {
  right: auto; width: var(--fill);
  background: var(--ice);
  box-shadow: 0 0 10px rgba(204, 231, 254, .55);
}
.meter-needle {
  position: absolute; top: 0; left: var(--fill);
  width: 3px; height: 18px; margin-left: -1.5px;
  background: var(--white);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--ice);
  transform: translateX(-120%);
}
.reveal.in .meter-needle {
  animation: meter-slide 1.6s var(--ease) forwards;
}
@keyframes meter-slide {
  from { left: 0; }
  to { left: var(--fill); }
}

.bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.bank {
  background: #05081f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.bank h3 { font-size: 1.35rem; margin: 8px 0 12px; color: var(--white); }
.bank ul { margin-top: 16px; display: grid; gap: 8px; }
.bank li {
  position: relative; padding-left: 18px; color: var(--muted);
}
.bank li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ice); box-shadow: 0 0 8px var(--ice);
}

.pull {
  margin: 0 auto; max-width: 760px; text-align: center;
}
.pull blockquote {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--white);
  line-height: 1.25;
  font-weight: 700;
}
.pull figcaption {
  margin-top: 18px; color: var(--ice);
  font-family: var(--display); letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 12px;
}

/* ===== FAQ ===== */
.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #05081f;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; color: var(--white);
  font-family: var(--display); font-size: 1.02rem; font-weight: 700;
  text-align: left; padding: 18px 18px; cursor: pointer;
}
.faq-ico {
  width: 12px; height: 12px; flex: 0 0 auto; position: relative;
}
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--ice); border-radius: 1px;
}
.faq-ico::before { width: 12px; height: 2px; top: 5px; left: 0; }
.faq-ico::after { width: 2px; height: 12px; top: 0; left: 5px; transition: transform .25s var(--ease), opacity .25s; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { display: none; padding: 0 18px 18px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ===== Contact ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-email {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ice);
  margin: 18px 0 10px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.contact-addr { color: var(--muted); font-size: 15px; }
.contact-form {
  background: #05081f;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px;
  display: grid; gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.field input, .field textarea {
  background: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  color: var(--white); padding: 12px 14px; font: inherit; font-size: 15px;
  width: 100%; resize: vertical; transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ice); }
.contact-form .btn { justify-self: start; margin-top: 4px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: #05081f;
  padding: 48px 0 26px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-tag { color: var(--muted); margin: 12px 0 0; font-size: .95rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 15px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px; padding-top: 20px;
}

/* ===== Reveal (must precede hover transforms) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .led.pulse, .cluster-scan { animation: none; }
  .reveal.in .gauge-needle,
  .gauge-needle {
    animation: none;
    transform: rotate(var(--needle));
  }
  .reveal.in .meter-needle { animation: none; left: var(--fill); }
}

/* Hover AFTER .reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -8px rgba(204, 231, 254, .75);
  }
  .btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--ice);
    color: var(--ice);
  }
  .nav a:hover { color: var(--white); }
  .nav .nav-cta:hover { border-color: var(--ice); color: var(--ice); }
  .contact-email:hover { border-bottom-color: var(--ice); }
  .footer-nav a:hover { color: var(--ice); }

  .channel.reveal.in:hover,
  .channel:hover,
  .bank.reveal.in:hover,
  .bank:hover,
  .telemetry.reveal.in:hover,
  .telemetry:hover,
  .faq-item.reveal.in:hover,
  .faq-item:hover,
  .contact-form.reveal.in:hover,
  .contact-form:hover,
  .reading:hover {
    transform: translateY(-6px);
    border-color: var(--ice);
    box-shadow: 0 16px 32px -16px rgba(34, 61, 254, .7);
  }
  .channel, .bank, .telemetry, .faq-item, .contact-form, .reading {
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h1 { max-width: 18ch; }
  .brief-grid, .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .channel-deck { grid-template-columns: 1fr; }
  .bank-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(7, 11, 46, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--white); }
  .nav .nav-cta { text-align: center; margin-top: 10px; }
  .hero { padding: 100px 0 56px; }
  .band { padding: 64px 0; }
  .cluster-gauges {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
  }
  .gauge { width: min(260px, 100%); }
  .readings { grid-template-columns: 1fr; gap: 10px; }
  .console-bar { letter-spacing: 0.1em; font-size: 10px; }
}

@media (max-width: 430px) {
  .container { padding: 0 18px; }
  .hero { padding: 96px 0 48px; }
  .hero-copy h1 { font-size: 2rem; }
  .cluster { padding: 20px 12px 14px; }
  .gauge { width: min(240px, 100%); }
  .cluster-gauges { gap: 26px; }
  .band { padding: 56px 0; }
  .channel, .bank, .contact-form { padding: 20px; }
  .footer-inner { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
