:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #617085;
  --paper: #f7f4ee;
  --surface: #fffdf8;
  --line: rgba(24, 33, 47, 0.12);
  --blue: #3157d5;
  --teal: #0f8a87;
  --gold: #d69b2d;
  --rose: #c9515d;
  --shadow: 0 24px 70px rgba(24, 33, 47, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

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

main {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: 86vh;
  padding: 24px clamp(18px, 5vw, 72px) 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(255, 253, 248, 0.95) 0%, rgba(247, 244, 238, 0.84) 44%, rgba(49, 87, 213, 0.16) 100%),
    url("data:image/svg+xml,%3Csvg width='1600' height='1000' viewBox='0 0 1600 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1600' height='1000' fill='%23d9dedb'/%3E%3Cpath d='M0 742c215-119 373-155 474-108 152 71 188 178 374 168 186-11 253-166 402-198 99-21 216 12 350 100v296H0V742Z' fill='%230f8a87' fill-opacity='.64'/%3E%3Cpath d='M0 0h1600v266c-117 85-237 110-360 75-184-53-261-144-436-98s-221 173-392 182C298 432 160 389 0 296V0Z' fill='%23f2b751' fill-opacity='.78'/%3E%3Ccircle cx='1164' cy='410' r='176' fill='%233157d5' fill-opacity='.72'/%3E%3Crect x='172' y='512' width='396' height='70' rx='35' fill='%23fffdf8' fill-opacity='.6'/%3E%3Crect x='918' y='726' width='382' height='54' rx='27' fill='%23fffdf8' fill-opacity='.42'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 5vw, 72px);
}

.nav__brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav__links {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--blue);
}

.hero__content {
  max-width: 720px;
  padding-top: 82px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 10vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero__lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: #36475d;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 30px rgba(24, 33, 47, 0.2);
}

.button--ghost {
  background: rgba(255, 253, 248, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.site-preview {
  margin-top: 70px;
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.site-preview__chrome {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.site-preview__chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
}

.site-preview__chrome span:nth-child(2) {
  background: var(--gold);
}

.site-preview__chrome span:nth-child(3) {
  background: var(--teal);
}

.site-preview__body {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 30px);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preview-card {
  display: grid;
  align-content: space-between;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.preview-card--wide {
  min-height: 156px;
  background: #18212f;
  color: white;
}

.preview-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
}

.preview-card strong {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.16;
}

.preview-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 10px -10px 0 rgba(255, 255, 255, 0.24);
}

.preview-icon--green {
  background: var(--teal);
}

.preview-icon--gold {
  background: var(--gold);
}

.preview-icon--red {
  background: var(--rose);
}

.intro,
.sections,
.closing {
  padding: clamp(52px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: var(--surface);
}

.intro h2,
.closing h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 740px;
  margin-bottom: 0;
  color: #344258;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.7;
}

.sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  color: white;
}

.section-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 220px;
  padding: clamp(22px, 4vw, 34px);
  background: #202c3d;
  transition: background 160ms ease, transform 160ms ease;
}

.section-link--project {
  color: inherit;
}

.section-link:hover,
.section-link:focus-visible {
  background: #2b3a50;
  transform: translateY(-2px);
}

.section-link--project:hover {
  transform: none;
}

.section-link__number {
  color: var(--gold);
  font-weight: 800;
}

.section-link strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.section-link small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.5;
}

.project-link {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, border-color 160ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
}

.project-link span {
  color: white;
  font-size: 1.08rem;
  font-weight: 800;
}

.project-link small {
  font-size: 0.94rem;
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 44px;
  }

  .site-preview {
    margin-top: 0;
  }

  .intro,
  .sections {
    grid-template-columns: 1fr;
  }

  .section-link {
    min-height: 170px;
  }

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

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav__links {
    width: 100%;
    justify-content: space-between;
  }

  .hero__content {
    padding-top: 132px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5.2rem);
    overflow-wrap: anywhere;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

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