:root {
  --page-bg: #05060a;
  --page-bg-alt: #0c0f14;
  --text-primary: #f5f7fb;
  --text-secondary: #9aa4c4;
  --accent: #5be49b;
  --accent-soft: rgba(91, 228, 155, 0.12);
  --accent-strong: #2bd47d;
  --card-bg: rgba(15, 19, 28, 0.8);
  --card-border: rgba(255, 255, 255, 0.05);
  --muted-border: rgba(154, 164, 196, 0.12);
  --shadow-large: 0 30px 60px rgba(6, 8, 12, 0.6);
  --shadow-small: 0 12px 30px rgba(8, 12, 20, 0.35);
  --content-width: min(1120px, calc(100% - 3rem));
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


/* removed skip-link for simplified header */

body {
  margin: 0;
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top right, rgba(43, 57, 91, 0.35), rgba(5, 6, 10, 0.9)),
    linear-gradient(160deg, #05060a 0%, #090c12 40%, #040507 100%);
  color: var(--text-primary);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

section {
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(5, 6, 10, 0.78);
  border-bottom: 1px solid var(--muted-border);
}

.nav-container {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 12px;
  background: transparent;
  object-fit: contain;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex: 1 1 auto;
  justify-content: center;
  white-space: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none; /* Firefox */
}

.primary-nav::-webkit-scrollbar { /* WebKit */
  display: none;
}

.primary-nav a {
  position: relative;
  padding-bottom: 0.2rem;
  flex: 0 0 auto; /* prevent shrinking and wrapping */
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  width: 100%;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #04150a;
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: var(--shadow-small);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.cta-button--app-store {
  padding: 0;
  background: none;
  box-shadow: none;
}

.cta-button--app-store:hover,
.cta-button--app-store:focus-visible {
  transform: none;
  box-shadow: none;
}

.cta-button__badge {
  display: block;
  height: 3rem;
  width: auto;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(91, 228, 155, 0.25);
}

.cta-link {
  color: var(--accent);
  font-weight: 500;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Hide any header language switchers; we render it in the footer via JS */
.site-header .lang-switcher { display: none !important; }

.lang-switcher label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.lang-switcher select {
  background: rgba(20,24,34,0.6);
  border: 1px solid var(--muted-border);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  max-width: 160px;
}

/* Header responsiveness to avoid wrapping */
@media (max-width: 1280px) {
  .primary-nav { gap: 1rem; }
}

@media (max-width: 1080px) {
  .brand-logo { width: 38px; height: 38px; }
  .primary-nav { gap: 0.9rem; }
  .lang-switcher label { display: none; }
  .lang-switcher select { max-width: 120px; }
}

@media (max-width: 920px) {
  .primary-nav { gap: 0.8rem; font-size: 0.92rem; }
  .cta-button { padding: 0.72rem 1.1rem; font-size: 0.92rem; }
}

@media (max-width: 780px) {
  .lang-switcher { display: none; }
}

.hero {
  width: var(--content-width);
  margin: 0 auto;
  padding-top: 7.5rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 4vw + 1rem, 3.8rem);
  margin-bottom: 1.2rem;
  line-height: 1.05;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 34ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.cta-group {
  margin: 2.4rem 0 3rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.trust-indicators div {
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(28, 33, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-small);
}

.trust-indicators strong {
  display: block;
  font-size: 1.9rem;
  color: var(--accent);
}

.trust-indicators span {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.device-frame {
  position: relative;
  --device-radius: 34px;
  --device-bezel: clamp(0.38rem, 0.65vw + 0.18rem, 0.56rem);
  --device-gutter: var(--device-bezel);
  aspect-ratio: 9 / 19.5;
  border-radius: var(--device-radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(21, 25, 34, 0.92), rgba(7, 8, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 26px 58px rgba(0, 0, 0, 0.58),
    0 10px 20px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.device-frame::before {
  content: "";
  position: absolute;
  background:
    radial-gradient(circle at 40% 12%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0) 52%),
    #020304;
  inset: var(--device-bezel);
  border-radius: calc(var(--device-radius) - var(--device-bezel));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device-frame img {
  position: absolute;
  top: var(--device-gutter);
  left: var(--device-gutter);
  width: calc(100% - (2 * var(--device-gutter)));
  height: calc(100% - (2 * var(--device-gutter)));
  border-radius: calc(var(--device-radius) - var(--device-gutter));
  object-fit: cover;
  object-position: center;
  box-shadow: none;
  border: none;
}

.device-overlay {
  position: absolute;
  left: var(--device-gutter);
  right: var(--device-gutter);
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-overlay--top {
  top: calc(var(--device-gutter) + 0.55rem);
}

.device-overlay--bottom {
  bottom: calc(var(--device-gutter) + 0.55rem);
  justify-content: space-between;
  gap: 0.75rem;
}

.device-overlay__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 247, 251, 0.92);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.62rem;
  backdrop-filter: blur(10px);
}

.device-overlay__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 247, 251, 0.9);
  font-weight: 650;
  font-size: 0.82rem;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.device-overlay__badge--right {
  justify-content: flex-end;
}

.device-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 85% at 15% 12%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 62%);
  opacity: 0.35;
}

.device-frame--contain {
  --device-gutter: calc(var(--device-bezel) + clamp(0.18rem, 0.24vw + 0.12rem, 0.32rem));
}

.device-frame--contain img {
  object-fit: contain;
  padding: clamp(0.45rem, 0.7vw + 0.25rem, 0.8rem);
  box-sizing: border-box;
}

.poster-frame {
  position: relative;
  width: 100%;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(4, 6, 10, 0.92), rgba(17, 21, 27, 0.92));
  border: 1px solid rgba(24, 28, 36, 0.65);
  box-shadow: 0 18px 40px rgba(4, 6, 12, 0.4);
  overflow: hidden;
}

.poster-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.device-frame--hero-primary {
  width: min(360px, 90%);
  z-index: 1;
}

.device-frame--hero-floating {
  position: absolute;
  width: min(250px, 58%);
  bottom: -12%;
  right: -6%;
  z-index: 2;
  transform: rotate(-8deg);
}


.seo-overview {
  width: var(--content-width);
  margin: 0 auto;
  padding-top: 4rem;
}

.seo-wrapper {
  background: rgba(15, 19, 29, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: clamp(2.4rem, 4vw, 3.4rem);
  box-shadow: var(--shadow-large);
  display: grid;
  gap: 2.4rem;
}

.seo-wrapper h2 {
  font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
  margin: 0;
}

.seo-wrapper p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.seo-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.seo-columns article {
  background: rgba(12, 16, 24, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: var(--shadow-small);
}

.seo-columns h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.seo-columns p {
  color: var(--text-secondary);
}

.answer-section {
  width: var(--content-width);
  margin: 0 auto;
  padding-top: 3rem;
}

.answer-header {
  max-width: 680px;
  margin-bottom: 1.8rem;
}

.answer-header h2,
.authority-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.2vw + 1rem, 2.8rem);
  line-height: 1.12;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.answer-block {
  min-height: 100%;
  padding: clamp(1.6rem, 2.4vw, 2.1rem);
  border-radius: 18px;
  border: 1px solid rgba(91, 228, 155, 0.18);
  background: linear-gradient(180deg, rgba(19, 27, 32, 0.86), rgba(11, 14, 20, 0.86));
  box-shadow: var(--shadow-small);
}

.answer-block h3 {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
}

.answer-block p,
.authority-copy p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.answer-block p + p,
.authority-copy p + p {
  margin-top: 1rem;
}

.authority-band {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
  border-top: 1px solid var(--muted-border);
  border-bottom: 1px solid var(--muted-border);
}

.authority-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.authority-points {
  display: grid;
  gap: 0.8rem;
}

.authority-points span {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(91, 228, 155, 0.08);
  border: 1px solid rgba(91, 228, 155, 0.16);
  color: var(--text-primary);
  font-weight: 600;
}

.resource-section {
  width: var(--content-width);
  margin: 0 auto;
  padding-top: 3rem;
}

.resource-header {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.resource-header h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 2.1vw + 1rem, 2.6rem);
}

.resource-header p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.resource-grid a {
  display: flex;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--muted-border);
  background: rgba(14, 18, 27, 0.78);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.resource-grid a:hover,
.resource-grid a:focus-visible {
  border-color: rgba(91, 228, 155, 0.45);
  color: var(--accent);
  transform: translateY(-1px);
}

.gallery-description {
  color: var(--text-secondary);
  margin-top: 0.8rem;
  max-width: 48ch;
}

.feature-stack {
  width: var(--content-width);
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.stack-media {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.stack-frame {
  width: min(220px, 42vw);
  transition: transform var(--transition);
  z-index: 2;
}

.stack-frame--lean-left {
  transform: rotate(-6deg) translateY(12px);
}

.stack-frame--lean-right {
  transform: rotate(6deg) translateY(12px);
}

.stack-frame--solo {
  width: min(260px, 52vw);
  transform: none;
}

.stack-frame--low {
  margin-top: clamp(1rem, 2vw, 1.8rem);
  z-index: 1;
}

.stack-copy {
  text-align: left;
}

.stack-copy h2 {
  font-size: clamp(2rem, 2.8vw + 1rem, 3.1rem);
  margin-bottom: 1.4rem;
}

.stack-copy p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.stack-points {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.stack-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stack-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

.insight-section {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}

.insight-media .device-frame {
  width: min(360px, 100%);
  margin: 0 auto;
}

.insight-copy ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.insight-copy li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.insight-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
}

.how-it-works {
  width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

.how-it-works h2 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  border-radius: 24px;
  background: rgba(20, 24, 35, 0.75);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-small);
  text-align: left;
}

.step-number {
  position: absolute;
  top: -1.2rem;
  left: 1.8rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #04150a;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.gallery {
  width: 100%;
  background: linear-gradient(160deg, rgba(47, 58, 89, 0.35), rgba(6, 7, 12, 0.9));
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.gallery-header,
.gallery-track {
  width: var(--content-width);
  margin: 0 auto;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-controls {
  display: inline-flex;
  gap: 0.75rem;
}

.gallery-button {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid var(--muted-border);
  background: rgba(12, 14, 22, 0.85);
  color: var(--text-primary);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gallery-button:hover,
.gallery-button:focus-visible {
  background: var(--accent);
  color: #04150a;
  transform: translateY(-1px);
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 340px);
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-track figure {
  margin: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0;
}

.gallery-track .device-frame {
  width: 100%;
}

.security {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.8rem;
  align-items: center;
}

.security-content ul {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.security-content li::marker {
  color: var(--accent);
}

.security-media .device-frame {
  width: min(320px, 100%);
}

.faq {
  width: var(--content-width);
  margin: 0 auto;
}

.faq-items {
  margin-top: 2.2rem;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.faq article {
  border-radius: 22px;
  background: rgba(16, 20, 30, 0.78);
  border: 1px solid var(--card-border);
  padding: 1.8rem;
  box-shadow: var(--shadow-small);
}

.faq p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--muted-border);
  padding: 2.5rem 0;
  background: rgba(5, 6, 10, 0.9);
}

.footer-content {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text-primary);
}

.legal-body {
  background: radial-gradient(circle at top right, rgba(43, 57, 91, 0.25), rgba(5, 6, 10, 0.94)),
    linear-gradient(160deg, #05060a 0%, #090c12 40%, #040507 100%);
}

.legal-content {
  width: var(--content-width);
  margin: 0 auto;
  padding: 6rem 0 5rem;
}

.legal-article {
  background: rgba(12, 15, 20, 0.82);
  border: 1px solid var(--muted-border);
  border-radius: 24px;
  padding: clamp(2rem, 3vw, 3rem);
  box-shadow: var(--shadow-large);
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.legal-header h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 3vw + 1rem, 2.6rem);
}

.legal-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-section + .legal-section {
  margin-top: 2.25rem;
}

.legal-section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.legal-section h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-section h4 {
  font-size: 1rem;
  margin: 0.9rem 0 0.4rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.legal-article a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.legal-footer-note {
  margin-top: 2.5rem;
  color: var(--text-secondary);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li + li {
  margin-top: 0.5rem;
}

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

body.modal-open {
  overflow: hidden;
}

.download-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 40;
}

.download-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 6, 0.72);
  backdrop-filter: blur(6px);
}

.download-modal__content {
  position: relative;
  width: min(480px, calc(100% - 3rem));
  padding: 2.4rem 2.2rem;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--muted-border);
  box-shadow: var(--shadow-large);
  color: var(--text-primary);
}

.download-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(154, 164, 196, 0.12);
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

.download-modal__close:hover,
.download-modal__close:focus-visible {
  background: rgba(154, 164, 196, 0.22);
}

.download-modal__eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin: 0;
}

.download-modal__content h2 {
  margin: 0.6rem 0 1rem;
}

.download-modal__content p {
  color: var(--text-secondary);
  margin: 0 0 1.4rem;
  line-height: 1.6;
}

.download-modal__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}

.download-modal__share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.download-modal__qr {
  margin: 0;
  padding: 1.2rem 1.4rem 1.3rem;
  border-radius: 20px;
  border: 1px solid var(--muted-border);
  background: rgba(10, 13, 20, 0.9);
  text-align: center;
  box-shadow: var(--shadow-small);
}

.download-modal__qr img {
  width: 260px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
}

.download-modal__qr figcaption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.download-modal__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  width: min(280px, 100%);
}

.download-modal__link {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--muted-border);
  background: rgba(10, 13, 20, 0.9);
  color: var(--text-primary);
  font-size: 0.95rem;
  text-align: center;
}

.download-modal__copy {
  padding: 0.65rem 1.2rem;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #04150a;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.download-modal__copy:hover,
.download-modal__copy:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(91, 228, 155, 0.25);
}

.download-modal__footer {
  margin: 0;
  color: var(--text-secondary);
}

.download-modal__footer a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

@media (max-width: 520px) {
  .download-modal__copy {
    width: 100%;
    justify-content: center;
  }
}


@media (max-width: 1024px) {
  .primary-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-media {
    order: 2;
  }

  .device-frame--hero-floating {
    position: absolute;
    width: min(240px, 55%);
    bottom: -10%;
    right: 12%;
  }

  .feature-stack,
  .insight-section,
  .security,
  .faq,
  .answer-section,
  .authority-band,
  .resource-section {
    text-align: center;
  }

  .authority-band,
  .resource-section {
    grid-template-columns: 1fr;
  }

  .authority-points {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .stack-copy {
    text-align: center;
  }

  .stack-points {
    justify-items: center;
  }

  .insight-copy ul,
  .security-content ul {
    text-align: left;
    margin-inline: auto;
    max-width: 480px;
  }
}

@media (max-width: 720px) {
  section {
    padding: 4rem 0;
  }

  .nav-container {
    padding: 0.9rem 0;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-container .brand {
    justify-content: center;
  }

  .nav-container .cta-button {
    width: 100%;
    max-width: 240px;
    justify-content: center;
  }

  .nav-container .lang-switcher {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .lang-switcher select {
    width: 100%;
    max-width: 240px;
  }

  .hero {
    padding-top: 3.2rem;
    gap: 2rem;
  }

  .trust-indicators {
    grid-template-columns: 1fr;
  }

  .seo-columns {
    grid-template-columns: 1fr;
  }

  .answer-grid {
    grid-template-columns: 1fr;
  }

  .feature-stack {
    grid-template-columns: 1fr;
    margin: 0 auto 3.5rem;
  }

  .stack-media {
    gap: 1rem;
  }

  .stack-frame,
  .stack-frame--lean-left,
  .stack-frame--lean-right,
  .stack-frame--solo,
  .stack-frame--low {
    width: min(240px, 75vw);
    transform: none !important;
  }

  .stack-copy {
    text-align: center;
  }

  .stack-points {
    justify-items: center;
  }

  .gallery-track {
    grid-auto-columns: minmax(220px, 280px);
  }

}

@media (max-width: 520px) {
  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .device-frame--hero-floating {
    display: none;
  }

  .feature-stack {
    margin: 0 auto 3rem;
  }

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

  .gallery-controls {
    align-self: flex-end;
  }
}
