:root {
  color-scheme: dark;
  --bg: #061110;
  --bg-soft: #0c1d1b;
  --panel: #122723;
  --panel-light: #19342f;
  --text: #f5fbf8;
  --muted: #a8bbb5;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #47f3a0;
  --accent-strong: #0fdc79;
  --gold: #ffd36a;
  --danger: #ff6d6d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(71, 243, 160, 0.12), transparent 24%),
    radial-gradient(circle at 82% 46%, rgba(255, 211, 106, 0.08), transparent 22%);
  opacity: 0.7;
  animation: ambient-shift 12s ease-in-out infinite alternate;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 16, 0.78);
  backdrop-filter: blur(18px);
  transition:
    background 220ms ease,
    border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(71, 243, 160, 0.2);
  background: rgba(6, 17, 16, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(71, 243, 160, 0.32);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow:
    0 0 24px rgba(71, 243, 160, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-weight: 800;
  white-space: nowrap;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a,
.language-switch,
.language-options button {
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.language-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(71, 243, 160, 0.54);
}

.header-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 12px;
}

.button,
.store-badge,
.carousel-control {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-menu {
  position: relative;
}

.language-switch {
  position: relative;
  min-width: 74px;
  height: 40px;
  padding: 0 30px 0 12px;
  border: 1px solid rgba(71, 243, 160, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(71, 243, 160, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(7, 20, 18, 0.86);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.language-switch::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
}

.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  display: grid;
  min-width: 128px;
  padding: 6px;
  border: 1px solid rgba(71, 243, 160, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 39, 35, 0.96), rgba(6, 17, 16, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.language-menu.is-open .language-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-options button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.language-options button:hover,
.language-options button[aria-selected="true"] {
  background: rgba(71, 243, 160, 0.12);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 900;
}

.button-primary {
  border-color: rgba(71, 243, 160, 0.68);
  background: var(--accent);
  color: #062017;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 11vh, 132px) clamp(20px, 6vw, 88px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(71, 243, 160, 0.08));
  transform: translateY(18%);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  overflow: hidden;
  transform: scale(1.04);
  will-change: transform;
  transition: transform 80ms linear;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 13, 12, 0.96) 0%, rgba(4, 13, 12, 0.78) 38%, rgba(4, 13, 12, 0.22) 72%),
    linear-gradient(0deg, rgba(6, 17, 16, 0.92) 0%, rgba(6, 17, 16, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  animation: hero-enter 820ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  text-wrap: balance;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: min(1180px, 100%);
  font-size: clamp(46px, 5vw, 64px);
  text-wrap: balance;
}

.no-wrap {
  white-space: nowrap;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: #d6e5df;
  font-size: clamp(17px, 2vw, 21px);
  text-wrap: pretty;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.store-badge {
  display: block;
  height: 56px;
  border: 0;
  background: transparent;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transition:
    filter 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.store-badge:hover {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.08);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
}

.store-badge img {
  display: block;
  width: auto;
  height: 100%;
}

.section {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 88px);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.section-heading h2 {
  max-width: 1180px;
  font-size: clamp(34px, 3.8vw, 48px);
  text-wrap: balance;
}

@media (min-width: 981px) {
  .hero .eyebrow {
    white-space: nowrap;
  }
}

.features-section {
  background: var(--bg-soft);
}

.feature-carousel {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.feature-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(300px, 320px));
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 18px;
}

.feature-track::-webkit-scrollbar {
  display: none;
}

.feature-card {
  min-height: 470px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.feature-card:hover,
.feature-card.is-active {
  border-color: rgba(71, 243, 160, 0.32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 18px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(71, 243, 160, 0.18), transparent 24%),
    linear-gradient(145deg, #173e35, #0f251f);
}

.feature-media::before {
  content: "";
  position: absolute;
  inset: 12px 50% 12px auto;
  width: 62%;
  border-radius: 999px;
  background: rgba(255, 211, 106, 0.12);
  filter: blur(26px);
  transform: translateX(50%);
}

.feature-media picture {
  position: relative;
  z-index: 1;
  display: block;
  width: min(76%, 176px);
  aspect-ratio: 9 / 16;
  transition:
    filter 220ms ease,
    transform 220ms ease;
}

.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
}

.feature-card:hover .feature-media picture,
.feature-card.is-active .feature-media picture {
  filter: brightness(1.06) saturate(1.05);
  transform: translateY(-3px) scale(1.025);
}

.feature-card h3,
.feature-card p {
  margin-left: 22px;
  margin-right: 22px;
}

.feature-card h3 {
  margin-top: 6px;
  font-size: 26px;
}

.feature-card p {
  color: var(--muted);
}

.feature-card .feature-kicker {
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.carousel-control {
  position: absolute;
  top: 164px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(6, 17, 16, 0.86);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-control::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.previous::before {
  transform: translateX(2px) rotate(-45deg);
}

.next::before {
  transform: translateX(-2px) rotate(135deg);
}

.carousel-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.carousel-control:disabled,
.carousel-control[aria-disabled="true"] {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.previous {
  left: -23px;
}

.next {
  right: -23px;
}

.carousel-dots {
  position: relative;
  width: min(280px, 72vw);
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

.carousel-dots span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left center;
  transition: transform 120ms ease;
}

.overview-section {
  background: #081614;
}

.overview-grid,
.community-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.overview-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.overview-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(71, 243, 160, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.overview-grid span {
  color: var(--accent);
  font-weight: 900;
}

.overview-grid h3 {
  margin-top: 38px;
  font-size: 25px;
}

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

.community-section {
  background: var(--bg-soft);
}

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

.community-grid a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel);
  color: var(--text);
  font-weight: 900;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.community-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(71, 243, 160, 0.58);
  background:
    linear-gradient(180deg, rgba(71, 243, 160, 0.14), rgba(255, 255, 255, 0.03)),
    var(--panel-light);
}

.community-grid svg {
  width: 32px;
  height: 32px;
  padding: 5px;
  border: 1px solid rgba(71, 243, 160, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  fill: var(--accent);
  filter: drop-shadow(0 0 14px rgba(71, 243, 160, 0.22));
}

.community-grid span {
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 26px;
  padding: 42px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: #030908;
}

.publisher-logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
}

.copyright {
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 16px;
  color: #dce7e2;
  font-size: 14px;
}

.contact-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.contact-card strong {
  color: var(--text);
  font-size: 14px;
}

.contact-card a {
  width: max-content;
  color: var(--accent);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-shift {
  from {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
}

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

  .nav-links {
    display: none;
  }

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

  .feature-track {
    grid-template-columns: repeat(5, minmax(280px, 78vw));
  }

  .feature-media picture {
    width: min(68%, 210px);
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 720px;
    padding: 82px 18px 56px;
    align-items: end;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(4, 13, 12, 0.24) 0%, rgba(4, 13, 12, 0.84) 48%, rgba(4, 13, 12, 0.98) 100%),
      linear-gradient(90deg, rgba(4, 13, 12, 0.7), rgba(4, 13, 12, 0.06));
  }

  h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .store-badge {
    height: 52px;
  }

  .carousel-control {
    display: none;
  }

  .feature-track {
    grid-template-columns: 1fr;
    overflow: visible;
    scroll-snap-type: none;
    padding-right: 0;
    padding-left: 0;
  }

  .feature-card {
    min-height: 0;
    scroll-snap-align: none;
  }

  .carousel-dots {
    display: none;
  }

  .overview-grid,
  .community-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: start;
  }
}

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

  .hero-media,
  .reveal {
    transform: none !important;
  }
}
