/* PickOS corporate prototype — mobile-first, token-based, dark-mode aware */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-strong: #020617;
  --muted: #475569;
  --muted-2: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --accent-on: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 28px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 12px 40px -8px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.06);
  --header-bg: rgba(255, 255, 255, 0.92);
  --hero-grad-1: #eef4ff;
  --hero-grad-2: var(--bg);
  --footer-bg: #0b1220;
  --footer-text: #94a3b8;
  --footer-text-strong: #ffffff;
  --footer-border: #1e293b;
  --code-bg: #f1f5f9;
  --logo-mark-blend: multiply;
  --radius: 12px;
  --radius-lg: 16px;
  --font: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic",
    "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", sans-serif;
  --narrow: 72ch;
  --max: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090f;
  --bg-elev: #0d1117;
  --surface: #0f172a;
  --surface-2: #111827;
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --border: #1f2937;
  --border-strong: #334155;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.18);
  --accent-on: #0b1220;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4),
    0 8px 28px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 50px -12px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(7, 9, 15, 0.78);
  --hero-grad-1: rgba(29, 78, 216, 0.12);
  --hero-grad-2: var(--bg);
  --footer-bg: #050810;
  --footer-text: #94a3b8;
  --footer-text-strong: #f8fafc;
  --footer-border: #1f2937;
  --code-bg: #0f172a;
  --logo-mark-blend: screen;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07090f;
    --bg-elev: #0d1117;
    --surface: #0f172a;
    --surface-2: #111827;
    --text: #e2e8f0;
    --text-strong: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --border: #1f2937;
    --border-strong: #334155;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-soft: rgba(96, 165, 250, 0.18);
    --accent-on: #0b1220;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4),
      0 8px 28px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 50px -12px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(7, 9, 15, 0.78);
    --hero-grad-1: rgba(29, 78, 216, 0.12);
    --hero-grad-2: var(--bg);
    --footer-bg: #050810;
    --footer-text: #94a3b8;
    --footer-text-strong: #f8fafc;
    --footer-border: #1f2937;
    --code-bg: #0f172a;
    --logo-mark-blend: screen;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  /* Avoid horizontal rubber-band / scrollbar from off-canvas UI (skip link, wide popovers) in LTR and RTL */
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html {
    overflow-x: hidden;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  font-synthesis: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

::selection {
  background: var(--accent-soft);
  color: var(--text-strong);
}

strong {
  color: var(--text-strong);
  font-weight: 600;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: 100;
}

.skip-link:focus {
  position: fixed;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  inset-inline-start: max(1rem, env(safe-area-inset-left, 0px));
  top: max(1rem, env(safe-area-inset-top, 0px));
  background: var(--text);
  color: #fff;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0);
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.625rem 0;
  min-height: 3.5rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  line-height: 1;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  mix-blend-mode: var(--logo-mark-blend);
  background: transparent;
}

[data-theme="dark"] .logo-mark {
  /* PNG (black-on-white) cannot become white via blend; invert in dark mode */
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: normal;
}

.logo-mark--dark {
  background: #000;
  mix-blend-mode: screen;
  border-radius: 6px;
}

[data-theme="dark"] .logo-mark--dark {
  filter: none;
  mix-blend-mode: screen;
}

.logo-word {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Primary nav */
.nav-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Language picker (button + popover) */
.lang-picker {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.4rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.lang-toggle:hover {
  border-color: #cbd5e1;
  background: var(--bg);
}

.lang-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lang-toggle .lang-globe {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
}

.lang-toggle .lang-current {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-toggle .lang-caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.lang-toggle[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  inset-inline-end: 0;
  inset-inline-start: auto;
  width: min(20rem, calc(100vw - 2rem));
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px -8px rgba(15, 23, 42, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.06);
  list-style: none;
  margin: 0;
  z-index: 60;
}

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

.lang-menu li {
  margin: 0;
}

.lang-menu .lang-item,
.lang-menu .lang-item:visited {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.25;
}

.lang-menu .lang-item:hover {
  background: var(--bg);
  color: var(--text);
}

.lang-menu .lang-item[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
}

.lang-menu .lang-item--disabled {
  color: #94a3b8;
  cursor: default;
  pointer-events: none;
}

.lang-menu .lang-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.lang-menu .lang-name-native {
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-menu .lang-name-en {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.lang-menu .lang-tag {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo,
    Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  text-transform: uppercase;
}

.lang-menu .lang-soon {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  text-transform: uppercase;
}

.lang-menu .lang-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0.25rem;
}

.lang-menu .lang-section-title {
  padding: 0.5rem 0.7rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

/* svw matches the visible viewport width on mobile better than vw (scrollbar / gutter), reducing stray horizontal scroll */
@supports (width: min(1px, 1svw)) {
  .lang-menu {
    width: min(20rem, calc(100svw - 2rem));
  }
}

[dir="rtl"] .lang-toggle .lang-caret {
  margin-inline-start: 0;
}

/* Nav toggle (hamburger) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--bg);
  border-color: #cbd5e1;
}

.nav-toggle-bars {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

@media (max-width: 1080px) {
  .header-grid {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cell {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    padding: 0.5rem 0 0.75rem;
    margin-top: 0.4rem;
    border-top: 1px solid var(--border);
  }

  .header-grid.is-open .nav-cell {
    display: block;
  }

  .nav-cell .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .nav-cell .nav-links li {
    margin: 0;
    list-style: none;
  }

  .nav-cell .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
  }

  .nav-cell .nav-links a:hover {
    background: var(--surface-2);
  }

  .nav-cell .nav-links a[aria-current="page"] {
    background: var(--accent-soft);
  }

  .lang-toggle .lang-current {
    max-width: 6rem;
  }
}

@media (max-width: 520px) {
  .logo-word {
    display: none;
  }

  .lang-toggle {
    padding: 0 0.7rem;
    height: 2.35rem;
  }

  .lang-toggle .lang-current {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .header-grid.is-open .nav-cell {
    animation: nav-reveal 0.22s ease;
  }

  .lang-menu:not([hidden]) {
    animation: menu-reveal 0.16s ease;
  }
}

@keyframes nav-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menu-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.05s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.75rem) 0 clamp(2rem, 5vw, 3.5rem);
  background-color: var(--hero-grad-1);
  background-image:
    linear-gradient(
      105deg,
      rgba(248, 250, 252, 0.94) 0%,
      rgba(241, 245, 249, 0.9) 42%,
      rgba(226, 232, 240, 0.85) 100%
    ),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=2400&q=82");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background-image:
    linear-gradient(
      105deg,
      rgba(15, 23, 42, 0.94) 0%,
      rgba(15, 23, 42, 0.88) 45%,
      rgba(30, 41, 59, 0.82) 100%
    ),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=2400&q=82");
}

body.has-cookie-banner {
  padding-bottom: clamp(5.5rem, 22vw, 9rem);
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1rem max(1rem, env(safe-area-inset-right))
    calc(1rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.14);
}

[data-theme="dark"] .cookie-consent {
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55);
}

.cookie-consent__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}

.cookie-consent__copy {
  flex: 1 1 min(100%, 28rem);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-consent__copy p {
  margin: 0;
}

.cookie-consent__copy a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

[dir="rtl"] .cookie-consent__inner {
  flex-direction: row-reverse;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-slogan {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-strong);
  max-width: var(--narrow);
  letter-spacing: -0.015em;
}

[dir="rtl"] .hero-slogan {
  text-align: right;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: var(--narrow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 380px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.stat {
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 10px;
  min-width: 0;
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
}

.stat span {
  font-size: 0.8125rem;
  color: var(--muted);
}

section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-head {
  max-width: var(--narrow);
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease, border-color 0.2s ease, background-color 0.25s ease;
  position: relative;
  isolation: isolate;
}

.card.is-interactive:hover,
a.card:hover,
.card:has(> a:hover) {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.list-features {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.list-features li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--muted);
}

.list-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-band {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin: 2rem 0 0;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.93;
  max-width: 46ch;
}

.cta-band .btn-primary {
  background: #fff;
  color: #1e40af;
}

.cta-band .btn-primary:hover {
  background: #eff6ff;
}

.platform-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.platform-domain {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.platform-domain a {
  color: inherit;
  text-decoration: none;
}

.platform-domain a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, 1fr);
  }
}

.footer-brand .logo {
  color: var(--footer-text-strong);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.875rem;
  max-width: 32ch;
}

.footer-col h3 {
  color: var(--footer-text-strong);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 520px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Inner pages */
.page-hero {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  margin: 0;
}

.prose {
  max-width: var(--narrow);
}

.prose.legal-wide {
  max-width: 85ch;
}

.legal-notice {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
  border-radius: 0 8px 8px 0;
}

.legal-notice strong {
  color: var(--text);
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.article-list {
  display: grid;
  gap: 1rem;
}

.article-item {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.article-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.article-item time {
  font-size: 0.8125rem;
  color: var(--muted);
}

.article-item h3 {
  margin: 0.35rem 0 0;
  font-size: 1.125rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.office-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .office-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.office-card address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* RTL preview (Arabic sample page) */
[dir="rtl"] .list-features li {
  padding-left: 0;
  padding-right: 1.25rem;
}

[dir="rtl"] .list-features li::before {
  left: auto;
  right: 0;
}

/* ============================================================ */
/*  Theme toggle button (header)                                */
/* ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: block;
  }
}

@media (max-width: 520px) {
  .theme-toggle {
    width: 2.35rem;
    height: 2.35rem;
  }
}

/* ============================================================ */
/*  Form controls (theme-aware)                                 */
/* ============================================================ */
input,
select,
textarea {
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s ease, background-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

/* ============================================================ */
/*  Scroll-reveal animations                                    */
/* ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal[data-delay="1"] {
  transition-delay: 0.06s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.12s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.18s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="5"] {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero text intro animation (always-on, lightweight) */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > div > * {
    animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-inner > div > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-inner > div > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-inner > div > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-inner > div > *:nth-child(4) { animation-delay: 0.35s; }

  .hero-card {
    animation: hero-card-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-card-rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes orb-drift {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }
  to {
    transform: translate(-2rem, 1rem) scale(1.05);
    opacity: 1;
  }
}

/* ============================================================ */
/*  App download panel                                          */
/* ============================================================ */
.app-panel {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(96, 165, 250, 0.18), transparent 55%),
    radial-gradient(120% 140% at 0% 100%, rgba(29, 78, 216, 0.22), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #111c33 55%, #0b1220 100%);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 80px -40px rgba(2, 6, 23, 0.85);
  overflow: hidden;
  isolation: isolate;
}

.app-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 90% 10%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.app-panel > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 880px) {
  .app-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }
}

.app-panel__eyebrow {
  color: #93c5fd;
}

.app-panel h2,
.app-panel h3 {
  color: #f8fafc;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.app-panel__lead {
  margin: 0 0 1.25rem;
  color: rgba(226, 232, 240, 0.85);
  font-size: 1rem;
  max-width: 48ch;
}

.app-panel__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(226, 232, 240, 0.92);
}

.app-panel__points li {
  position: relative;
  padding-inline-start: 1.4rem;
}

.app-panel__points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.18);
}

.app-panel__stores {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.25rem;
  border-radius: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.app-panel__stores-label {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.68);
  font-weight: 700;
}

[dir="rtl"] .app-panel__stores-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
}

.app-panel__note {
  margin: 0.85rem 0 0;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.4;
}

.app-stores {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .app-stores {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}

.app-store-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.2s ease;
}

.app-store-card:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 4px;
  border-radius: 12px;
}

.app-store-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.store-badge__image {
  display: block;
  width: 100%;
  max-width: 14rem;
  height: 3.25rem;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}

/* ============================================================ */
/*  Integration cards (WooCommerce / Shopify / API)             */
/* ============================================================ */
.integration-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .integration-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.integration-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease, box-shadow 0.25s ease;
}

.integration-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.integration-card .integration-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.integration-card .integration-badge--api {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo,
    Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .integration-card .integration-badge--api {
  background: linear-gradient(135deg, #1f2937, #334155);
}

.integration-card .integration-logo {
  width: 96px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
}

.integration-card .integration-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.integration-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.integration-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ============================================================ */
/*  Audience-split (Promoters / Sellers)                        */
/* ============================================================ */
.audience-split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .audience-split {
    grid-template-columns: 1fr 1fr;
  }
}

.audience-card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.audience-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.audience-card .audience-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.audience-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 36ch;
}

.audience-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.audience-card li {
  margin-bottom: 0.4rem;
}

[dir="rtl"] .audience-card ul {
  padding-left: 0;
  padding-right: 1.1rem;
}

[dir="rtl"] .audience-card::after {
  inset: auto auto -45% -20%;
}

/* ============================================================ */
/*  Footer registration block                                   */
/* ============================================================ */
.footer-registration {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--footer-text);
  line-height: 1.5;
}

.footer-registration dt {
  font-weight: 600;
  color: var(--footer-text-strong);
  display: inline;
}

.footer-registration dd {
  margin: 0;
  display: inline;
}

.footer-registration .reg-row {
  margin-top: 0.35rem;
}

.footer-registration .reg-row span {
  display: inline-block;
  margin-right: 0.6rem;
}

[dir="rtl"] .footer-registration .reg-row span {
  margin-right: 0;
  margin-left: 0.6rem;
}

/* ============================================================ */
/*  Sharper card hover for article items                        */
/* ============================================================ */
.article-item {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.article-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

/* ============================================================ */
/*  Misc dark-mode polish                                       */
/* ============================================================ */
[data-theme="dark"] .btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}

[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
}

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .cta-band::after {
    animation: orb-drift 18s ease-in-out infinite alternate;
  }
}

/* Sharper section headings (Inter cv features already applied globally) */
h1, h2, h3, h4 {
  color: var(--text-strong);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  font-synthesis: none;
}

/* Headings use --text-strong globally; restore contrast on blue CTA banners */
.cta-band h1,
.cta-band h2,
.cta-band h3 {
  color: #fff;
}

.cta-band .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: #fff;
}

.cta-band .btn-ghost:focus-visible {
  outline-color: #fff;
}
/*  Icon system                                                 */
/* ============================================================ */
.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.2s ease;
}

.icon-bubble,
.integration-badge,
.leader-avatar,
.store-badge__mark {
  line-height: 0;
}

.icon-bubble > *,
.integration-badge > *,
.leader-avatar > svg,
.store-badge__mark > svg {
  display: block;
  vertical-align: middle;
  flex-shrink: 0;
  margin: 0;
}

.icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.85rem;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease, color 0.25s ease;
}

.icon-bubble .icon,
.icon-bubble > svg {
  width: 1.4rem;
  height: 1.4rem;
}

.card.is-interactive:hover .icon-bubble,
.audience-card:hover .icon-bubble,
.card:hover .icon-bubble,
.feature-card:hover .icon-bubble {
  transform: translateY(-2px) scale(1.04);
}

/* Eyebrow icon row */
.eyebrow.has-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.eyebrow.has-icon .icon {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 2;
}

/* Buttons with icons */
.btn .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .icon {
  transform: translateX(2px);
}

[dir="rtl"] .btn:hover .icon {
  transform: translateX(-2px);
}

.btn.btn-back:hover .icon {
  transform: translateX(-2px);
}

[dir="rtl"] .btn.btn-back:hover .icon {
  transform: translateX(2px);
}

/* Icon list (replaces dot bullets) */
.list-features.list-iconed {
  display: grid;
  gap: 0.4rem;
}

.list-features.list-iconed li {
  padding: 0.1rem 0 0.1rem 1.85rem;
  position: relative;
  color: var(--muted);
}

.list-features.list-iconed li::before {
  content: none;
}

.list-features.list-iconed li .icon {
  position: absolute;
  inset-inline-start: 0;
  top: 0.45rem;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent);
  stroke-width: 2;
}

[dir="rtl"] .list-features.list-iconed li {
  padding: 0.1rem 1.85rem 0.1rem 0;
}

/* Audience card refinements with icons */
.audience-card .icon-bubble {
  margin-bottom: 1rem;
}

.audience-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.audience-card ul li {
  position: relative;
  padding-inline-start: 1.6rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.audience-card ul li svg.icon {
  position: absolute;
  inset-inline-start: 0;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  stroke-width: 2.25;
}

/* Stats row with icons */
.stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 0.7rem;
  align-items: center;
  min-width: 0;
}

.stat .icon-bubble {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  margin: 0;
  grid-row: span 2;
  align-self: center;
}

.stat .icon-bubble .icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2;
}

.stat strong {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-strong);
  font-weight: 700;
  min-width: 0;
  line-height: 1.2;
}

.stat span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

/* App panel bullet icons */
.app-panel__points li {
  padding-inline-start: 1.85rem;
}

.app-panel__points li::before {
  content: none;
}

.app-panel__points li svg.icon {
  position: absolute;
  inset-inline-start: 0;
  top: 0.18rem;
  width: 1.1rem;
  height: 1.1rem;
  color: #93c5fd;
  stroke-width: 2.25;
}

/* Footer column titles get an icon */
.footer-col h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-col h3 .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--footer-text);
  stroke-width: 2;
  opacity: 0.85;
}

/* Footer link icons subtly visible */
.footer-col li a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col li a .icon {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.55;
  stroke-width: 2;
  transition: opacity 0.18s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-col li a:hover .icon {
  opacity: 1;
  transform: translateX(2px);
}

[dir="rtl"] .footer-col li a:hover .icon {
  transform: translateX(-2px);
}

/* Footer registration definition list icons */
.footer-registration .reg-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 0.6rem;
  margin-top: 0.55rem;
}

.footer-registration .reg-row span {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  margin: 0 !important;
}

.footer-registration .reg-row .icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--footer-text);
  opacity: 0.7;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Article items in blog list */
.article-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0 1rem;
}

.article-item .icon-bubble {
  margin: 0;
  width: 2.4rem;
  height: 2.4rem;
}

.article-item time {
  grid-column: 2;
  grid-row: 1;
}

.article-item h3 {
  grid-column: 2;
  grid-row: 2;
}

.article-item .article-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.18s ease;
}

.article-item:hover .article-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

[dir="rtl"] .article-item:hover .article-arrow {
  transform: translateX(-4px);
}

/* Form labels and contact rows */
.form-grid label .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--muted);
  margin-inline-end: 0.35rem;
  stroke-width: 2;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-row:first-child {
  border-top: 0;
}

.contact-row .icon-bubble {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  flex-shrink: 0;
  align-self: flex-start;
}

.contact-row .icon-bubble .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-row strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
}

/* Card with optional icon header */
.card .card-icon-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
}

.card .card-icon-row .icon-bubble {
  margin: 0;
  width: 2.25rem;
  height: 2.25rem;
}

.card .card-icon-row .icon-bubble .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.card .card-icon-row h3 {
  margin: 0;
  font-size: 1.0625rem;
}

/* ============================================================ */
/*  Animations & micro-interactions                             */
/* ============================================================ */

/* Hero shape animations */
@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: hero-orb 18s ease-in-out infinite alternate;
  }
}

@keyframes hero-orb {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(-2%, 2%) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate(2%, -1%) scale(0.97);
    opacity: 0.9;
  }
}

/* Soft shimmer underline for navigation links */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0.7rem;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .nav-links a::after {
  transform-origin: right center;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 1080px) {
  .nav-links a::after {
    display: none;
  }
}

/* Reveal stagger refinement */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 140ms; }
.reveal[data-delay="3"] { transition-delay: 220ms; }
.reveal[data-delay="4"] { transition-delay: 300ms; }
.reveal[data-delay="5"] { transition-delay: 380ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Card subtle gradient sheen on hover */
.card.is-interactive::before,
.audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.0),
    rgba(96, 165, 250, 0.05) 60%,
    rgba(29, 78, 216, 0.08)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.card.is-interactive:hover::before,
.audience-card:hover::before {
  opacity: 1;
}

.card.is-interactive > *,
.audience-card > * {
  position: relative;
  z-index: 1;
}

/* Icon micro-interactions inside interactive cards */
.card.is-interactive:hover .icon-bubble .icon,
.audience-card:hover .icon-bubble .icon,
.feature-card:hover .icon-bubble .icon {
  animation: icon-bounce 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .card.is-interactive:hover .icon-bubble .icon,
  .audience-card:hover .icon-bubble .icon,
  .feature-card:hover .icon-bubble .icon {
    animation: none;
  }
}

@keyframes icon-bounce {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-3px) rotate(-4deg); }
  65% { transform: translateY(0) rotate(3deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* Soft pulse for the accent dot in app panel bullets */
@media (prefers-reduced-motion: no-preference) {
  .app-panel__points li svg.icon {
    animation: dot-pulse 4s ease-in-out infinite;
  }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; transform: translateY(-1px); }
}

/* Hero CTA glow */
.btn-primary {
  position: relative;
  isolation: isolate;
  box-shadow: 0 10px 30px -16px rgba(29, 78, 216, 0.55);
}

[data-theme="dark"] .btn-primary {
  box-shadow: 0 10px 30px -16px rgba(96, 165, 250, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -18px rgba(29, 78, 216, 0.6);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 18px 36px -18px rgba(96, 165, 250, 0.75);
}

/* Theme toggle micro animation */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
}

.theme-toggle:hover .icon-sun,
.theme-toggle:hover .icon-moon {
  transform: rotate(15deg);
}

/* ============================================================ */
/*  Legal pages — professional structure                        */
/* ============================================================ */
.legal-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.legal-meta strong {
  color: var(--text-strong);
  font-weight: 600;
}

.legal-meta .meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
  display: inline-block;
}

.legal-meta .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--accent);
  stroke-width: 2;
}

.legal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

[data-theme="dark"] .legal-status {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.legal-status .pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}

@media (prefers-reduced-motion: no-preference) {
  .legal-status .pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    animation: status-pulse 1.8s ease-out infinite;
  }
}

@keyframes status-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.legal-notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
  border-radius: 0 12px 12px 0;
}

[dir="rtl"] .legal-notice {
  border-left: 0;
  border-right: 4px solid var(--accent);
  border-radius: 12px 0 0 12px;
}

.legal-notice .icon-bubble {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
}

.legal-notice .icon-bubble .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.legal-notice strong {
  color: var(--text-strong);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0 2rem;
  box-shadow: var(--shadow-sm);
}

.legal-toc summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-strong);
  list-style: none;
  user-select: none;
}

.legal-toc summary::-webkit-details-marker {
  display: none;
}

.legal-toc summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-inline-start: auto;
  transition: transform 0.2s ease;
}

.legal-toc[open] summary::after {
  transform: rotate(-135deg);
}

.legal-toc summary .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  stroke-width: 2;
}

.legal-toc ol {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc-item;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1rem;
}

@media (min-width: 720px) {
  .legal-toc ol {
    grid-template-columns: repeat(2, 1fr);
  }
}

.legal-toc ol li {
  counter-increment: toc-item;
  font-size: 0.875rem;
}

.legal-toc ol li a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.legal-toc ol li a::before {
  content: counter(toc-item, decimal-leading-zero);
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo,
    Consolas, monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.legal-toc ol li a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.legal-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--muted);
}

.legal-callout strong {
  color: var(--text-strong);
}

.legal-callout--info {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.32);
}

.legal-callout--warn {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.34);
}

.legal-callout--ok {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.34);
}

.legal-callout .icon-bubble {
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
}

.legal-callout--info .icon-bubble {
  background: rgba(96, 165, 250, 0.18);
  color: #1d4ed8;
}

.legal-callout--warn .icon-bubble {
  background: rgba(234, 179, 8, 0.2);
  color: #92400e;
}

.legal-callout--ok .icon-bubble {
  background: rgba(34, 197, 94, 0.2);
  color: #166534;
}

[data-theme="dark"] .legal-callout--info .icon-bubble { color: #93c5fd; }
[data-theme="dark"] .legal-callout--warn .icon-bubble { color: #facc15; }
[data-theme="dark"] .legal-callout--ok .icon-bubble { color: #4ade80; }

.legal-callout .icon-bubble .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.prose .legal-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
}

.prose .legal-section-title .legal-section-num {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo,
    Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

/* Definition list inside legal */
.prose .legal-definitions {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.prose .legal-definitions li {
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose .legal-definitions li strong {
  color: var(--text-strong);
}

/* Back-to-top floating link inside legal */
.legal-back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-back-top:hover {
  color: var(--accent);
}

.legal-back-top .icon {
  width: 0.85rem;
  height: 0.85rem;
}

/* ============================================================ */
/*  Showcase page                                               */
/* ============================================================ */
.showcase-hero {
  background: linear-gradient(180deg, var(--hero-grad-1) 0%, var(--hero-grad-2) 70%);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.showcase-hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.showcase-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .showcase-hero__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
}

.showcase-hero__inner--center {
  display: block;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.showcase-hero__inner--center .showcase-hero__metrics {
  margin-inline: auto;
}

.showcase-hero__inner--center .hero-actions {
  justify-content: center;
}

@media (min-width: 880px) {
  .showcase-hero__inner--center {
    grid-template-columns: 1fr;
  }
}

.showcase-hero__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.metric span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.app-stores--showcase {
  margin: 1rem 0 0;
}

@media (min-width: 720px) {
  .app-stores--showcase {
    grid-template-columns: repeat(3, minmax(0, 14rem));
    justify-content: center;
  }
}

/* Feature tabs & panels */
.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.feature-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.feature-tab .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.feature-tab:hover {
  color: var(--text-strong);
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .feature-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feature-tab.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), var(--shadow-sm);
}

[data-theme="dark"] .feature-tab.is-active {
  background: rgba(96, 165, 250, 0.15);
}

.feature-panel {
  display: none;
}

.feature-panel.is-active {
  display: block;
  animation: panel-fade 0.35s ease both;
}

@keyframes panel-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.feature-card {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.feature-card .list-features {
  margin-top: 1rem;
}

/* ============================================================ */
/*  Join MyPick band (Start Earn / Become a Partner / Recommend)*/
/* ============================================================ */
.join-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .join-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.join-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease, box-shadow 0.32s ease;
}

.join-card::before {
  content: "";
  position: absolute;
  inset: -50% -25% auto auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(closest-side, var(--join-glow, rgba(96, 165, 250, 0.32)), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.join-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.join-card:hover::before {
  opacity: 1;
}

.join-card > * {
  position: relative;
  z-index: 1;
}

.join-card .join-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--join-bg, var(--accent-soft));
  color: var(--join-color, var(--accent));
  margin-bottom: 0.25rem;
}

.join-card .join-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2;
}

.join-card .join-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--join-color, var(--accent));
  background: var(--join-bg, var(--accent-soft));
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  align-self: flex-start;
}

.join-card h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.join-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.join-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.join-card ul li {
  position: relative;
  padding-inline-start: 1.4rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.join-card ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.5rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--join-color, var(--accent));
  opacity: 0.8;
}

.join-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.join-card--earn {
  --join-bg: rgba(34, 197, 94, 0.14);
  --join-color: #15803d;
  --join-glow: rgba(34, 197, 94, 0.32);
}

[data-theme="dark"] .join-card--earn {
  --join-bg: rgba(34, 197, 94, 0.18);
  --join-color: #4ade80;
}

.join-card--earn .btn-primary {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 12px 28px -16px rgba(22, 163, 74, 0.55);
}

.join-card--earn .btn-primary:hover {
  background: linear-gradient(135deg, #15803d, #166534);
}

.join-card--partner {
  --join-bg: rgba(96, 165, 250, 0.16);
  --join-color: #1d4ed8;
  --join-glow: rgba(96, 165, 250, 0.32);
}

[data-theme="dark"] .join-card--partner {
  --join-bg: rgba(96, 165, 250, 0.22);
  --join-color: #93c5fd;
}

.join-card--recommend {
  --join-bg: rgba(249, 115, 22, 0.14);
  --join-color: #c2410c;
  --join-glow: rgba(249, 115, 22, 0.3);
}

[data-theme="dark"] .join-card--recommend {
  --join-bg: rgba(249, 115, 22, 0.2);
  --join-color: #fdba74;
}

.join-card--recommend .btn-primary {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: 0 12px 28px -16px rgba(234, 88, 12, 0.55);
}

.join-card--recommend .btn-primary:hover {
  background: linear-gradient(135deg, #c2410c, #9a3412);
}

/* ============================================================ */
/*  Leadership cards (verified roles, no names)                 */
/* ============================================================ */
.leadership-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .leadership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.leader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease, border-color 0.2s ease;
}

.leader-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.leader-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.0),
    rgba(96, 165, 250, 0.05) 60%,
    rgba(29, 78, 216, 0.07)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.leader-card:hover::before {
  opacity: 1;
}

.leader-card > * {
  position: relative;
  z-index: 1;
}

.leader-avatar {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), rgba(96, 165, 250, 0.05));
  color: var(--accent);
  align-self: flex-start;
  flex-shrink: 0;
}

.leader-avatar svg {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}

.leader-verified {
  position: absolute;
  bottom: -4px;
  inset-inline-end: -4px;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--surface);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--surface);
}

.leader-verified svg {
  width: 1.15rem;
  height: 1.15rem;
  color: #1d4ed8;
  fill: #1d4ed8;
}

[data-theme="dark"] .leader-verified svg {
  color: #60a5fa;
  fill: #60a5fa;
}

.leader-role {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
  line-height: 1.3;
}

.leader-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.leader-tag svg {
  width: 0.75rem;
  height: 0.75rem;
  display: block;
}

.leader-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

.leader-card .leader-meta {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.leader-card .leader-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.leader-card .leader-meta svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--accent);
}

[dir="rtl"] .leader-verified {
  inset-inline-end: auto;
  inset-inline-start: -4px;
}

/* MyPick repo / developer callouts */
.mypick-repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.repo-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s ease,
    transform 0.15s ease;
}

.repo-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.repo-link-card strong {
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
}

.repo-link-card span {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.42;
}

.branch-legend {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.branch-legend strong {
  color: var(--text-strong);
}

.branch-legend ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.branch-legend code {
  font-size: 0.8125rem;
}


