/* MonaLogic — the company site. NOT the product skin (owner 25.08: «למה
   שהאתר יראה כמו התוכנה?... זה לא מונה מטר!»). Engineering-software store
   with an AI-world design language: deep tech-dark hero, cyan⟷violet
   glow, fine blueprint grid; Hebrew RTL, Heebo. */

:root {
  --ink: #0b1020;          /* deep tech dark */
  --ink-2: #101a33;
  --paper: #f6f8fc;        /* light sections */
  --card: #ffffff;
  --text: #16203a;
  --text-dim: #5a6a8a;
  --line: #dfe6f2;
  --ai-a: #22d3ee;         /* cyan */
  --ai-b: #8b5cf6;         /* violet */
  --ai-grad: linear-gradient(120deg, #22d3ee, #8b5cf6);
  --on-ink: #eef3fb;
  --on-ink-dim: #9fb0cc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Heebo', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--paper);
  direction: rtl;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- wordmark ---- */
.wordmark {
  font-weight: 900; font-size: 24px; letter-spacing: -0.5px;
  color: #fff; direction: ltr; display: inline-block;
}
.wordmark span { background: var(--ai-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark i { font-style: normal; font-weight: 300; color: var(--on-ink-dim); font-size: 0.72em; }
.wordmark.small { font-size: 19px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11,16,32,0.86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.06); }
/* row-reverse: בקשתו 26.08 — «להצמיד את הכפתורים לימין ואת הלוגו לשמאל» */
.nav-in { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; height: 64px; }
.wordmark-link { text-decoration: none; }
.links { display: flex; align-items: center; gap: 22px; }
.links a { color: var(--on-ink-dim); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover { color: #fff; }

/* ---- buttons ---- */
.btn { text-decoration: none; border-radius: 10px; font-weight: 700; padding: 9px 18px; font-size: 15px; transition: transform .15s, box-shadow .15s; }
.btn.big { padding: 14px 28px; font-size: 17px; }
.btn.solid { background: var(--ai-grad); color: #071018; box-shadow: 0 6px 24px rgba(34,211,238,0.35); }
.btn.solid:hover { transform: translateY(-2px); }
.btn.ghost { border: 1px solid rgba(140,170,220,0.5); color: inherit; }
.hero .btn.ghost, .beta .btn.ghost, .nav .btn.ghost { color: var(--on-ink); }
.btn.ghost:hover { border-color: var(--ai-a); color: var(--ai-a); }

/* ---- hero ---- */
.hero { position: relative; background: radial-gradient(1200px 600px at 80% -10%, #17264a 0%, var(--ink) 55%); color: var(--on-ink); overflow: hidden; }
.grid-lines {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(120,160,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 500px at 60% 30%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.g1 { width: 480px; height: 480px; background: #22d3ee; top: -180px; left: -120px; }
.g2 { width: 520px; height: 520px; background: #8b5cf6; bottom: -240px; right: -140px; opacity: 0.28; }
.hero-in { position: relative; padding: 96px 24px 110px; text-align: right; }
.chip { display: inline-block; border: 1px solid rgba(140,170,220,0.4); color: var(--on-ink-dim); border-radius: 999px; padding: 6px 14px; font-size: 13px; letter-spacing: 0.5px; margin-bottom: 22px; }
.hero h1 { font-size: 58px; line-height: 1.08; font-weight: 900; }
.hero h1 em { font-style: normal; background: var(--ai-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 24px 0 34px; max-width: 640px; font-size: 19px; line-height: 1.7; color: var(--on-ink-dim); font-weight: 300; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- product (the front-page ADVERT — owner 25.08: the hero sells the
   company, this block sells Mona) ---- */
.product { padding: 84px 0; }
.ad-tag { display: inline-block; background: var(--ai-grad); color: #071018; font-weight: 800; font-size: 13.5px; letter-spacing: 0.4px; border-radius: 8px 8px 0 0; padding: 7px 16px; margin-right: 24px; }
.prod-card.ad { border: 2px solid transparent; background:
  linear-gradient(var(--card), var(--card)) padding-box,
  linear-gradient(120deg, #22d3ee, #8b5cf6) border-box; }
.coming-row { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.coming-card { border: 2px dashed #c3cee2; border-radius: 16px; padding: 20px 28px; display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.6); }
.coming-badge { background: var(--ink); color: var(--ai-a); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 5px 14px; letter-spacing: 0.5px; }
.coming-txt { font-size: 18px; font-weight: 700; color: var(--text); }
.prod-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 44px; box-shadow: 0 18px 60px rgba(22,32,58,0.08); }
.lockup { height: 84px; margin-bottom: 20px; }
.prod-txt h2 { font-size: 26px; margin-bottom: 12px; }
.prod-txt p { color: var(--text-dim); line-height: 1.75; margin-bottom: 18px; }
.feat { list-style: none; }
.feat li { padding: 9px 0 9px 0; padding-right: 26px; position: relative; line-height: 1.55; color: var(--text); }
.feat li::before { content: ''; position: absolute; right: 0; top: 16px; width: 10px; height: 10px; border-radius: 3px; background: var(--ai-grad); }
.engines { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 13.5px; }
.prod-visual { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.shot { margin: 0; }
.shot img { width: 100%; display: block; border-radius: 12px; border: 1px solid #223055; box-shadow: 0 10px 34px rgba(11,16,32,0.25); cursor: zoom-in; }

/* ---- lightbox (owner 25.08: «שלוחצים על התמונה היא גדלה») ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(7,11,22,0.92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,0.6); }
.lb-close { position: absolute; top: 18px; left: 22px; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; opacity: 0.8; }
.lb-close:hover { opacity: 1; }
.shot figcaption { margin-top: 8px; font-size: 13.5px; color: var(--text-dim); text-align: center; }

/* ---- demo video ---- */
.demo { padding: 10px 0 64px; }
.demo h2 { font-size: 32px; margin-bottom: 8px; }
.demo-sub { color: var(--text-dim); line-height: 1.7; margin-bottom: 22px; max-width: 640px; }
.demo-video { width: 100%; display: block; border-radius: 16px; border: 1px solid #223055; box-shadow: 0 18px 60px rgba(11,16,32,0.25); background: #0b1020; }

/* ---- how ---- */
.how { padding: 30px 0 84px; }
.how h2 { font-size: 32px; margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.step span { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--ai-grad); color: #071018; font-weight: 900; margin-bottom: 12px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* ---- beta ---- */
.beta { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.g3 { width: 640px; height: 380px; background: #22d3ee; top: -160px; right: 20%; opacity: 0.18; }
.beta-in { position: relative; padding: 76px 24px; text-align: center; }
.beta h2 { font-size: 34px; margin-bottom: 12px; }
.beta p { color: var(--on-ink-dim); max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }
.beta .cta-row { justify-content: center; }

/* ---- footer ---- */
.foot { background: #070b16; color: var(--on-ink-dim); }
.foot-in { padding: 34px 24px; display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--on-ink-dim); text-decoration: none; }
.foot-links a:hover { color: var(--ai-a); }
.fine { font-size: 13px; }

/* ---- inner pages: account / download ---- */
.page-head { position: relative; background: radial-gradient(900px 420px at 75% -20%, #17264a 0%, var(--ink) 60%); color: var(--on-ink); overflow: hidden; }
.page-head-in { position: relative; padding: 52px 24px 46px; }
.page-head h1 { font-size: 38px; font-weight: 900; }
.page-head .chip { margin-bottom: 14px; }
.page-head p { color: var(--on-ink-dim); margin-top: 10px; max-width: 640px; line-height: 1.7; }

.card-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 18px 60px rgba(22,32,58,0.08); }
.card-box a:not(.btn) { color: #7c3aed; }

.auth { padding: 56px 0 84px; }
.auth-wrap { display: grid; grid-template-columns: 1.05fr 0.75fr; gap: 30px; align-items: start; }
.auth-h { font-size: 22px; margin-bottom: 8px; }
.auth-sub { color: var(--text-dim); line-height: 1.65; margin-bottom: 18px; }

.tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.tab { flex: 1; padding: 11px; border-radius: 10px; border: 1px solid var(--line); background: none; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer; }
.tab.on { background: var(--ai-grad); color: #071018; border-color: transparent; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; background: #fbfcfe; color: var(--text); }
.field input:focus { outline: none; border-color: var(--ai-a); box-shadow: 0 0 0 3px rgba(34,211,238,0.18); }
.field input.ltr { direction: ltr; text-align: left; }

.form-foot { margin-top: 20px; }
.form-foot .btn { display: block; width: 100%; text-align: center; border: none; cursor: pointer; font-family: inherit; }
.linkline { margin-top: 14px; text-align: center; font-size: 14px; }

/* צבעי-ההודעות רחוקים זה מזה בספקטרום: ירוק=הצלחה, אדום=שגיאה,
   כחול=מידע, ענבר=אזהרת-ווינדוס בעמוד-ההורדה */
.form-msg { display: none; margin-top: 16px; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.6; }
.form-msg.show { display: block; }
.form-msg.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-msg.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.form-msg.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.notice { background: linear-gradient(rgba(34,211,238,0.08), rgba(139,92,246,0.08)); border: 1px solid #cdd9f0; border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.65; margin-bottom: 22px; }

.side-card h3 { font-size: 18px; margin-bottom: 12px; }
.side-card .feat li { padding: 7px 26px 7px 0; }
.side-fine, .side-txt { color: var(--text-dim); font-size: 14px; line-height: 1.65; margin-top: 14px; }
.side-txt { margin: 0 0 16px; font-size: 14.5px; }

.btn.disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; box-shadow: none; }

.dl { padding: 56px 0 84px; }
.dl-grid { display: grid; grid-template-columns: 1.15fr 0.65fr; gap: 30px; align-items: start; }
.dl-grid aside .card-box { margin-bottom: 22px; }
.dl-card { display: flex; gap: 24px; align-items: center; }
.dl-icon { width: 84px; height: 84px; border-radius: 18px; }
.dl-meta h2 { font-size: 22px; margin-bottom: 4px; }
.dl-meta .btn { display: inline-block; margin: 12px 0 6px; }
.dl-fine { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }
.dl-steps { margin-top: 22px; }
.dl-steps h2 { font-size: 22px; margin-bottom: 18px; }

.olist { list-style: none; counter-reset: n; }
.olist li { counter-increment: n; position: relative; padding-right: 44px; margin-bottom: 16px; line-height: 1.65; }
.olist li::before { content: counter(n); position: absolute; right: 0; top: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--ai-grad); color: #071018; font-weight: 900; display: flex; align-items: center; justify-content: center; }

.warn-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 13px 16px; margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: #713f12; }

/* ---- guide ---- */
.guide { padding: 44px 0 84px; }
.wrap.guide-wrap { max-width: 880px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.toc a { text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 500; }
.toc a:hover { border-color: var(--ai-a); color: #0e7490; }
.gsec { margin-bottom: 22px; scroll-margin-top: 84px; }
.gsec h2 { font-size: 21px; margin-bottom: 14px; }
.gsec p { color: var(--text-dim); line-height: 1.75; margin-bottom: 12px; }
.ui { background: #eef2fa; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 0.92em; font-weight: 600; white-space: nowrap; }
.gshot { margin-top: 18px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 700px) { .shot-pair { grid-template-columns: 1fr; } }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero h1 { font-size: 40px; }
  .prod-card { grid-template-columns: 1fr; padding: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .links a:not(.btn) { display: none; }
  .auth-wrap, .dl-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .coming-row { grid-template-columns: 1fr; }
  .hero-in { padding: 64px 24px 72px; }
  .card-box { padding: 22px; }
  .dl-card { flex-direction: column; align-items: flex-start; }
}
