/* ==========================================================================
   Markdown.co.il — Coming Soon
   Light, modern, clean. Hebrew (RTL) default, English (LTR) supported.
   ========================================================================== */

:root {
  --bg: #fafbfd;
  --surface: #ffffff;
  --text: #1a2233;
  --text-muted: #5b6779;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --accent-2: #7c3aed;
  --border: #e5e9f0;
  --shadow: 0 10px 40px -12px rgba(30, 41, 59, 0.12);
  --radius: 16px;
  --font-main: 'Rubik', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- Background decor ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: linear-gradient(135deg, #93c5fd, #c4b5fd);
  top: -140px;
  inset-inline-end: -120px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, #a5f3fc, #bfdbfe);
  bottom: -120px;
  inset-inline-start: -100px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to left, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 5vw, 3.5rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  direction: ltr;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -1px;
  box-shadow: 0 6px 18px -6px rgba(37, 99, 235, 0.5);
}

.logo-arrow {
  font-size: 0.9rem;
  margin-top: 4px;
}

.logo-text {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.3px;
}

.logo-domain {
  color: var(--accent);
  font-weight: 500;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px -6px rgba(37, 99, 235, 0.35);
}

.lang-option {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.lang-option.active {
  color: var(--accent);
  font-weight: 700;
}

.lang-divider {
  color: var(--border);
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1.2rem 3rem;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  animation: fadeUp 0.7s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.title {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 1.1rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.title-accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.6rem;
  font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}

/* ---------- Demo card ---------- */
.demo-card {
  width: 100%;
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 3rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: #f6f8fb;
  direction: ltr;
}

.demo-dots {
  display: inline-flex;
  gap: 6px;
}

.demo-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e2e8f0;
}

.demo-dots i:nth-child(1) { background: #fca5a5; }
.demo-dots i:nth-child(2) { background: #fcd34d; }
.demo-dots i:nth-child(3) { background: #86efac; }

.demo-filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 210px;
}

.demo-pane {
  padding: 1.1rem 1.2rem;
  text-align: start;
}

.demo-source {
  border-inline-end: 1px solid var(--border);
  background: #fbfcfe;
}

.demo-source pre {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.demo-preview {
  font-size: 0.9rem;
  line-height: 1.65;
}

.demo-preview h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.demo-preview p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.demo-preview strong { color: var(--text); }

.demo-preview em { color: var(--accent-2); }

.demo-preview ul {
  padding-inline-start: 1.2rem;
  color: var(--text-muted);
}

.demo-preview code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  width: 100%;
  max-width: 860px;
  margin-bottom: 3rem;
  animation: fadeUp 0.7s 0.4s ease both;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ---------- Notify ---------- */
.notify {
  animation: fadeUp 0.7s 0.5s ease both;
}

.notify-text {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.notify-btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(37, 99, 235, 0.65);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.6rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-source {
    border-inline-end: none;
    border-bottom: 1px solid var(--border);
  }

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