/* SAS Tech Lab — base styles */

:root {
  --bg: #0a0b0d;
  --bg-elev: #121316;
  --border: #23252a;
  --text: #e9eaec;
  --text-dim: #a3a7ad;
  --text-faint: #6b6f76;
  --accent: #5eead4;
  --accent-dim: #2f7d72;
  --max-width: 1120px;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}

.wordmark .mark {
  width: 24px;
  height: 24px;
  flex: none;
}

.wordmark .mark rect {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
}

.wordmark .mark path {
  fill: var(--accent);
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.15s ease;
}

nav.site-nav a:hover,
nav.site-nav a:focus-visible {
  color: var(--text);
}

/* Sections */

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--text-dim);
  margin: 0 0 16px;
  max-width: var(--measure);
}

/* Hero */

.hero {
  padding-top: 128px;
  padding-bottom: 112px;
}

.hero p.lead {
  font-size: 1.125rem;
  max-width: 58ch;
}

.hero-mark {
  margin-bottom: 32px;
}

/* Grid / cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.card .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
}

.card .icon rect,
.card .icon circle,
.card .icon path {
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.4;
}

.card p {
  margin-bottom: 0;
  font-size: 15px;
}

/* How we work */

.points {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.points .num {
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.points h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.points p {
  margin: 0;
  font-size: 14.5px;
}

/* Client services */

.services-cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.services-cta:hover,
.services-cta:focus-visible {
  border-color: var(--accent);
  background: rgba(94, 234, 212, 0.06);
}

/* About / contact */

.detail-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: var(--measure);
}

.detail-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  font-size: 14.5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.detail-list dt,
.detail-list .label {
  color: var(--text-faint);
}

.detail-list .value {
  color: var(--text);
}

.contact-email {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin: 8px 0 24px;
  word-break: break-word;
}

.contact-email:hover,
.contact-email:focus-visible {
  text-decoration: underline;
}

address {
  font-style: normal;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

/* Footer */

footer.site-footer {
  padding: 48px 0;
}

footer.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}

footer.site-footer a {
  text-decoration: none;
  color: var(--text-faint);
}

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

.footer-links {
  margin-top: 8px;
  display: flex;
  gap: 16px;
}

/* Privacy page */

.privacy-body h2 {
  margin-top: 40px;
}

.privacy-body ul {
  color: var(--text-dim);
  max-width: var(--measure);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Fade-in on scroll */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

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

  .points {
    grid-template-columns: 1fr;
  }

  .detail-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 72px;
  }

  nav.site-nav ul {
    gap: 16px;
  }

  nav.site-nav a {
    font-size: 13px;
  }

  .wordmark {
    font-size: 14px;
  }

  .contact-email {
    font-size: 1.15rem;
  }
}

@media (max-width: 400px) {
  .wrap {
    padding: 0 16px;
  }

  nav.site-nav ul {
    gap: 12px;
  }

  nav.site-nav a {
    font-size: 12px;
  }

  .wordmark {
    font-size: 13px;
    gap: 8px;
  }
}

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

  .fade-in,
  .card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
