/* SMTIL — brand: purple #4b2377, gold #ffc20e / #ffd54f / #ffe082 */

:root {
  --purple: #4b2377;
  --purple-dark: #371a58;
  --night: #1a0f33;
  --night-2: #241542;
  --gold: #ffc20e;
  --gold-2: #ffd54f;
  --gold-3: #ffe082;
  --ink: #241b33;
  --muted: #5f5873;
  --bg: #ffffff;
  --bg-tint: #f7f5fb;
  --line: #e7e2f0;
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 0 clamp(0px, 1vw, 24px);
}

h1, h2, h3 { font-family: var(--font-display); color: var(--purple-dark); line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.9rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.15rem, 1.2vw, 1.35rem); margin-bottom: 0.4em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 3px;
  margin-right: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--gold), var(--gold-3));
  border-radius: 2px;
}
.eyebrow-light { color: var(--gold-2); }

.lead { font-size: clamp(1.12rem, 1.25vw, 1.4rem); color: var(--muted); max-width: 62ch; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(26, 15, 51, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(15, 8, 33, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: 0 4px 16px rgba(15, 8, 33, 0.25);
}
.brand-chip img { width: 110px; height: auto; }

.nav-list {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}
.nav-list a {
  text-decoration: none;
  color: #f1ecfa;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-list a:hover { color: var(--gold-2); }
.nav-cta {
  background: var(--gold);
  color: var(--night) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--gold-2); }

.nav-toggle, .nav-toggle-label { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 130px;
  background: linear-gradient(155deg, #150b2b 0%, var(--night) 40%, #2c1750 100%);
  overflow: hidden;
}
.hero h1 { color: #fff; margin: 0.35em 0 0.5em; max-width: 21ch; }
.hero .lead { color: #cfc4e6; }
.hero-inner { position: relative; z-index: 2; max-width: 72%; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
}

/* Hero animated background */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #7b4dff 0%, transparent 70%);
  top: -140px; right: -80px;
  animation: drift1 16s ease-in-out infinite alternate;
}
.blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 194, 14, 0.55) 0%, transparent 70%);
  bottom: -160px; left: -100px;
  animation: drift2 20s ease-in-out infinite alternate;
}
.blob-3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, #b03fd4 0%, transparent 70%);
  top: 30%; left: 45%;
  opacity: 0.35;
  animation: drift3 24s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-90px, 70px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(110px, -60px) scale(1.1); } }
@keyframes drift3 { from { transform: translate(0, 0); } to { transform: translate(-70px, -90px); } }

.shape {
  position: absolute;
  color: #8a63d2;
  font-weight: 700;
  z-index: 1;
  animation: floaty 9s ease-in-out infinite alternate;
}
.shape-x { top: 22%; right: 18%; font-size: 2rem; color: #9d6bff; }
.shape-plus { bottom: 28%; left: 12%; font-size: 3rem; color: #7b4dff; animation-duration: 12s; }
.shape-ring {
  top: 60%; right: 10%;
  width: 34px; height: 34px;
  border: 4px solid #7b4dff;
  border-radius: 50%;
  animation-duration: 11s;
}
.shape-dot {
  top: 14%; left: 22%;
  width: 12px; height: 12px;
  background: var(--gold-2);
  border-radius: 50%;
  animation-duration: 8s;
}
@keyframes floaty { from { transform: translateY(-14px) rotate(0deg); } to { transform: translateY(16px) rotate(12deg); } }

.hero-bars {
  position: absolute;
  right: 7%;
  bottom: 0;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  z-index: 1;
}
.hero-bars i { width: 42px; border-radius: 6px 6px 0 0; display: block; }
.hero-bars i:nth-child(1) { height: 150px; background: var(--gold); animation: grow 3.2s ease-in-out infinite alternate; }
.hero-bars i:nth-child(2) { height: 105px; background: var(--gold-2); animation: grow 3.2s 0.5s ease-in-out infinite alternate; }
.hero-bars i:nth-child(3) { height: 65px;  background: var(--gold-3); animation: grow 3.2s 1s ease-in-out infinite alternate; }
@keyframes grow { from { transform: scaleY(1); } to { transform: scaleY(1.18); } }
.hero-bars i { transform-origin: bottom; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 22px rgba(75, 35, 119, 0.28); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-gold { background: var(--gold); color: var(--night); font-weight: 700; box-shadow: 0 10px 28px rgba(255, 194, 14, 0.3); }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* Clients */
.clients { padding: 44px 0 30px; background: var(--bg); }
.clients-title {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 20px;
}
.client-logos {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 5vw, 56px);
  flex-wrap: wrap;
}
.client-logos img {
  height: clamp(44px, 3.6vw, 58px);
  width: auto;
  opacity: 0.9;
  border-radius: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.client-logos img:hover { opacity: 1; transform: translateY(-3px); }

/* Sections */
.section { padding: clamp(92px, 9vw, 140px) 0; position: relative; }
.section-lavender {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 24%, #f1ecf9 100%);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 2.4vw, 40px);
  margin-top: clamp(34px, 3.5vw, 54px);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 2.4vw, 42px) clamp(26px, 2.2vw, 38px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(36, 27, 51, 0.1); }
.card p { color: var(--muted); font-size: clamp(0.97rem, 1vw, 1.12rem); }

/* Dark section */
.section-dark {
  background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 55%, #311a5e 100%);
  overflow: hidden;
}
.section-dark-bg { position: absolute; inset: 0; pointer-events: none; }
.blob-4 {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, rgba(255, 194, 14, 0.25) 0%, transparent 70%);
  top: -180px; right: -120px;
  animation: drift2 22s ease-in-out infinite alternate;
}
.section-dark .container { position: relative; z-index: 1; }
.section-dark h2 { color: #fff; }
.section-dark h3 { color: #fff; }

.card-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.card-glass p { color: #cfc4e6; }
.card-glass:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); border-color: rgba(255, 213, 79, 0.45); }
.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--night);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 2.4vw, 40px);
  margin-top: clamp(34px, 3.5vw, 54px);
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 2.2vw, 38px) clamp(22px, 2vw, 32px);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.steps li:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(36, 27, 51, 0.1); }
.steps p { color: var(--muted); font-size: clamp(0.93rem, 0.95vw, 1.08rem); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--purple-dark);
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

/* Quote */
.quote-band {
  background: linear-gradient(120deg, var(--purple-dark), var(--purple) 60%, #6a35a8);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.quote-band blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.5rem);
  max-width: 36ch;
  margin: 0 auto 14px;
}
.quote-band cite { color: var(--gold-2); font-style: normal; font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-grid .btn { margin-top: 22px; }
.contact-list {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 26px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(36, 27, 51, 0.08);
}
.contact-list li {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-list a { color: var(--purple); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--night); padding: 36px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner .brand-chip { padding: 5px 10px; box-shadow: none; }
.footer-inner .brand-chip img { width: 88px; }
.footer-inner p { color: #a99cc4; font-size: 0.9rem; }
.footer-inner nav { display: flex; gap: 12px 18px; flex-wrap: wrap; justify-content: center; }
.footer-inner nav a { color: #a99cc4; text-decoration: none; font-size: 0.9rem; }
.footer-inner nav a:hover { color: var(--gold-2); }

/* Language switch pill */
.lang-switch {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem !important;
}
.lang-switch:hover { border-color: var(--gold-2); }

/* Hebrew / RTL */
html[lang="he"] body { font-family: "Assistant", "Inter", system-ui, sans-serif; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3,
html[lang="he"] .quote-band blockquote p { font-family: "Frank Ruhl Libre", "Source Serif 4", Georgia, serif; }
html[lang="he"] h1 { max-width: 20ch; letter-spacing: 0; }
html[lang="he"] .eyebrow { letter-spacing: 0.06em; }
[dir="rtl"] .eyebrow::before { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .hero-bars { right: auto; left: 7%; }
[dir="rtl"] .shape-x { right: auto; left: 18%; }
[dir="rtl"] .shape-ring { right: auto; left: 10%; }
[dir="rtl"] .shape-plus { left: auto; right: 12%; }
[dir="rtl"] .shape-dot { left: auto; right: 22%; }
[dir="rtl"] .blob-1 { right: auto; left: -80px; }
[dir="rtl"] .blob-2 { left: auto; right: -100px; }

/* Floating buttons: accessibility trigger (inline-start) + back-to-top (inline-end) */
.a11y-btn {
  position: fixed;
  bottom: 18px;
  inset-inline-start: 18px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(26, 15, 51, 0.4);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.a11y-btn:hover { transform: translateY(-2px); border-color: var(--gold-2); }
.a11y-btn svg { width: 28px; height: 28px; }

.to-top {
  position: fixed;
  bottom: 18px;
  inset-inline-end: 18px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--night);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(26, 15, 51, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--gold-2); }
.to-top svg { width: 24px; height: 24px; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 84px;
  right: 84px;
  z-index: 90;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--night);
  color: #e8e2f5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 18px 48px rgba(15, 8, 33, 0.45);
  font-size: 0.9rem;
}
.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner a { color: var(--gold-2); }
.cookie-banner button {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--night);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}
.cookie-banner button:hover { background: var(--gold-2); }
.cookie-banner small { color: #b7abd6; }
.cookie-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.cookie-banner button.ghost {
  background: transparent;
  color: #cfc4e6;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.cookie-banner button.ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Legal pages (accessibility / privacy) */
.page-legal .legal-content { padding-top: 140px; }
.legal-content .container { max-width: 800px; }
.legal-content h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 0.3em; }
.legal-content h2 { font-size: 1.35rem; margin: 1.6em 0 0.4em; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content ul { padding-inline-start: 22px; margin: 0.4em 0; }
.legal-content a { color: var(--purple); font-weight: 600; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .blob-4, .shape, .hero-bars i { animation: none !important; }
  .card, .steps li, .btn, .client-logos img { transition: none; }
}

/* Mobile */
@media (max-width: 860px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding: 130px 0 170px; }
  .hero-inner { max-width: 100%; }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
  }
  .nav-toggle-label span {
    width: 24px; height: 2.5px;
    background: #fff;
    border-radius: 2px;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 8, 33, 0.18);
    flex-direction: column;
    padding: 18px 24px 24px;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-list a { color: var(--ink); }
  .nav-list a:hover { color: var(--purple); }
  .nav-cta { color: var(--night) !important; }
  .lang-switch { border-color: var(--line); }
  .nav-toggle:checked ~ .nav-list { display: flex; }

  .blob { filter: blur(50px); }
}

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 84px; flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
}

@media (max-width: 540px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .hero-bars { right: 5%; }
  .hero-bars i { width: 28px; }
  .hero-bars i:nth-child(1) { height: 110px; }
  .hero-bars i:nth-child(2) { height: 76px; }
  .hero-bars i:nth-child(3) { height: 46px; }
  .shape-x { right: 10%; }
}
