:root {
  color-scheme: dark;
  --bg: #06070a;
  --panel: rgba(12, 14, 18, 0.88);
  --panel-strong: rgba(17, 19, 25, 0.96);
  --ink: #f4f6f8;
  --muted: #a7adb8;
  --line: rgba(231, 28, 43, 0.42);
  --line-soft: rgba(255, 145, 0, 0.24);
  --red: #e71c2b;
  --orange: #ff9100;
  --green: #26bfa0;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.08), #06070a 82vh),
    #06070a;
  color: var(--ink);
}

a {
  color: inherit;
}

.site-hero {
  position: relative;
  min-height: 82vh;
  min-height: 82svh;
  padding: 18px clamp(16px, 4vw, 56px) 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.94), rgba(6, 7, 10, 0.74) 48%, rgba(6, 7, 10, 0.2)),
    url("nerv-background.png") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(231, 28, 43, 0.08) 0, rgba(231, 28, 43, 0.08) 1px, transparent 1px, transparent 72px),
    linear-gradient(180deg, transparent 0, rgba(231, 28, 43, 0.12) 52%, transparent 52.5%);
  mix-blend-mode: screen;
}

.site-nav,
.hero-copy,
main {
  position: relative;
  z-index: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-left: 4px solid var(--red);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  background: rgba(6, 7, 10, 0.62);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  background: rgba(10, 12, 16, 0.72);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.hero-copy {
  width: min(680px, 100%);
  padding-top: 120px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 12vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(231, 28, 43, 0.32);
}

.lede {
  width: min(540px, 100%);
  margin: 22px 0 0;
  color: #d5dae2;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.55;
}

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

.button.primary {
  border-color: rgba(255, 145, 0, 0.62);
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 30px rgba(231, 28, 43, 0.24);
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 42px clamp(16px, 4vw, 36px) 74px;
}

.section {
  padding: 34px 0;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-card,
.about-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(231, 28, 43, 0.12), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.app-card {
  min-height: 240px;
  padding: 20px;
}

.app-card::before,
.about-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 72px;
  height: 4px;
  background: var(--red);
}

.app-card.featured {
  border-color: rgba(255, 145, 0, 0.72);
}

.app-card.featured::before {
  background: var(--orange);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.card-meta span {
  border: 1px solid rgba(255, 145, 0, 0.38);
  border-radius: 2px;
  padding: 5px 9px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: 0;
}

.app-card p,
.about-panel p {
  color: var(--muted);
  line-height: 1.66;
}

.about-panel {
  min-height: 180px;
  padding: 26px 24px;
  display: flex;
  align-items: center;
}

.about-panel p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-hero {
    background:
      linear-gradient(180deg, rgba(6, 7, 10, 0.97), rgba(6, 7, 10, 0.76) 56%, rgba(6, 7, 10, 0.42)),
      url("nerv-background.png") center / cover no-repeat;
  }

  .site-nav {
    align-items: flex-start;
  }

  .hero-copy {
    padding-top: 82px;
  }

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

@media (max-width: 480px) {
  .site-hero {
    padding-inline: 14px;
  }

  .nav-links a {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 13px;
  }
}
