:root {
  --bg: #050505;
  --surface: #0b0b0b;
  --surface-2: #101010;
  --surface-3: #151515;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --text: #ededed;
  --muted: #a4a4a4;
  --soft: #626262;
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 0, 0, 0.18);
  --accent: #ff1f1f;
  --accent-dim: rgba(255, 31, 31, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 40, 40, 0.18), transparent 34%),
    radial-gradient(circle at 20% 40%, rgba(255, 30, 30, 0.12), transparent 38%),
    radial-gradient(circle at 80% 42%, rgba(255, 30, 30, 0.1), transparent 36%),
    linear-gradient(180deg, #120606 0%, #080808 34%, #060606 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 70, 70, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.46), rgba(8, 8, 8, 0.3));
  backdrop-filter: blur(28px) saturate(110%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(90, 10, 10, 0.1), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, rgba(90, 10, 10, 0.08)),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

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

#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.42;
  z-index: 0;
}

.site-header,
.section,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand img {
  width: 44px;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  color: #ffffff;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-text span {
  margin-top: 5px;
  color: var(--soft);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #ff3434 0%, #b10000 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(255, 31, 31, 0.24);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
}

.button-ghost {
  background: transparent;
  border-color: var(--stroke);
  box-shadow: none;
  color: var(--text);
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 118px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 40px;
  align-items: start;
}

.eyebrow,
.signal-label,
.panel-kicker {
  margin: 0 0 18px;
  color: #ff6666;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-symbol {
  width: 108px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 22px rgba(255, 31, 31, 0.2));
}

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

.hero h1,
.section h2,
.highlight-panel h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.3rem, 3.85vw, 3.75rem);
  max-width: 11ch;
}

.hero-text,
.section-intro p,
.section-copy,
.info-card p,
.timeline-item p,
.highlight-panel p,
.cta-box p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 56ch;
  margin-top: 24px;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.hero-tags span,
.card-index {
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 0, 0, 0.04);
  color: #ff6b6b;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  display: grid;
  padding-top: 20px;
}

.hero-institutional-card {
  max-width: 100%;
  margin-top: 22px;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.core-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  width: clamp(460px, 56vw, 900px);
  height: clamp(460px, 56vw, 900px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.82;
  filter: blur(2px);
  transform: translate(-50%, -50%);
}

#core-canvas {
  width: 100%;
  height: 100%;
  background: transparent;
}

.signal-card {
  position: absolute;
  max-width: 220px;
  padding: 18px 20px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
}

.signal-card strong {
  line-height: 1.45;
}

.signal-card-top {
  top: 390px;
  left: -34px;
  }

.signal-card-bottom {
  right: -18px;
  bottom: 24px;
}

.ticker-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: rgba(9, 9, 9, 0.9);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 14px 0;
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: ticker-move 30s linear infinite;
}

.ticker-track span::before {
  content: "◆";
  color: var(--accent);
  margin-right: 14px;
  font-size: 0.68rem;
}

@keyframes ticker-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 88px 0;
}

.section-intro,
.institutional-grid,
.structure-grid,
.process-layout,
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.section-intro-block {
  padding-top: 56px;
}

.institutional-grid {
  align-items: center;
}

.institutional-card {
  padding: 28px;
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: rgba(12, 12, 12, 0.88);
}

.institutional-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.institutional-card p + p {
  margin-top: 12px;
}

.section h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.3rem);
}

.cards-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--stroke);
}

.info-card,
.highlight-panel,
.timeline-item,
.diagram-panel,
.cta-box {
  border: 1px solid var(--stroke);
  background: rgba(12, 12, 12, 0.88);
}

.info-card {
  padding: 28px;
  min-height: 230px;
}

.card-index {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 5px 8px;
}

.info-card h3,
.timeline-item h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-contrast {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

.highlight-panel {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.process-layout {
  align-items: stretch;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.diagram-panel {
  min-height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 0, 0, 0.03), transparent),
    var(--surface-2);
}

#arch-canvas {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.cta-box {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}

.contact-link {
  color: #ff6b6b;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-email {
  margin-top: 18px;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 0 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-brand img {
  width: 26px;
}

@media (max-width: 1080px) {
  .site-header,
  .hero,
  .section-intro,
  .institutional-grid,
  .structure-grid,
  .process-layout,
  .cta-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    justify-items: start;
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .cards-grid {
    gap: 18px;
    background: none;
  }

  .signal-card-top {
    top: 250px;
    left: 4px;
  }

  .signal-card-bottom {
    right: 12px;
    bottom: 16px;
  }

  .core-panel {
    width: clamp(360px, 64vw, 620px);
    height: clamp(360px, 64vw, 620px);
  }

  .hero-institutional-card {
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .container,
  .site-footer {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    gap: 14px;
    padding: 14px;
  }

  .brand img {
    width: 38px;
  }

  .hero {
    padding-top: 76px;
    gap: 28px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .signal-card {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

  .core-panel {
    width: 320px;
    height: 320px;
  }

  .hero-panel {
    margin-left: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
