:root {
  --ink: #1a1a2e;
  --muted: #6b6b80;
  --bg: #f7f6fb;
  --accent: #25d366;
  --accent-2: #6c5ce7;
  --max-width: 880px;
  --footer-height: 116px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  padding-bottom: var(--footer-height);
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.blob-1 {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -150px;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 70%);
}

.blob-2 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle at 70% 70%, var(--accent), transparent 70%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(12px);
  background: rgba(247, 246, 251, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.topbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 30%;
  object-fit: cover;
}

.topbar-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lang-switcher {
  position: relative;
  margin-inline-start: auto;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(26, 26, 46, 0.15);
}

.lang-toggle:hover {
  border-color: var(--accent-2);
}

.lang-icon {
  font-size: 1rem;
}

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  z-index: 30;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  min-width: 140px;
  box-shadow: 0 16px 32px -12px rgba(26, 26, 46, 0.25);
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: inherit;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

.lang-menu button:hover {
  background: var(--bg);
}

.lang-menu button[aria-current="true"] {
  color: var(--accent-2);
  font-weight: 700;
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.hero {
  text-align: center;
  margin-bottom: 6rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 1rem;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  background: linear-gradient(135deg, var(--ink), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2.75rem;
}

.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #1ebd5a);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  box-shadow: 0 16px 32px -8px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -8px rgba(37, 211, 102, 0.55);
}

.how h2 {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}

.cards {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 32px -16px rgba(26, 26, 46, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(26, 26, 46, 0.2);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

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

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: var(--footer-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-col p {
  margin: 0.15rem 0;
}

.footer-brand {
  font-weight: 700;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.copyright {
  font-size: 0.78rem;
}

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

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link .card {
  cursor: pointer;
}

/* ── Detail / bilingual pages ───────────────────────────────────────── */

.detail-page {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.detail-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.detail-hero h1 {
  font-size: 2.1rem;
}

.detail-hero .lead {
  margin: 0 auto;
}

.bilingual {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.bilingual .col {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 32px -16px rgba(26, 26, 46, 0.12);
}

.col-en {
  direction: ltr;
  text-align: left;
}

.col-he {
  direction: rtl;
  text-align: right;
}

.col h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.col h2:first-child {
  margin-top: 0;
}

.col h3 {
  font-size: 1.02rem;
  margin: 1.5rem 0 0.4rem;
}

.col p {
  color: var(--ink);
}

.col p.note,
.col li.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.col ul,
.col ol {
  padding-inline-start: 1.4rem;
}

.col table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.col th,
.col td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.45rem 0.55rem;
}

.col-he th,
.col-he td {
  text-align: right;
}

.col-en th,
.col-en td {
  text-align: left;
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
}

@media (min-width: 860px) {
  .bilingual {
    grid-template-columns: 1fr 1fr;
  }
}

.bilingual.single-lang {
  grid-template-columns: 1fr;
}

.bilingual.single-lang .col {
  max-width: 720px;
  margin: 0 auto;
}
