:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --soft-muted: #64748b;
  --line: #e2e8f0;
  --accent: #0f172a;
  --accent-soft: #e2e8f0;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  --max-width: 1120px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(148, 163, 184, 0.22),
      transparent 32rem
    ),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #ffffff 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 0 24px;
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__avatar {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface);
}

.brand__text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  transition: color 160ms ease;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

main {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 86px 24px 72px;
}

.hero__content {
  max-width: 690px;
}

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

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 660px;
  margin-bottom: 22px;
  color: #1e293b;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.hero__text {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.03rem;
}

.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: 999px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
}

.button--secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button--secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.hero__media {
  position: relative;
}

.hero__media::before {
  position: absolute;
  inset: 7%;
  z-index: -1;
  content: "";
  background: rgba(15, 23, 42, 0.08);
  border-radius: 42px;
  transform: rotate(-5deg);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 42px;
  object-fit: cover;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.section__header {
  max-width: 740px;
  margin-bottom: 34px;
}

.section__header h2 {
  margin-bottom: 0;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.section__body {
  color: var(--muted);
  font-size: 1.03rem;
}

.section__body p:not(:last-child) {
  margin-bottom: 22px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.045);
}

.card__logo {
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  object-fit: contain;
}

.card p {
  color: var(--muted);
}

.card a {
  margin-top: auto;
  color: var(--text);
  font-weight: 800;
}

.card a::after {
  content: " →";
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.project-item:first-child {
  border-top: 1px solid var(--line);
}

.project-item h3 {
  margin: 0;
}

.project-item p {
  margin: 0;
  color: var(--muted);
}

.section--cta {
  margin-bottom: 68px;
  padding: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section--cta p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 34px 24px 48px;
  color: var(--soft-muted);
  font-size: 0.94rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}

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

.project-item a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.project-item a:hover {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .site-nav a:hover {
    background: var(--surface-soft);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
    padding-top: 64px;
  }

  .hero__media {
    max-width: 520px;
  }

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

  .card {
    min-height: auto;
  }

  .section--split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

@media (max-width: 560px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 15px;
  }

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

  .brand__text {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav {
    right: 18px;
    left: 18px;
  }

  .hero {
    padding: 48px 18px 54px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .hero__lead {
    font-size: 1.18rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__media::before {
    border-radius: 30px;
  }

  .hero__media img {
    border-radius: 30px;
  }

  .section {
    padding: 58px 18px;
  }

  .card {
    padding: 24px;
    border-radius: 24px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }

  .section--cta {
    margin: 0 18px 48px;
    padding: 30px 24px;
  }

  .site-footer {
    padding: 28px 18px 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
