:root {
  --bg: #fcfcfd;
  --surface: rgba(255,255,255,0.9);
  --surface-alt: #f4f6fb;
  --text: #121826;
  --muted: #60687a;
  --line: #e7ebf3;
  --accent: #111827;
  --accent-soft: #eef2ff;
  --highlight: #dbe4ff;
  --shadow-lg: 0 18px 60px rgba(17, 24, 39, 0.10);
  --shadow-xl: 0 32px 80px rgba(17, 24, 39, 0.14);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(219, 228, 255, 0.58) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(circle at 86% 10%, rgba(238, 242, 255, 0.72) 0%, rgba(255,255,255,0) 52%),
    radial-gradient(circle at top, #ffffff 0%, #f9fbff 50%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.7;
}

html[dir="rtl"] body {
  font-family: 'Noto Sans Hebrew', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

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

.section { padding: 5.5rem 0; }
.card {
  background: var(--surface);
  border: 1px solid rgba(231, 235, 243, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 46px rgba(17, 24, 39, 0.06);
}
.soft-card { padding: 1.5rem; }
.shadow-xl { box-shadow: var(--shadow-xl); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(252, 252, 253, 0.82);
  border-bottom: 1px solid rgba(231, 235, 243, 0.8);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-wordmark {
  height: 1.55rem;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.header-link {
  color: var(--muted);
  font-weight: 600;
}

.header-link:hover,
.header-link.strong {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.72rem 1rem; }
.btn-dark {
  background: linear-gradient(135deg, #111827 0%, #1d2638 100%);
  color: #fff;
  box-shadow: 0 12px 25px rgba(17, 24, 39, 0.16);
}
.btn-light {
  background: rgba(255,255,255,0.82);
  color: var(--text);
  border-color: var(--line);
}

.hero { padding-top: 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-visual {
  justify-self: center;
  max-width: 100%;
}

.hero-visual .browser-card {
  max-width: 100%;
}

.eyebrow,
.section-tag,
.dark-tag,
.side-label,
.intro-kicker,
.compare-label,
.visual-label {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.eyebrow,
.section-tag,
.side-label,
.intro-kicker,
.compare-label,
.visual-label {
  background: var(--accent-soft);
  color: #334155;
}

.dark-tag {
  background: rgba(255,255,255,0.12);
  color: #e5ecff;
}

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  margin-top: 1rem;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 1rem;
}

h3 {
  font-size: 1.22rem;
}

.lead,
.article-content p,
.cta-card p,
.footer-copy,
.mock-caption,
.visual-copy p,
.tip-item p,
.mini-card p,
.compare-card li,
.toc a {
  color: var(--muted);
}

.hero-copy .lead {
  margin: 1.25rem 0 0;
  max-width: 58ch;
  font-size: 1.08rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.hero-image {
  border-radius: 16px;
  border: 1px solid rgba(231, 235, 243, 0.95);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 0;
}

.browser-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(231, 235, 243, 0.95);
  box-shadow: var(--shadow-xl);
  border-radius: 16px;
  padding: 4px;
  overflow: hidden;
}

.mobile-image {
  border-radius: 12px;
  border: 1px solid rgba(231, 235, 243, 0.95);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.browser-topbar {
  display: flex;
  gap: 0.42rem;
  padding-bottom: 1rem;
}
.browser-topbar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #d7dde9;
}

.hero-mock {
  border-radius: 20px;
  border: 1px solid rgba(231, 235, 243, 0.95);
  padding: 1rem;
  background: linear-gradient(160deg, #ffffff, #f5f8fe);
}

.mock-toolbar {
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(90deg, #edf1f8, #e6ebf5);
  margin-bottom: 1rem;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.mock-grid div,
.phone-screen {
  min-height: 108px;
  border-radius: 16px;
  background: linear-gradient(135deg, #b9c6dd 0%, #dde6f5 45%, #f3f6fb 100%);
}

.mock-caption {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.article-shell { padding-top: 1rem; }
.article-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.article-side {
  position: sticky;
  top: 108px;
  padding: 1.25rem;
}

.toc {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.toc a {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.toc a:last-child { border-bottom: none; padding-bottom: 0; }
.toc a:hover { color: var(--text); }

.article-content {
  display: grid;
  gap: 2.25rem;
}

.article-section {
  background: transparent;
}

.article-section p {
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.quote-card {
  margin-top: 1.3rem;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid #cfdafe;
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
}

.quote-card p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 700;
}

.feature-tiles,
.tips-list,
.compare-grid {
  display: grid;
  gap: 18px;
  margin-top: 1.4rem;
}

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

.mini-card,
.tip-item,
.compare-card,
.inline-visual {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(231, 235, 243, 0.95);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mini-card:hover,
.tip-item:hover,
.compare-card:hover,
.inline-visual:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(17, 24, 39, 0.08);
  border-color: rgba(219, 228, 255, 0.95);
}

.mini-card i {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.mini-card h3,
.tip-item h3 { margin-bottom: 0.65rem; }
.mini-card p,
.tip-item p,
.compare-card ul { margin: 0; }

.inline-visual {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: center;
}

.phone-frame {
  width: min(240px, 100%);
  margin-inline: auto;
  border-radius: 32px;
  border: 10px solid #111827;
  background: linear-gradient(180deg, #eef3fb, #d6dfef);
  padding: 1rem;
  position: relative;
}

.phone-notch {
  width: 92px;
  height: 12px;
  border-radius: 999px;
  background: #111827;
  margin: 0 auto 1rem;
}

.phone-screen {
  min-height: 320px;
}

.compare-grid {
  grid-template-columns: 1fr 1fr;
}

.compare-card ul {
  padding-left: 1.2rem;
  margin-top: 1rem;
}

.compare-card.bad {
  background: linear-gradient(180deg, #fff8f8, #ffffff);
}

.compare-card.good {
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.stat-band {
  margin-top: 1.4rem;
  background: linear-gradient(135deg, #111827 0%, #253149 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-band strong,
.stat-band span { display: block; }
.stat-band span { color: rgba(255,255,255,0.76); margin-top: 0.3rem; }

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

.closing-section {
  padding: 1.7rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(244,246,251,0.92));
  border: 1px solid rgba(231, 235, 243, 0.95);
}

.cta-section { padding-top: 1rem; }
.cta-card {
  background: linear-gradient(135deg, #111827 0%, #253149 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.cta-card p { color: rgba(255,255,255,0.78); max-width: 62ch; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.cta-card .btn-light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}

.site-footer { padding: 2rem 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.footer-brand { margin-bottom: 0.9rem; }
.footer-copy { max-width: 22ch; }
.footer-grid h3 {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}
.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  color: var(--muted);
  padding-top: 1.5rem;
}

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] h1 { max-width: none; }
html[dir="rtl"] .header-actions,
html[dir="rtl"] .hero-meta,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .cta-actions {
  flex-direction: row-reverse;
}
html[dir="rtl"] .article-grid,
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .inline-visual,
html[dir="rtl"] .compare-grid,
html[dir="rtl"] .feature-tiles,
html[dir="rtl"] .tips-list,
html[dir="rtl"] .stat-band,
html[dir="rtl"] .footer-grid {
  direction: rtl;
}
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .article-side,
html[dir="rtl"] .article-content,
html[dir="rtl"] .visual-copy,
html[dir="rtl"] .mini-card,
html[dir="rtl"] .tip-item,
html[dir="rtl"] .compare-card,
html[dir="rtl"] .cta-card > div,
html[dir="rtl"] .footer-grid > div,
html[dir="rtl"] .footer-bottom {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .quote-card { border-left: none; border-right: 4px solid #cfdafe; }
html[dir="rtl"] .compare-card ul { padding-left: 0; padding-right: 1.2rem; }

@media (max-width: 1024px) {
  .hero-grid,
  .article-grid,
  .cta-card,
  .footer-grid,
  .inline-visual,
  .feature-tiles,
  .compare-grid,
  .tips-list {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
  }

  .footer-grid,
  .cta-card {
    display: grid;
  }
}

@media (max-width: 820px) {
  .section { padding: 4.5rem 0; }
  .hero { padding-top: 2.5rem; }
  .nav-shell { align-items: flex-start; padding: 1rem 0; }
  .header-actions { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 1.1rem)); }
  .btn { width: 100%; }
  .hero-actions,
  .header-actions,
  .cta-actions { display: grid; grid-template-columns: 1fr; }
  .browser-card,
  .card,
  .cta-card,
  .mini-card,
  .tip-item,
  .compare-card,
  .inline-visual,
  .closing-section { border-radius: 20px; }
  .brand-wordmark { height: 1.35rem; }
}
