@font-face {
  font-family: 'FbElectron';
  src: url('fonts/FbElectronSansHeb-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FbElectron';
  src: url('fonts/FbElectronSansHeb-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FbElectron';
  src: url('fonts/FbElectronSansHeb-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FbElectron';
  src: url('fonts/FbElectronSansHeb-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FbElectron';
  src: url('fonts/FbElectronSansHeb-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Polin';
  src: url('fonts/Polin-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #0A0A0A;
  --color-bg-alt: #111111;
  --color-surface: #161616;
  --color-accent: #00C896;
  --color-accent-dim: rgba(0, 200, 150, 0.12);
  --color-text: #F0F0F0;
  --color-text-muted: #888888;
  --color-border: #222222;
  --radius: 10px;
  --max-w: 1100px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'FbElectron', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  font-weight: 400;
}

/* ---- UTILS ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--color-accent); }
.glow-text {
  color: #00C896;
  display: inline;
}
.muted { font-family: 'FbElectron', sans-serif; font-weight: 300; color: var(--color-text-muted); }
.hidden { display: none !important; }
.center { text-align: center; }

/* ---- TYPOGRAPHY ---- */
h1 { font-family: 'Polin', 'FbElectron', sans-serif; font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.2rem; }
h2 { font-family: 'FbElectron', sans-serif; font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 900; margin-bottom: 1rem; }
h3 { font-family: 'FbElectron', sans-serif; font-size: 1.2rem; font-weight: 900; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
p, .faq-a, .pricing-desc, .problem-card p, .service-card p, .step p { font-size: 1.05rem; }
.price { font-family: 'FbElectron', sans-serif; font-size: 1.8rem; font-weight: 900; }
.pricing-features li { font-size: 1rem; }
.pricing-desc { font-family: 'FbElectron', sans-serif; font-weight: 300; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'FbElectron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-accent { background: var(--color-accent); color: #000; }
.btn-accent:hover { background: #00e0a8; }
.btn-ghost { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; text-align: center; display: block; }
input, button, .btn { font-size: 1rem; }

/* ---- NAV ---- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { font-family: 'Polin', sans-serif; font-size: 1.3rem; font-weight: 900; color: var(--color-text); text-decoration: none; letter-spacing: 1px; }
.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; flex: 1; }
.nav-links a { font-family: 'FbElectron', sans-serif; font-weight: 700; color: var(--color-text-muted); text-decoration: none; font-size: 1rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--color-accent); }
.hamburger { display: none; background: none; border: none; color: var(--color-text); font-size: 1.4rem; cursor: pointer; margin-right: auto; }
.mobile-menu { display: none; list-style: none; background: var(--color-bg-alt); padding: 20px 24px; border-top: 1px solid var(--color-border); }
.mobile-menu.open { display: block; animation: menuSlideDown 0.25s ease; }
@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu li { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.mobile-link { color: var(--color-text); text-decoration: none; font-size: 1rem; }

/* ---- SECTIONS ---- */
section { padding: 96px 0; }
.section-dark { background: var(--color-bg); }
.section-light { background: var(--color-bg-alt); }
.section-alt { background: var(--color-surface); }
/* Subtle radial glow behind services + testimonials (layered over the base color) */
#services { background: radial-gradient(ellipse at 50% 0%, rgba(0,200,150,0.06) 0%, transparent 70%), var(--color-bg-alt); }
#testimonials { background: radial-gradient(ellipse at 50% 0%, rgba(0,200,150,0.06) 0%, transparent 70%), var(--color-bg); }
.section-tag {
  display: inline-block;
  font-family: 'FbElectron', sans-serif;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag.center { display: block; text-align: center; }
.section-center { text-align: center; margin-bottom: 48px; }
.section-sub { color: var(--color-text-muted); margin-top: -32px; margin-bottom: 48px; font-size: 0.95rem; }

/* ---- HERO ---- */
#hero { position: relative; padding: 120px 0 100px; text-align: center; overflow: hidden; }
#hero > .container { position: relative; z-index: 2; }

/* Aurora / gradient-mesh background — hero only, pure CSS */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.blob-1 {
  width: 600px;
  height: 600px;
  top: -160px;
  right: -90px;
  opacity: 0.5;
  background: radial-gradient(circle, #00C896 0%, rgba(0, 200, 150, 0) 70%);
  animation: aurora-1 11s ease-in-out infinite;
}
.blob-2 {
  width: 800px;
  height: 800px;
  bottom: -220px;
  left: -120px;
  opacity: 0.45;
  background: radial-gradient(circle, #007a5c 0%, rgba(0, 122, 92, 0) 70%);
  animation: aurora-2 14s ease-in-out infinite;
  animation-delay: -4s;
}
.blob-3 {
  width: 500px;
  height: 500px;
  top: 18%;
  left: 34%;
  opacity: 0.4;
  background: radial-gradient(circle, #003d2e 0%, rgba(0, 61, 46, 0) 70%);
  animation: aurora-3 9s ease-in-out infinite;
  animation-delay: -6s;
}
.blob-4 {
  width: 700px;
  height: 700px;
  top: -120px;
  left: 10%;
  opacity: 0.42;
  background: radial-gradient(circle, #00C896 0%, rgba(0, 200, 150, 0) 70%);
  animation: aurora-4 13s ease-in-out infinite;
  animation-delay: -8s;
}
/* 5th small blob — faster for extra energy */
.blob-5 {
  width: 300px;
  height: 300px;
  bottom: 8%;
  right: 22%;
  opacity: 0.55;
  background: radial-gradient(circle, #00C896 0%, rgba(0, 200, 150, 0) 70%);
  animation: aurora-5 6s ease-in-out infinite;
  animation-delay: -2s;
}
@keyframes aurora-1 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate(-110px, 90px) scale(1.2) rotate(12deg); }
}
@keyframes aurora-2 {
  0%, 100% { transform: translate(0, 0) scale(1.05) rotate(0deg); }
  50%      { transform: translate(100px, -100px) scale(0.85) rotate(-15deg); }
}
@keyframes aurora-3 {
  0%, 100% { transform: translate(0, 0) scale(0.9) rotate(0deg); }
  50%      { transform: translate(80px, 120px) scale(1.15) rotate(15deg); }
}
@keyframes aurora-4 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate(120px, 95px) scale(1.18) rotate(-12deg); }
}
@keyframes aurora-5 {
  0%, 100% { transform: translate(0, 0) scale(0.85) rotate(0deg); }
  50%      { transform: translate(-90px, -85px) scale(1.2) rotate(15deg); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none; }
}
.eyebrow { font-family: 'FbElectron', sans-serif; font-weight: 300; color: var(--color-accent); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.hero-sub { color: var(--color-text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; color: var(--color-text-muted); font-size: 0.9rem; }
.hero-proof span { display: flex; align-items: center; gap: 6px; }

/* ---- FORM ---- */
.form-container {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 48px;
}
.form-container h2 { margin-bottom: 32px; }
form { display: flex; flex-direction: column; gap: 14px; text-align: right; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type="text"], input[type="tel"], input[type="email"] {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--color-text);
  font-family: 'FbElectron', sans-serif;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s;
}
input:focus { outline: none; border-color: var(--color-accent); }
input::placeholder { color: var(--color-text-muted); }
.form-radios { display: flex; gap: 24px; flex-wrap: wrap; }
.form-radios label { color: var(--color-text-muted); font-size: 0.95rem; cursor: pointer; display: flex; gap: 8px; align-items: center; }
input[type="radio"] { accent-color: var(--color-accent); }
.form-success {
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.hidden { display: none; }

/* ---- CLIENTS ---- */
.clients-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.client-logo {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 24px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center; }
.about-text p { color: var(--color-text-muted); }
.about-text strong { color: var(--color-text); }
.stats-row { display: flex; gap: 32px; margin-top: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'FbElectron', sans-serif; font-size: 2.4rem; font-weight: 900; color: var(--color-accent); }
.stat-label { color: var(--color-text-muted); font-size: 0.85rem; }
.img-placeholder { width: 100%; background: var(--color-surface); border-radius: 12px; border: 1px solid var(--color-border); }

/* About uploadable media box */
.about-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.about-media:hover { border-color: var(--color-accent); }
.about-media:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.about-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  padding: 24px;
  text-align: center;
  pointer-events: none;
}
.about-media-icon { font-size: 2.6rem; }
.about-media-text { font-size: 0.95rem; font-weight: 600; }
.about-media img,
.about-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-media-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.about-media-remove:hover { background: #e02a4a; }
.about-media.has-media { cursor: default; }
.about-media-save {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #00C896;
  color: #04221a;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.about-media-save:hover { background: #00b083; }
.about-media-save:active { transform: scale(0.98); }

/* Upload spinner overlay while media is sent to Supabase */
.about-media-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(13, 17, 23, 0.82);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.95rem;
}
.about-media-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: about-media-spin 0.8s linear infinite;
}
@keyframes about-media-spin { to { transform: rotate(360deg); } }

/* ---- PROBLEMS ---- */
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.problem-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.2s;
}
.problem-card:hover { border-color: var(--color-accent); }
.problem-icon { font-size: 2.2rem; display: block; margin-bottom: 16px; }
.problem-card p { font-family: 'FbElectron', sans-serif; font-weight: 300; color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* ---- SERVICES ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--color-accent); }
.service-num { font-family: 'FbElectron', sans-serif; color: var(--color-accent); font-size: 2rem; font-weight: 900; display: block; margin-bottom: 12px; }
.service-card p { font-family: 'FbElectron', sans-serif; font-weight: 300; color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* ---- PORTFOLIO ---- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portfolio-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.portfolio-thumb { width: 100%; aspect-ratio: 16/9; background: var(--color-surface); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; }
.portfolio-thumb::after {
  content: '＋ הוסף סרטון';
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}
.portfolio-item:hover .portfolio-thumb::after { opacity: 1; }
.portfolio-item.has-video { cursor: default; }
.portfolio-item.has-video .portfolio-thumb { padding: 0; border: none; }
.portfolio-item.has-video .portfolio-thumb::after { content: none; }
.portfolio-item.has-video .portfolio-label { display: none; }
.portfolio-thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.portfolio-remove {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.portfolio-remove:hover { background: #e02a4a; }
.portfolio-item.has-video .portfolio-remove { display: flex; }
.portfolio-label {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  padding: 20px 14px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---- PROCESS ---- */
.process-steps { display: flex; align-items: flex-start; gap: 8px; margin-top: 48px; }
.step { flex: 1; text-align: center; }
.step-num { font-family: 'FbElectron', sans-serif; display: block; color: var(--color-accent); font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-family: 'FbElectron', sans-serif; font-weight: 300; color: var(--color-text-muted); font-size: 0.9rem; }
.step-divider { color: var(--color-accent); font-size: 1.5rem; padding-top: 16px; flex-shrink: 0; }

/* ---- TESTIMONIALS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 24px; }
.testimonial-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.testimonial-body { flex: 1; }
.testimonial-save { align-self: flex-start; }
.quote { font-family: 'FbElectron', sans-serif; font-weight: 400; color: var(--color-text); font-size: 1.05rem; line-height: 1.8; margin-bottom: 24px; position: relative; }
.quote::before { content: '"'; color: var(--color-accent); font-size: 3rem; line-height: 0; position: relative; top: 14px; margin-left: 4px; font-weight: 800; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-author strong { font-size: 1rem; }
.testimonial-author .muted { font-size: 0.9rem; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--color-accent-dim); border: 2px solid var(--color-accent); flex-shrink: 0; cursor: pointer; overflow: hidden; position: relative; padding: 0; display: block; transition: filter 0.2s; }
.author-avatar:hover { filter: brightness(1.1); }
.author-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* Verified badge on each avatar */
.avatar-wrapper { position: relative; display: inline-block; }
.verified-badge { position: absolute; bottom: -2px; left: -2px; background: #0A0A0A; border-radius: 50%; padding: 1px; line-height: 0; }
.verified-badge svg { width: 18px; height: 18px; }

/* 5-star rating */
.stars { color: #FFD700; font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 16px; }

/* Subtle float animation on testimonial cards */
@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
.testimonial-card:nth-child(1) { animation: float-card 5s ease-in-out infinite; }
.testimonial-card:nth-child(2) { animation: float-card 6s ease-in-out infinite 0.8s; }
.testimonial-card:nth-child(3) { animation: float-card 5.5s ease-in-out infinite 1.5s; }
.testimonial-card:nth-child(4) { animation: float-card 6.5s ease-in-out infinite 0.4s; }

/* Editable testimonials */
.testimonial-edit {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.testimonial-edit:hover { border-color: var(--color-accent); background: var(--color-accent-dim); }
.testimonial-card.editing .testimonial-edit { display: none; }
.testimonial-card [contenteditable="true"] {
  outline: 2px solid #00C896;
  outline-offset: 3px;
  border-radius: 6px;
}
.testimonial-save {
  margin-top: 20px;
  background: var(--color-accent);
  color: #00231a;
  border: none;
  border-radius: 8px;
  padding: 9px 22px;
  font-family: 'FbElectron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.testimonial-save:hover { background: #00e0a8; }

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: 'FbElectron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 20px 0;
  text-align: right;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--color-accent); }
.faq-arrow { color: var(--color-accent); font-size: 1.3rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-a { font-family: 'FbElectron', sans-serif; font-weight: 400; color: var(--color-text-muted); padding: 0 0 20px; font-size: 0.95rem; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }

/* ---- FOOTER ---- */
footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-tagline { color: var(--color-text-muted); font-size: 0.95rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--color-text-muted); text-decoration: none; transition: color 0.2s; font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-copy { font-size: 0.8rem; margin: 0; }

/* ---- FORM SLIDE-OUT ---- */
.form-hide { animation: formSlideOut 0.4s ease forwards; pointer-events: none; }
@keyframes formSlideOut {
  to { opacity: 0; transform: translateY(30px); }
}

/* ---- SUCCESS OVERLAY ---- */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow: hidden;
}
.success-overlay.open { display: flex; opacity: 1; }
.success-overlay.fade-out { opacity: 0; }
.success-card {
  position: relative;
  z-index: 2;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 48px 40px;
  max-width: 460px;
  width: calc(100% - 48px);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.8);
}
.success-overlay.open .success-card { animation: successScaleIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards; }
@keyframes successScaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-check { width: 96px; height: 96px; margin: 0 auto 20px; display: block; }
.success-check-circle {
  fill: none;
  stroke: #00C896;
  stroke-width: 4;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
}
.success-check-mark {
  fill: none;
  stroke: #00C896;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}
.success-overlay.open .success-check-circle { animation: drawCircle 0.5s ease forwards 0.15s; }
.success-overlay.open .success-check-mark { animation: drawMark 0.4s ease forwards 0.6s; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawMark { to { stroke-dashoffset: 0; } }
.success-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; color: var(--color-text); }
.success-text { font-size: 1.05rem; color: var(--color-text-muted); margin: 0; }

/* ---- CONFETTI ---- */
.confetti-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  will-change: transform, opacity;
}

/* ---- CRM GEAR + DASHBOARD ---- */
.crm-gear {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, border-color 0.2s;
}
.crm-gear:hover { transform: scale(1.06) rotate(30deg); border-color: var(--color-accent); }
.crm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #111111;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.crm-overlay.hidden { display: none; }
.crm-panel { width: 100%; max-width: 1100px; margin: 0 auto; }
.crm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.crm-title { font-size: 1.6rem; font-weight: 800; margin: 0; color: var(--color-text); }
.crm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.crm-btn {
  font-family: 'FbElectron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.crm-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.crm-export { background: var(--color-accent); color: #00231a; border-color: var(--color-accent); }
.crm-export:hover { background: #00e0a8; color: #00231a; }
.crm-clear:hover { border-color: #e02a4a; color: #e02a4a; }
.crm-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.crm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  color: var(--color-text);
}
.crm-table th, .crm-table td {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: right;
  font-size: 0.95rem;
  white-space: nowrap;
}
.crm-table th { background: var(--color-surface); font-weight: 700; }
.crm-table td { background: var(--color-bg-alt); }
.crm-row-delete {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: 'FbElectron', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.crm-row-delete:hover { border-color: #e02a4a; color: #fff; background: #e02a4a; }
.crm-empty { color: var(--color-text-muted); padding: 32px 0; text-align: center; font-size: 1rem; }

/* ---- RESPONSIVE ---- */

/* Tablet: 768px – 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .container { padding: 0 28px; }
  .problems-grid,
  .services-grid,
  .testimonials-grid,
  .pricing-grid,
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 300px; gap: 40px; }
}

/* Mobile: ≤ 767px */
@media (max-width: 767px) {
  section { padding: 64px 0; }
  .container { padding: 0 18px; }
  body { font-size: 16px; }

  /* Navbar — logo + hamburger only */
  .nav-links, #navbar .nav-inner > .btn { display: none; }
  .hamburger { display: block; }
  .nav-inner { gap: 16px; justify-content: space-between; }
  .mobile-menu { padding: 8px 18px; }
  .mobile-menu li { padding: 0; border-bottom: 1px solid var(--color-border); }
  .mobile-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    font-size: 1rem;
  }
  .mobile-menu li .btn { width: 100%; text-align: center; justify-content: center; }

  /* Hero */
  #hero { padding: 80px 0 64px; }
  h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .hero-proof { flex-direction: column; align-items: center; gap: 10px; }

  /* Aurora — 50% smaller + softer so text stays readable */
  .blob-1 { width: 300px; height: 300px; opacity: 0.2; }
  .blob-2 { width: 400px; height: 400px; opacity: 0.2; }
  .blob-3 { width: 250px; height: 250px; opacity: 0.2; }
  .blob-4 { width: 350px; height: 350px; opacity: 0.2; }
  .blob-5 { width: 150px; height: 150px; opacity: 0.2; }

  /* Grids → single column */
  .problems-grid,
  .services-grid,
  .testimonials-grid,
  .pricing-grid,
  .portfolio-grid { grid-template-columns: 1fr; }

  /* About → stack, media 16/9 on top */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { order: -1; }
  .about-media { aspect-ratio: 16/9; }
  .stats-row { gap: 20px; flex-wrap: wrap; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Process → vertical with line connector */
  .process-steps { flex-direction: column; align-items: stretch; gap: 0; }
  .step { position: relative; padding: 20px 0; }
  .step-divider { display: none; }
  .process-steps .step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 2px;
    height: 20px;
    background: var(--color-accent);
    transform: translateX(50%) translateY(100%);
  }

  /* FAQ — full width, large tap targets */
  .faq-list { max-width: 100%; }
  .faq-q { min-height: 48px; }

  /* Footer */
  .footer-inner { text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }

  /* Buttons & type minimums */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .hero-proof, .section-tag, .footer-copy, .pricing-features li, .portfolio-label,
  .nav-links a, .footer-links a, .stat-label, .client-logo { font-size: max(0.9rem, 15px); }

  /* Accessibility widget — lift above browser nav bar, panel opens upward */
  #a11y-widget { bottom: 80px; left: 14px; }
  .a11y-panel { width: min(220px, calc(100vw - 28px)); }

  /* CRM gear — above accessibility widget */
  .crm-gear { bottom: 140px; right: 14px; }

  /* CRM dashboard */
  .crm-overlay { padding: 16px; }
  .crm-title { font-size: 1.3rem; }
  .crm-table th, .crm-table td { font-size: 15px; padding: 10px 12px; }

  /* Success card — full width, scaled type */
  .success-card { width: 90vw; padding: 36px 24px; }
  .success-title { font-size: 1.6rem; }
  .success-text { font-size: 0.95rem; }
}

/* ---- ACCESSIBILITY WIDGET ---- */
#a11y-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.a11y-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: #00231a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(0, 200, 150, 0.18), 0 0 18px 2px rgba(0, 200, 150, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.a11y-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 5px rgba(0, 200, 150, 0.22), 0 0 26px 4px rgba(0, 200, 150, 0.7);
}
.a11y-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.a11y-panel {
  background: #161616;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 10px;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  text-align: right;
}
.a11y-panel[hidden] { display: none; }
.a11y-option {
  font-family: 'FbElectron', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  padding: 11px 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.a11y-option:hover,
.a11y-option:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dim);
  outline: none;
}
.a11y-option.a11y-reset {
  margin-top: 4px;
  border-style: dashed;
  color: var(--color-text-muted);
}
.a11y-option.a11y-reset:hover { color: var(--color-accent); }

/* ---- ACCESSIBILITY BODY STATES ---- */
body.a11y-high-contrast { background: #000 !important; color: #fff !important; }
body.a11y-high-contrast .section-dark,
body.a11y-high-contrast .section-light,
body.a11y-high-contrast .section-alt,
body.a11y-high-contrast #navbar,
body.a11y-high-contrast footer,
body.a11y-high-contrast .service-card,
body.a11y-high-contrast .problem-card,
body.a11y-high-contrast .testimonial-card,
body.a11y-high-contrast .client-logo,
body.a11y-high-contrast .img-placeholder,
body.a11y-high-contrast .portfolio-thumb { background: #000 !important; }
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast p,
body.a11y-high-contrast li,
body.a11y-high-contrast span,
body.a11y-high-contrast a,
body.a11y-high-contrast .muted,
body.a11y-high-contrast .hero-sub,
body.a11y-high-contrast .section-sub { color: #fff !important; }

body.a11y-underline-links a { text-decoration: underline !important; }

body.a11y-readable-font,
body.a11y-readable-font input,
body.a11y-readable-font textarea,
body.a11y-readable-font button { font-family: Arial, Helvetica, sans-serif !important; }

/* ---- ADMIN / EDIT MODE ---- */
/* Forward-compat: pricing cards share the frosted-glass treatment */
.pricing-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Green "edit mode active" bar — only visible when logged in as admin */
.admin-bar {
  display: none;
  background: var(--color-accent);
  color: #00231a;
  text-align: center;
  font-family: 'FbElectron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  position: relative;
  z-index: 200;
}
body.admin-mode .admin-bar { display: block; }

/* All edit affordances are hidden until admin mode is on */
.testimonial-edit { display: none; }
body.admin-mode .testimonial-edit { display: block; }

body:not(.admin-mode) .about-media-placeholder { display: none; }
body:not(.admin-mode) .about-media { cursor: default; }
body:not(.admin-mode) .about-media:hover { border-color: var(--color-border); }
/* Save / remove media controls are admin-only */
body:not(.admin-mode) .about-media-save,
body:not(.admin-mode) .about-media-remove { display: none; }

body:not(.admin-mode) .author-avatar { cursor: default; }
body:not(.admin-mode) .author-avatar:hover { filter: none; }

/* Portfolio "add video" hover hint only for admins */
body:not(.admin-mode) .portfolio-thumb::after { content: none; }

/* Editable portfolio labels (admin only) */
body.admin-mode .portfolio-label { cursor: text; }
.portfolio-label[contenteditable="true"] {
  outline: 2px solid #00C896;
  outline-offset: 2px;
  border-radius: 4px;
  cursor: text;
}
