:root {
  color-scheme: dark;
  --primary: #5b5fef;
  --secondary: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --bg: #0b0c10;
  --bg-soft: #10131a;
  --surface: #15171e;
  --surface-2: #1b1f2a;
  --text: #edeef3;
  --muted: #9aa0ae;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --gradient: linear-gradient(135deg, #5b5fef 0%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(91, 95, 239, 0.18), rgba(34, 211, 238, 0.09));
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --glow: 0 24px 80px rgba(91, 95, 239, 0.24);
  --font-heading: "Clash Display", "General Sans", "Inter", sans-serif;
  --font-body: "Inter", "General Sans", sans-serif;
  --font-code: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --pill: 999px;
  --container: 1280px;
  --narrow: 860px;
  --ease: 220ms ease-out;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg-soft: #edf2f8;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --text: #101114;
  --muted: #5c6472;
  --border: rgba(16, 17, 20, 0.08);
  --border-strong: rgba(16, 17, 20, 0.16);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --glow: 0 24px 80px rgba(34, 211, 238, 0.18);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 7% -10%, rgba(91, 95, 239, 0.28), transparent 32rem),
    radial-gradient(circle at 94% 4%, rgba(34, 211, 238, 0.16), transparent 30rem),
    radial-gradient(circle at 60% 90%, rgba(52, 211, 153, 0.08), transparent 36rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: rgba(34, 211, 238, 0.46);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--secondary);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: #ffffff;
  background: rgba(91, 95, 239, 0.78);
}

:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.84);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  background: #101114;
  text-decoration: none;
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.container-narrow {
  width: min(100% - 32px, var(--narrow));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #ffffff;
  background: var(--gradient);
  box-shadow: var(--glow);
  font-family: var(--font-heading);
  font-weight: 900;
}

.brand-name {
  display: block;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
}

.brand-role {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.main-nav {
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.45rem 0.78rem;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

:root[data-theme="light"] .nav-list a:hover,
:root[data-theme="light"] .nav-list a[aria-current="page"] {
  background: rgba(16, 17, 20, 0.06);
}

.header-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle,
.theme-toggle {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: var(--pill);
  background: currentColor;
}

.theme-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius-md);
}

.theme-toggle::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -6px -4px 0 currentColor;
  content: "";
}

:root[data-theme="light"] .theme-toggle::before {
  box-shadow: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
}

.button-primary {
  color: #ffffff;
  background: var(--gradient);
  box-shadow: 0 14px 34px rgba(91, 95, 239, 0.28);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(91, 95, 239, 0.45);
  background: rgba(91, 95, 239, 0.08);
}

.button-ghost {
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.section {
  padding-block: 6rem;
}

.section-tight {
  padding-block: 4rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 7rem 6rem;
}

.hero::before {
  position: absolute;
  inset: 12% auto auto 54%;
  width: 420px;
  height: 420px;
  pointer-events: none;
  border-radius: 50%;
  background: var(--gradient);
  filter: blur(100px);
  opacity: 0.16;
  transform: translateX(-50%);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 4rem;
}

.hero-card {
  position: relative;
  min-height: 420px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent), rgba(21, 23, 30, 0.78);
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  inset: 52px;
  border: 1px dashed rgba(34, 211, 238, 0.24);
  border-radius: 50%;
}

.avatar-demo {
  position: absolute;
  inset: 50%;
  display: grid;
  width: 156px;
  height: 156px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 48px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 24%),
    var(--gradient);
  box-shadow: var(--glow);
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  transform: translate(-50%, -50%) rotate(-4deg);
}

.floating-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 800;
}

.floating-pill::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.pill-1 {
  top: 42px;
  left: 32px;
}

.pill-2 {
  right: 28px;
  bottom: 96px;
}

.pill-3 {
  bottom: 36px;
  left: 54px;
}

.eyebrow,
.card-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: var(--pill);
  color: var(--secondary);
  background: rgba(34, 211, 238, 0.08);
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.3rem, 7vw, 4.9rem);
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
}

h3 {
  font-size: clamp(1.32rem, 3vw, 1.75rem);
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow);
  transform: translateY(-4px);
}

.card-media {
  display: grid;
  min-height: 170px;
  margin: -0.35rem -0.35rem 1.1rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) - 4px);
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.2), transparent 24%),
    var(--gradient-soft),
    var(--surface-2);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
}

.card-title {
  margin-bottom: 0.55rem;
}

.meta,
.caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.chip-row,
.filter-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip,
.filter-button,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
}

.filter-button {
  color: var(--text);
}

.filter-button[aria-pressed="true"],
.chip.is-strong {
  color: #ffffff;
  border-color: transparent;
  background: var(--gradient);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: var(--border-strong);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding-left: 3rem;
}

.timeline-item::before {
  position: absolute;
  top: 0.45rem;
  left: 7px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 1px var(--border-strong);
  content: "";
}

.feature-band {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 0%, rgba(91, 95, 239, 0.22), transparent 22rem),
    radial-gradient(circle at 90% 100%, rgba(34, 211, 238, 0.13), transparent 22rem),
    color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  gap: 2rem;
  align-items: center;
}

.form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  outline: none;
}

.faq {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 0;
  color: var(--text);
  background: transparent;
  font-weight: 850;
  text-align: left;
}

.faq-question::after {
  content: "+";
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

.faq-answer.is-open {
  display: block;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: var(--pill);
  color: #ffffff;
  background: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
}

.status-success {
  background: var(--success);
}

.status-warning {
  color: #101114;
  background: var(--warning);
}

.post-content {
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
}

.post-content h2,
.post-content h3 {
  margin-top: 2rem;
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-lg);
  background: rgba(34, 211, 238, 0.08);
}

.post-content pre {
  overflow-x: auto;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.22);
}

.post-content code {
  font-family: var(--font-code);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  min-height: 170px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(91, 95, 239, 0.2), rgba(34, 211, 238, 0.1)),
    var(--surface);
}

.gallery-item:nth-child(2n) {
  grid-column: span 2;
}

.gallery-item:nth-child(3n) {
  grid-row: span 2;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.16);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding-block: 4rem;
}

.footer-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  color: var(--muted);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--secondary);
}

.footer-bottom {
  padding-block: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .header-cta {
    display: none;
  }

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

  .hero-grid,
  .split,
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    inset: 77px 16px auto;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--ease), transform var(--ease);
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    display: grid;
    justify-content: stretch;
  }

  .nav-list a {
    min-height: 48px;
    justify-content: space-between;
    padding-inline: 1rem;
  }

  .grid-2,
  .grid-3,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .container,
  .container-narrow {
    width: min(100% - 24px, var(--container));
  }

  .section,
  .hero {
    padding-block: 4rem;
  }

  .brand-role,
  .theme-toggle {
    display: none;
  }

  .hero-card {
    min-height: 340px;
  }

  .floating-pill {
    font-size: 0.72rem;
  }

  .stat-grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .button-group {
    display: grid;
  }

  .gallery-item,
  .gallery-item:nth-child(2n),
  .gallery-item:nth-child(3n) {
    grid-column: auto;
    grid-row: auto;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

