/* Potus identity: dark background, Potus green, white. */
:root {
  --bg: #1a1a1a;
  --surface: #242424;
  --surface-hover: #2c2c2c;
  --border: #333333;
  --text: #ffffff;
  --text-muted: #b5b5b5;
  --brand: #00ce99;
  --brand-soft: rgba(0, 206, 153, 0.12);
  --radius: 14px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hero,
main,
.footer {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 56px 0 32px;
}

.hero__mark {
  flex: none;
  width: 96px;
  height: auto;
  color: var(--text);
  filter: drop-shadow(0 0 24px rgba(0, 206, 153, 0.25));
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
  line-height: 1.1;
}

.hero__title span {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.5em;
  letter-spacing: 0.02em;
}

.hero__lead {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-title {
  margin: 32px 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas:
    "icon name"
    "desc desc"
    "host host";
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.card:hover,
.card:focus-visible {
  background: var(--surface-hover);
  border-color: var(--brand);
  transform: translateY(-2px);
  outline: none;
}

.card__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__name {
  grid-area: name;
  font-size: 1.15rem;
  font-weight: 800;
}

.card__desc {
  grid-area: desc;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card__host {
  grid-area: host;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer {
  padding: 48px 0 32px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.footer strong {
  color: var(--brand);
}

@media (max-width: 560px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 32px;
  }

  .hero__mark {
    width: 72px;
  }
}
