:root {
  --bg: #020913;
  --surface: #071525;
  --surface-2: #0a1b2f;

  --border: rgba(78, 154, 232, 0.24);

  --blue: #49a0ff;
  --cyan: #4fd9df;
  --yellow: #f4c84a;

  --text: #f4f7fb;
  --soft: #b9c7d9;
  --muted: #8397ad;

  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at 55% 0,
      rgba(35, 125, 255, 0.09),
      transparent 27%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.65;
}

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

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

.shell {
  width: min(1440px, calc(100% - 56px));
  margin: auto;
}

/* Navigation */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  align-items: center;

  height: 82px;
  padding:
    0
    max(28px, calc((100vw - 1440px) / 2));

  border-bottom: 1px solid var(--border);
  background: rgba(2, 9, 19, 0.88);

  backdrop-filter: blur(18px);
}

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

.brand > span {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  border: 2px solid var(--blue);
  border-radius: 50%;

  color: var(--blue);
  font-weight: 800;
}

.brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
}

nav {
  display: flex;
  gap: 34px;
  margin: auto;
}

nav a {
  color: var(--soft);
  font-size: 0.9rem;
}

nav .active {
  padding-bottom: 27px;

  border-bottom: 2px solid var(--blue);
  color: var(--text);
}

.github {
  padding: 10px 18px;

  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 58px;

  padding: 78px 0 44px;
}

.back {
  color: var(--blue);
  font-size: 0.85rem;
}

.kicker {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0;

  font-size: clamp(3.3rem, 6vw, 6rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--blue);
}

.lead {
  max-width: 710px;

  color: var(--soft);
  font-size: 1.05rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin: 24px 0;
}

.chips span {
  padding: 7px 12px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--muted);
  font-size: 0.72rem;
}

.actions {
  display: flex;
  gap: 14px;

  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;

  border: 1px solid var(--border);
  border-radius: 9px;
}

.primary {
  border: 0;

  background:
    linear-gradient(
      135deg,
      #1776ec,
      #38a1ff
    );
}

/* Hero visual */

.hero-visual {
  position: relative;

  min-height: 520px;
  padding-right: 220px;
}

.application-preview {
  display: flex;
  align-items: center;
  height: 100%;
}

.preview-window {
  overflow: hidden;

  width: 100%;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--surface);

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.35),
    0 0 45px rgba(73, 160, 255, 0.1);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;

  min-height: 42px;
  padding: 0 15px;

  border-bottom: 1px solid var(--border);
  background: #09121e;
}

.window-bar span {
  width: 9px;
  height: 9px;

  border-radius: 50%;
  background: var(--muted);
  opacity: 0.55;
}

.window-bar p {
  margin: 0 auto;

  color: var(--muted);
  font-size: 0.72rem;
}

.preview-content {
  padding: 12px;
}

.preview-content img {
  width: 100%;
  min-height: 390px;

  border-radius: 10px;

  object-fit: cover;
  object-position: center;
}

.metric-panel {
  position: absolute;
  top: 50%;
  right: 0;

  width: 220px;
  padding: 20px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: rgba(7, 21, 37, 0.94);

  transform: translateY(-50%);
}

.metric-panel h3 {
  margin-top: 0;
}

.metric-panel p {
  display: flex;
  justify-content: space-between;

  color: var(--muted);
}

.metric-panel strong {
  color: var(--blue);
}

/* Overview */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      rgba(9, 27, 47, 0.9),
      rgba(4, 14, 25, 0.95)
    );
}

.overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;

  padding: 28px;
}

.overview p {
  color: var(--soft);
}

dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  margin: 0;
}

dl div {
  padding: 10px;

  border-left: 1px solid var(--border);
  text-align: center;
}

dt {
  color: var(--blue);
  font-size: 0.75rem;
}

dd {
  margin: 6px 0 0;
}

/* General sections */

.section {
  padding: 62px 0;
}

.heading h2 {
  margin: 0 0 28px;

  font-size: clamp(2rem, 4vw, 3rem);
}

/* Workflow */

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

.workflow article {
  position: relative;

  min-height: 255px;
  padding: 22px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background:
    linear-gradient(
      155deg,
      var(--surface-2),
      var(--surface)
    );
}

.workflow b {
  color: var(--blue);
}

.workflow h3 {
  font-size: 1rem;
}

.workflow p {
  color: var(--soft);
  font-size: 0.84rem;
}

.workflow span {
  position: absolute;
  bottom: 18px;

  color: var(--blue);
  font-size: 0.75rem;
}

/* Species */

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

.species-grid article {
  padding: 24px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      var(--surface-2),
      var(--surface)
    );
}

.species-icon {
  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;

  border: 1px solid rgba(244, 200, 74, 0.35);
  border-radius: 12px;

  background: rgba(244, 200, 74, 0.06);

  color: var(--yellow);
  font-weight: 800;
}

.species-grid h3 {
  margin-bottom: 3px;
}

.species-grid em {
  color: var(--blue);
}

.species-grid p {
  color: var(--muted);
}

/* Media */

.media-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.95fr;
  gap: 16px;
}

.media-card {
  padding: 16px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface);
}

.media-card img {
  width: 100%;
  height: 300px;

  border-radius: 10px;
  background: #ffffff;

  object-fit: contain;
}

.media-card > p:last-child {
  color: var(--soft);
  font-size: 0.84rem;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  height: 300px;

  border-radius: 10px;

  background:
    radial-gradient(
      circle,
      rgba(55, 154, 255, 0.18),
      transparent 36%
    ),
    #030b15;

  text-align: center;
}

.project-video {
  display: block;

  width: 100%;
  height: 300px;

  border-radius: 10px;
  background: #000000;

  object-fit: cover;
}

.play {
  display: grid;
  place-items: center;

  width: 72px;
  height: 72px;
  margin-bottom: 14px;

  border: 2px solid var(--blue);
  border-radius: 50%;

  font-size: 1.5rem;
}

.video-placeholder span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Decision diagram */

.decision-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  min-height: 300px;

  border-radius: 10px;

  background:
    radial-gradient(
      circle,
      rgba(73, 160, 255, 0.1),
      transparent 55%
    ),
    #030b15;
}

.decision-diagram div {
  min-width: 160px;
  padding: 9px 15px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--soft);
  text-align: center;
}

.decision-diagram span {
  margin: 4px 0;

  color: var(--blue);
}

/* Architecture */

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

.architecture-grid article {
  min-height: 235px;
  padding: 24px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      var(--surface-2),
      var(--surface)
    );
}

.architecture-grid article > span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
}

.architecture-grid p {
  color: var(--soft);
  font-size: 0.84rem;
}

.architecture-grid strong {
  color: var(--blue);
  font-size: 0.76rem;
}

/* Code */

.code-layout {
  display: grid;
  grid-template-columns: 220px 1fr 300px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface);
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;

  padding: 14px;

  background: #07111f;
}

.tab {
  padding: 11px;

  border: 0;
  border-radius: 8px;

  background: transparent;

  color: var(--soft);
  text-align: left;

  cursor: pointer;
}

.tab.active,
.tab:hover {
  background: #10243c;
  color: var(--blue);
}

.editor {
  min-height: 490px;

  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);

  background: #030a13;
}

pre {
  margin: 0;
  padding: 28px;
  overflow: auto;

  color: #dce8f6;

  font-family:
    "Cascadia Code",
    Consolas,
    monospace;

  font-size: 0.82rem;
  line-height: 1.8;
}

.snippet {
  display: none;
}

.snippet.active {
  display: block;
}

.snippet span {
  color: #cb7cff;
}

.snippet em {
  color: #7ce4bc;
  font-style: normal;
}

.code-layout aside {
  padding: 24px;
}

.code-layout aside p {
  color: var(--soft);
}

/* Insights */

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

.insights article {
  padding: 22px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background:
    linear-gradient(
      155deg,
      var(--surface-2),
      var(--surface)
    );
}

.insights p {
  color: var(--soft);
  font-size: 0.84rem;
}

/* Limitations */

.limitations {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;

  padding: 30px;

  border: 1px solid rgba(244, 200, 74, 0.3);
  border-radius: var(--radius);

  background: rgba(244, 200, 74, 0.035);
}

.limitations-icon {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(244, 200, 74, 0.45);
  border-radius: 50%;

  color: var(--yellow);
  font-weight: 800;
}

.limitations h2 {
  margin-top: 0;
}

.limitations p {
  color: var(--soft);
}

/* Footer */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 120px;
  padding:
    26px
    max(28px, calc((100vw - 1440px) / 2));

  border-top: 1px solid var(--border);

  color: var(--muted);
}

/* Responsive */

@media (max-width: 1050px) {
  nav {
    display: none;
  }

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

  .hero-visual {
    padding-right: 0;
  }

  .metric-panel {
    position: static;

    width: 100%;
    margin-top: 18px;

    transform: none;
  }

  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }

  .species-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .architecture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .code-layout {
    grid-template-columns: 1fr;
  }

  .editor {
    border: 0;
  }

  .insights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .shell {
    width: min(100% - 28px, 1440px);
  }

  .hero h1 {
    font-size: 3.2rem;
  }

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

  dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow,
  .species-grid,
  .architecture-grid,
  .insights {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
    gap: 20px;
  }
}
.project-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #020b16;
}

.project-video {
  display: block;

  width: 100%;
  aspect-ratio: 16 / 9;

  border: 0;
  border-radius: 10px;

  background: #000;
  object-fit: cover;
}
