:root {
  --bg: #08111f;
  --bg-gradient-top-left: rgba(32, 100, 255, 0.18);
  --bg-gradient-top-right: rgba(245, 158, 11, 0.12);
  --bg-gradient-start: #040a14;
  --bg-gradient-mid: #08111f;
  --bg-gradient-end: #060c18;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-alt: rgba(9, 16, 31, 0.82);
  --surface-strong: #0f172a;
  --surface-muted: #10192e;
  --text: #e5eefb;
  --text-soft: #aab8d0;
  --line: rgba(148, 163, 184, 0.18);
  --brand: #55c6ff;
  --brand-strong: #1aa3ff;
  --accent: #f59e0b;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
  --header-bg: rgba(4, 10, 20, 0.72);
  --switcher-bg: rgba(15, 23, 42, 0.6);
  --ghost-bg: rgba(15, 23, 42, 0.3);
  --highlight-bg: rgba(15, 23, 42, 0.4);
  --section-muted-bg: rgba(255, 255, 255, 0.02);
  --hero-glow-start: rgba(85, 198, 255, 0.35);
  --hero-glow-end: rgba(8, 17, 31, 0);
  --hero-image-border: rgba(255, 255, 255, 0.08);
  --pill-bg: rgba(255, 255, 255, 0.02);
  --active-chip-bg: var(--text);
  --active-chip-text: #07101f;
  --button-brand-text: #04111f;
}

:root[data-theme="light"] {
  --bg: #f3f7fc;
  --bg-gradient-top-left: rgba(32, 100, 255, 0.08);
  --bg-gradient-top-right: rgba(245, 158, 11, 0.08);
  --bg-gradient-start: #fafcff;
  --bg-gradient-mid: #eef4fb;
  --bg-gradient-end: #e9f0f8;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-alt: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-muted: #e9eef6;
  --text: #10213b;
  --text-soft: #5e6c84;
  --line: rgba(16, 33, 59, 0.12);
  --brand: #1789f2;
  --brand-strong: #0d72ce;
  --accent: #c57a00;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.09);
  --header-bg: rgba(250, 252, 255, 0.78);
  --switcher-bg: rgba(255, 255, 255, 0.78);
  --ghost-bg: rgba(255, 255, 255, 0.66);
  --highlight-bg: rgba(255, 255, 255, 0.7);
  --section-muted-bg: rgba(255, 255, 255, 0.26);
  --hero-glow-start: rgba(32, 100, 255, 0.12);
  --hero-glow-end: rgba(243, 247, 252, 0);
  --hero-image-border: rgba(16, 33, 59, 0.08);
  --pill-bg: rgba(255, 255, 255, 0.66);
  --active-chip-bg: #10213b;
  --active-chip-text: #f7fbff;
  --button-brand-text: #f7fbff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--bg-gradient-top-left), transparent 32%),
    radial-gradient(circle at top right, var(--bg-gradient-top-right), transparent 28%),
    linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 38%, var(--bg-gradient-end) 100%);
}

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

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.navbar {
  padding: 1rem 0;
}

.navbar-toggler {
  padding: 0;
}

.navbar-toggler-icon {
  width: 1.4rem;
  height: 1.4rem;
  background-image: none;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
  border-top: 2px solid var(--text);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}

.navbar-toggler-icon::before {
  top: 0.38rem;
}

.navbar-toggler-icon::after {
  top: 0.78rem;
}

.brand-mark {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--switcher-bg);
}

.lang-btn,
.theme-btn {
  border: 0;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.theme-btn {
  min-width: 2.25rem;
  padding-inline: 0.6rem;
}

.lang-btn.active,
.theme-btn.active {
  background: var(--active-chip-bg);
  color: var(--active-chip-text);
}

.hero-section,
.content-section {
  padding: 6rem 0;
}

.section-muted {
  background: var(--section-muted-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
}

.hero-title,
.section-intro h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-title {
  max-width: 11ch;
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 0.96;
}

.hero-copy,
.surface-card p,
.timeline-item p,
.channel-card p,
.community-card p,
.contact-banner p {
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.btn-brand,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.btn-brand {
  color: var(--button-brand-text);
  background: linear-gradient(135deg, var(--brand), #8de1ff);
  box-shadow: 0 14px 28px rgba(26, 163, 255, 0.22);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--ghost-bg);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--highlight-bg);
  color: var(--text-soft);
  font-weight: 600;
}

.hero-media {
  position: relative;
  min-height: 100%;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -1.5rem 2rem auto auto;
  width: 70%;
  aspect-ratio: 1 / 1.15;
  border-radius: 2rem;
  background: linear-gradient(180deg, var(--hero-glow-start), var(--hero-glow-end));
  filter: blur(14px);
}

.hero-profile {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  margin-left: auto;
  border: 1px solid var(--hero-image-border);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.hero-card,
.surface-card,
.feature-card,
.channel-card,
.contact-banner {
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  z-index: 2;
  max-width: 19rem;
  margin: -4rem 0 0;
  padding: 1.35rem;
}

.hero-card-label,
.stat-label,
.timeline-period,
.feature-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin: 0.65rem 0;
  font-size: 1.08rem;
}

.hero-card p {
  margin: 0;
  color: var(--text-soft);
}

.section-intro {
  margin-bottom: 2.5rem;
}

.section-link-btn {
  margin-top: 1.5rem;
}

.section-intro h2 {
  max-width: 16ch;
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.surface-card {
  height: 100%;
  padding: 1.8rem;
}

.surface-card p:last-child {
  margin-bottom: 0;
}

.stat-stack {
  display: grid;
  gap: 1.4rem;
}

.stat-value {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 1.2rem;
}

.timeline-item {
  position: relative;
  padding: 1.45rem 1.45rem 1.45rem 4.2rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface-alt);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  left: 1.55rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #9be7ff);
  box-shadow: 0 0 0 0.4rem rgba(85, 198, 255, 0.14);
}

.timeline-item.is-current::before {
  animation: timeline-pulse 1.9s ease-out infinite;
}

@keyframes timeline-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0.35rem rgba(85, 198, 255, 0.18);
  }

  60% {
    transform: scale(1.08);
    box-shadow: 0 0 0 0.85rem rgba(85, 198, 255, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(85, 198, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item.is-current::before {
    animation: none;
  }
}

.timeline-item h3,
.feature-card h3,
.channel-card h3,
.community-card h3 {
  margin: 0.55rem 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.timeline-role {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 700;
}

.feature-card,
.channel-card {
  height: 100%;
  overflow: hidden;
}

.projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.projects-filters,
.projects-arrows {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.project-filter-btn,
.projects-arrow {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.project-filter-btn {
  padding: 0.72rem 1rem;
}

.projects-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
}

.project-filter-btn.active {
  background: rgba(85, 198, 255, 0.14);
  border-color: rgba(85, 198, 255, 0.38);
  color: var(--text);
}

.projects-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 198, 255, 0.42) transparent;
}

.projects-rail::-webkit-scrollbar {
  height: 8px;
}

.projects-rail::-webkit-scrollbar-thumb {
  background: rgba(85, 198, 255, 0.42);
  border-radius: 999px;
}

.project-card {
  min-width: 0;
  scroll-snap-align: start;
}

.project-card[hidden] {
  display: none;
}

.feature-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.project-card[data-project-category="product"] img {
  object-position: top center;
}

.feature-card-body {
  padding: 1.35rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.55rem;
  color: var(--brand);
  font-weight: 800;
}

.feature-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.feature-link-chip {
  margin-top: 0;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill-bg);
  font-size: 0.9rem;
}

.channel-card {
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  transition: transform 160ms ease, border-color 160ms ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(85, 198, 255, 0.38);
}

.channel-card i {
  font-size: 1.4rem;
  color: var(--brand);
}

.community-card {
  min-height: 100%;
}

.credential-card {
  height: 100%;
}

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

.credential-list li {
  display: grid;
  gap: 0.2rem;
}

.credential-list strong {
  font-size: 1rem;
}

.credential-list span {
  color: var(--text-soft);
}

.article-hero .hero-title {
  max-width: 12ch;
}

.article-copy {
  max-width: 54rem;
}

.article-note-card h2,
.article-card h3 {
  margin: 0.85rem 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.article-card-compact h3 {
  font-size: 1.2rem;
}

.article-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.article-status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-status-live {
  color: var(--text);
  border-color: rgba(85, 198, 255, 0.35);
  background: rgba(85, 198, 255, 0.12);
}

.article-status-archive {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
}

.article-main,
.article-sidebar {
  display: grid;
  gap: 1.2rem;
}

.article-section-card,
.article-side-card {
  padding: 1.8rem;
}

.article-section-card h2,
.article-side-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.article-section-card p,
.article-side-card p {
  margin: 0;
}

.article-list-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.article-list-block h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 800;
}

.article-list-block ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.article-quote {
  margin: 1.25rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--brand);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
}

.article-original-note {
  margin-top: 1rem;
  color: var(--text-soft);
}

.newsletter-section {
  border-top: 1px solid var(--line);
}

.newsletter-banner {
  align-items: center;
}

.newsletter-form {
  display: grid;
  gap: 0.85rem;
}

.newsletter-options {
  display: grid;
  gap: 0.75rem;
}

.newsletter-option {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-alt);
  color: var(--text-soft);
  text-align: left;
}

.newsletter-option strong {
  color: var(--text);
  font-size: 1rem;
}

.newsletter-option span {
  font-size: 0.95rem;
  line-height: 1.5;
}

.newsletter-option.active {
  border-color: rgba(85, 198, 255, 0.38);
  background: rgba(85, 198, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(85, 198, 255, 0.12);
}

.newsletter-form input {
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-alt);
  color: var(--text);
}

.newsletter-form input::placeholder {
  color: var(--text-soft);
}

.newsletter-consent,
.newsletter-status {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.quote-strip {
  margin-top: 2rem;
  padding: 1.8rem 0 0;
}

.quote-strip blockquote {
  max-width: 48rem;
  margin: 0 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.3;
}

.quote-strip cite {
  color: var(--text-soft);
  font-style: normal;
}

.contact-banner {
  display: grid;
  gap: 2rem;
  padding: 2rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0 2.5rem;
}

.theme-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--switcher-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-soft);
}

.footer-social {
  display: inline-flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-soft);
  font-size: 1.1rem;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .language-switcher {
    margin: 1rem 0 0;
    width: fit-content;
  }

  .projects-toolbar {
    align-items: flex-start;
  }

  .projects-arrows {
    display: none;
  }

  .hero-section,
  .content-section {
    padding: 4.5rem 0;
  }

  .hero-title {
    max-width: none;
  }

  .hero-profile {
    margin: 0 auto;
  }

  .hero-card {
    margin-top: 1rem;
    max-width: none;
  }

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

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.85rem;
  }

  .section-intro h2 {
    font-size: 2rem;
  }

  .projects-rail {
    grid-auto-columns: 84%;
  }

  .timeline-item {
    padding-left: 1.35rem;
  }

  .timeline-item::before {
    display: none;
  }

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