@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --fc-bg: #0d0d1a;
  --fc-bg-secondary: #12122a;
  --fc-primary: #7c3aed;
  --fc-secondary: #06b6d4;
  --fc-text: #ffffff;
  --fc-muted: #a1a1aa;
  --fc-border: rgba(255, 255, 255, 0.08);
  --fc-border-strong: rgba(255, 255, 255, 0.15);
  --fc-panel: rgba(255, 255, 255, 0.035);
  --fc-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--fc-text);
  background: var(--fc-bg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.fc-version-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 7%, rgba(124, 58, 237, 0.28), transparent 31rem),
    radial-gradient(circle at 92% 24%, rgba(6, 182, 212, 0.17), transparent 28rem),
    linear-gradient(145deg, #0d0d1a 0%, #091522 52%, #082133 100%);
}

.fc-container {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
}

.fc-navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  min-height: 92px;
  border-bottom: 1px solid var(--fc-border);
  background: rgba(13, 13, 26, 0.74);
  backdrop-filter: blur(20px);
  transition: min-height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.fc-navbar.is-scrolled {
  min-height: 78px;
  background: rgba(13, 13, 26, 0.96);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.fc-nav-inner {
  min-height: inherit;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.fc-brand,
.fc-brand img {
  display: block;
}

.fc-brand img {
  width: 218px;
  height: auto;
}

.fc-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.98rem;
  font-weight: 800;
}

.fc-nav-links a {
  position: relative;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.fc-nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fc-primary), var(--fc-secondary));
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.fc-nav-links a:hover,
.fc-nav-links a:focus-visible {
  color: #fff;
  outline: none;
}

.fc-nav-links a:hover::after,
.fc-nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.fc-nav-actions {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-nav-actions > .dropdown {
  position: static;
}

.fc-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fc-btn:hover,
.fc-btn:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  outline: none;
}

.fc-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.28);
}

.fc-btn-primary:hover,
.fc-btn-primary:focus-visible {
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.4);
}

.fc-nav-user-button {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.2rem;
  cursor: pointer;
}

.fc-nav-user-button:hover,
.fc-nav-user-button:focus-visible,
.fc-nav-user-button[aria-expanded="true"] {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.64);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(6, 182, 212, 0.24));
  outline: none;
}

.fc-nav-user-button.dropdown-toggle::after {
  display: none;
}

.nav-user-menu {
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  width: min(240px, calc(100vw - 28px));
  padding: 0.45rem;
  color: var(--fc-text);
  border: 1px solid var(--fc-border-strong);
  border-radius: 12px;
  background: #171729;
  box-shadow: var(--fc-shadow);
  transform: none !important;
}

.nav-user-menu .dropdown-item,
.fc-user-menu-name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.7rem;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-user-menu .dropdown-item:hover,
.nav-user-menu .dropdown-item:focus {
  color: #fff;
  background: rgba(124, 58, 237, 0.2);
}

.nav-user-menu .dropdown-divider {
  border-color: var(--fc-border);
}

.fc-version-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 170px 0 90px;
  overflow: hidden;
}

.fc-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.8) 65%, transparent 100%);
  pointer-events: none;
}

.fc-version-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.fc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 38px;
  color: var(--fc-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.fc-back-link:hover,
.fc-back-link:focus-visible {
  color: #fff;
}

.fc-version-eyebrow {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 20px;
  padding: 9px 16px;
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fc-version-hero h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.fc-version-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
}

.fc-version-hero > .fc-container > p {
  max-width: 790px;
  margin: 30px auto 0;
  color: var(--fc-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.fc-version-summary {
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 54px auto 0;
  border: 1px solid var(--fc-border-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--fc-shadow);
  backdrop-filter: blur(16px);
}

.fc-version-summary div {
  padding: 24px 20px;
}

.fc-version-summary div + div {
  border-left: 1px solid var(--fc-border);
}

.fc-version-summary strong,
.fc-version-summary span {
  display: block;
}

.fc-version-summary strong {
  font-size: 1.35rem;
  font-weight: 900;
}

.fc-version-summary span {
  margin-top: 5px;
  color: var(--fc-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fc-history-section {
  padding: 115px 0 130px;
}

.fc-section-heading {
  max-width: 780px;
  margin: 0 auto 70px;
  text-align: center;
}

.fc-section-heading > span,
.fc-version-cta-panel > div > span {
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fc-section-heading h2 {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.fc-section-heading p {
  margin: 0;
  color: var(--fc-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.fc-release-timeline {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.fc-release-timeline::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 119px;
  width: 1px;
  background: linear-gradient(to bottom, #7c3aed, rgba(6, 182, 212, 0.5), rgba(255, 255, 255, 0.09));
  content: "";
}

.fc-release {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 45px;
}

.fc-release + .fc-release {
  margin-top: 34px;
}

.fc-release-rail {
  position: relative;
  padding-top: 30px;
  text-align: right;
}

.fc-release-dot {
  position: absolute;
  top: 29px;
  right: -8px;
  width: 17px;
  height: 17px;
  border: 4px solid #171729;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.fc-release.is-current .fc-release-dot {
  background: #22d3ee;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45), 0 0 24px rgba(34, 211, 238, 0.55);
}

.fc-release-number {
  display: inline-block;
  margin-right: 20px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.fc-release-card {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--fc-border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.fc-release-card::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.06);
  content: "";
  pointer-events: none;
}

.fc-release.is-current .fc-release-card {
  border-color: rgba(34, 211, 238, 0.32);
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.14), rgba(6, 182, 212, 0.055)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 26px 80px rgba(6, 182, 212, 0.1);
}

.fc-release-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.fc-release-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.fc-release-version,
.fc-release-status,
.fc-current-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.fc-release-version {
  color: #ddd6fe;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(124, 58, 237, 0.13);
}

.fc-release-status {
  color: var(--fc-muted);
  border: 1px solid var(--fc-border);
  background: rgba(255, 255, 255, 0.035);
}

.fc-current-pill {
  flex: 0 0 auto;
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.26);
  background: rgba(16, 185, 129, 0.1);
}

.fc-release-header h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.fc-release-description {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 22px 0 26px;
  color: var(--fc-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.fc-release-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fc-release-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.55;
}

.fc-release-highlights i {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: #67e8f9;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
  font-size: 0.72rem;
}

.fc-release-empty {
  padding: 50px;
  color: var(--fc-muted);
  border: 1px solid var(--fc-border);
  border-radius: 18px;
  background: var(--fc-panel);
  text-align: center;
}

.fc-version-cta {
  padding: 0 0 120px;
}

.fc-version-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid rgba(139, 92, 246, 0.26);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.17), rgba(255, 255, 255, 0.035));
  box-shadow: var(--fc-shadow);
}

.fc-version-cta-panel h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.fc-version-cta-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--fc-muted);
  line-height: 1.7;
}

.fc-version-cta-panel .fc-btn {
  flex: 0 0 auto;
}

.fc-footer {
  padding: 66px 0 30px;
  border-top: 1px solid var(--fc-border);
  background: rgba(3, 7, 18, 0.64);
}

.fc-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
}

.fc-footer-logo {
  width: 210px;
  margin-bottom: 18px;
}

.fc-footer p,
.fc-footer a {
  display: block;
  margin-bottom: 8px;
  color: var(--fc-muted);
  line-height: 1.7;
}

.fc-footer a:hover,
.fc-footer a:focus-visible {
  color: #fff;
}

.fc-footer-title {
  display: block;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 900;
}

.fc-copyright {
  margin-top: 48px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid var(--fc-border);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 1180px) {
  .fc-nav-inner {
    grid-template-columns: 220px 1fr;
    padding: 16px 0 0;
  }

  .fc-nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 14px;
    overflow-x: auto;
  }

  .fc-navbar,
  .fc-navbar.is-scrolled {
    min-height: auto;
  }

  .fc-version-hero {
    padding-top: 190px;
  }
}

@media (max-width: 820px) {
  .fc-version-summary,
  .fc-footer-grid {
    grid-template-columns: 1fr;
  }

  .fc-version-summary div + div {
    border-top: 1px solid var(--fc-border);
    border-left: 0;
  }

  .fc-release-timeline::before {
    left: 8px;
  }

  .fc-release {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 22px;
  }

  .fc-release-rail {
    padding: 0;
  }

  .fc-release-dot {
    top: 30px;
    right: 1px;
  }

  .fc-release-number {
    display: none;
  }

  .fc-release-highlights {
    grid-template-columns: 1fr;
  }

  .fc-version-cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .fc-footer-grid {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .fc-container {
    width: min(100% - 28px, 1320px);
  }

  .fc-nav-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
  }

  .fc-brand img {
    width: 176px;
  }

  .fc-nav-links,
  .fc-nav-action {
    display: none;
  }

  .fc-version-hero {
    min-height: 620px;
    padding: 130px 0 75px;
  }

  .fc-version-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.2rem);
  }

  .fc-version-hero > .fc-container > p {
    font-size: 1rem;
  }

  .fc-back-link {
    margin-bottom: 28px;
  }

  .fc-history-section {
    padding: 82px 0 90px;
  }

  .fc-section-heading {
    margin-bottom: 46px;
  }

  .fc-release-header {
    flex-direction: column;
    gap: 14px;
  }

  .fc-release-card {
    padding: 23px 20px;
    border-radius: 16px;
  }

  .fc-version-cta {
    padding-bottom: 82px;
  }

  .fc-version-cta-panel .fc-btn {
    width: 100%;
  }
}

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