/* ============================================================
   Pinolix — Landing page styles
   Shared between he/ (RTL, Heebo) and en/ (LTR, Inter).
   Logical properties used where possible so the same rules
   work for both directions.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #0b0d10;
  --bg-elev: #14181d;
  --bg-elev-2: #1a1f26;
  --surface: #11151a;
  --text: #e7eaee;
  --text-muted: #97a0ad;
  --text-dim: #6b7280;
  --border: #232830;
  --border-strong: #2d3340;

  --accent: #6366f1;
  --accent-hover: #7c83f5;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-ring: rgba(99, 102, 241, 0.35);
  --wa: #25D366;
  --wa-hover: #1ebe5b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 12px 32px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);

  --container: 1180px;
  --container-narrow: 760px;

  --font-he: "Heebo", "Arial Hebrew", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-en);
}

html[lang="he"] { --font: var(--font-he); }
html[lang="en"] { --font: var(--font-en); }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(99,102,241,0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { inset-inline-start: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 12px 0 14px;
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--text-muted);
  font-size: 18px;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 13, 16, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.brand-name { font-size: 18px; }

.primary-nav {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
}
.primary-nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.primary-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
}
.lang-switch:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99,102,241,0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), #9c80f7); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
  font-weight: 800;
}
.hero .accent {
  background: linear-gradient(135deg, var(--accent), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-muted);
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-row-center { justify-content: center; }

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--text-muted);
  font-size: 14px;
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- Hero visual: chat preview ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.chat-card {
  position: relative;
  width: min(100%, 420px);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.chat-row {
  display: flex;
}
.chat-row.chat-in { justify-content: flex-start; }
.chat-row.chat-out { justify-content: flex-end; }
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.chat-out .bubble {
  background: linear-gradient(135deg, var(--accent), #7c5cf5);
  border-color: transparent;
  color: #fff;
}
.chat-confirm .bubble {
  background: linear-gradient(135deg, var(--wa), #1aae57);
  color: #fff;
}
.visual-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(500px 300px at 50% 50%, rgba(99,102,241,0.30), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}

/* ---------- Cards (3-up) ---------- */
.cards-3 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: linear-gradient(180deg, var(--bg-elev), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.card h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--text-muted); font-size: 16px; }
.card-icon {
  font-size: 30px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border-radius: 14px;
}
.card-accent {
  background:
    linear-gradient(180deg, rgba(99,102,241,0.06), transparent 70%),
    linear-gradient(180deg, var(--bg-elev), var(--surface));
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
}
.step h3 { margin: 12px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--text-muted); }
.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ---------- Features ---------- */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.feature p { margin: 0; color: var(--text-muted); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
}
.faq-body p { margin: 0; }

/* ---------- Final CTA ---------- */
.section-cta { padding-block: clamp(72px, 10vw, 130px); }
.cta-box {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(99,102,241,0.25), transparent 60%),
    linear-gradient(180deg, var(--bg-elev), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
}
.cta-box h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.cta-box p {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 17px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-meta a { color: var(--text-muted); }
.footer-meta a:hover { color: var(--text); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.38);
  z-index: 40;
  transition: background 0.15s ease, transform 0.15s ease;
}
.wa-float:hover {
  background: var(--wa-hover);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { margin-inline: auto; text-align: center; }
  .hero-meta { justify-content: center; }
  .cta-row { justify-content: center; }
  .cards-3, .steps, .features { grid-template-columns: 1fr 1fr; }
  .primary-nav { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards-3, .steps, .features { grid-template-columns: 1fr; }
  .header-actions .btn-sm { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cta-row .btn { width: 100%; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
