/* Domiq marketing — shared styles
 * Hebrew RTL, dark theme matching the PWA aesthetic.
 * Single-scroll, mobile-first; tested down to 320px viewport.
 *
 * Color palette mirrors static/index.html so the marketing pages
 * feel like the same product — no rebrand surprises after click.
 */

* { box-sizing: border-box; }

:root {
  --bg-deep:     #0F0C29;          /* page background */
  --bg-card:     rgba(255,255,255,0.04);
  --bg-card-2:   rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.08);
  --border-acc:  rgba(165,180,252,0.30);
  --text:        rgba(255,255,255,0.96);
  --text-2:      rgba(255,255,255,0.78);
  --text-3:      rgba(255,255,255,0.55);
  --accent:      #a5b4fc;          /* indigo-300 */
  --accent-2:    #c7d2fe;          /* indigo-200 */
  --grad-cta:    linear-gradient(135deg, #00CB8D, #00a373);
  --grad-bg:     radial-gradient(circle at 20% 0%, rgba(99,102,241,0.18), transparent 40%),
                 radial-gradient(circle at 80% 100%, rgba(34,211,238,0.12), transparent 35%);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Heebo', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--grad-bg);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ── Nav ───────────────────────────────────────────────────────── */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  position: relative;
  z-index: 2;
}
nav .brand a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
nav .brand img {
  width: 34px;
  height: 34px;
  display: block;
}

/* Hero brand mark — larger version of the logo above the headline.
   Used on landing.html only; .demo and .blog skip it for visual rhythm. */
.hero .brand-mark {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 16px;
}
nav .links {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav .links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
nav .links a:hover { color: var(--text); }
nav .links .login {
  background: var(--grad-cta);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
nav .links .login:hover { color: #fff; opacity: 0.95; }

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  padding: 60px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 20px;
  line-height: 1.15;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #a5b4fc, #c7d2fe, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero .cta-row {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s, opacity 0.15s;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-cta);
  color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-acc);
}

/* ── Section ───────────────────────────────────────────────────── */

section {
  padding: 60px 0;
}
section h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
section .lede {
  font-size: 17px;
  color: var(--text-2);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ── Problem vignettes ─────────────────────────────────────────── */

.vignettes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.vignette {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: right;
}
.vignette .icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}
.vignette h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}
.vignette p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

/* ── Capability cards ──────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 24px 22px;
  text-align: right;
  position: relative;
}
.card .icon {
  font-size: 30px;
  margin-bottom: 14px;
  display: block;
}
.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--accent-2);
}
.card p {
  font-size: 14.5px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.65;
}

/* ── Value-framing strip ───────────────────────────────────────── */

.value-strip {
  background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(34,211,238,0.06));
  border: 1px solid var(--border-acc);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 40px 0;
  text-align: center;
}
.value-strip .quote {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.value-strip .quote em {
  font-style: normal;
  color: var(--accent);
}
.value-strip .source {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
}

/* ── CTA section ───────────────────────────────────────────────── */

.cta-section {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}
.cta-section h2 { margin-bottom: 10px; }
.cta-section .sub {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.cta-section .cta-row {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Form ──────────────────────────────────────────────────────── */

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}
.form-card label {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  margin: 14px 0 6px;
  font-weight: 600;
}
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  direction: rtl;
}
.form-card textarea { min-height: 100px; resize: vertical; }
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-card .submit-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}
.form-card .submit-row .btn { flex: 1; }

/* ── Footer ────────────────────────────────────────────────────── */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  margin-top: 60px;
  color: var(--text-3);
  font-size: 14px;
}
footer.site-footer .cols {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site-footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}
footer.site-footer a:hover { color: var(--text); }
footer.site-footer .legal {
  font-size: 12px;
  color: var(--text-3);
}

/* ── Blog ──────────────────────────────────────────────────────── */

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  text-align: right;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, transform 0.15s;
}
.post-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-2px);
}
.post-card .date {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.post-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--accent-2);
}
.post-card p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

article.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0 40px;
}
article.post header {
  text-align: center;
  margin-bottom: 36px;
}
article.post h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
article.post .meta {
  color: var(--text-3);
  font-size: 14px;
}
article.post h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 12px;
  text-align: right;
  color: var(--accent-2);
}
article.post p,
article.post li {
  font-size: 17px;
  color: var(--text);
  line-height: 1.8;
}
article.post ul, article.post ol {
  padding-right: 22px;
  padding-left: 0;
}
article.post blockquote {
  border-right: 3px solid var(--accent);
  padding: 4px 14px;
  margin: 16px 0;
  color: var(--text-2);
  font-style: italic;
}
article.post a { color: var(--accent); }

/* ── Mobile niceties ───────────────────────────────────────────── */

@media (max-width: 600px) {
  nav { padding: 14px 0; }
  nav .links { gap: 12px; }
  nav .links a:not(.login) { display: none; }
  .hero { padding: 30px 0 50px; }
  section { padding: 40px 0; }
}
