:root {
  --bg: #f7f7f4;
  --text: #171717;
  --muted: #626965;
  --line: #d9ddd8;
  --panel: rgba(255, 255, 255, 0.82);
  --accent: #0f766e;
  --accent-2: #b42318;
  --ink: #1f2937;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.32)),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, white);
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-radius: 8px;
}

.brand-mark::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 9px 9px 0 color-mix(in srgb, var(--accent-2) 70%, white);
}

.domain {
  overflow-wrap: anywhere;
}

.status {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  padding: 42px 0 64px;
}

.copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--text);
  border-radius: 6px;
  color: white;
  background: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

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

.visual {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, white), transparent 44%),
    linear-gradient(315deg, color-mix(in srgb, var(--accent-2) 18%, white), transparent 52%),
    #ffffff;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.48;
}

.window {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  min-height: 210px;
  border: 1px solid color-mix(in srgb, var(--text) 20%, white);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(23, 23, 23, 0.14);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.dot:nth-child(2) {
  background: color-mix(in srgb, var(--accent) 45%, var(--accent-2));
}

.dot:nth-child(3) {
  background: var(--accent-2);
}

.rows {
  padding: 22px;
}

.row {
  height: 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, white);
}

.row:nth-child(2) {
  width: 72%;
  background: color-mix(in srgb, var(--accent-2) 18%, white);
}

.row:nth-child(3) {
  width: 88%;
}

.row:nth-child(4) {
  width: 58%;
  margin-bottom: 0;
  background: color-mix(in srgb, var(--text) 12%, white);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 18px;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.theme-kerygma {
  --bg: #f5f7f2;
  --accent: #0f766e;
  --accent-2: #d97706;
}

.theme-vissarionov {
  --bg: #f6f7fa;
  --accent: #334155;
  --accent-2: #0e7490;
}

.theme-aitrade {
  --bg: #f8f9f6;
  --accent: #047857;
  --accent-2: #4338ca;
}

.theme-sarepta {
  --bg: #f7f5f1;
  --accent: #a16207;
  --accent-2: #be123c;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status {
    white-space: normal;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 72px);
  }

  .visual {
    min-height: 320px;
  }

  .window {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

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

  .footer {
    flex-direction: column;
  }
}
