/* ==========================================================================
   Tech Creek Solutions: site styles
   Brand colours come from the logo mark.
   ========================================================================== */

:root {
  --indigo: #271A92;
  --blue: #0B5BBE;
  --blue-600: #094FA6;
  --green: #6ABF0B;
  --lime: #C3DE24;

  --ink: #0A0D2C;          /* deep navy, used for dark sections */
  --ink-2: #12164A;
  --text: #1B1F3B;
  --text-muted: #555B78;
  --text-soft: #7A809B;
  --line: #E4E6EF;
  --line-strong: #D3D6E4;
  --surface: #FFFFFF;
  --surface-alt: #F6F7FB;
  --surface-tint: #EEF3FC;

  --on-dark: #F3F4FA;
  --on-dark-muted: #A9AECB;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 60, .06), 0 1px 3px rgba(16, 20, 60, .05);
  --shadow: 0 10px 30px -12px rgba(16, 20, 60, .18), 0 2px 6px rgba(16, 20, 60, .05);
  --shadow-lg: 0 30px 60px -20px rgba(10, 13, 44, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 9vw, 120px);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 1rem/1 var(--font-sans);
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -6px rgba(11, 91, 190, .6); }
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--surface-tint); color: var(--ink); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 11px 18px; font-size: .94rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; color: var(--blue);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo-mark { width: 40px; height: auto; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1; }
.brand-text span { font-weight: 500; color: var(--text-muted); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text span { color: var(--on-dark-muted); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text); font-weight: 500; font-size: .98rem;
}
.site-nav ul a:hover { background: var(--surface-alt); color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--blue); background: var(--surface-tint); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; padding: 16px var(--gutter) 28px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .js .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav ul a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .js .site-nav .btn { width: 100%; padding: 15px; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .8rem/1 var(--font-sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; flex: none;
  background: linear-gradient(135deg, var(--green) 0 50%, var(--blue) 50% 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--lime); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 8px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--text-muted); line-height: 1.6; }
.section-dark .lead { color: var(--on-dark-muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding: clamp(72px, 10vw, 128px) 0 clamp(80px, 10vw, 120px);
  isolation: isolate;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(11, 91, 190, .45), transparent 60%),
    radial-gradient(45% 60% at 10% 100%, rgba(39, 26, 146, .55), transparent 60%),
    radial-gradient(30% 40% at 60% 90%, rgba(106, 191, 11, .12), transparent 70%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M0 0L28 48.5L56 0M0 97L28 48.5L56 97M0 48.5H56' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
  mask-image: radial-gradient(70% 80% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 70% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 24px; font-size: clamp(2.3rem, 4.4vw, 3.5rem); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7FB4FF, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--on-dark-muted); max-width: 580px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; list-style: none; color: var(--on-dark-muted); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--green); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Hero console: illustrative agent run */
.console {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  padding: 22px;
}
.console-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); margin-bottom: 16px; }
.console-title { display: flex; align-items: center; gap: 10px; font: 600 .95rem/1.2 var(--font-display); color: #fff; }
.console-title .icon { width: 20px; height: 20px; color: var(--lime); }
.console-sub { display: block; font: 500 .78rem/1.3 var(--font-sans); color: var(--on-dark-muted); margin-top: 2px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .74rem/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--green); background: rgba(106,191,11,.12); border: 1px solid rgba(106,191,11,.3); padding: 6px 10px; border-radius: 999px; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.steps-run { list-style: none; display: grid; gap: 10px; }
.steps-run li {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  font-size: .92rem; color: var(--on-dark);
}
.steps-run .step-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(11,91,190,.25); color: #9CC3FF; }
.steps-run .step-icon .icon { width: 18px; height: 18px; }
.steps-run small { display: block; color: var(--on-dark-muted); font-size: .78rem; }
.steps-run .tag { font: 600 .72rem/1 var(--font-sans); padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--on-dark-muted); white-space: nowrap; }
.steps-run .tag.ok { color: var(--green); background: rgba(106,191,11,.12); }
.steps-run .tag.human { color: var(--lime); background: rgba(195,222,36,.12); }
.js .steps-run li { opacity: 0; transform: translateY(6px); animation: stepIn .5s ease forwards; }
.js .steps-run li:nth-child(1) { animation-delay: .2s; }
.js .steps-run li:nth-child(2) { animation-delay: .5s; }
.js .steps-run li:nth-child(3) { animation-delay: .8s; }
.js .steps-run li:nth-child(4) { animation-delay: 1.1s; }
.js .steps-run li:nth-child(5) { animation-delay: 1.4s; }
@keyframes stepIn { to { opacity: 1; transform: none; } }
.console-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: .78rem; color: var(--on-dark-muted); }
.console-note { margin-top: 12px; font-size: .74rem; color: rgba(169,174,203,.7); text-align: right; }

/* ---------- Platform strip ---------- */
.platforms { border-bottom: 1px solid var(--line); background: #fff; }
.platforms-inner { display: flex; align-items: center; gap: 16px 32px; padding-block: 28px; flex-wrap: wrap; }
.platforms-label { font: 600 .78rem/1.3 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); flex: none; }
.platforms-list { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; }
.platforms-list li {
  font: 600 .92rem/1 var(--font-display); color: var(--text);
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-alt);
}

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card p { color: var(--text-muted); font-size: .98rem; }
.card h3 { margin-bottom: 10px; }
.card .link-arrow { margin-top: auto; padding-top: 8px; font-size: .95rem; }
a.card { color: inherit; }
a.card:hover, .card-hover:hover { border-color: rgba(11,91,190,.35); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--surface-tint); color: var(--blue);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-icon.green { background: #EFF8E2; color: #4C8A08; }
.card-icon.indigo { background: #ECEAFB; color: var(--indigo); }

.check-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 18px; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--text-muted); font-size: .96rem; line-height: 1.5; }
.check-list .icon { width: 20px; height: 20px; color: var(--green); margin-top: 1px; }
.section-dark .check-list li { color: var(--on-dark-muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 4px; }
.tag-list li { font: 500 .82rem/1 var(--font-sans); padding: 7px 11px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--line); color: var(--text-muted); }

/* ---------- Split / approach ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split-sticky { position: static; } }

.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.step-num {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font: 800 1.1rem/1 var(--font-display); color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}
.steps li:nth-child(3) .step-num, .steps li:nth-child(4) .step-num { background: linear-gradient(135deg, var(--green), #3E8C06); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.section-dark .steps li { background: rgba(255,255,255,.04); border-color: var(--line-dark); }
.section-dark .steps p { color: var(--on-dark-muted); }

/* ---------- Industry cards ---------- */
.industry-card {
  position: relative; overflow: hidden;
  background: var(--ink-2); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; min-height: 100%;
  border: 1px solid var(--line-dark); isolation: isolate;
}
.industry-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; z-index: -1;
  background: radial-gradient(circle, rgba(11,91,190,.45), transparent 70%);
}
.industry-card:nth-child(2)::after { background: radial-gradient(circle, rgba(106,191,11,.3), transparent 70%); }
.industry-card:nth-child(3)::after { background: radial-gradient(circle, rgba(124,108,255,.4), transparent 70%); }
.industry-card h3 { color: #fff; font-size: 1.4rem; }
.industry-card p { color: var(--on-dark-muted); }
.industry-card .card-icon { background: rgba(255,255,255,.08); color: #fff; }
.industry-card .check-list li { color: var(--on-dark); }
.industry-card .link-arrow { color: var(--lime); margin-top: auto; }
.industry-card .link-arrow:hover { color: #fff; }

/* ---------- Products ---------- */
.product-card {
  display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.product-top { padding: 34px 34px 28px; }
.product-badge { display: inline-flex; align-items: center; gap: 8px; font: 600 .76rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; margin-bottom: 18px; }
.badge-live { color: #3E7A06; background: #EFF8E2; }
.badge-soon { color: var(--indigo); background: #ECEAFB; }
.product-logo { display: flex; align-items: center; width: fit-content; max-width: 100%; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.product-logo-dark { background: #08111F; }
.product-logo-light { background: #fff; border: 1px solid var(--line); }
.product-logo svg { display: block; height: 46px; width: auto; max-width: 100%; margin: 10px 20px; }
.product-logo-light img { display: block; height: 40px; width: auto; max-width: 100%; margin: 12px 22px; }
.product-logo-lg svg { height: 96px; margin: 0; }
.product-logo-lg.product-logo-light img { height: 58px; margin: 18px 28px; }
.product-for { font-weight: 600; color: var(--text); margin-bottom: 14px; }
.product-card p { color: var(--text-muted); }
.product-bottom { padding: 24px 34px 30px; background: var(--surface-alt); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }

/* ---------- Statement / founder ---------- */
.statement {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  background: linear-gradient(135deg, #F3F6FD, #F7FAF0); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
}
.statement-mark { width: clamp(90px, 12vw, 140px); }
.statement blockquote { margin: 0; font: 600 clamp(1.25rem, 2.2vw, 1.6rem)/1.4 var(--font-display); color: var(--ink); letter-spacing: -0.015em; }
.statement figcaption { margin-top: 18px; color: var(--text-muted); font-size: .98rem; }
.statement figcaption strong { color: var(--ink); }
@media (max-width: 700px) { .statement { grid-template-columns: 1fr; } }

/* ---------- Principles ---------- */
.principle { padding: 28px 0; border-top: 1px solid var(--line); }
.principle h3 { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; }
.principle h3 .icon { color: var(--blue); width: 22px; height: 22px; }
.principle p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.section-dark .principle { border-color: var(--line-dark); }
.section-dark .principle p { color: var(--on-dark-muted); }
.section-dark .principle h3 .icon { color: var(--lime); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 120% at 100% 0%, rgba(11,91,190,.6), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(39,26,146,.7), transparent 60%);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: var(--on-dark-muted); margin: 0; max-width: 560px; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--on-dark);
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 860px; }
.page-hero .lead { color: var(--on-dark-muted); max-width: 720px; margin: 0; }
.page-hero-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; list-style: none; }
.page-hero-nav a {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: var(--on-dark); border: 1px solid var(--line-dark); background: rgba(255,255,255,.04);
}
.page-hero-nav a:hover { border-color: rgba(255,255,255,.4); color: #fff; }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block .card-icon { margin-bottom: 18px; }
.service-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.service-block .lead { font-size: 1.06rem; }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-detail h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); font-family: var(--font-sans); font-weight: 600; margin-bottom: 14px; }
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .service-detail { grid-template-columns: 1fr; } }

/* ---------- Industry detail ---------- */
.industry-detail { padding: clamp(56px, 7vw, 96px) 0; }
.industry-detail + .industry-detail { border-top: 1px solid var(--line); }
.industry-detail-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: 40px; }
.industry-detail-head .lead { margin: 0; }
@media (max-width: 900px) { .industry-detail-head { grid-template-columns: 1fr; } }
.usecase { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.usecase h3 { font-size: 1.08rem; margin-bottom: 8px; }
.usecase p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.usecase .uc-tech { margin-top: 14px; font-size: .8rem; font-weight: 600; color: var(--blue); letter-spacing: .02em; }

/* ---------- Leadership ---------- */
.leader { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.leader-portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--ink-2), var(--indigo)); display: grid; place-items: center;
}
.leader-portrait img { width: 100%; height: 100%; object-fit: cover; }
.leader-initials { font: 800 4rem/1 var(--font-display); color: #fff; letter-spacing: -0.04em; }
.leader-portrait .logo-mark { position: absolute; right: 16px; bottom: 16px; width: 44px; opacity: .9; }
.leader-role { font-weight: 600; color: var(--blue); margin-bottom: 18px; }
.leader h3 { font-size: 1.8rem; margin-bottom: 4px; }
.leader p { color: var(--text-muted); }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; } .leader-portrait { max-width: 260px; } }

/* ---------- Facts row ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.fact { padding: 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font: 800 1.15rem/1.2 var(--font-display); color: var(--ink); margin-bottom: 6px; }
.fact span { color: var(--text-muted); font-size: .94rem; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact { border-left: 0; } .fact + .fact { border-top: 1px solid var(--line); } }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--font-sans); color: var(--text);
  padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,91,190,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C2342B; }
.field-error { color: #B42318; font-size: .85rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .9rem; color: var(--text-muted); margin: 6px 0 22px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.alert { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 24px; font-size: .96rem; display: flex; gap: 12px; }
.alert .icon { width: 22px; height: 22px; flex: none; }
.alert-success { background: #EFF8E2; color: #2F5E05; border: 1px solid #CFE8AE; }
.alert-error { background: #FDECEA; color: #8A1F17; border: 1px solid #F5C2BC; }

.contact-aside h3 { font-size: 1.1rem; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-of-type { padding-top: 0; }
.contact-item .card-icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.contact-item .card-icon .icon { width: 22px; height: 22px; }
.contact-item strong { display: block; color: var(--ink); }
.contact-item span, .contact-item a { color: var(--text-muted); font-size: .96rem; }
.contact-item a:hover { color: var(--blue); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--text-soft); font-size: .92rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.notfound .logo-mark { width: 84px; margin: 0 auto 28px; }
.notfound .lead { max-width: 520px; margin: 0 auto 32px; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin: 18px 0 20px; max-width: 360px; }
.footer-heading { font: 600 .78rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.footer-heading:not(:first-child) { margin-top: 30px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--on-dark-muted); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { list-style: none; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 24px; list-style: none; }
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { margin: 20px 0 0; font-size: .76rem; color: rgba(169,174,203,.6); max-width: 900px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .steps-run li { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  .hero, .page-hero { background: none; color: #000; }
}
