:root {
  --bg-0: #081425;
  --bg-1: #0f2140;
  --bg-2: #1a3562;
  --panel: rgba(13, 28, 53, 0.84);
  --panel-strong: rgba(16, 35, 66, 0.94);
  --text: #e8f4ff;
  --muted: #9db8d6;
  --line: rgba(119, 177, 231, 0.35);
  --brand: #56d5ff;
  --brand-soft: #35f2d0;
  --accent: #ffb869;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 16% -5%, rgba(86, 213, 255, 0.24), transparent 33%),
    radial-gradient(circle at 84% 10%, rgba(53, 242, 208, 0.16), transparent 31%),
    linear-gradient(162deg, var(--bg-0), var(--bg-1) 52%, var(--bg-2));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(123, 186, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 186, 241, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.5;
}

body::after {
  background:
    radial-gradient(circle at 74% 65%, rgba(255, 184, 105, 0.13), transparent 34%),
    radial-gradient(circle at 24% 88%, rgba(86, 213, 255, 0.08), transparent 38%);
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.site-shell {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 1rem 0 2.6rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: #102443;
  color: #d5ecff;
  text-decoration: none;
  padding: 0.52rem 0.72rem;
  font-size: 0.84rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(15, 33, 63, 0.92), rgba(13, 27, 50, 0.82));
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
  padding: 0.56rem 0.72rem 0.56rem 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  height: clamp(34px, 5.2vw, 46px);
  width: auto;
  filter: drop-shadow(0 0 10px rgba(86, 213, 255, 0.2));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: #c3ddf8;
  padding: 0.52rem 0.88rem;
  border-radius: 0.62rem;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: #ecfbff;
  border-color: rgba(86, 213, 255, 0.48);
  background: rgba(86, 213, 255, 0.12);
  transform: translateY(-1px);
}

.site-nav a.active {
  color: #f2feff;
  border-color: rgba(53, 242, 208, 0.58);
  background: linear-gradient(130deg, rgba(86, 213, 255, 0.17), rgba(53, 242, 208, 0.11));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 0.62rem;
  background: rgba(10, 24, 46, 0.9);
  color: #d9efff;
  padding: 0.42rem 0.76rem;
  font-size: 0.86rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

main {
  margin-top: 1.2rem;
  display: grid;
  gap: 1.25rem;
}

.hero,
.panel,
.page-hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  background: linear-gradient(155deg, var(--panel), var(--panel-strong));
  overflow: hidden;
}

.hero::before,
.panel::before,
.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(86, 213, 255, 0.66), transparent);
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1rem;
}

.hero-copy {
  padding: clamp(1.5rem, 3vw, 2.55rem);
}

.kicker {
  margin: 0 0 0.72rem;
  color: var(--brand);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.14;
  color: #f3fbff;
}

h1 {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  text-shadow: 0 0 22px rgba(86, 213, 255, 0.2);
}

h2 {
  font-size: clamp(1.34rem, 2.45vw, 2rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p {
  margin: 1rem 0 0;
  max-width: 56ch;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.64rem 1.02rem;
  border: 1px solid transparent;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-primary {
  color: #032033;
  background: linear-gradient(140deg, var(--brand), var(--brand-soft));
  box-shadow: 0 9px 24px rgba(53, 242, 208, 0.24);
}

.btn-secondary {
  color: #e7f6ff;
  border-color: rgba(86, 213, 255, 0.36);
  background: rgba(13, 31, 58, 0.72);
}

.hero-art {
  position: relative;
  min-height: clamp(280px, 45vh, 430px);
  overflow: hidden;
  background:
    conic-gradient(from 220deg at 66% 42%, rgba(53, 242, 208, 0.18), rgba(86, 213, 255, 0.2), transparent 62%),
    radial-gradient(circle at 22% 24%, rgba(255, 184, 105, 0.23), transparent 40%),
    linear-gradient(160deg, rgba(8, 25, 48, 0.6), rgba(9, 21, 39, 0.88));
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 191, 247, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 191, 247, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.52;
}

#studio-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.panel,
.page-hero {
  padding: clamp(1.25rem, 2.8vw, 2rem);
}

.page-hero .lead {
  max-width: 68ch;
  margin-top: 0.9rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.95rem;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(124, 185, 236, 0.34);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(154deg, rgba(17, 37, 68, 0.92), rgba(15, 30, 54, 0.82));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(86, 213, 255, 0.54);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.card p {
  margin: 0.58rem 0 0;
}

.card h3 {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.62rem;
  border: 1px solid rgba(53, 242, 208, 0.42);
  background: rgba(53, 242, 208, 0.12);
  color: #9df7ea;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.54rem;
  margin: 0 0 0.66rem;
  line-height: 1;
  align-self: flex-start;
  transform: translateY(-1px);
}

.text-link {
  text-decoration: none;
  color: var(--brand);
  font-weight: 800;
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.text-link::after {
  content: ">";
  transform: translateY(-1px);
  color: var(--accent);
}

.text-link:hover {
  color: #beecff;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.24rem;
}

.feature-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
}

.feature-list li {
  margin: 0.56rem 0;
  padding-left: 1rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 0.12rem;
  background: linear-gradient(140deg, var(--brand), var(--brand-soft));
  box-shadow: 0 0 10px rgba(86, 213, 255, 0.5);
}

.app-hero {
  display: grid;
  gap: 0.86rem;
}

.app-meta {
  margin: 0;
  color: #b8d4ef;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-status {
  display: inline-flex;
  align-items: center;
  border-radius: 0.62rem;
  border: 1px solid rgba(255, 184, 105, 0.48);
  background: rgba(255, 184, 105, 0.15);
  color: #ffd2a0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.56rem;
  text-transform: uppercase;
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.app-section h2 {
  font-size: clamp(1.2rem, 2.15vw, 1.54rem);
  margin-bottom: 0.45rem;
}

.app-section p {
  margin: 0.68rem 0 0;
}

.article-pager {
  margin-top: 0.95rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.pager-link,
.pager-spacer {
  flex: 1 1 240px;
}

.pager-link {
  border: 1px solid rgba(124, 185, 236, 0.34);
  border-radius: 0.9rem;
  text-decoration: none;
  background: rgba(12, 28, 52, 0.78);
  padding: 0.62rem 0.76rem;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.pager-link:hover {
  border-color: rgba(86, 213, 255, 0.54);
  background: rgba(15, 35, 66, 0.92);
  transform: translateY(-2px);
}

.pager-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9dc1e2;
}

.pager-title {
  display: block;
  margin-top: 0.16rem;
  color: #eaf7ff;
  font-weight: 700;
  line-height: 1.35;
}

.pager-link.next {
  text-align: right;
}

.footer {
  margin-top: 1.28rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #95b4d3;
  padding: 0.3rem 0.15rem;
}

.footer p {
  margin: 0;
}

.footer-meta {
  text-align: right;
  margin-left: auto;
}

main > * {
  opacity: 0;
  transform: translateY(15px) scale(0.992);
  animation: section-enter 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

main > *:nth-child(1) {
  animation-delay: 80ms;
}

main > *:nth-child(2) {
  animation-delay: 160ms;
}

main > *:nth-child(3) {
  animation-delay: 240ms;
}

main > *:nth-child(4) {
  animation-delay: 320ms;
}

main > *:nth-child(5) {
  animation-delay: 400ms;
}

@keyframes section-enter {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

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

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

  .site-nav {
    display: none;
    position: absolute;
    right: 0.74rem;
    top: calc(100% + 0.4rem);
    width: min(88vw, 330px);
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.32);
    background: linear-gradient(160deg, rgba(12, 29, 56, 0.96), rgba(10, 23, 45, 0.96));
    padding: 0.5rem;
    flex-direction: column;
    align-items: stretch;
  }

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

  .site-nav a {
    border-radius: 0.6rem;
    padding: 0.64rem 0.72rem;
  }

  .brand-logo {
    height: clamp(28px, 8vw, 36px);
    width: auto;
  }

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

  .footer {
    align-items: start;
  }

  .footer-meta {
    margin-left: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  main > * {
    opacity: 1;
    transform: none;
  }
}
