/* ==========================================================================
   Lab309 Software Solutions — landing page styles
   Contrast pairs verified with APCA (check-colour-contrast):
     --text   on --bg / --surface : Lc ≈ -94 / -93  (any text size)
     --muted  on --bg / --surface : Lc ≈ -79 / -78  (body text ≥14px)
     --accent on --bg / --surface : Lc ≈ -80 / -79  (≥14px, labels/links)
     --bg     on --accent         : Lc ≈ +81        (button labels ≥14px)
   ========================================================================== */

:root {
  --bg: #0b1020;
  --surface: #141b30;
  --border: #2a3456;
  --text: #e8ebf4;
  --muted: #cdd3e1;
  --accent: #5eead4;

  /* ASSET: brand typefaces — swap these stacks once fonts are supplied */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 10vw, 120px);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p  { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

/* ---------- Images ---------- */
.brand-logo { width: 40px; height: 40px; flex: none; }
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(94, 234, 212, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(94, 234, 212, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-large { min-height: 56px; padding: 14px 32px; font-size: 1.0625rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--accent); text-decoration: none; }

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
  .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 112px);
  overflow: hidden;
}
.hero::before {
  /* decorative glow — pure CSS, no asset needed */
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgba(94, 234, 212, 0.14), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-lead { color: var(--muted); font-size: 1.125rem; }

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
@media (max-width: 360px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(94, 234, 212, 0.5); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
}
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.about-inner { align-items: start; }
.about-copy > p { color: var(--muted); font-size: 1.0625rem; }

.founder { margin: 0; }
.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.founder figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}
.founder figcaption strong { font-size: 1.125rem; }
.founder figcaption span { color: var(--muted); font-size: 0.9375rem; }

.track-record {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 2px solid var(--border);
}
.track-record li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 0 10px 24px;
}
.track-record li::before {
  /* timeline dot */
  content: "";
  position: absolute;
  left: -7px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.track-record strong { font-size: 1.0625rem; font-weight: 650; }
.track-record span { color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }
}

/* ---------- CTA ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(94, 234, 212, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
}
.cta h2 { margin-bottom: 0.3em; }
.cta p { margin: 0; color: var(--muted); font-size: 1.125rem; }
.cta-actions { flex: none; max-width: 100%; }
.cta-actions .btn { max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--text); font-size: 0.9375rem; }
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.copyright {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
