@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(15, 18, 22, 0.84);
  --panel-strong: #0f1216;
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #a7adb8;
  --brand: #c6e657;
  --brand-soft: rgba(198, 230, 87, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "IBM Plex Sans", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 540px at 100% -10%, rgba(198, 230, 87, 0.16), transparent 60%),
    radial-gradient(960px 560px at 0% 20%, rgba(17, 94, 89, 0.28), transparent 58%),
    linear-gradient(180deg, #040404 0%, #070b0e 45%, #040404 100%);
}

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

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

p,
h1,
h2,
h3,
ol,
ul {
  margin: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.6px;
}

.brand-tag,
.home-link,
.eyebrow,
.card-kicker,
.summary-label {
  color: var(--muted);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.home-link:hover,
.home-link:focus-visible,
.guide-card:hover,
.guide-card:focus-visible {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.lang-select {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0;
}

.lang-select .lang-trigger,
.lang-select .lang-menu {
  display: none;
}

.lang-select .lang-native {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 40px 10px 14px;
  font: inherit;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.6) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.6) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.js .lang-select .lang-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.js .lang-select .lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.js .lang-select .lang-icon {
  display: none;
}

.js .lang-select .lang-trigger:hover,
.js .lang-select .lang-trigger:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.js .lang-select .lang-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.js .lang-select.is-open .lang-trigger::after {
  transform: rotate(-135deg);
}

.js .lang-select .lang-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  max-width: min(100vw - 24px, 280px);
  padding: 8px;
  margin: 0;
  list-style: none;
  background: rgba(12, 14, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.js .lang-select.is-open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.js .lang-select .lang-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.js .lang-select .lang-option:hover,
.js .lang-select .lang-option:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.js .lang-select .lang-option.is-active {
  background: rgba(45, 178, 74, 0.18);
  color: #eaffef;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.layout {
  display: grid;
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 22, 28, 0.92), rgba(8, 10, 14, 0.92));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 34px;
}

.eyebrow,
.card-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin: 10px 0 14px;
}

.lead,
.card-copy,
.summary-list,
.card-points {
  color: var(--muted);
}

.lead {
  max-width: 60ch;
  font-size: 1.03rem;
  line-height: 1.6;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-side {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(198, 230, 87, 0.2);
  background: radial-gradient(circle at top, rgba(198, 230, 87, 0.12), transparent 55%), rgba(255, 255, 255, 0.03);
}

.summary-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.summary-list {
  padding-left: 20px;
  margin-top: 14px;
  display: grid;
  gap: 12px;
  line-height: 1.5;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app-download {
  display: grid;
  gap: 20px;
  padding: 28px;
  justify-items: center;
  text-align: center;
}

.app-download-copy {
  display: grid;
  gap: 10px;
  max-width: 680px;
}

.app-download-lead {
  max-width: 560px;
  margin: 0 auto;
}

.guide-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.guide-card h2 {
  font-size: 1.8rem;
  line-height: 1.1;
}

.card-points {
  padding-left: 20px;
  display: grid;
  gap: 10px;
  line-height: 1.5;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
}

.card-link::after {
  content: "→";
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(120deg, rgba(15, 17, 22, 0.95), rgba(10, 12, 16, 0.95));
  transition: all 0.25s ease;
  cursor: not-allowed;
  min-width: 210px;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
}

.download-button-link {
  cursor: pointer;
  text-decoration: none;
}

.download-button:hover,
.download-button:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(120deg, rgba(20, 22, 27, 0.95), rgba(15, 17, 21, 0.95));
  transform: translateY(-1px);
}

.download-button:disabled {
  opacity: 0.88;
}

.download-button svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.download-button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.download-button-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-button-store {
  font-size: 1.125rem;
  font-weight: 600;
}

.download-note {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(198, 230, 87, 0.1);
  border: 1px solid rgba(198, 230, 87, 0.2);
}

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

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

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-button {
    width: min(100%, 280px);
    min-width: 0;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .lang-select {
    width: 100%;
  }

  .js .lang-select .lang-trigger,
  .home-link {
    width: 100%;
  }

  .js .lang-select .lang-trigger {
    justify-content: space-between;
  }

  .hero,
  .guide-card {
    padding: 24px;
  }
}
