/* =========================================================
   Finance Register — Marketing Site Styles
   Sleek / premium / dark with glassy cards and accent glows
   ========================================================= */

:root {
  color-scheme: dark;

  /* Base palette */
  --bg-0: #05070c;
  --bg-1: #090d15;
  --bg-2: #0d1320;
  --bg-3: #111827;

  /* Surfaces */
  --panel: rgba(16, 22, 34, 0.72);
  --panel-strong: rgba(18, 24, 36, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.025);
  --panel-glow: rgba(79, 141, 255, 0.08);

  /* Lines & borders */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --line-accent: rgba(122, 215, 92, 0.35);

  /* Text */
  --text: #f4f7fc;
  --text-strong: #ffffff;
  --muted: rgba(235, 240, 248, 0.72);
  --muted-soft: rgba(235, 240, 248, 0.5);
  --muted-faint: rgba(235, 240, 248, 0.32);

  /* Brand / accents */
  --green: #7ad75c;
  --green-2: #52b85a;
  --green-glow: rgba(122, 215, 92, 0.28);
  --blue: #87bbff;
  --blue-strong: #4f8dff;
  --blue-glow: rgba(79, 141, 255, 0.32);
  --violet: #a78bfa;

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 80px rgba(79, 141, 255, 0.18);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;

  /* Layout */
  --max: 1180px;
  --pad-x: clamp(20px, 4vw, 44px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ----------  Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Display", "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 10% -5%, rgba(79, 141, 255, 0.22), transparent 60%),
    radial-gradient(800px 540px at 95% 5%, rgba(122, 215, 92, 0.14), transparent 60%),
    radial-gradient(1200px 900px at 50% 100%, rgba(167, 139, 250, 0.1), transparent 60%),
    linear-gradient(180deg, #060913 0%, #05070c 60%, #03050a 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
}

/* ----------  Layout ---------- */

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.section {
  position: relative;
  padding: clamp(36px, 6vw, 76px) 0;
}

.section-tight {
  padding: clamp(18px, 3vw, 40px) 0;
}

/* ----------  Header / nav ---------- */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  transition: transform 0.3s var(--ease);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #c8d8f0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-copy span {
  font-size: 0.75rem;
  color: var(--muted-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ----------  Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.24s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.24s var(--ease), background 0.24s var(--ease), color 0.24s var(--ease);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button-primary {
  color: #06180a;
  background: linear-gradient(180deg, #9ae884 0%, #7ad75c 55%, #5dbe48 100%);
  box-shadow:
    0 10px 24px var(--green-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 32px var(--green-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.button-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.button-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.86rem;
}

/* ----------  Typography ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  font-weight: 600;
  overflow: visible;
}

h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.045em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.6rem);
  line-height: 1.16;
}

h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.35;
}

h4 {
  font-size: 1rem;
  line-height: 1.3;
}

p,
li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79, 141, 255, 0.35);
  background: linear-gradient(180deg, rgba(79, 141, 255, 0.14), rgba(79, 141, 255, 0.04));
  color: #bcd3ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
}

.eyebrow-green {
  border-color: rgba(122, 215, 92, 0.38);
  background: linear-gradient(180deg, rgba(122, 215, 92, 0.14), rgba(122, 215, 92, 0.04));
  color: #c9efb6;
}

.eyebrow-green::before {
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

.text-gradient {
  display: inline-block;
  padding-bottom: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #dfe8f7 60%, #a9bcdc 120%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--blue);
  font-weight: 500;
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}

.text-link::after {
  content: "→";
  transition: transform 0.22s var(--ease);
}

.text-link:hover {
  color: #b7d3ff;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ----------  Cards ---------- */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

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

.card-soft {
  background: var(--panel-soft);
  box-shadow: var(--shadow-sm);
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(79, 141, 255, 0.5), rgba(122, 215, 92, 0.4) 60%, transparent 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

/* ----------  Hero (home) ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 60px);
  padding-bottom: clamp(24px, 4vw, 60px);
}

.hero-copy h1 {
  margin-bottom: 18px;
}

.hero-text {
  max-width: 520px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
}

.hero-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}

/* Visual frame */
.hero-visual {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    rgba(12, 18, 28, 0.8);
  border: 1px solid var(--line);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(79, 141, 255, 0.12);
  backdrop-filter: blur(20px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -80px -40px -40px -40px;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(79, 141, 255, 0.28), transparent 70%),
    radial-gradient(50% 50% at 70% 80%, rgba(122, 215, 92, 0.2), transparent 70%);
  filter: blur(40px);
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-2xl) - 12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.interface-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.interface-caption span {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: -0.01em;
}

/* Section headings */
.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.section-heading p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--muted);
}

.section-heading.align-left p {
  margin-inline: 0;
}

/* ----------  Feature grids ---------- */

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

.feature-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.feature-card .feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(79, 141, 255, 0.22), rgba(79, 141, 255, 0.02));
  border: 1px solid rgba(79, 141, 255, 0.25);
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(79, 141, 255, 0.18);
}

.feature-card .feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card.tone-green .feature-icon {
  background: linear-gradient(160deg, rgba(122, 215, 92, 0.26), rgba(122, 215, 92, 0.02));
  border-color: rgba(122, 215, 92, 0.3);
  color: var(--green);
  box-shadow: 0 10px 24px rgba(122, 215, 92, 0.18);
}

.feature-card.tone-violet .feature-icon {
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.26), rgba(167, 139, 250, 0.02));
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--violet);
  box-shadow: 0 10px 24px rgba(167, 139, 250, 0.18);
}

.feature-card h3 {
  font-size: 1.1rem;
}

.feature-card p {
  margin: 4px 0 0;
}

/* Spotlight / split section */

.split-section .card,
.spotlight-card,
.product-flow-card {
  padding: clamp(24px, 3vw, 36px);
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.preview-stack {
  display: grid;
  gap: 12px;
}

.mini-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.mini-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* ----------  App preview / screenshots ---------- */

.app-preview-section .preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: center;
}

.screenshot-card {
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(12, 18, 28, 0.8);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(79, 141, 255, 0.1);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 6px);
}

.trust-card {
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ----------  Trust / data notes ---------- */

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

.trust-note {
  padding: clamp(22px, 3vw, 30px);
}

.trust-note h3 {
  margin-top: 4px;
  font-size: 1.25rem;
}

/* ----------  Appearance / mode section ---------- */

.mode-grid,
.mode-summary {
  display: grid;
  gap: 16px;
}

.mode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.mode-card {
  padding: 20px;
  overflow: hidden;
}

.mode-card-dark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(10, 15, 24, 0.8);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(79, 141, 255, 0.12);
}

.mode-card-light {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 238, 247, 0.94));
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(122, 215, 92, 0.1);
}

.mode-card-light h3,
.mode-card-light strong {
  color: #111827;
}

.mode-card-light p,
.mode-card-light .mode-copy {
  color: rgba(17, 24, 39, 0.72);
}

.mode-card-light .eyebrow {
  border-color: rgba(17, 24, 39, 0.18);
  background: rgba(17, 24, 39, 0.06);
  color: #1f2a3b;
}

.mode-card-light .eyebrow::before {
  background: #4f8dff;
}

.mode-card-light .mode-pill {
  color: rgba(17, 24, 39, 0.72);
  background: rgba(17, 24, 39, 0.05);
  border-color: rgba(17, 24, 39, 0.12);
}

.mode-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.mode-media-stack {
  display: grid;
  gap: 10px;
}

.mode-figure {
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mode-figure-button {
  width: 100%;
  cursor: zoom-in;
  appearance: none;
  text-align: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.mode-figure-button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.mode-figure-button:focus-visible {
  outline: 2px solid var(--blue-strong);
  outline-offset: 3px;
}

.mode-card-light .mode-figure {
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(17, 24, 39, 0.04);
}

.mode-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.mode-copy {
  margin: 14px 0 0;
  color: var(--muted);
}

.mode-summary-card {
  padding: 20px;
}

/* ----------  View gallery (4-up thumbnails) ---------- */

.view-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: clamp(22px, 3vw, 30px);
}

.view-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(12, 17, 27, 0.72);
  color: var(--text);
  cursor: zoom-in;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.view-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.view-thumb:focus-visible {
  outline: 2px solid var(--blue-strong);
  outline-offset: 3px;
}

.view-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.view-thumb span {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 500;
}

/* ----------  Phone device frame & gallery ---------- */

.phone-frame {
  position: relative;
  display: inline-block;
  padding: 12px;
  border-radius: 54px;
  background: linear-gradient(180deg, #1a2030 0%, #090d14 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(79, 141, 255, 0.18);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 42px;
  object-fit: cover;
}

.phone-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(16px, 4vw, 36px) 0 clamp(20px, 3vw, 36px);
}

.phone-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.phone-hero-visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 141, 255, 0.35), transparent 70%);
  filter: blur(24px);
  z-index: 0;
}

.phone-hero-visual .phone-frame {
  position: relative;
  z-index: 1;
  max-width: 280px;
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  justify-items: center;
}

.phone-gallery .phone-frame {
  max-width: 220px;
  width: 100%;
}

.phone-gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.phone-gallery figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ----------  Features page ---------- */

.feature-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px) 0 clamp(16px, 2vw, 24px);
}

.feature-hero-panel {
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(12, 18, 28, 0.82);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(79, 141, 255, 0.14);
}

.feature-hero-panel img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 6px);
}

.feature-hero-text {
  max-width: 620px;
}

.feature-summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 8px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.feature-summary-card {
  padding: 22px 24px;
  min-height: 100%;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.feature-summary-card:last-child {
  border-right: 0;
}

.feature-summary-card:hover {
  transform: none;
  border-right-color: var(--line);
  box-shadow: none;
}

.feature-summary-card strong {
  display: block;
  max-width: 28ch;
  margin-top: 6px;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

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

.feature-category-card {
  padding: clamp(22px, 3vw, 30px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-category-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-category-head .feature-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(79, 141, 255, 0.22), rgba(79, 141, 255, 0.02));
  border: 1px solid rgba(79, 141, 255, 0.28);
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(79, 141, 255, 0.16);
}

.feature-category-head .feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-category-card.tone-green .feature-icon {
  background: linear-gradient(160deg, rgba(122, 215, 92, 0.24), rgba(122, 215, 92, 0.02));
  border-color: rgba(122, 215, 92, 0.3);
  color: var(--green);
  box-shadow: 0 10px 24px rgba(122, 215, 92, 0.16);
}

.feature-category-card.tone-violet .feature-icon {
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.24), rgba(167, 139, 250, 0.02));
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--violet);
  box-shadow: 0 10px 24px rgba(167, 139, 250, 0.16);
}

.feature-category-head .eyebrow {
  margin-bottom: 8px;
}

.feature-category-head h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  letter-spacing: -0.02em;
}

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

.feature-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  line-height: 1.55;
  font-size: 0.95rem;
  color: var(--muted);
}

.feature-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--green) 0 32%, transparent 33% 100%),
    rgba(122, 215, 92, 0.16);
  border: 1px solid rgba(122, 215, 92, 0.4);
}

.clean-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.clean-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

.feature-close-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(79, 141, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(12, 18, 28, 0.82);
  box-shadow: var(--shadow-lg);
}

/* ----------  Support ---------- */

.support-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(122, 215, 92, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(12, 18, 28, 0.9);
}

.support-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.support-copy p:last-child {
  max-width: 580px;
}

.support-link-inline {
  color: #cfe2ff;
  font-weight: 600;
  transition: color 0.22s var(--ease);
}

.support-link-inline:hover {
  color: #e7efff;
}

.support-note {
  color: var(--muted-soft);
  margin-top: 0;
  font-size: 0.84rem;
}

/* ----------  iCloud Sync ---------- */

.sync-section {
  padding-top: clamp(20px, 3vw, 40px);
}

.sync-card {
  position: relative;
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  gap: clamp(28px, 3vw, 44px);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(79, 141, 255, 0.18), transparent 70%),
    radial-gradient(60% 70% at 100% 100%, rgba(167, 139, 250, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(10, 14, 22, 0.8);
  overflow: hidden;
}

.sync-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.sync-copy h2 {
  margin: 8px 0 14px;
}

.sync-copy p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
}

.sync-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(14px, 2vw, 22px);
}

.sync-tile {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(12, 17, 27, 0.72);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.sync-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.sync-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 14px;
  color: var(--blue);
  background:
    radial-gradient(70% 80% at 30% 20%, rgba(79, 141, 255, 0.35), transparent 70%),
    rgba(79, 141, 255, 0.12);
  border: 1px solid rgba(79, 141, 255, 0.35);
  box-shadow: 0 10px 28px rgba(79, 141, 255, 0.22);
}

.sync-icon svg {
  width: 26px;
  height: 26px;
}

.sync-tile strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-strong);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.sync-tile p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.sync-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  gap: 10px;
}

.sync-bridge-line {
  flex: 1;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(90deg, transparent, rgba(79, 141, 255, 0.55), rgba(167, 139, 250, 0.55), transparent);
}

.sync-bridge-cloud {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-strong);
  background:
    radial-gradient(70% 80% at 30% 20%, rgba(79, 141, 255, 0.35), transparent 70%),
    rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(79, 141, 255, 0.45);
  box-shadow: 0 14px 34px rgba(79, 141, 255, 0.25);
}

.sync-bridge-cloud svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.sync-bridge-cloud em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------  Ownership / Pricing ---------- */

.ownership-section {
  padding-top: clamp(20px, 3vw, 40px);
}

.ownership-card {
  position: relative;
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  gap: clamp(28px, 3vw, 44px);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(60% 70% at 20% 0%, rgba(122, 215, 92, 0.14), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, rgba(79, 141, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(10, 14, 22, 0.8);
  overflow: hidden;
}

.ownership-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.ownership-copy h2 {
  margin: 8px 0 14px;
}

.ownership-copy p {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 auto;
}

.ownership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

.ownership-tile {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(12, 17, 27, 0.7);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.ownership-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.ownership-tile .feature-icon {
  margin-bottom: 14px;
}

.ownership-tile strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-strong);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.ownership-tile p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* ----------  CTA ---------- */

.cta-section {
  padding-bottom: clamp(30px, 4vw, 48px);
}

.cta-card {
  position: relative;
  padding: clamp(32px, 4vw, 52px);
  text-align: center;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(79, 141, 255, 0.28), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(122, 215, 92, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(10, 14, 22, 0.8);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(79, 141, 255, 0.18);
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(79, 141, 255, 0.6), rgba(122, 215, 92, 0.5) 60%, transparent 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
}

.cta-card h2 {
  margin-bottom: 12px;
}

.cta-card p {
  max-width: 58ch;
  margin: 0 auto;
}

.cta-card .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

/* ----------  Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 24px;
  padding: 32px 6px 10px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  align-items: start;
}

.site-footer strong {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text-strong);
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--muted-soft);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.22s var(--ease);
}

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

.footer-contact {
  justify-self: end;
  text-align: right;
}

.footer-contact a {
  color: var(--blue);
}

/* ----------  Lightbox ---------- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.lightbox.is-open {
  pointer-events: auto;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(16px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 1400px);
  max-height: 90vh;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(12, 18, 28, 0.92);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  transform: scale(0.97);
  transition: transform 0.25s var(--ease);
}

.lightbox.is-open .lightbox-dialog {
  transform: scale(1);
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(90vh - 28px);
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.8);
  color: #f5f7fb;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.lightbox-close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(14, 20, 30, 0.9);
}

.lightbox-close span {
  font-size: 1.35rem;
  line-height: 1;
}

/* ----------  Responsive ---------- */

@media (max-width: 960px) {
  .site-shell {
    padding-top: 10px;
  }

  .site-header {
    padding: 10px 12px 10px 14px;
    border-radius: 20px;
    gap: 10px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 12, 20, 0.94);
    backdrop-filter: blur(22px) saturate(140%);
    box-shadow: var(--shadow-lg);
  }

  .site-header[data-nav-open="true"] .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .button-store {
    display: none;
  }

  .site-header[data-nav-open="true"] .site-nav .button-store {
    display: inline-flex;
    margin-top: 6px;
  }

  .hero,
  .feature-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-visual {
    order: -1;
  }

  .spotlight-card,
  .support-strip,
  .app-preview-section .preview-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .feature-summary-band,
  .feature-category-grid,
  .trust-grid,
  .mode-grid,
  .mode-summary,
  .ownership-grid {
    grid-template-columns: 1fr;
  }

  .sync-diagram {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sync-bridge {
    flex-direction: row;
    min-width: 0;
    padding: 4px 0;
  }

  .sync-bridge-line {
    min-width: 40px;
  }

  .view-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .phone-hero-visual {
    order: -1;
    min-height: 420px;
  }

  .phone-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-summary-band {
    padding: 4px;
  }

  .feature-summary-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-summary-card:last-child {
    border-bottom: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-contact {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 16px, var(--max));
  }

  .section {
    padding: 32px 0;
  }

  .hero-actions .button,
  .cta-card .button {
    width: 100%;
  }

  .hero-visual {
    padding: 10px;
    border-radius: 20px;
  }

  .hero-visual img {
    border-radius: 12px;
  }

  .brand-copy span {
    display: none;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(2rem, 8.8vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.45rem, 6.2vw, 2rem);
  }

  .feature-card,
  .trust-note,
  .feature-category-card,
  .mode-card,
  .mini-card {
    padding: 20px;
  }

  .cta-card {
    padding: 28px 22px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-dialog {
    width: min(98vw, 1400px);
    padding: 10px;
  }

  .phone-frame {
    padding: 8px;
    border-radius: 38px;
  }

  .phone-frame img {
    border-radius: 28px;
  }

  .phone-gallery .phone-frame {
    max-width: 200px;
  }
}

/* ----------  Motion / utility ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

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

/* ----------  Language selector ---------- */

.lang-selector {
  position: relative;
}

#lang-selector-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease);
  white-space: nowrap;
}

#lang-selector-trigger:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

#lang-selector-trigger svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.22s var(--ease);
}

.lang-selector[data-open="true"] #lang-selector-trigger {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.lang-selector[data-open="true"] #lang-selector-trigger svg.chevron {
  transform: rotate(180deg);
}

#lang-selector-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 17, 28, 0.96);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

#lang-selector-dropdown[hidden] {
  display: none;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 450;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

.lang-option.is-active {
  color: var(--green);
  font-weight: 600;
}

.lang-option.is-active::before {
  content: "✓ ";
  font-size: 0.75em;
}

.lang-option-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--line);
}

/* ----------  Screenshot fallback note ---------- */

.screenshot-fallback-note {
  display: block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 0.8rem;
  text-align: center;
}

.screenshot-fallback-note[hidden] {
  display: none;
}

/* ----------  Image protection deterrents ---------- */

img,
picture,
figure {
  -webkit-user-drag: none;
  user-select: none;
}

img[data-image-protected="true"] {
  -webkit-touch-callout: none;
}

/* Mobile: language selector in nav */

@media (max-width: 820px) {
  .site-nav .lang-selector {
    width: 100%;
    padding: 8px 0 0;
    margin-top: 8px;
    border-top: 1px solid var(--line);
  }

  .site-nav #lang-selector-trigger {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    font-size: 1rem;
  }

  .site-nav #lang-selector-trigger svg:first-child {
    width: 22px;
    height: 22px;
  }

  .site-nav #lang-selector-trigger svg.chevron {
    width: 18px;
    height: 18px;
    margin-left: auto;
  }

  .site-nav #lang-selector-dropdown {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 8px;
    padding: 6px;
    min-width: unset;
    max-height: none;
    overflow: visible;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav #lang-selector-dropdown[hidden] {
    display: none;
  }

  .site-nav .lang-option {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.98rem;
    color: var(--muted);
  }

  .site-nav .lang-option:hover,
  .site-nav .lang-option:focus-visible,
  .site-nav .lang-option.is-active {
    background: rgba(122, 215, 92, 0.12);
    color: var(--text);
  }
}
