/* ───────────────────────────────────────────
   Moodle Scraper — landing page
   Hebrew RTL · brand: vivid blue / navy / Hub02 orange
   ─────────────────────────────────────────── */

:root {
  --blue:      #2E9BFF;
  --blue-deep: #1583F0;
  --navy:      #16273F;
  --orange:    #EE7B4E;
  --ink:       #2b3a4d;
  --muted:     #6b7a8d;
  --bg:        #f5f8fc;
  --bg-alt:    #ffffff;
  --line:      #e6edf5;
  --card:      #ffffff;
  --shadow:    0 10px 30px rgba(22,39,63,0.08);
  --shadow-lg: 0 24px 60px rgba(22,39,63,0.14);
  --radius:    18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--navy); line-height: 1.2; }
a { color: var(--blue-deep); text-decoration: none; }
code {
  font-family: 'SF Mono', 'Menlo', monospace;
  background: #eef3fa;
  color: var(--navy);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.86em;
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}
strong, b { font-weight: 800; color: var(--navy); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-ico { font-size: 1.05em; transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 8px 22px rgba(46,155,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46,155,255,0.45); }
.btn-ghost {
  background: #fff;
  color: var(--blue-deep);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue); }
.btn-lg { font-size: 18px; padding: 16px 32px; }

/* ── Nav ───────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,248,252,0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(22,39,63,0.05);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: var(--ink); font-weight: 700; font-size: 15px; }
.nav-links > a:hover { color: var(--blue-deep); }
.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(46,155,255,0.3);
  transition: transform .18s;
}
.nav-cta:hover { transform: translateY(-2px); }

/* ── Hero ──────────────────────────────── */
.hero { position: relative; padding: 70px 22px 80px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -180px;
  inset-inline-start: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(46,155,255,0.22), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.hero-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: #e7f2ff;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 13.5px;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-text h1 { font-size: 46px; font-weight: 900; letter-spacing: -0.5px; }
.grad {
  background: linear-gradient(120deg, var(--blue), var(--blue-deep) 60%, var(--navy));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 18.5px; color: var(--muted); margin: 22px 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-fineprint { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Folder-tree window */
.hero-visual { perspective: 1400px; }
.window {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transform: rotateY(-7deg) rotateX(2deg);
  transition: transform .5s ease;
}
.hero-visual:hover .window { transform: rotateY(0deg) rotateX(0deg); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #f3f6fb;
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.window-title { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.window-body { padding: 16px 18px; }
.tree { font-size: 15px; line-height: 1.95; font-weight: 600; color: var(--ink); }
.tree .t { white-space: nowrap; opacity: 0; transform: translateX(10px); animation: treeIn .5s ease forwards; }
.tree .l1 { padding-inline-start: 18px; }
.tree .l2 { padding-inline-start: 38px; color: var(--muted); font-weight: 500; font-size: 14px; }
.tree .accent { color: var(--orange); font-weight: 700; }
.tree .dim { opacity: 0.5; }
.tree .t:nth-child(1){animation-delay:.15s}.tree .t:nth-child(2){animation-delay:.25s}
.tree .t:nth-child(3){animation-delay:.33s}.tree .t:nth-child(4){animation-delay:.4s}
.tree .t:nth-child(5){animation-delay:.47s}.tree .t:nth-child(6){animation-delay:.54s}
.tree .t:nth-child(7){animation-delay:.61s}.tree .t:nth-child(8){animation-delay:.68s}
.tree .t:nth-child(9){animation-delay:.75s}.tree .t:nth-child(10){animation-delay:.82s}
.tree .t:nth-child(11){animation-delay:.89s}.tree .t:nth-child(12){animation-delay:.96s}

/* ── Sections ──────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { font-size: 34px; font-weight: 900; text-align: center; }
.section-sub { text-align: center; color: var(--muted); font-size: 17px; margin-top: 12px; margin-bottom: 44px; }
.soon { color: var(--blue-deep); font-weight: 700; white-space: nowrap; }

/* ── Feature cards ─────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-ico {
  font-size: 30px;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: #eef5ff;
  border-radius: 14px;
  margin-bottom: 16px;
}
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ── Special files strip ───────────────── */
.special {
  margin-top: 26px;
  background: linear-gradient(135deg, #eef5ff, #f7faff);
  border: 1px solid #dbe9fb;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.special-title { font-size: 19px; font-weight: 800; text-align: center; color: var(--navy); }
.special-sub { text-align: center; color: var(--muted); font-size: 15px; margin: 6px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(22,39,63,0.05);
}

/* ── Download box ──────────────────────── */
.dl-box {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(135deg, #eaf4ff, #f5f9ff);
  border: 1px solid #d6e8ff;
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 38px;
}
.dl-meta { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ── Numbered steps ────────────────────── */
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-size: 16px;
}
.num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 12px rgba(46,155,255,0.35);
}
.steps li code { font-size: 0.92em; }

/* ── Use bars ──────────────────────────── */
.usebars { display: flex; flex-direction: column; gap: 16px; }
.usebar {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  font-size: 16.5px;
}
.usebar-tip { background: linear-gradient(135deg, #fff7e8, #fffdf6); border-color: #ffe1a6; }
.usebar-tip .num { background: linear-gradient(135deg, #ffb020, #ff9500); box-shadow: 0 5px 12px rgba(255,149,0,0.35); }

/* ── Privacy ───────────────────────────── */
.privacy { text-align: center; }
.privacy-ico {
  font-size: 36px;
  width: 74px; height: 74px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: #eef5ff;
  border-radius: 20px;
}
.privacy h2 { font-size: 30px; margin-bottom: 16px; }
.privacy p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto 24px; }

/* ── Footer ────────────────────────────── */
.footer { padding: 56px 0 44px; text-align: center; background: var(--bg); border-top: 1px solid var(--line); }
.footer-cover { max-width: 420px; width: 80%; height: auto; margin-bottom: 22px; mix-blend-mode: multiply; }
.footer-credit { font-size: 16px; color: var(--ink); font-weight: 600; }
.footer-fine { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.footer-fine a { color: var(--muted); text-decoration: underline; }

/* ── Reveal-on-scroll ──────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Keyframes ─────────────────────────── */
@keyframes float {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(30px,30px); }
}
@keyframes treeIn {
  to { opacity: 1; transform: none; }
}

/* ── Responsive ────────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 36px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .window { transform: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 16px; }
  .nav-links > a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 48px 18px 60px; }
  .hero-text h1 { font-size: 30px; }
  .hero-sub { font-size: 16.5px; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 27px; }
  .cards { grid-template-columns: 1fr; }
  .btn { font-size: 15px; padding: 12px 22px; }
  .dl-box { padding: 20px; }
}

/* ── Reduced motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .tree .t, .hero-glow { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
