/* ==========================================================================
   Exaft -- Consolidated Stylesheet
   ========================================================================== */

/* --- RESET --- */

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

/* --- CUSTOM PROPERTIES --- */

:root {
  color-scheme: light dark;
  --black: #0a0a0a;
  --white: #fafafa;
  --gray: #6b6b6b;
  --gray-light: #e0e0e0;
  --font: -apple-system, 'Helvetica Neue', 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --black: #e8e8e8;
    --white: #111111;
    --gray: #999999;
    --gray-light: #2a2a2a;
  }
}

/* --- BASE --- */

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

h2 a:hover,
h3 a:hover {
  color: var(--gray);
}

/* --- NAV --- */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 3.5rem;
}

.wordmark {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a,
.nav-link {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.06em;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-link:hover {
  color: var(--black);
}

.nav-link--active {
  color: var(--black);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- HERO --- */

header.hero,
.hero {
  padding: 10vh 3.5rem 12vh;
  max-width: 58rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 48rem;
}

.hero h1 + h1 {
  margin-top: 0;
}

.hero p {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
  color: var(--gray);
  max-width: 38rem;
  line-height: 1.7;
}

/* --- DIVIDER --- */

.divider {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 0 3.5rem;
}

/* --- SECTION (generic) --- */

.section {
  padding: 8vh 3.5rem;
}

.section-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gray);
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
  max-width: 38rem;
}

.section p + p {
  margin-top: 1rem;
}

.section p + h2,
.section .item + .item {
  margin-top: 2.5rem;
}

/* --- BACKLINK --- */

.backlink {
  padding: 0 3.5rem;
}

.backlink a {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.backlink a:hover {
  color: var(--black);
}

/* --- SERVICES (homepage) --- */

.services {
  padding: 8vh 3.5rem;
}

.services-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gray);
  margin-bottom: 5vh;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 3.5rem 3rem;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.service p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

/* --- SERVICE-ITEM (services listing rows) --- */

.service-item {
  display: flex;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.service-item:first-of-type {
  border-top: 1px solid var(--gray-light);
}

.service-number {
  font-size: 0.6875rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  min-width: 2rem;
  padding-top: 0.25rem;
}

.service-content h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-content p {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 38rem;
}

/* --- GRID (3-col content grid) --- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.grid-item h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.grid-item p {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.7;
}

/* --- STAGES --- */

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stage {
  padding: 2rem 0;
  border-top: 1px solid var(--gray-light);
}

.stage-number {
  font-size: 0.6875rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.stage h3 {
  font-size: 1.0625rem;
  font-weight: 500;
}

/* --- ADVANTAGES --- */

.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 3rem;
}

.advantage h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.advantage p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

/* --- TWO-COL --- */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.col h3,
.benefit h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.col p,
.benefit p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

/* --- BENEFITS --- */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 3rem;
}

/* --- CARD-GRID --- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 3rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-number {
  font-size: 0.6875rem;
  color: var(--gray-light);
  letter-spacing: 0.06em;
}

/* --- TECH-LIST --- */

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tech-list span {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--gray-light);
}

/* --- FAQ-ITEM --- */

.faq-item {
  margin-bottom: 2.5rem;
}

.faq-item h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.faq-item p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
  max-width: 38rem;
}

/* --- STEPS --- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  font-size: 0.6875rem;
  color: var(--gray-light);
  letter-spacing: 0.06em;
  min-width: 2rem;
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.step-content h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

.step-content ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.step-content li {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
  padding: 0.2rem 0;
}

.step-content li::before {
  content: "\2014 ";
  color: var(--gray-light);
}

/* --- FOOTER --- */

footer {
  padding: 10vh 3.5rem 3.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-block a {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 0.15em;
  transition: border-color 0.3s;
}

.contact-block a:hover {
  border-color: var(--black);
}

.footer-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-meta a,
.footer-meta span {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.footer-meta a:hover {
  color: var(--black);
}

/* --- RESPONSIVE (640px) --- */

@media (max-width: 640px) {
  nav,
  .hero,
  .services,
  .section,
  .backlink,
  footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .divider {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .hero {
    padding-top: 6vh;
    padding-bottom: 8vh;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .two-col,
  .advantages,
  .benefits {
    grid-template-columns: 1fr;
  }

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

  .step {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
  }

  nav {
    position: relative;
  }

  nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 0.875rem;
  }

  .contact-block a {
    font-size: 1.125rem;
  }

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

/* --- PRINT --- */

@media print {
  nav,
  .backlink,
  footer,
  script {
    display: none;
  }

  .hero, .section, .services {
    padding: 1rem 0;
  }

  .divider {
    margin: 0;
  }

  .e::after {
    content: attr(data-u) "@" attr(data-d);
  }
}
