:root {
  --bg: #0e1116;
  --card: #171b22;
  --line: #262c36;
  --line-hover: #3a4250;
  --text: #eef0f3;
  --muted: #a3abb8;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo span { color: var(--muted); font-weight: 500; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-hover);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.pill:hover { border-color: var(--muted); background: var(--card); }

/* Hero */
.hero { padding: 40px 0 32px; max-width: 860px; }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 24px 0 0;
  max-width: 100%;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

/* Grid */
.grid { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }

.card {
  --accent: #7dd3fc;
  flex: 1 1 300px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover { transform: translateY(-4px); border-color: var(--line-hover); }

.card--wide { flex: 2 1 560px; min-height: 260px; padding: 32px; }
.card--medium { min-height: 260px; padding: 32px; }

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

.mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent);
  color: #0e1116;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
}

.card--wide .mark, .card--medium .mark { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }

.tag {
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.card__name {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.card--wide .card__name { font-size: 44px; }
.card--medium .card__name { font-size: 36px; }

.card__desc {
  margin: 8px 0 0;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.card--wide .card__desc { font-size: 17px; }
.card--medium .card__desc { font-size: 16px; }

/* Contact card */
.contact {
  flex: 1 1 300px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--text);
  color: #0e1116;
  border-radius: 24px;
}

.contact__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b5361;
}

.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.contact a {
  display: inline-block;
  margin-top: 12px;
  min-height: 44px;
  line-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: #0e1116;
}

.contact :focus-visible { outline-color: #0e1116; }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  padding: 50px 0 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer p { margin: 0; }
.site-footer .legal { max-width: 560px; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .card, .card--wide, .card--medium, .contact { padding: 24px; min-height: 200px; }
  .card--wide .card__name { font-size: 36px; }
  .card--medium .card__name { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .pill { transition: none; }
  .card:hover { transform: none; }
}
