/* Laing Labs — marketing site */
:root {
  --bg: #0b0c0f;
  --bg-elevated: #12141a;
  --bg-soft: #161922;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eceef2;
  --text-muted: #9aa3b2;
  --text-faint: #6b7382;
  --accent: #7eb8ff;
  --accent-soft: rgba(126, 184, 255, 0.12);
  --accent-strong: #a8d0ff;
  --glow: rgba(126, 184, 255, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1080px;
  --nav-h: 68px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Instrument Sans", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(126, 184, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 60%, rgba(90, 120, 200, 0.06), transparent 50%),
    var(--bg);
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 12, 15, 0.75);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #9ec7ff 0%, #4a7fd4 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 20px var(--glow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  margin-left: 0.5rem !important;
  background: var(--accent-soft) !important;
  color: var(--accent-strong) !important;
  border: 1px solid rgba(126, 184, 255, 0.22);
}

.nav-cta:hover {
  background: rgba(126, 184, 255, 0.2) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 560;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #9ec7ff 0%, #6a9fe0 100%);
  color: #0b0c0f;
  box-shadow: 0 8px 28px var(--glow);
}

.btn-primary:hover {
  color: #0b0c0f;
  box-shadow: 0 12px 32px rgba(126, 184, 255, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Hero / sections —— */
.hero {
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 580;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(126, 184, 255, 0.2);
  border-radius: 999px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.35rem, 5.5vw, 3.55rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 16ch;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.page-hero {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 2rem;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lede {
  max-width: 40rem;
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* —— Cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-soft);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: none;
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(126, 184, 255, 0.18);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

/* —— Feature / product panel —— */
.panel {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: linear-gradient(160deg, rgba(126, 184, 255, 0.08), transparent 45%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

.panel h2 {
  margin-top: 0;
}

.panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.panel-meta li {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 520;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* —— About prose —— */
.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.prose strong {
  color: var(--text);
  font-weight: 580;
}

.fact-lock {
  margin-top: 2rem;
  padding: 1.15rem 1.35rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.fact-lock strong {
  color: var(--text);
}

/* —— CTA band —— */
.cta-band {
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
}

.cta-band h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.025em;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--text-muted);
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: 0;
}

/* —— Footer —— */
.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-faint);
}

.footer-inner a {
  color: var(--text-muted);
}

.footer-inner a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Mobile —— */
@media (max-width: 820px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(11, 12, 15, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.75rem 0.9rem;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
    justify-content: center;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 820px) {
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
}
