html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(88, 103, 237, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(114, 229, 255, 0.16), transparent 30%),
    #06070a;
  color: #fff;
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.selector-body {
  position: relative;
  overflow-x: hidden;
}

.selector-body::before,
.selector-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.selector-body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.12));
}

.selector-body::after {
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.18) 0%, rgba(6, 7, 10, 0.56) 100%);
}

.selector-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 54px;
}

.selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.selector-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.selector-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(88, 103, 237, 0.3));
}

.selector-status {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.selector-hero {
  padding-top: 72px;
}

.selector-copy {
  max-width: 860px;
}

.selector-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.selector-copy h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 98px);
  line-height: 0.96;
}

.selector-lead {
  max-width: 820px;
  margin: 24px 0 0;
  font-size: 21px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.track-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 17, 23, 0.88);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

.track-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.95;
  pointer-events: none;
}

.track-card-bending::before {
  background:
    radial-gradient(circle at top right, rgba(88, 103, 237, 0.3), transparent 36%),
    linear-gradient(180deg, rgba(7, 8, 11, 0) 0%, rgba(7, 8, 11, 0.44) 100%);
}

.track-card-jetbrains::before {
  background:
    radial-gradient(circle at top left, rgba(114, 229, 255, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(193, 214, 249, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(7, 8, 11, 0) 0%, rgba(7, 8, 11, 0.44) 100%);
}

.track-card > * {
  position: relative;
  z-index: 1;
}

.track-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.track-card h2 {
  margin: 20px 0 12px;
  font-size: 40px;
  line-height: 1;
}

.track-card p {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.track-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.track-points span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.track-preview {
  margin-top: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 11, 0.64);
}

.track-preview-bending {
  padding: 18px;
}

.preview-line {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.preview-line-long {
  width: 82%;
}

.preview-line-mid {
  width: 56%;
  margin-top: 12px;
}

.preview-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.preview-route span {
  min-height: 92px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(88, 103, 237, 0.2), rgba(255, 255, 255, 0.04));
}

.track-preview-jetbrains {
  padding: 18px;
}

.preview-chip-row {
  display: flex;
  gap: 8px;
}

.preview-chip-row span {
  width: 92px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.preview-bars {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.preview-bars i {
  display: block;
  width: var(--bar);
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #72e5ff 0%, #5867ed 100%);
}

.track-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 920px) {
  .selector-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .selector-shell {
    width: min(1220px, calc(100vw - 28px));
    padding-top: 24px;
  }

  .selector-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .selector-hero {
    padding-top: 54px;
  }

  .selector-copy h1 {
    font-size: 52px;
  }

  .selector-lead {
    font-size: 18px;
  }

  .track-card {
    min-height: 0;
    padding: 24px;
    border-radius: 24px;
  }

  .track-card h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track-card {
    transition: none;
  }
}
