:root {
  --bg: #071019;
  --panel: #ecf8ff;
  --paper: #f6fbff;
  --ink: #08131d;
  --muted: #5c7183;
  --line: rgba(236, 248, 255, 0.2);
  --blue: #00c8ff;
  --blue-deep: #1268ff;
  --red: #ff3454;
  --red-deep: #b8122b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--paper);
  background: rgba(7, 16, 25, 0.9);
  border-bottom: 1px solid rgba(236, 248, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.32));
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.site-nav a,
.nav-toggle {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(251, 248, 239, 0.82);
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--paper);
  border-color: rgba(0, 200, 255, 0.42);
  background: rgba(0, 200, 255, 0.12);
}

.nav-toggle {
  display: none;
  background: transparent;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background: var(--bg);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 18, 15, 0.86), rgba(16, 18, 15, 0.48) 48%, rgba(16, 18, 15, 0.12)),
    linear-gradient(0deg, rgba(16, 18, 15, 0.8), rgba(16, 18, 15, 0) 34%);
}

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

.hero::before {
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(236, 248, 255, 0.05) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: 0.18;
}

.hero::after {
  width: 34vw;
  height: 34vw;
  right: 4vw;
  top: 18vh;
  border: 1px solid rgba(0, 200, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(255, 52, 84, 0.28), inset 0 0 60px rgba(0, 200, 255, 0.18);
  animation: signalSpin 18s linear infinite;
}

.hero-content {
  position: relative;
  width: min(780px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 80px 0 120px;
}

.eyebrow,
.card-kicker,
.article-card span,
.signal-card span {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: rgba(251, 248, 239, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 800;
}

.button.primary {
  color: #061018;
  background: var(--blue);
  box-shadow: 0 0 32px rgba(0, 200, 255, 0.28);
}

.button.ghost {
  border: 1px solid rgba(255, 52, 84, 0.45);
  color: #fff3f6;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.intro-grid,
.signal-layout,
.urumi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.intro-grid p,
.signal-layout p,
.urumi-panel p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.feature-card,
.article-card,
.signal-card,
.timeline div,
.speech,
.urumi-panel {
  border-radius: var(--radius);
  border: 1px solid rgba(23, 26, 22, 0.12);
  background: #ffffff;
  box-shadow: 0 12px 44px rgba(8, 19, 29, 0.08);
}

.feature-card,
.article-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card::before,
.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(0, 200, 255, 0.18) 45%, rgba(255, 52, 84, 0.14) 55%, transparent 100%);
  opacity: 0;
  transform: translateX(-42%);
  transition: opacity 180ms ease, transform 420ms ease;
}

.feature-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 52, 84, 0.35);
  box-shadow: var(--shadow);
}

.feature-card:hover::before,
.article-card:hover::before {
  opacity: 1;
  transform: translateX(42%);
}

.feature-card > *,
.article-card > * {
  position: relative;
}

.feature-card p,
.article-card p {
  color: var(--muted);
  line-height: 1.6;
}

.lab-card {
  background: linear-gradient(145deg, #f7fcff, #dff6ff);
}

.ink-card {
  background: linear-gradient(145deg, #fff7fa, #ffe0e7);
}

.urumi-card {
  background: linear-gradient(145deg, #f8fcff, #dce7ff);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.post-preview {
  background:
    linear-gradient(135deg, rgba(0, 200, 255, 0.12), rgba(255, 52, 84, 0.1)),
    #071019;
  color: var(--paper);
}

.post-preview .article-card {
  color: var(--ink);
}

.article-card {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.article-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue-deep);
  font-weight: 800;
}

.page-hero {
  padding: clamp(78px, 12vw, 150px) clamp(18px, 7vw, 92px);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(16, 18, 15, 0.86), rgba(16, 18, 15, 0.76)),
    radial-gradient(circle at 74% 30%, rgba(0, 200, 255, 0.28), transparent 34%),
    radial-gradient(circle at 88% 72%, rgba(255, 52, 84, 0.2), transparent 28%),
    #071019;
}

.page-hero h1 {
  font-size: clamp(3.4rem, 10vw, 8rem);
}

.page-hero p:last-child {
  max-width: 760px;
  color: rgba(251, 248, 239, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.lab-hero {
  background:
    linear-gradient(135deg, rgba(7, 16, 25, 0.92), rgba(11, 37, 55, 0.84)),
    repeating-linear-gradient(90deg, rgba(0, 200, 255, 0.16) 0 1px, transparent 1px 44px),
    #071019;
}

.ink-hero {
  background:
    linear-gradient(135deg, rgba(22, 8, 15, 0.92), rgba(74, 14, 31, 0.8)),
    repeating-linear-gradient(0deg, rgba(236, 248, 255, 0.08) 0 1px, transparent 1px 28px),
    #120914;
}

.urumi-hero {
  background:
    linear-gradient(135deg, rgba(7, 16, 25, 0.92), rgba(19, 38, 72, 0.8)),
    conic-gradient(from 140deg at 80% 40%, rgba(255, 52, 84, 0.38), transparent, rgba(0, 200, 255, 0.25), transparent),
    #071019;
}

.signal-hero {
  background:
    linear-gradient(135deg, rgba(7, 16, 25, 0.92), rgba(26, 20, 50, 0.78)),
    linear-gradient(90deg, rgba(0, 200, 255, 0.18) 0 2px, transparent 2px 100%),
    #071019;
}

.lab-strip {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  background: #eaf8ff;
}

.lab-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 150px;
  align-items: end;
}

.lab-meter span {
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(var(--red), var(--blue));
  animation: meterPulse 2.8s ease-in-out infinite alternate;
}

.lab-meter span:nth-child(1) { height: 45%; }
.lab-meter span:nth-child(2) { height: 72%; }
.lab-meter span:nth-child(3) { height: 56%; }
.lab-meter span:nth-child(4) { height: 92%; }
.lab-meter span:nth-child(2) { animation-delay: 0.18s; }
.lab-meter span:nth-child(3) { animation-delay: 0.36s; }
.lab-meter span:nth-child(4) { animation-delay: 0.54s; }

.story-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #fff1f5;
}

.speech {
  padding: 28px;
}

.speech span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-weight: 900;
}

.speech p {
  margin-bottom: 0;
  font-size: 1.3rem;
  line-height: 1.55;
}

.speech.ai {
  background: #eaf8ff;
}

.urumi-grid {
  background: #edf7ff;
}

.urumi-panel {
  padding: 30px;
}

.urumi-lines {
  display: grid;
  gap: 14px;
}

.urumi-lines span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--blue-deep), var(--blue));
  background-size: 200% 100%;
  animation: lineFlow 4.2s ease-in-out infinite alternate;
}

.urumi-lines span:nth-child(2) {
  width: 78%;
  margin-left: auto;
}

.urumi-lines span:nth-child(3) {
  width: 58%;
}

.signal-card {
  padding: 28px;
  background: #071019;
  color: var(--paper);
}

.signal-card p {
  margin-bottom: 0;
  color: rgba(251, 248, 239, 0.76);
}

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

.timeline div {
  padding: 22px;
}

.timeline span {
  color: var(--red);
  font-weight: 900;
}

.timeline p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 16, 25, 0.76);
}

.article-modal[hidden] {
  display: none;
}

.modal-panel {
  width: min(720px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  padding: clamp(24px, 5vw, 46px);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-close {
  float: right;
  padding: 9px 12px;
  border: 1px solid rgba(8, 19, 29, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

.modal-meta {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.modal-body {
  color: #273a4a;
  font-size: 1.08rem;
  line-height: 1.85;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(251, 248, 239, 0.7);
  background: #071019;
}

.site-footer span:first-child {
  color: var(--paper);
  font-weight: 900;
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045) translate3d(-12px, -8px, 0);
  }
}

@keyframes signalSpin {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1.04);
  }
}

@keyframes meterPulse {
  from {
    filter: brightness(0.82);
  }

  to {
    filter: brightness(1.22);
  }
}

@keyframes lineFlow {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(244, 240, 229, 0.14);
    border-radius: var(--radius);
    background: #071019;
  }

  .site-nav.open {
    display: flex;
  }

  .intro-grid,
  .feature-cards,
  .article-grid,
  .signal-layout,
  .urumi-grid,
  .timeline,
  .story-stage,
  .lab-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(16, 18, 15, 0.9), rgba(16, 18, 15, 0.3));
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 260px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
  }

  .brand span:last-child {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

  h1 {
    font-size: 3.8rem;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
