@import url("/css/tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap");

/* ===== Reset & Base ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-body);
  line-height: var(--bc-lh-body);
  letter-spacing: var(--bc-tracking-body);
  color: var(--bc-text);
  background-color: var(--bc-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--bc-link);
  text-decoration: none;
  transition: color var(--bc-duration-1) var(--bc-ease);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ===== Layout ===== */

.nav,
.footer-inner,
.section-inner {
  max-width: var(--bc-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bc-space-5);
  padding-right: var(--bc-space-5);
}

/* ===== Header & Nav ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bc-bg);
  border-bottom: var(--bc-stroke-1) solid var(--bc-rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--bc-space-4);
  padding-bottom: var(--bc-space-4);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  color: var(--bc-text);
}

.nav-logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: baseline;
  list-style: none;
  gap: var(--bc-space-6);
}

.nav-links a {
  font-family: var(--bc-font-mono);
  font-size: var(--bc-fs-mono);
  font-weight: var(--bc-fw-medium);
  letter-spacing: var(--bc-tracking-mono);
  text-transform: uppercase;
  color: var(--bc-text-muted);
}

.nav-links a:hover {
  color: var(--bc-text);
  text-decoration: none;
}

.nav-links a.nav-cta {
  display: inline-block;
  padding: var(--bc-space-2) var(--bc-space-4);
  border: var(--bc-stroke-1) solid var(--bc-text);
  background: var(--bc-text);
  color: var(--bc-text-inverse);
  border-radius: var(--bc-radius);
  transition: background-color var(--bc-duration-1) var(--bc-ease),
    color var(--bc-duration-1) var(--bc-ease);
}

.nav-links a.nav-cta:hover {
  background: transparent;
  color: var(--bc-text);
}

/* ===== Hero ===== */

.hero {
  padding-top: var(--bc-space-9);
  padding-bottom: var(--bc-space-9);
}

.hero h1 {
  font-family: var(--bc-font-display);
  font-size: var(--bc-fs-display);
  font-weight: var(--bc-fw-medium);
  line-height: var(--bc-lh-display);
  letter-spacing: var(--bc-tracking-display);
  color: var(--bc-text);
  margin-bottom: var(--bc-space-4);
  max-width: 16ch;
}

.hero h2 {
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-h2);
  font-weight: 400;
  line-height: var(--bc-lh-heading);
  letter-spacing: var(--bc-tracking-heading);
  color: var(--bc-text-muted);
  margin-bottom: var(--bc-space-6);
  max-width: 28ch;
}

.hero p {
  font-size: var(--bc-fs-body-l);
  color: var(--bc-text-muted);
  max-width: 56ch;
  margin-bottom: var(--bc-space-7);
}

.hero a {
  display: inline-block;
  padding: var(--bc-space-3) var(--bc-space-5);
  border: var(--bc-stroke-1) solid var(--bc-text);
  background: var(--bc-text);
  color: var(--bc-text-inverse);
  font-family: var(--bc-font-mono);
  font-size: var(--bc-fs-mono);
  font-weight: var(--bc-fw-medium);
  letter-spacing: var(--bc-tracking-mono);
  text-transform: uppercase;
  border-radius: var(--bc-radius);
  transition: background-color var(--bc-duration-1) var(--bc-ease),
    color var(--bc-duration-1) var(--bc-ease);
}

.hero a:hover {
  background: transparent;
  color: var(--bc-text);
  text-decoration: none;
}

/* ===== Sections (shared) ===== */

section {
  padding-top: var(--bc-space-9);
  padding-bottom: var(--bc-space-9);
  position: relative;
}

section h2 {
  font-family: var(--bc-font-display);
  font-size: var(--bc-fs-h1);
  font-weight: var(--bc-fw-medium);
  line-height: var(--bc-lh-heading);
  letter-spacing: var(--bc-tracking-heading);
  color: var(--bc-text);
  margin-bottom: var(--bc-space-7);
  max-width: 24ch;
}

/* ===== Approach ===== */

.approach {
  border-top: var(--bc-stroke-1) solid var(--bc-rule);
}

.approach p {
  font-size: var(--bc-fs-body-l);
  line-height: var(--bc-lh-body);
  color: var(--bc-text-muted);
  max-width: 60ch;
  margin-bottom: var(--bc-space-5);
}

.approach p:first-of-type {
  font-family: var(--bc-font-display);
  font-size: var(--bc-fs-h2);
  font-weight: var(--bc-fw-medium);
  line-height: var(--bc-lh-heading);
  letter-spacing: var(--bc-tracking-heading);
  color: var(--bc-text);
  max-width: 22ch;
  margin-bottom: var(--bc-space-6);
}

/* ===== About ===== */

.about {
  border-top: var(--bc-stroke-1) solid var(--bc-rule);
}

.about p {
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-body-l);
  line-height: var(--bc-lh-body);
  color: var(--bc-text);
  max-width: 60ch;
  margin-bottom: var(--bc-space-5);
}

/* ===== Services ===== */

.services {
  border-top: var(--bc-stroke-1) solid var(--bc-rule);
  background-color: var(--bc-bg-alt);
}

.services h3 {
  font-family: var(--bc-font-display);
  font-size: var(--bc-fs-h3);
  font-weight: var(--bc-fw-semi);
  letter-spacing: var(--bc-tracking-heading);
  color: var(--bc-text);
  margin-top: var(--bc-space-7);
  margin-bottom: var(--bc-space-3);
  padding-top: var(--bc-space-5);
  border-top: var(--bc-stroke-1) solid var(--bc-rule);
}

.services h3:first-of-type {
  margin-top: var(--bc-space-2);
}

.services p {
  font-size: var(--bc-fs-body-l);
  color: var(--bc-text-muted);
  max-width: 60ch;
}

/* ===== Contact ===== */

.contact {
  border-top: var(--bc-stroke-1) solid var(--bc-rule);
}

.contact p {
  font-size: var(--bc-fs-body-l);
  color: var(--bc-text);
  max-width: 60ch;
  margin-bottom: var(--bc-space-3);
}

.contact a {
  border-bottom: var(--bc-stroke-1) solid var(--bc-link);
}

.contact a:hover {
  text-decoration: none;
  background: var(--bc-link);
  color: var(--bc-text-inverse);
}

/* ===== FAQ ===== */

.faq {
  border-top: var(--bc-stroke-1) solid var(--bc-rule);
  background-color: var(--bc-bg-alt);
}

.faq h3 {
  font-family: var(--bc-font-display);
  font-size: var(--bc-fs-h3);
  font-weight: var(--bc-fw-semi);
  line-height: var(--bc-lh-heading);
  letter-spacing: var(--bc-tracking-heading);
  color: var(--bc-text);
  max-width: 60ch;
  margin-top: var(--bc-space-7);
  margin-bottom: var(--bc-space-4);
  padding-top: var(--bc-space-5);
  border-top: var(--bc-stroke-1) solid var(--bc-rule);
}

.faq h3:first-of-type {
  margin-top: var(--bc-space-2);
}

.faq p {
  font-size: var(--bc-fs-body-l);
  line-height: var(--bc-lh-body);
  color: var(--bc-text-muted);
  max-width: 60ch;
}

.faq a {
  border-bottom: var(--bc-stroke-1) solid var(--bc-link);
}

.faq a:hover {
  text-decoration: none;
  background: var(--bc-link);
  color: var(--bc-text-inverse);
}

/* ===== Footer ===== */

.site-footer {
  border-top: var(--bc-stroke-1) solid var(--bc-rule);
  padding-top: var(--bc-space-6);
  padding-bottom: var(--bc-space-6);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--bc-space-5);
  flex-wrap: wrap;
}

.site-footer p {
  font-family: var(--bc-font-mono);
  font-size: var(--bc-fs-mono);
  font-weight: var(--bc-fw-medium);
  letter-spacing: var(--bc-tracking-mono);
  text-transform: uppercase;
  color: var(--bc-text-muted);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .hero {
    padding-top: var(--bc-space-7);
    padding-bottom: var(--bc-space-7);
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .hero p {
    font-size: var(--bc-fs-body);
  }

  section {
    padding-top: var(--bc-space-7);
    padding-bottom: var(--bc-space-7);
  }

  section h2 {
    font-size: 32px;
  }

  .nav-logo img {
    height: 32px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--bc-space-3);
  }

  .nav-links {
    gap: var(--bc-space-4);
    flex-wrap: wrap;
  }
}
