:root {
  color-scheme: dark;
  --ink: #05070b;
  --panel: rgba(9, 16, 25, 0.82);
  --panel-strong: rgba(12, 25, 38, 0.96);
  --line: rgba(124, 222, 255, 0.34);
  --line-strong: rgba(124, 222, 255, 0.72);
  --text: #eef7fb;
  --muted: #aab8c3;
  --cyan: #7cdeff;
  --amber: #ffca58;
  --red: #ff4f5e;
  --green: #78f0a3;
  --violet: #bba7ff;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 222, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 4%, rgba(255, 202, 88, 0.12), transparent 24rem),
    linear-gradient(135deg, #05070b 0%, #09101a 52%, #07090f 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(124, 222, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 222, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}

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

button,
input {
  color: inherit;
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(124, 222, 255, 0.22), rgba(255, 202, 88, 0.08));
  box-shadow: 0 0 22px rgba(124, 222, 255, 0.22);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 6px auto;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.brand-mark::after {
  top: 17px;
  left: 11px;
  right: 11px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.filter-button:hover,
.filter-button.active {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(124, 222, 255, 0.1);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 54px) clamp(38px, 5vw, 70px);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow,
.panel-kicker,
.story-category,
.timeline-item span,
.dialog-grid span,
.reality-check span,
.idea-form span,
.scan-label span {
  display: block;
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 780px;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 30px;
  color: #d5e5ec;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.56;
}

.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #031019;
  box-shadow: 0 0 28px rgba(124, 222, 255, 0.24);
}

.button.ghost {
  background: rgba(124, 222, 255, 0.08);
  color: var(--text);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1280 / 853;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 222, 255, 0.14), transparent 36%),
    rgba(4, 10, 18, 0.9);
  box-shadow: 0 34px 80px var(--shadow), inset 0 0 42px rgba(124, 222, 255, 0.08);
  overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-visual::before {
  inset: 20px;
  border: 1px solid rgba(124, 222, 255, 0.24);
}

.hero-visual::after {
  top: 0;
  left: 8%;
  width: 32%;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 24px var(--red);
  animation: scan 3.8s ease-in-out infinite;
}

.hero-visual picture,
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020812;
  border-radius: 6px;
  filter: contrast(1.06) saturate(1.08);
}

.scan-label {
  position: absolute;
  z-index: 2;
  width: min(260px, 46%);
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(3, 10, 18, 0.86);
  box-shadow: 0 0 28px rgba(124, 222, 255, 0.16);
}

.scan-label strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.top-left {
  top: 28px;
  left: 28px;
}

.bottom-right {
  right: 28px;
  bottom: 28px;
}

.blueprint-zoom-trigger {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 28px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(3, 10, 18, 0.88);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(124, 222, 255, 0.18);
}

.blueprint-zoom-trigger:hover {
  background: rgba(124, 222, 255, 0.16);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.signal-strip div {
  min-height: 112px;
  padding: 22px;
  background: rgba(9, 16, 25, 0.9);
}

.signal-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-strip strong {
  font-size: clamp(22px, 3vw, 34px);
}

.feature-story,
.visual-file-section,
.archive-section,
.timeline-section,
.submit-section {
  padding: clamp(64px, 9vw, 110px) clamp(18px, 4vw, 54px) 0;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.comparison-panel,
.visual-file-section,
.story-card,
.timeline-item,
.idea-form,
.story-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 222, 255, 0.08), transparent 50%),
    var(--panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.comparison-panel {
  min-height: 265px;
  padding: 24px;
}

.comparison-panel h3 {
  margin-bottom: 14px;
  font-size: 25px;
}

.comparison-panel p,
.story-card p,
.timeline-item p,
.reality-check p,
.dialog-grid p {
  color: #c7d5dd;
  line-height: 1.58;
}

.score-panel {
  display: grid;
  justify-items: start;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  margin-bottom: 18px;
  border: 10px solid rgba(124, 222, 255, 0.18);
  border-top-color: var(--cyan);
  border-right-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(124, 222, 255, 0.18);
}

.score-ring span {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.score-ring small {
  margin-top: -18px;
  color: var(--muted);
  font-weight: 900;
}

.filter-bar {
  margin-bottom: 22px;
}

.visual-file-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  margin: clamp(64px, 9vw, 110px) clamp(18px, 4vw, 54px) 0;
  padding: 18px;
}

.visual-file-image {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124, 222, 255, 0.28);
  border-radius: 8px;
  background: #020812;
}

.visual-file-image::after,
.story-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(124, 222, 255, 0.12), transparent 16%, transparent 84%, rgba(124, 222, 255, 0.12)),
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.08));
}

.visual-file-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.visual-file-copy {
  padding: clamp(8px, 2vw, 18px);
}

.visual-file-section-alt .visual-file-image {
  order: 2;
}

.visual-file-section-alt .visual-file-copy {
  order: 1;
}

.visual-file-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.02;
}

.visual-file-copy p {
  color: #c7d5dd;
  font-size: 17px;
  line-height: 1.65;
}

.visual-stats {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.visual-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(124, 222, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 10, 18, 0.56);
}

.visual-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-stats strong {
  color: var(--text);
  text-align: right;
}

.filter-button {
  background: rgba(124, 222, 255, 0.04);
  cursor: pointer;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.story-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  min-height: 382px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(124, 222, 255, 0.14), rgba(255, 202, 88, 0.04)),
    var(--panel-strong);
}

.story-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(124, 222, 255, 0.2);
  background: rgba(3, 10, 18, 0.72);
}

.story-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.story-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.story-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.story-score {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 900;
}

.story-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.12;
}

.story-card p {
  margin-bottom: 18px;
}

.story-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(124, 222, 255, 0.18);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.story-status {
  color: var(--green);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-item {
  position: relative;
  min-height: 230px;
  padding: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 32px;
  right: -17px;
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.timeline-item:last-child::before {
  content: none;
}

.timeline-item strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.25;
}

.timeline-item.future {
  border-color: rgba(255, 202, 88, 0.6);
}

.submit-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 34px;
  align-items: start;
  padding-bottom: 90px;
}

.submit-section h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.04;
}

.idea-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.idea-form label {
  display: grid;
  gap: 8px;
}

.idea-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 10, 18, 0.76);
  color: var(--text);
}

.idea-form input:focus,
.filter-button:focus-visible,
.button:focus-visible,
.story-card:focus-visible,
.close-dialog:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.story-dialog,
.blueprint-dialog {
  width: min(820px, calc(100% - 30px));
  padding: 28px;
  color: var(--text);
}

.story-dialog::backdrop,
.blueprint-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.story-dialog h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
}

.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(124, 222, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.dialog-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(124, 222, 255, 0.22);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dialog-grid div,
.reality-check {
  padding: 18px;
  border: 1px solid rgba(124, 222, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 10, 18, 0.52);
}

.dialog-grid p,
.reality-check p {
  margin-bottom: 0;
}

.blueprint-dialog {
  width: min(1600px, calc(100% - 24px));
  height: min(92vh, 980px);
  padding: 0;
  overflow: hidden;
}

.blueprint-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 10, 18, 0.95);
}

.blueprint-dialog-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
}

.blueprint-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.zoom-control,
.close-blueprint-dialog {
  min-width: 44px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(124, 222, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.zoom-control.active,
.zoom-control:hover,
.close-blueprint-dialog:hover {
  border-color: var(--line-strong);
  background: rgba(124, 222, 255, 0.18);
}

.close-blueprint-dialog {
  color: var(--amber);
}

.blueprint-stage {
  height: calc(100% - 82px);
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(rgba(124, 222, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 222, 255, 0.06) 1px, transparent 1px),
    #020812;
  background-size: 20px 20px;
}

.blueprint-stage img {
  display: block;
  width: min(100%, 2560px);
  max-width: none;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(124, 222, 255, 0.28);
  border-radius: 8px;
  transform-origin: top center;
}

.blueprint-stage img[data-zoom="1.5"] {
  width: min(150%, 3840px);
}

.blueprint-stage img[data-zoom="2"] {
  width: min(200%, 5120px);
}

@keyframes scan {
  50% {
    transform: translateX(170%);
  }
}

@media (max-width: 1180px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

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

  .story-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-file-section {
    grid-template-columns: 1fr;
  }

  .visual-file-section-alt .visual-file-image,
  .visual-file-section-alt .visual-file-copy {
    order: initial;
  }

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

  .score-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero-section {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-visual {
    aspect-ratio: 1280 / 853;
  }

  .scan-label {
    position: static;
    width: auto;
    margin-bottom: 10px;
  }

  .bottom-right {
    margin: 10px 0 0;
  }

  .blueprint-zoom-trigger {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .signal-strip,
  .comparison-grid,
  .story-grid,
  .timeline,
  .submit-section,
  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item::before {
    top: auto;
    right: auto;
    bottom: -17px;
    left: 24px;
    width: 1px;
    height: 18px;
  }
}

@media (max-width: 640px) {
  .blueprint-dialog-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .blueprint-stage {
    height: calc(100% - 150px);
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .main-nav a,
  .filter-button {
    flex: 0 0 auto;
  }
}
