:root {
  --ink: #17213a;
  --muted: #66718c;
  --paper: #ffffff;
  --soft: #f4f6ff;
  --brand: #5746e8;
  --brand-dark: #392ab7;
  --accent: #18b99a;
  --line: #dfe4f1;
  --sun: #ffcf5c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 12% 0%, #e7e5ff 0, transparent 31%), radial-gradient(circle at 88% 12%, #dffbf4 0, transparent 26%), var(--soft); }
button, textarea, input { font: inherit; }
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 36px)); margin-inline: auto; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 850; letter-spacing: -.03em; }
.logo img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 9px; }
.nav-links a { text-decoration: none; padding: 9px 12px; color: var(--muted); font-size: 14px; font-weight: 650; border-radius: 10px; }
.nav-links a:hover { background: rgba(255,255,255,.8); color: var(--ink); }
.nav-links .nav-cta { background: var(--ink); color: #fff; }
.hero { padding: 54px 0 38px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 54px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: #edfbf7; color: #126c5b; font-weight: 750; font-size: 13px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(24,185,154,.15); }
h1 { margin: 18px 0 16px; font-size: clamp(42px, 7vw, 72px); line-height: .98; letter-spacing: -.055em; }
.gradient { color: var(--brand); }
.lead { margin: 0; max-width: 650px; color: var(--muted); font-size: clamp(18px, 2.4vw, 22px); line-height: 1.55; }
.actions { display: flex; gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .16s, filter .16s; }
.button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 10px 23px rgba(87,70,232,.23); }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.microcopy { margin-top: 12px; color: var(--muted); font-size: 12px; }
.demo-card { position: relative; padding: 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,255,255,.78); box-shadow: 0 24px 70px rgba(42,53,92,.13); backdrop-filter: blur(14px); }
.demo-card::before { content: ""; position: absolute; width: 72px; height: 72px; left: -25px; bottom: -25px; border-radius: 22px; background: var(--sun); transform: rotate(13deg); z-index: -1; }
.window-bar { display: flex; gap: 6px; margin: 1px 2px 15px; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d9e6; }
.demo-label { font-size: 12px; color: var(--muted); font-weight: 750; }
.before, .after { padding: 16px; border-radius: 13px; font-size: clamp(20px, 3vw, 28px); font-weight: 750; margin-top: 7px; }
.before { direction: rtl; background: #fff3f4; color: #9e3045; text-decoration: line-through; text-decoration-thickness: 2px; }
.after { direction: ltr; background: #eafbf7; color: #126c5b; }
.arrow-down { text-align: center; color: var(--brand); font-size: 22px; height: 24px; }
.section { padding: 72px 0; }
.section-title { text-align: center; max-width: 700px; margin: 0 auto 30px; }
.section-title h2 { margin: 0; font-size: clamp(31px, 4.4vw, 46px); letter-spacing: -.04em; }
.section-title p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.tool { max-width: 820px; margin: auto; border-radius: 22px; padding: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 55px rgba(42,53,92,.09); }
.tool-grid { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: stretch; gap: 10px; }
.text-panel { display: flex; flex-direction: column; gap: 7px; }
.text-panel label { font-weight: 750; font-size: 13px; color: var(--muted); }
.text-panel textarea { min-height: 164px; width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink); background: #fbfcff; font-size: 18px; line-height: 1.55; }
.text-panel textarea:focus { outline: 3px solid rgba(87,70,232,.18); border-color: var(--brand); }
.swap { align-self: center; border: 1px solid var(--line); width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--brand); font-size: 20px; cursor: pointer; }
.tool-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.tool-status { color: var(--accent); font-weight: 700; font-size: 13px; min-height: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.74); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #eceaff; color: var(--brand); font-size: 21px; }
.feature h3 { margin: 15px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.8); padding: 0 17px; margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; float: left; color: var(--brand); font-size: 20px; }
.faq details[open] summary::before { content: "−"; }
.faq p { margin: 0 0 17px; color: var(--muted); line-height: 1.65; }
.game-promo { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: center; padding: 35px; border-radius: 25px; background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.game-promo::after { content: "א A"; position: absolute; left: -13px; bottom: -30px; font-weight: 900; font-size: 120px; color: rgba(255,255,255,.05); transform: rotate(-8deg); }
.game-promo h2 { font-size: clamp(30px, 4vw, 45px); margin: 0 0 10px; letter-spacing: -.04em; }
.game-promo p { color: #cdd2e2; line-height: 1.65; }
.game-sample { border-radius: 18px; background: #fff; color: var(--ink); padding: 22px; text-align: center; box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.game-sample small { color: var(--muted); font-weight: 700; }
.game-sample strong { display: block; margin: 10px 0; font-size: 35px; direction: rtl; }
.trust { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 24px; }
.trust span::before { content: "✓"; color: var(--accent); font-weight: 900; margin-inline-end: 5px; }
.footer-site { padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-links { display: flex; gap: 15px; }

/* Game */
.game-shell { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 36px 0 64px; }
.game-card { width: min(650px, 100%); border-radius: 25px; background: rgba(255,255,255,.9); border: 1px solid #fff; box-shadow: 0 24px 70px rgba(42,53,92,.14); padding: clamp(22px, 5vw, 38px); text-align: center; }
.game-card h1 { font-size: clamp(34px, 6vw, 56px); margin: 10px 0; }
.game-card .lead { font-size: 17px; margin-inline: auto; }
.game-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 750; color: var(--muted); }
.metric strong { display: block; color: var(--ink); font-size: 25px; }
.progress { height: 7px; border-radius: 99px; background: #e7eaf3; overflow: hidden; margin: 18px 0 26px; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--brand)); transition: width .2s linear; }
.direction-badge { display: inline-block; padding: 6px 10px; border-radius: 99px; background: #f0efff; color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.scramble { min-height: 75px; display: grid; place-items: center; margin: 10px 0 18px; font-size: clamp(35px, 8vw, 58px); font-weight: 900; letter-spacing: .01em; overflow-wrap: anywhere; }
.answer { width: min(420px,100%); border: 2px solid var(--line); border-radius: 14px; padding: 13px 15px; text-align: center; font-size: 21px; font-weight: 700; color: var(--ink); background: #fff; }
.answer:focus { outline: 4px solid rgba(87,70,232,.15); border-color: var(--brand); }
.feedback { height: 28px; margin-top: 9px; font-weight: 800; }
.feedback.good { color: var(--accent); }
.feedback.bad { color: #c83f56; }
.game-buttons { display: flex; justify-content: center; gap: 9px; margin-top: 17px; flex-wrap: wrap; }
.hidden { display: none !important; }
.result-score { font-size: 72px; color: var(--brand); font-weight: 900; line-height: 1; margin: 23px 0 8px; }
.share-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 21px; }

@media (max-width: 800px) {
  .hero, .game-promo { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; gap: 35px; }
  .feature-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .swap { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 52px 0; }
  .tool, .game-promo { padding: 16px; }
  .tool-actions, .footer-inner { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .game-card { padding-inline: 17px; }
}
