/* AB47 Tech Labs — corporate site styles */

:root {
  /* Brand palette: see AB47-Tech-Labs-Brand-Kit/brand-guidelines.html */
  --code-blue: #6692cf;   /* logo blue: accents, large text, blue on dark */
  --ink: #111111;         /* headings */
  --ink-2: #2a2f38;       /* body text */
  --muted: #5b6472;       /* Slate: secondary text */
  --line: #e3e7ee;
  --bg: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #eff4fa;   /* Mist */
  --brand: #386bb3;       /* Deep Blue: buttons, links, small blue text */
  --brand-ink: #2d5896;
  --brand-soft: #e8eff9;
  --accent: var(--code-blue);
  --dark: #111111;        /* Ink: footer, dark bands */
  --dark-2: #1c1e22;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 8px 24px rgba(17, 17, 17, .06);
  --container: 1120px;
  --font: "Fira Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-label: "Jost", "Futura", "Century Gothic", ui-sans-serif, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-logo { display: block; height: 20px; width: auto; flex: none; }
.footer-brand .brand-logo { height: 24px; }
.brand-logo-stacked { display: block; width: 240px; max-width: 70vw; height: auto; }
@media (max-width: 400px) { .site-header .brand-logo { height: 18px; } }

.nav-menu ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-2); font-size: .95rem; font-weight: 500;
}
.nav-menu a:not(.btn):hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav-menu a[aria-current="page"] { color: var(--brand); }
.nav-menu li.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(17, 17, 17, .08);
    display: none;
  }
  .nav-menu.is-open { display: block; }
  .nav-menu ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .nav-menu a:not(.btn) { padding: 12px 12px; font-size: 1rem; }
  .nav-menu li.nav-cta { margin: 10px 0 0; }
  .nav-menu li.nav-cta .btn { width: 100%; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .97rem; font-weight: 500; line-height: 1.2;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #c9cfdb; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--surface-2); color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-label); font-size: .8rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brand);
}

.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); line-height: 1.6; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .container { padding: 0 16px; }
  body { font-size: 16px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 112px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(102, 146, 207, .18), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(56, 107, 179, .07), transparent 70%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 60ch; margin-bottom: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .87rem; font-weight: 500; color: var(--ink-2);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(102, 146, 207, .2); margin-left: 4px; }

.page-hero { padding: 88px 0 64px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 20ch; }
.page-hero .lead { max-width: 62ch; margin: 0; }

@media (max-width: 640px) {
  .hero { padding: 72px 0 64px; }
  .page-hero { padding: 56px 0 40px; }
}

/* ---------- Grids & cards ---------- */

.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: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand);
}
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip.green { background: var(--ink); color: var(--code-blue); }
.icon-chip.amber { background: var(--code-blue); color: #fff; }

.product-card { display: flex; flex-direction: column; }
.product-card .tag {
  align-self: flex-start; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 600;
}
.product-card .card-link { margin-top: auto; padding-top: 18px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.product-card ul { margin: 0 0 4px; padding-left: 18px; color: var(--muted); }
.product-card li { margin-bottom: 4px; }

/* ---------- Statement / vision ---------- */

.statement { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .statement { grid-template-columns: 1fr; } }
.statement .card { padding: 36px; }
.statement .label { font-family: var(--font-label); font-size: .8rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.statement blockquote { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.4; color: var(--ink); font-weight: 600; letter-spacing: -0.005em; }

/* ---------- Brand band (Nexfinity) ---------- */

.brand-band {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 20px; color: #c4c9d1;
  background: radial-gradient(80% 120% at 100% 0%, rgba(102, 146, 207, .3), transparent 60%), var(--dark);
}
.brand-band h2, .brand-band h3 { color: #fff; }
.brand-band p { color: #aeb4be; }
.brand-band .eyebrow { color: var(--code-blue); }
.brand-band .mini-list { display: grid; gap: 12px; }
.brand-band .mini {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.brand-band .mini strong { color: #fff; display: block; font-weight: 600; }
.brand-band .mini span { font-size: .93rem; color: #a3a9b3; }
.brand-band .mini .num { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(102, 146, 207, .18); color: #a9c3e8; font-size: .82rem; font-weight: 700; }
@media (max-width: 860px) { .brand-band { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; } }

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

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
}
.chip svg { width: 18px; height: 18px; color: var(--brand); }
.chip-soon { background: transparent; border-style: dashed; border-color: #c3cad6; color: var(--muted); }
.chip-group-title {
  font-family: var(--font-label); font-size: .8rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.chips + .chip-group-title { margin-top: 28px; }

.roadmap-card { border-style: dashed; box-shadow: none; background: transparent; }
.roadmap-card .tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: .78rem; font-weight: 600;
}

/* ---------- Split layout ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Facts table ---------- */

.facts { width: 100%; border-collapse: collapse; font-size: .97rem; }
.facts th, .facts td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 40%; color: var(--muted); font-weight: 500; padding-right: 16px; }
.facts td { color: var(--ink); font-weight: 500; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* ---------- People ---------- */

.person { text-align: left; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px;
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
  background: var(--brand-soft); color: var(--brand);
}
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--brand); font-size: .92rem; font-weight: 600; margin-bottom: 10px; }

/* ---------- Timeline / steps ---------- */

.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-size: .9rem; font-weight: 700;
}
.step p { margin: 4px 0 0; color: var(--muted); }

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

.cta {
  text-align: center; padding: 64px 32px; border-radius: 20px;
  background: radial-gradient(70% 120% at 100% 0%, rgba(102, 146, 207, .45), transparent 60%), linear-gradient(135deg, #2b5694 0%, var(--brand) 100%); color: #e6eef8;
}
.cta h2 { color: #fff; }
.cta p { max-width: 56ch; margin: 0 auto 28px; color: #eef3fa; font-size: 1.08rem; }
.cta .btn-row { justify-content: center; }
@media (max-width: 640px) { .cta { padding: 44px 20px; } }

/* ---------- Contact ---------- */

.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-chip { margin: 0; flex: none; }
.contact-item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-item p { margin: 0; color: var(--muted); }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: .95rem; }

.notice {
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: #fff8e6; border: 1px solid #f3dca0; color: #6b4e00; font-size: .93rem; margin-bottom: 32px;
}

/* ---------- Placeholder marker ---------- */
/* Anything wrapped in .ph still needs real company details. Search the HTML for class="ph". */

.ph {
  background: #fff4cc; color: #6b4e00;
  border-bottom: 1px dashed #d4a72c; border-radius: 3px; padding: 0 3px;
  font-weight: inherit;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: #a3a9b3; padding: 72px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #d0d4da; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { margin: 0 0 6px; }
.footer-brand .legal-line { font-size: .88rem; color: #868c96; }
.site-footer h4 { color: var(--code-blue); font-family: var(--font-label); font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #868c96;
}
.site-footer .ph { background: rgba(255, 216, 102, .14); color: #ffd866; border-bottom-color: #a88a2a; }

/* ---------- Utilities ---------- */

.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.ext::after { content: " ↗"; font-size: .85em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
