:root {
  color-scheme: dark;
  --bg: #020b14;
  --line: rgba(136, 219, 240, .16);
  --muted: #7f9cac;
  --text: #effbff;
  --cyan: #54e5ff;
  --blue: #438cff;
  --violet: #a58bff;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 8%, rgba(24, 137, 184, .16), transparent 28%),
    radial-gradient(circle at 16% 92%, rgba(20, 93, 140, .13), transparent 32%),
    linear-gradient(145deg, #020a12 0%, #041523 48%, #020b14 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image:
    linear-gradient(rgba(113, 213, 240, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 213, 240, .11) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

#current-field { position: fixed; inset: 0; pointer-events: none; }
.light-beam {
  position: fixed;
  top: -30vh;
  width: 1px;
  height: 150vh;
  background: linear-gradient(to bottom, transparent, rgba(107, 229, 255, .15), transparent);
  box-shadow: 0 0 70px 18px rgba(33, 160, 198, .08);
  transform: rotate(34deg);
  pointer-events: none;
}
.light-beam--one { left: 22%; }
.light-beam--two { left: 72%; opacity: .5; }
.shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(84,229,255,.35); background: rgba(84,229,255,.05); transform: skewX(-8deg); }
.brand-mark svg { width: 31px; fill: var(--cyan); transform: skewX(8deg); filter: drop-shadow(0 0 8px rgba(84,229,255,.55)); }
.brand-mark-detail { fill: none; stroke: #d9faff; stroke-width: 1.5; }
.brand strong { display: block; font: 600 16px/1.2 "Cascadia Mono", Consolas, monospace; letter-spacing: .18em; }
.brand small { display: block; margin-top: 4px; color: #638799; font: 400 8px/1 "Cascadia Mono", Consolas, monospace; letter-spacing: .22em; }
.system-state { color: #79a5b6; font: 500 10px/1 "Cascadia Mono", Consolas, monospace; letter-spacing: .18em; display: flex; align-items: center; gap: 10px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #64f5ce; box-shadow: 0 0 12px #64f5ce; animation: pulse 2.1s infinite; }

.hero { padding: 82px 0 70px; }
.eyebrow, .section-index { color: #6296aa; font: 500 10px/1.2 "Cascadia Mono", Consolas, monospace; letter-spacing: .2em; }
.eyebrow span { color: var(--cyan); margin-right: 13px; }
.hero h1 { max-width: 760px; margin: 24px 0 20px; font-size: clamp(42px, 6.1vw, 76px); line-height: 1.12; letter-spacing: -.045em; font-weight: 600; }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(172, 232, 246, .72); text-shadow: 0 0 30px rgba(52,181,215,.14); }
.hero p { margin: 0; color: var(--muted); font-size: 15px; letter-spacing: .04em; }
.workspace { padding-bottom: 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.section-heading h2 { margin: 8px 0 0; font-size: 24px; letter-spacing: -.02em; }
.module-count { color: #5b7f8f; font: 500 9px/1 "Cascadia Mono", Consolas, monospace; letter-spacing: .14em; }
.module-count b { color: #bdefff; font-size: 12px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card {
  --accent: var(--cyan);
  position: relative;
  min-height: 300px;
  padding: 33px;
  border: 1px solid rgba(116, 204, 226, .18);
  background: linear-gradient(145deg, rgba(9, 34, 51, .84), rgba(4, 18, 30, .68));
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  backdrop-filter: blur(12px);
}
.project-card::before { content: ""; position: absolute; inset: 0; opacity: .45; background: radial-gradient(circle at 83% 10%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 36%); }
.project-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.012), 0 0 0 56px rgba(255,255,255,.008); }
.project-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 53%, transparent); box-shadow: 0 18px 60px rgba(0, 8, 16, .35), inset 0 0 45px color-mix(in srgb, var(--accent) 4%, transparent); }
.accent-blue { --accent: var(--blue); }
.accent-violet { --accent: var(--violet); }
.card-no { position: absolute; top: 18px; right: 20px; color: color-mix(in srgb, var(--accent) 48%, transparent); font: 500 10px/1 "Cascadia Mono", Consolas, monospace; letter-spacing: .16em; z-index: 1; }
.card-icon { position: relative; width: 58px; height: 58px; display: grid; place-items: center; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 10%, transparent); }
.card-icon svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.card-copy { position: relative; margin-top: 30px; }
.card-copy > span { color: color-mix(in srgb, var(--accent) 72%, #fff); font: 500 9px/1 "Cascadia Mono", Consolas, monospace; letter-spacing: .18em; }
.card-copy h3 { margin: 8px 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.card-copy p { margin: 0; color: #7394a4; font-size: 13px; }
.enter-link { position: absolute; z-index: 2; right: 28px; bottom: 25px; display: flex; align-items: center; gap: 12px; color: #d7f7ff; text-decoration: none; font-size: 12px; letter-spacing: .1em; }
.enter-link svg { width: 21px; fill: none; stroke: var(--accent); stroke-width: 1.6; transition: transform .25s ease; }
.enter-link:hover svg { transform: translateX(5px); }
.card-scanline { position: absolute; left: 0; bottom: 0; width: 35%; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); box-shadow: 0 0 12px var(--accent); }

.classified { margin-top: 28px; }
.classified-trigger { width: 100%; display: flex; align-items: center; justify-content: center; gap: 13px; border: 0; background: none; color: #375866; cursor: pointer; font: 500 8px/1 "Cascadia Mono", Consolas, monospace; letter-spacing: .24em; transition: color .25s ease; }
.classified-trigger:hover { color: #7097a7; }
.classified-line { width: 54px; height: 1px; background: currentColor; opacity: .35; }
.lock-icon { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid currentColor; }
.lock-icon svg { width: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.access-panel { width: min(380px, 100%); margin: 25px auto 0; padding: 21px; border: 1px solid rgba(120,189,207,.16); background: rgba(3,17,28,.82); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.access-panel label { display: block; margin-bottom: 12px; color: #83a4b2; font-size: 11px; letter-spacing: .16em; }
.access-row { display: flex; border-bottom: 1px solid #315767; }
.access-row:focus-within { border-color: var(--cyan); box-shadow: 0 9px 16px -14px var(--cyan); }
.access-row input { min-width: 0; flex: 1; padding: 10px 2px; border: 0; outline: 0; background: transparent; color: #e8fbff; font: 400 14px "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; }
.access-row input::placeholder { color: #3e606e; letter-spacing: .05em; }
.access-row button { width: 38px; border: 0; background: transparent; color: var(--cyan); cursor: pointer; }
.access-row button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.access-panel p { margin: 10px 0 0; color: #476b79; font: 400 9px/1.4 "Cascadia Mono", Consolas, monospace; }
.access-panel p.error { color: #ff8190; }
.secret-project { width: min(581px, 100%); margin: 24px auto 0; }
.secret-project .project-card { min-height: 270px; }
footer { min-height: 96px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #3f6271; font: 400 8px/1 "Cascadia Mono", Consolas, monospace; letter-spacing: .16em; }
.coordinates { color: #527888; }
[hidden] { display: none !important; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 88px; }
  .system-state { font-size: 0; }
  .hero { padding: 58px 0 50px; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .hero p { max-width: 290px; line-height: 1.7; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 285px; padding: 27px; }
  footer .coordinates { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
