/* ========== RESET & BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
    "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0;
  background: #ffffff;
  overflow-x: hidden;
  unicode-bidi: plaintext;
}

/* ========== PAGE BACKGROUND: Full-width wrapper. Edit gradient (e.g. brand color #413189) here only ========== */
.page-bg {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(65, 49, 137, 0.08) 0%,
    rgba(65, 49, 137, 0.03) 40%,
    #ffffff 100%
  );
}

/* ========== TOP BAR: Layout for share + language. direction: ltr so buttons order stays consistent ========== */
.topbar {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  direction: ltr;
}

/* ========== SHARE BUTTON: Icon + .visually-hidden text for screen readers ========== */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 0;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  font-size: 0.875rem;
  color: #4a4a4a;
  cursor: pointer;
  transition: box-shadow 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.share-btn:hover {
  color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}
.share-btn:focus-visible {
  outline: 2px solid #413189;
  outline-offset: 2px;
}

.share-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.share-icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.share-btn .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== LANGUAGE SWITCH: .active = selected language (brand color). Keep direction: ltr ========== */
.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
  direction: ltr;
}

.lang-switch:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  color: #4a4a4a;
  transition: all 0.2s ease;
  min-width: 70px;
  text-align: center;
}

.lang-switch button:hover {
  color: #1a1a1a;
}

.lang-switch button.active {
  background: #413189;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(65, 49, 137, 0.3);
}

.lang-switch button:focus-visible {
  outline: 2px solid #413189;
  outline-offset: 2px;
}

/* ========== MAIN CONTAINER: Max-width, padding. Increase padding-bottom for more space at bottom of page ========== */
.container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 20px 56px;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ========== LOGO: Replace logo.png in HTML to change. Sizes: 120 / 140 (tablet) / 160 (desktop) ========== */
.logo {
  width: 120px;
  height: auto;
  max-width: 140px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 0;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ========== TYPOGRAPHY: Page title (.handle) and subtitle. Color #413189 = brand ========== */
.handle {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #413189;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1rem;
  margin: 0 0 20px;
  color: #4a4a4a;
  font-weight: 400;
}

/* ========== ABOUT / FAQ: Optional block. Not used in current HTML; add .about + .about-title + .about-text to use ========== */
.about {
  max-width: 480px;
  margin: 0 auto 24px;
  padding: 12px 16px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-align: start;
}

.about-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.about-text {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.7;
}

/* ========== LINKS CONTAINER: Vertical list of .link-group (section title + .btn). Gap between groups ========== */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 8px;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #413189;
  margin-bottom: 4px;
}

.link-group--future { display: none; }
.btn--future { opacity: 0.7; }

/* ========== BUTTONS: Main link style (.btn). .app-btn has icon on left; .btn-text for label ========== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0.02) 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn:focus-visible {
  outline: 2px solid #413189;
  outline-offset: 2px;
}

.btn-text {
  position: relative;
  z-index: 1;
}

.app-btn {
  position: relative;
  justify-content: center;
}

.app-icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
}

.app-btn .app-icon {
  left: 20px;
  right: auto;
}

.force-ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ========== SOCIAL ICONS: Single row above link buttons. flex-wrap: nowrap; sizes/gap in media queries ========== */
.socials {
  margin-top: 12px;
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  direction: ltr;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.socials a:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.socials a:active {
  transform: translateY(0);
}

.socials a:focus-visible {
  outline: 2px solid #413189;
  outline-offset: 2px;
}

.socials img {
  width: 24px;
  height: 24px;
  display: block;
}

/* ========== RESPONSIVE: Tablet (768px+). Container, logo, buttons, socials get larger ========== */
@media (min-width: 768px) {
  .container {
    max-width: 500px;
    padding: 32px 24px 80px;
  }

  .topbar {
    padding: 20px 24px;
  }

  .logo {
    width: 140px;
    margin: 12px auto 24px;
  }

  .handle {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .subtitle {
    font-size: 1.0625rem;
    margin-bottom: 36px;
  }

  .links {
    gap: 14px;
  }

  .btn {
    padding: 18px 24px;
    font-size: 1.0625rem;
    border-radius: 18px;
  }

  .socials {
    margin-bottom: 32px;
    gap: 14px;
  }

  .socials a {
    width: 52px;
    height: 52px;
  }

  .socials img {
    width: 28px;
    height: 28px;
  }
}

/* ========== RESPONSIVE: Desktop (1024px+). More padding and larger elements ========== */
@media (min-width: 1024px) {
  .container {
    max-width: 560px;
    padding: 40px 32px 96px;
  }

  .topbar {
    padding: 24px 32px;
  }

  .logo {
    width: 160px;
    margin: 16px auto 28px;
  }

  .handle {
    font-size: 2.25rem;
  }

  .subtitle {
    font-size: 1.125rem;
    margin-bottom: 40px;
  }

  .links {
    gap: 16px;
  }

  .btn {
    padding: 20px 28px;
    font-size: 1.125rem;
    border-radius: 20px;
  }

  .lang-switch button {
    padding: 10px 20px;
    font-size: 0.9375rem;
  }

  .socials {
    gap: 12px;
  }

  .socials a {
    width: 60px;
    height: 60px;
  }

  .socials img {
    width: 32px;
    height: 32px;
  }
}

/* ========== ACCESSIBILITY: Respect user preference for reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
