/* =========================
   Local fonts
========================= */

@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/MartianMono-VariableFont_wdth,wght.ttf")
    format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* =========================
   Brand colors
========================= */

:root {
  --dark: #181628;
  --dark-light: #272b42;
  --purple: #7c7fd7;

  --mint-light: #d9fff4;
  --mint: #62ddc8;

  --teal: #14b6a3;
  --teal-dark: #269a8e;

  --white: #ffffff;

  --ink: var(--white);
  --muted: var(--mint-light);
  --accent: var(--mint);
  --deep: var(--dark);

  --line: rgb(217 255 244 / 18%);
}

/* =========================
   Base styles
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* =========================
   Header and navigation
========================= */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 24px 0;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 160px;
  height: auto;
}

.nav-link {
  color: var(--muted);
  font-family: "Martian Mono", monospace;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
}

/* =========================
   Typography
========================= */

h1,
h2,
h3,
.eyebrow,
.button {
  font-family: "Martian Mono", monospace;
}

h1 {
  max-width: 950px;
  margin: 24px 0 30px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.065em;
}

h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 150px 0 84px;
  overflow: hidden;
  align-items: end;
}

.hero::after {
  position: absolute;
  top: -100px;
  right: -160px;
  width: 620px;
  height: 620px;
  border: 1px solid rgb(98 221 200 / 30%);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgb(98 221 200 / 4%),
    0 0 0 180px rgb(124 127 215 / 3%);
  content: "";
  pointer-events: none;
}

.lead {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

/* =========================
   Buttons
========================= */

.button {
  display: inline-flex;
  margin-top: 36px;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent);
  color: var(--deep);
  outline: none;
  transform: translateY(-2px);
}

/* =========================
   General sections
========================= */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

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

.intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.intro-text {
  max-width: 800px;
  margin: 0;
  color: var(--mint-light);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
}

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

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 60px;
  border-top: 1px solid var(--line);
}

.service {
  min-height: 230px;
  padding: 34px 28px 34px 0;
  border-bottom: 1px solid var(--line);
}

.service:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.service:nth-child(even) {
  padding-left: 34px;
}

.number {
  color: var(--accent);
  font-family: "Martian Mono", monospace;
  font-size: 0.8rem;
}

.service h3 {
  margin: 16px 0 10px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 500;
}

.service p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
}

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

.contact {
  background: var(--accent);
  color: var(--deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: end;
}

.contact-eyebrow {
  color: var(--deep);
}

.contact-copy {
  max-width: 640px;
  font-size: 1.1rem;
}

.details {
  border-top: 1px solid rgb(24 22 40 / 25%);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(24 22 40 / 25%);
}

.detail-row span {
  opacity: 0.65;
}

.detail-row a {
  font-weight: 500;
  text-decoration: none;
}

.detail-row a:hover,
.detail-row a:focus-visible {
  text-decoration: underline;
}

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

.footer {
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

/* =========================
   Animation
========================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   Mobile
========================= */

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    padding: 20px 0;
  }

  .brand-logo {
    width: 145px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 160px;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4.3rem);
  }

  .intro,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .service,
  .service:nth-child(even) {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
  }

  .detail-row,
  .footer-content {
    flex-direction: column;
  }

  .detail-row {
    gap: 2px;
  }

  .section {
    padding: 70px 0;
  }
}