:root {
  color-scheme: dark;
  --bg: #07110d;
  --panel: #0d1a14;
  --panel-soft: #091510;
  --text: #e7f8ed;
  --muted: #98b8a5;
  --line: #1f3a2d;
  --accent: #70ff9d;
  --accent-2: #a8ff60;
  --focus: #b7ffd1;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(112, 255, 157, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 255, 157, 0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100% - 28px, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 24px;
  display: grid;
  align-content: start;
  gap: 44px;
}

.hero {
  max-width: 760px;
}

.hero-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 38px;
}

.hero-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-mark circle {
  fill: rgba(9, 21, 16, 0.84);
  stroke: var(--line);
  stroke-width: 4;
}

.hero-mark path {
  fill: none;
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-w {
  stroke: var(--text);
}

.mark-c {
  stroke: var(--accent);
}

.greeting {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 650;
}

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

h1 {
  margin-bottom: 0;
  font-size: 5rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.16;
  font-weight: 650;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 30px;
}

.card {
  min-height: 122px;
  padding: 18px;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 26, 20, 0.86);
  color: var(--text);
  text-decoration: none;
}

a.card:hover {
  border-color: rgba(112, 255, 157, 0.72);
  background: rgba(112, 255, 157, 0.09);
}

.card:focus-visible,
.mox:focus-visible,
.modal button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.card span {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.card-placeholder {
  display: none;
}

.mox {
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  justify-self: start;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mox span,
.mox small {
  display: block;
}

.mox span {
  color: var(--text);
  font-weight: 650;
}

.mox small {
  margin-top: 2px;
  color: #6f8f79;
  font-size: 0.86rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(2, 8, 5, 0.76);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(100%, 380px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.modal img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(112, 255, 157, 0.12), rgba(168, 255, 96, 0.08)),
    var(--panel-soft);
}

.modal h2 {
  margin: 16px 0 2px;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.modal p {
  margin-bottom: 18px;
  color: var(--muted);
}

.modal button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

@media (min-width: 760px) {
  .page-shell {
    width: min(100% - 64px, 1040px);
    padding-top: 74px;
    align-content: center;
    gap: 56px;
  }

  .hero-mark {
    width: 86px;
    height: 86px;
    margin-bottom: 54px;
  }

  .greeting {
    font-size: 1.15rem;
  }

  h1 {
    font-size: 8.9rem;
    line-height: 0.86;
  }

  .hero-copy {
    margin-top: 34px;
    font-size: 2.35rem;
    line-height: 1.14;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-top: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
  }

  .card {
    min-height: 150px;
    border: 0;
    border-radius: 0;
  }

  .card-placeholder {
    display: block;
  }
}
