/* ============================================
   BASIX WEBSITE — Global Styles
   ============================================ */

:root {
  /* Dark mode — matches app dark palette */
  --color-bg:         #111114;
  --color-surface:    #1d1d23;
  --color-surface-2:  #282830;
  --color-border:     #2e2e38;
  --color-accent:     #4f6ef7;
  --color-accent-2:   #7c3aed;
  --color-text:       #f0f0f5;
  --color-text-muted: #a0a0b8;
  --color-text-dim:   #8888a0;
  --color-white:      #ffffff;
  --gradient-accent:  linear-gradient(135deg, #4f6ef7, #7c3aed);
  --gradient-surface: linear-gradient(180deg, #1d1d23 0%, #111114 100%);
  --navbar-bg:        rgba(17, 17, 20, 0.92);
  --orb-opacity:      0.12;
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --radius-xl:        32px;
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:        0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:        0 20px 60px rgba(0,0,0,0.5);
  --shadow-accent:    0 8px 32px rgba(79,110,247,0.25);
  --font-main:        'Inter', system-ui, -apple-system, sans-serif;
  --transition:       all 0.2s ease;
}

[data-theme="light"] {
  /* Light mode — matches app light palette */
  --color-bg:         #eef0f5;
  --color-surface:    #ffffff;
  --color-surface-2:  #f0f0f5;
  --color-border:     #e0e0ee;
  --color-text:       #1a1a2e;
  --color-text-muted: #555577;
  --color-text-dim:   #8888aa;
  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #eef0f5 100%);
  --navbar-bg:        rgba(238, 240, 245, 0.92);
  --orb-opacity:      0.07;
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:        0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:        0 20px 60px rgba(0,0,0,0.14);
  --shadow-accent:    0 8px 32px rgba(79,110,247,0.18);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.page-download {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.download-hero {
  flex: 1;
}

/* RTL support */
body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.display-xl {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.display-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.display-md {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.text-lg   { font-size: 1.125rem; line-height: 1.7; }
.text-md   { font-size: 1rem;     line-height: 1.7; }
.text-sm   { font-size: 0.875rem; line-height: 1.6; }
.text-xs   { font-size: 0.75rem;  line-height: 1.5; }

.text-muted  { color: var(--color-text-muted); }
.text-dim    { color: var(--color-text-dim); }
.text-accent { color: var(--color-accent); }

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}

.navbar:has(.navbar-nav.open) {
  backdrop-filter: none;
  transition: backdrop-filter 0s;
}

.navbar-inner {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  flex-shrink: 0;
}

.navbar-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  content: url('../assets/logo-dark.png');
}

[data-theme="light"] .navbar-logo img {
  content: url('../assets/logo.png');
}

/* Desktop: dropdown below navbar (hamburger toggles at all widths) */
.navbar-nav {
  display: flex;
  list-style: none;
  flex-direction: column;
  position: fixed;
  top: calc(var(--navbar-height, 68px) + 6px);
  width: 200px;
  gap: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 8px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.navbar-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.navbar-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  display: block;
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Overlay — transparent on desktop (click-outside only), dimmed on mobile */
.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  cursor: pointer;
}

.nav-drawer-overlay.open { display: block; }

@keyframes navFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 7px;
  order: -1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-hamburger:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.lang-toggle svg {
  width: 14px;
  height: 14px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
}

/* Dark mode: show sun icon (switch to light) */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }

/* Light mode: show moon icon (switch to dark) */
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(79,110,247,0.35);
}

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-disabled {
  background: var(--color-surface-2);
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--orb-opacity);
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--color-accent);
  top: -100px;
  left: -100px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--color-accent-2);
  top: 100px;
  right: -100px;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.25);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* Hero product screenshot */
.hero-shot {
  position: relative;
  max-width: 1000px;
  margin: 64px auto 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}

.hero-shot img { width: 100%; height: auto; display: block; }

/* ============================================
   TOOLS GRID
   ============================================ */

.tools-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.2);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition);
}

.tool-card:hover {
  border-color: rgba(79, 110, 247, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tool-card:hover::before {
  opacity: 0.04;
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.tool-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Name + optional status badge (e.g. "Coming soon") */
.tool-name {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.badge-soon {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
  line-height: 1.4;
}

.tool-card h3 {
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============================================
   WHY SECTION
   ============================================ */

.why-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}

.why-item {
  text-align: center;
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.why-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   TRUST / SECURITY
   ============================================ */

.trust-section {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.trust-lead .section-tag { margin-bottom: 16px; }

.trust-lead h2 { margin-bottom: 16px; }

.trust-lead p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 440px;
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.trust-list li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.trust-list li:hover { border-color: rgba(79, 110, 247, 0.4); }

.trust-list .trust-ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.trust-list h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.trust-list p {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ============================================
   PRICING
   ============================================ */

.pricing-section {}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}


.pricing-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.2);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pricing-price {
  margin: 24px 0;
}

/* Monthly / annual segmented toggle */
.price-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 20px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 100px;
}

.price-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.price-toggle button.active {
  background: var(--gradient-accent);
  color: var(--color-white);
}

.price-save {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(22, 163, 74, 0.15);
  color: #16a34a;
}

.price-toggle button.active .price-save {
  background: rgba(255, 255, 255, 0.22);
  color: var(--color-white);
}

.pricing-subnote {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  margin-top: 8px;
  min-height: 1.2em;
}

/* Accepted payment methods line */
.pay-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.pay-methods svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.pay-methods .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-dim);
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1;
}

.pricing-amount sup {
  font-size: 1.5rem;
  vertical-align: top;
  margin-top: 8px;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.pricing-features {
  list-style: none;
  margin: 32px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pricing-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(79, 110, 247, 0.15);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-trial {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.06;
  filter: blur(80px);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.cta-card h2 {
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  color: var(--color-text-muted);
  margin-bottom: 36px;
  font-size: 1.1rem;
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 36px 0 18px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 10px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  content: url('../assets/logo-dark.png');
}

[data-theme="light"] .footer-brand img {
  content: url('../assets/logo.png');
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 300px;
  margin-bottom: 10px;
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a,
.footer-email {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-col a:hover,
.footer-email:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--color-accent);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   LEGAL PAGES (privacy / terms)
   ============================================ */

.legal {
  padding: 140px 0 100px;
}

.legal-head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  transition: var(--transition);
}

.legal-back:hover { color: var(--color-accent); }

.legal h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--color-text-dim);
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.legal-section { margin-bottom: 22px; }

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--color-text);
}

.legal-section p {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ============================================
   MANUAL PAGE
   ============================================ */

.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.manual-featured {
  margin-bottom: 16px;
}

.manual-featured .manual-card {
  max-width: 400px;
  margin: 0 auto;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 100px;
}

.manual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: var(--transition);
}

.manual-card:hover {
  border-color: rgba(79, 110, 247, 0.4);
  transform: translateY(-2px);
}

.manual-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.manual-card-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.manual-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.manual-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.manual-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.manual-features li {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.manual-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: rgba(79, 110, 247, 0.65);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
}

[dir="rtl"] .manual-features li {
  padding-left: 0;
  padding-right: 16px;
}

[dir="rtl"] .manual-features li::before {
  left: auto;
  right: 0;
}

.manual-card .coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-dim);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
}

/* ============================================
   DOCS / TWO-PANE MANUAL
   ============================================ */

/* Manual page reads as a mostly-empty void on the site's near-black bg — lighten it a touch in dark mode */
body.page-manual { background: #18181f; }
[data-theme="light"] body.page-manual { background: var(--color-bg); }

.docs { padding: 40px 0 100px; }

.docs-layout {
  display: grid;
  grid-template-columns: 244px 1fr;
  gap: 44px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: calc(var(--navbar-height, 68px) + 20px);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.docs-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: none;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.docs-nav button .ico { font-size: 1.05rem; flex-shrink: 0; }

.docs-nav button:hover { background: var(--color-surface); color: var(--color-text); }

.docs-nav button.active {
  background: var(--color-surface);
  border-color: rgba(79, 110, 247, 0.4);
  color: var(--color-text);
}

[dir="rtl"] .docs-nav button { text-align: right; }

.docs-panel { display: none; }

.docs-panel.active { display: block; animation: navFadeIn 0.25s ease; }

.docs-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.docs-panel-head .ico { font-size: 1.7rem; flex-shrink: 0; }

.docs-panel-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.docs-lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 640px;
}

.docs-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin-bottom: 30px;
  max-width: 640px;
}

.docs-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.docs-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
}

[dir="rtl"] .docs-features li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .docs-features li::before { left: auto; right: 0; }

/* Screenshot slot — placeholder now, real <img> later */
.docs-shot {
  position: relative;
  max-width: 860px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--color-text-dim);
}

.docs-shot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0.05;
}

.docs-shot .shot-ico {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(79, 110, 247, 0.12);
  border: 1px solid rgba(79, 110, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.docs-shot .shot-cap { position: relative; font-size: 0.85rem; font-weight: 500; }

/* Filled state — a real screenshot: natural aspect, framed, no placeholder chrome */
.docs-shot.filled {
  aspect-ratio: auto;
  max-width: 940px;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: block;
}
.docs-shot.filled::before { display: none; }
.docs-shot img { width: 100%; height: auto; display: block; }

/* ============================================
   DOWNLOAD PAGE
   ============================================ */

.download-hero {
  padding: 160px 0 100px;
  text-align: center;
}

.download-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}


.download-icon {
  margin-bottom: 24px;
  text-align: center;
}

.download-icon img {
  display: block;
  margin: 0 auto;
  width: 72px;
  height: 72px;
  object-fit: contain;
  content: url('../assets/logo-dark.png');
}

[data-theme="light"] .download-icon img {
  content: url('../assets/logo.png');
}

.download-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.2);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.download-card h2 {
  margin-bottom: 12px;
}

.download-card p {
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.download-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

.system-reqs {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.system-reqs h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.req-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.req-list li span:first-child {
  font-size: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  section { padding: 64px 0; }

  /* Mobile: side drawer */
  .navbar-nav {
    top: var(--navbar-height, 68px);
    left: 0 !important;
    right: auto !important;
    width: min(240px, 80vw);
    border-radius: 0;
    border-start-end-radius: var(--radius-md);
    border-end-end-radius: var(--radius-md);
    border: none;
    border-inline-end: 1px solid var(--color-border);
    padding: 16px 0;
    gap: 2px;
    opacity: 1;
    visibility: visible;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  body[dir="rtl"] .navbar-nav {
    left: auto !important;
    right: 0 !important;
    border-inline-end: none;
    border-inline-start: 1px solid var(--color-border);
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    border-start-start-radius: var(--radius-md);
    border-end-start-radius: var(--radius-md);
    transform: translateX(100%);
  }

  body[dir="rtl"] .navbar-nav.open {
    transform: translateX(0);
  }

  .navbar-nav a {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
  }

  .nav-drawer-overlay.open {
    background: rgba(0, 0, 0, 0.45);
    animation: navFadeIn 0.2s ease;
  }

  .hero { padding: 140px 0 80px; }

  .tools-grid { grid-template-columns: 1fr 1fr 1fr; }

  .manual-grid { grid-template-columns: 1fr 1fr; }

  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Docs on mobile: drop the tabs — stack every tool as a scrollable section */
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-nav { display: none; }
  .docs-panel {
    display: block;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
  }
  .docs-panel:last-child { border-bottom: none; margin-bottom: 0; }
  .docs-features { grid-template-columns: 1fr; }

  .pricing-card { padding: 32px 24px; }

  .cta-card { padding: 48px 24px; }

  .trust-inner { grid-template-columns: 1fr; gap: 32px; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }

  .footer-inner { flex-direction: column; align-items: center; gap: 4px; }

  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 12px; }
}

@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr 1fr; }

  .manual-grid { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }

  .btn-lg { width: 100%; }

  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   LANGUAGE TRANSITION
   ============================================ */

[data-en], [data-he] {
  transition: opacity 0.15s ease;
}

.lang-hidden {
  display: none !important;
}
