:root {
  --font-sans:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  --page-width: 1080px;

  --background: #ffffff;
  --surface: #f7f7f7;
  --text: #171717;
  --muted: #666666;
  --border: #dedede;

  --accent: #176b45;
  --button-bg: #171717;
  --button-text: #ffffff;
}

html[data-theme="dark"] {
  --background: #111111;
  --surface: #1a1a1a;
  --text: #eeeeee;
  --muted: #a5a5a5;
  --border: #343434;

  --accent: #61c596;
  --button-bg: #eeeeee;
  --button-text: #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.container {
  width: min(var(--page-width), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.brand img {
  display: block;
  width: 120px;
  height: auto;
}

.brand-mark {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

.top-nav a:hover {
  text-decoration: underline;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.theme-toggle:hover {
  background: var(--surface);
}

.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  max-width: 820px;
}

.eyebrow,
.info-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
  color: var(--muted);
}

.hero-text {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.btn-primary {
  background: var(--button-bg);
  border-color: var(--button-bg);
  color: var(--button-text);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  color: inherit;
  background: transparent;
}

.btn-secondary:hover {
  background: var(--surface);
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.quick-info {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.info-item {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
}

.info-item:first-child {
  padding-left: 0;
}

.info-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.info-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.section {
  padding: 64px 0;
}

.compact-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
}

.compact-grid h2 {
  margin: 0;
  font-size: 34px;
}

.steps {
  border-top: 1px solid var(--border);
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.step-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-note {
  padding-top: 0;
}

.note-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.note-box h2 {
  max-width: 440px;
  margin-bottom: 0;
  font-size: 28px;
}

.note-box > p {
  margin: 0;
  color: var(--muted);
}

.final-cta {
  padding-top: 24px;
}

.final-cta-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.final-cta h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.final-cta p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .header-row {
    gap: 14px;
  }

  .top-nav {
    gap: 12px;
  }

  .hero {
    padding: 52px 0;
  }

  .info-grid,
  .compact-grid,
  .note-box {
    grid-template-columns: 1fr;
  }

  .info-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
  }

  .info-item:last-child {
    border-bottom: 0;
  }

  .compact-grid {
    gap: 32px;
  }

  .note-box {
    gap: 24px;
    padding: 24px;
  }

  .final-cta-inner,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta-inner {
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 100px;
  }

  .brand-mark {
    display: none;
  }

  .top-nav a[href="#about"] {
    display: none;
  }

  h1 {
    font-size: 2.5rem;
  }
}