:root {
  color-scheme: dark;
  --bg: #070707;
  --surface: #0d0d0e;
  --surface-blue: #07111b;
  --text: #f4f5f7;
  --muted: #a7abb2;
  --subtle: #626871;
  --red: #d90000;
  --cyan: #00d8e2;
  --blue: #2f78ff;
  --violet: #796dff;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(217, 0, 0, 0.65);
  background: #080808;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.lang-switcher a {
  color: #85888e;
  text-decoration: none;
  padding: 0.75rem 0.1rem;
}

.lang-switcher a:hover,
.lang-switcher a:focus-visible,
.lang-switcher a.active { color: var(--red); }

.lang-switcher span { color: #34363a; }

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem 4.5rem;
  border-bottom: 1px solid rgba(217, 0, 0, 0.55);
  background: #090909;
}

.signal-canvas,
.neuro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  min-width: 0;
  text-align: center;
}

.logo-link {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.logo-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero-content p {
  margin: 0 0 0.6rem;
  color: #8a8c91;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #d8d9dc;
}

main { display: block; }

.section-inner {
  width: calc(100% - 2rem);
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
}

.how-section {
  padding: 5rem 0 6rem;
  background: #090909;
}

.section-title {
  margin: 0 0 2.5rem;
  text-align: center;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.red-title { color: var(--red); }

.video-frame,
.video-placeholder {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 1px solid #28282a;
  border-top: 3px solid var(--red);
  border-radius: 6px;
  overflow: hidden;
  background: #030303;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.video-placeholder p { margin: 0; }

.video-placeholder-mark {
  width: 54px;
  height: 54px;
  border: 2px solid #444;
  border-radius: 50%;
  position: relative;
}

.video-placeholder-mark::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #777;
}

.aineuro-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  border-top: 1px solid #112d3b;
  border-bottom: 1px solid #112d3b;
  background: var(--surface-blue);
}

.neuro-canvas { opacity: 0.36; }

.aineuro-content { position: relative; z-index: 1; }

.neuro-title { color: #f7f9fc; }

.aineuro-wordmark {
  margin: 0 auto;
  text-align: center;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.aineuro-wordmark span,
.brain-name span,
.powered-wordmark span { color: var(--cyan); }

.aineuro-kicker {
  margin: 1rem 0 0;
  text-align: center;
  color: #d5dce5;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aineuro-intro {
  max-width: 880px;
  margin: 2rem auto 0;
  color: #c5ccd5;
  font-size: 1.08rem;
  line-height: 1.85;
  text-align: center;
}

.brain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.brain-card {
  min-width: 0;
  padding: 2rem;
  border: 1px solid rgba(0, 216, 226, 0.42);
  border-radius: 6px;
  background: rgba(5, 15, 25, 0.9);
}

.brain-pattern { border-color: rgba(121, 109, 255, 0.48); }

.brain-name {
  margin: 0 0 0.45rem;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.brain-card h3 {
  margin: 0;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.brain-body {
  margin: 1.25rem 0 0;
  color: #c1c7d0;
  line-height: 1.75;
}

.brain-metrics {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 216, 226, 0.2);
  color: #ecf5f7;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
}

.brain-pattern .brain-metrics { border-top-color: rgba(121, 109, 255, 0.24); }

.applications {
  margin: 4rem auto 0;
  text-align: center;
}

.applications h3 {
  margin: 0;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.35rem;
}

.applications p {
  max-width: 760px;
  margin: 0.8rem auto 0;
  color: #c5ccd5;
  font-size: 1rem;
}

.aineuro-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 370px;
  min-height: 66px;
  margin: 3rem auto 0;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  background: #ffffff;
  color: #06101a;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.aineuro-button:hover,
.aineuro-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 14px 34px rgba(0, 216, 226, 0.22);
}

.powered-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.powered-wordmark {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
}

footer {
  padding: 3rem 1.5rem;
  text-align: center;
  background: #080808;
}

.footer-note {
  max-width: 760px;
  margin: 0 auto;
  color: #555a61;
  font-size: 0.82rem;
}

.footer-copy {
  margin: 0.85rem 0 0;
  color: #35383c;
  font-size: 0.8rem;
}

@media (min-width: 760px) {
  .topbar { padding-inline: 3rem; }
  .hero { min-height: 500px; padding-block: 4.5rem 5rem; }
  .hero-content h1 { font-size: 1.35rem; }
  .section-title { font-size: 1.75rem; }
  .brain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .hero { min-height: 370px; padding-block: 3rem 3.5rem; }
  .logo-link { margin-bottom: 1.5rem; }
  .hero-content p { font-size: 0.68rem; letter-spacing: 0.14em; }
  .hero-content h1 { font-size: 1rem; }
  .how-section, .aineuro-section { padding-block: 4rem; }
  .section-title { font-size: 1.25rem; margin-bottom: 2rem; }
  .aineuro-wordmark { font-size: 2.5rem; }
  .aineuro-kicker { font-size: 0.78rem; letter-spacing: 0.07em; }
  .aineuro-intro { font-size: 1rem; }
  .brain-card { padding: 1.5rem; }
  .brain-name { font-size: 1.65rem; }
  .aineuro-button { flex-direction: column; gap: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
