.brand-logo-frame {
  position: relative;
  display: block;
  width: 160px;
  height: 54px;
  flex: 0 0 160px;
  overflow: hidden;
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111827;
  --text: #e5edf8;
  --muted: #a7b4c7;
  --line: #293548;
  --accent: #60a5fa;
  --accent-dark: #93c5fd;
  --success: #4ade80;
  --soft: #17243a;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 34rem),
    linear-gradient(135deg, #101827 0%, var(--bg) 100%);
}

.landing-preferences {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.pill-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  font-size: 13px;
  font-weight: 800;
}

html[data-theme="dark"] .pill-control {
  background: rgba(17, 24, 39, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.pill-control select {
  width: auto;
  min-width: 100px;
  margin: 0;
  padding: 7px 32px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background-color: var(--panel);
  font: inherit;
  font-weight: 800;
}

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

.theme-control-label {
  display: inline-flex;
  align-items: center;
}

.theme-control-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

html[data-theme="dark"] .theme-control-icon {
  filter: brightness(1.1) saturate(1.12);
}

.pill-control.theme-control {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  justify-content: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.pill-control.theme-control:hover {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.08);
}

.pill-control.theme-control:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.pill-control.theme-control .theme-control-label {
  pointer-events: none;
}

.pill-control.theme-control .theme-control-icon {
  display: block;
}

.pill-control.theme-control select {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  opacity: 0;
  cursor: pointer;
}

.language-control {
  position: relative;
  z-index: 1;
}

.language-control.is-open {
  z-index: 3400;
}

.language-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 176px;
  min-width: 176px;
  min-height: 34px;
}

.language-select-wrap > select:not(.language-select-native) {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
}

.language-select-wrap.is-open {
  z-index: 3200;
}

.language-select-flag {
  width: 24px;
  height: 16px;
  flex: 0 0 24px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

html[data-theme="dark"] .language-select-flag {
  border-color: rgba(226, 232, 240, 0.22);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
}

.pill-control select.language-select-native {
  position: absolute;
  width: 1px;
  min-width: 0;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.language-select-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 176px;
  min-width: 176px;
  max-width: 176px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  direction: ltr;
  cursor: pointer;
}

.language-select-button:focus-visible,
.language-select-option:focus-visible,
.pill-control select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.language-select-button-label {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-select-arrow {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.68;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.language-select-wrap.is-open .language-select-arrow {
  transform: translateY(2px) rotate(225deg);
}

.language-select-menu {
  position: absolute;
  z-index: 3300;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 36px));
  max-height: min(420px, calc(100vh - 120px));
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.language-select-menu[hidden] {
  display: none;
}

.language-select-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  direction: ltr;
  text-align: left;
  cursor: pointer;
}

.language-select-option:hover,
.language-select-option.is-active {
  background: rgba(37, 99, 235, 0.1);
}

.language-select-option[aria-selected="true"] {
  color: var(--accent-dark);
  background: rgba(37, 99, 235, 0.14);
}

.language-select-option-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .language-select-menu {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .language-select-option:hover,
html[data-theme="dark"] .language-select-option.is-active {
  background: rgba(96, 165, 250, 0.14);
}

html[data-theme="dark"] .language-select-option[aria-selected="true"] {
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.18);
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .visual-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] details,
html[data-theme="dark"] .trust-item {
  color: var(--text);
  border-color: var(--line);
  background: rgba(17, 24, 39, 0.9);
}

html[data-theme="dark"] .feature-card {
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.97), rgba(23, 36, 58, 0.84));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .feature-tag,
html[data-theme="dark"] .plan-card {
  color: var(--muted);
  background: rgba(17, 24, 39, 0.88);
}

html[data-theme="dark"] .plan-card-premium {
  border-color: rgba(96, 165, 250, 0.36);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(96, 165, 250, 0.09)),
    rgba(17, 24, 39, 0.92);
}

html[data-theme="dark"] .landing-graphic {
  box-shadow: inset 0 0 0 1px var(--line);
}

.brand-logo {
  position: absolute;
  top: -52px;
  left: 0;
  display: block;
  width: 160px;
  height: 160px;
  max-width: none;
}

html[dir="rtl"] .brand-logo {
  right: 0;
  left: auto;
}

.feature-snapshot {
  position: relative;
}

.feature-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.feature-section-heading .section-lead {
  margin-bottom: 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.feature-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 255, 0.72));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.feature-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
}

.feature-card > p {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.plan-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.plan-card-premium {
  border-color: rgba(37, 99, 235, 0.3);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.11), rgba(96, 165, 250, 0.06)),
    rgba(255, 255, 255, 0.9);
}

.plan-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 20px;
}

.plan-card h3::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.1);
}

.plan-card-premium h3::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

html[dir="rtl"] .feature-section-heading,
html[dir="rtl"] .feature-tags,
html[dir="rtl"] .plan-card h3 {
  direction: rtl;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .feature-section-heading {
    display: block;
  }

  .feature-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .landing-preferences {
    width: 100%;
    flex-wrap: wrap;
  }

  .language-control {
    flex: 1 1 210px;
  }

  .language-select-wrap,
  .language-select-button {
    width: 100%;
  }

  .language-select-button {
    min-width: 0;
  }
}
