:root {
  color-scheme: dark;
  --bg: #080a0d;
  --surface: rgba(19, 23, 29, .84);
  --line: rgba(255, 255, 255, .11);
  --text: #f4f6f8;
  --muted: #929ba7;
  --orange: #ff5b25;
  --lime: #c8ff39;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 14%, rgba(255, 91, 37, .17), transparent 34%),
    radial-gradient(circle at 88% 83%, rgba(200, 255, 57, .1), transparent 32%),
    var(--bg);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.court-lines {
  position: fixed;
  width: min(72vw, 920px);
  aspect-ratio: 1;
  right: -28vw;
  top: 2vh;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  pointer-events: none;
}

.court-lines::before,
.court-lines::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
}

.court-lines::after { inset: 34%; }

.home-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(72px, 11vh, 132px) 0 72px;
}

.hero { width: 100%; }

.eyebrow,
.mode-label,
.mode-index {
  font-weight: 800;
  letter-spacing: .18em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: .3em;
  margin: 0;
  white-space: nowrap;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: .96;
  letter-spacing: -.065em;
}

.hero-brand .brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 2.85em;
  min-height: 1.08em;
  padding: .12em .38em .14em;
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  color: #090c10;
  background: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .58em;
  font-style: italic;
  font-weight: 950;
  letter-spacing: -.065em;
}

.hero-brand .brand-copy { letter-spacing: -.08em; }

.intro {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.8;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(52px, 8vh, 90px);
}

.mode-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  min-height: 260px;
  padding: 30px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: auto -8% -48% 38%;
  height: 210px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .12;
  transition: opacity .25s ease, transform .25s ease;
}

.career-card::before { background: var(--orange); }
.engine-card::before { background: var(--lime); }

.mode-card:hover,
.mode-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .28);
  background: rgba(25, 30, 37, .94);
  outline: none;
}

.mode-card:hover::before,
.mode-card:focus-visible::before {
  opacity: .26;
  transform: translateY(-16px);
}

.mode-index {
  color: var(--muted);
  font-size: 11px;
}

.mode-copy {
  align-self: end;
  position: relative;
  z-index: 1;
}

.mode-label {
  color: var(--orange);
  font-size: 10px;
}

.engine-card .mode-label { color: var(--lime); }

.mode-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -.04em;
}

.mode-copy p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.mode-arrow {
  align-self: start;
  font-size: 30px;
  line-height: 1;
  transition: transform .25s ease;
}

.mode-card:hover .mode-arrow,
.mode-card:focus-visible .mode-arrow { transform: translate(4px, -4px); }

@media (max-width: 760px) {
  .home-shell { width: min(100% - 28px, 600px); padding-top: 64px; }
  .hero-brand {
    display: grid;
    gap: 10px;
    font-size: clamp(42px, 13vw, 68px);
  }
  .hero-brand .brand-mark { justify-self: start; }
  .hero-brand .brand-copy { font-size: .72em; }
  .mode-grid { grid-template-columns: 1fr; margin-top: 46px; }
  .mode-card { min-height: 220px; padding: 24px; }
}

@media (max-width: 480px) {
  .home-shell { width: calc(100% - 24px); padding: 46px 0 32px; }
  .hero-brand { gap: 10px; font-size: clamp(38px, 14vw, 54px); white-space: normal; }
  .intro { margin-top: 20px; font-size: 14px; }
  .mode-grid { gap: 12px; margin-top: 34px; }
  .mode-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; min-height: 184px; padding: 18px; border-radius: 18px; }
  .mode-copy h2 { font-size: 28px; }
  .mode-copy p { font-size: 12px; }
  .mode-arrow { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .mode-card, .mode-card::before, .mode-arrow { transition: none; }
}
