/* ==============================
   LDSG — Core Styles
   ============================== */

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

:root {
  --primary: #1D1E3C;
  --primary-hover: #2a2b4f;
  --text-dark: #0A0A0A;
  --text-gray: #4B5563;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --bg-white: #ffffff;
  --bg-alt: #F9FAFB;
  --bg-hero: #EEF2F7;
  --tag-bg: #F3F4F6;
  --tag-text: #374151;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==============================
   LAYOUT
   ============================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-sm {
  max-width: 700px;
}

/* ==============================
   VIEWS (SPA switching)
   ============================== */

.view {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view.active {
  display: block;
  opacity: 1;
}

/* ==============================
   HEADER
   ============================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Footer logo image is lighter, but we don't filter — it's already white */

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-gray);
  font-size: 16px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--tag-bg);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ==============================
   BUTTONS
   ============================== */

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

/* ==============================
   HERO
   ============================== */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom right, #F9FAFB, #FFFFFF);
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -1.5px;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-gray);
  max-width: 620px;
  line-height: 1.625;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==============================
   SECTIONS
   ============================== */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==============================
   EXPERTISE CARDS
   ============================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
  background: rgba(29, 30, 60, 0.1);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ==============================
   AI DARK SECTION
   ============================== */

.section-dark {
  background: var(--primary);
  padding: 64px 0;
}

.dark-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.dark-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
}

@media (max-width: 600px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}

.ai-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  margin-top: 6px;
}

.ai-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.ai-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* ==============================
   METHODOLOGY
   ============================== */

.methodology-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.method-item {
  display: grid;
  grid-template-columns: 56px 48px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.method-item:last-child {
  border-bottom: none;
}

.method-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--border);
  letter-spacing: -1px;
  padding-top: 8px;
}

.method-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  padding-top: 10px;
}

.method-body p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 14px;
}

.methodology-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 48px;
  padding: 0 40px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .method-item {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
  }

  .method-num {
    display: none;
  }
}

/* ==============================
   ENGAGEMENT MODELS
   ============================== */

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .engagement-grid {
    grid-template-columns: 1fr;
  }
}

.engage-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.engage-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.engage-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.engage-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.engage-card>p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.engage-includes {
  margin-bottom: 20px;
}

.includes-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.engage-includes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.engage-includes li {
  font-size: 13px;
  color: var(--text-gray);
  padding-left: 20px;
  position: relative;
}

.engage-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 1.5px solid #9CA3AF;
  border-radius: 50%;
  background: transparent;
}

.engage-includes li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #9CA3AF;
  border-bottom: 1.5px solid #9CA3AF;
  transform: translateY(-60%) rotate(-45deg);
}

.engage-ideal {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ideal-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.engage-ideal>p:last-child {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ==============================
   CLIENTS
   ============================== */

.clients-marquee-wrap {
  overflow: hidden;
  position: relative;
  margin: 0 -24px;
  padding: 12px 0;
}

.clients-marquee-wrap::before,
.clients-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.clients-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-white), transparent);
}

.clients-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-white), transparent);
}

.clients-marquee {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  direction: ltr;
  /* Force LTR so the loop mechanism works consistently in Hebrew */
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-rtl {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50%);
  }
}

.clients-marquee:hover {
  animation-play-state: paused;
}

.client-name {
  font-size: 16px;
  font-weight: 500;
  color: #9CA3AF;
  padding: 0 24px;
  transition: color 0.2s;
  cursor: default;
}

.client-name:hover {
  color: var(--primary);
}

.client-sep {
  color: var(--border);
  font-size: 18px;
}

.clients-note {
  text-align: center;
  font-size: 15px;
  color: var(--text-gray);
  margin-top: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ==============================
   CONTACT SECTION
   ============================== */

.contact-section {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #EEF2F7 0%, #E8EDF5 100%);
  min-height: calc(100vh - 60px);
}

.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

.contact-card-header {
  background: var(--primary);
  padding: 20px 28px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-card-header svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.contact-card-header p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.contact-form-wrap {
  padding: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-label svg {
  color: var(--text-light);
}

.form-input,
.form-textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9CA3AF;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 30, 60, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Value props */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

@media (max-width: 600px) {
  .value-props {
    grid-template-columns: 1fr;
  }
}

.value-prop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.value-icon {
  width: 52px;
  height: 52px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.value-prop h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.value-prop p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ==============================
   FOOTER
   ============================== */

.footer {
  background: var(--primary);
  color: white;
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
  align-items: start;
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand .logo {
  margin-bottom: 14px;
  color: white;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ==============================
   TOAST
   ============================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10B981;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-card);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==============================
   RTL (Hebrew) Support
   ============================== */

body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Because direction: rtl auto-reverses flex row arrangements, 
   we don't need to manually apply flex-direction: row-reverse anywhere */

/* Specific smaller button sizing for Hebrew as requested */

body[dir="rtl"] .cta-arrow {
  transform: scaleX(-1);
  margin-right: 8px;
  margin-left: 0;
}

body[dir="rtl"] .method-body {
  text-align: right;
}

body[dir="rtl"] .engage-includes li {
  padding-left: 0;
  padding-right: 20px;
}

body[dir="rtl"] .engage-includes li::before {
  left: auto;
  right: 0;
}

body[dir="rtl"] .engage-includes li::after {
  left: auto;
  right: 4px;
}