@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --primary: #0e09bb;
  --primary-hover: #0a068f;
  --dark-text: #0f111a;
  --subtle-bg: #d8d6d5;
  --border: #cdcfee;
  --accent: #ffffff;
  --font: 'IBM Plex Sans Arabic', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --shadow: 0 8px 32px rgba(14, 9, 187, 0.10);
  --shadow-lg: 0 16px 48px rgba(14, 9, 187, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(205, 207, 238, 0.4);
  --glass-blur: blur(18px);
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
  --body-bg: #ebe9e8;
}

[data-theme="dark"] {
  --dark-text: #e9eaf6;
  --subtle-bg: #171a2b;
  --border: rgba(205, 207, 238, 0.15);
  --accent: #ffffff;
  --glass-bg: rgba(15, 17, 26, 0.45);
  --glass-border: rgba(205, 207, 238, 0.12);
  --body-bg: #0f111a;
  --surface: #171a2b;
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font);
  color: var(--dark-text);
  background: var(--body-bg);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  padding: 8px 24px;
  box-shadow: var(--shadow-lg);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__logo {
  height: 45px;
  width: auto;
  display: flex;
  align-items: center;
}

.navbar__logo img {
  height: 45px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(7%) sepia(95%) saturate(6636%) hue-rotate(248deg) brightness(78%) contrast(114%);
  transition: filter var(--transition);
}

[data-theme="dark"] .navbar__logo img {
  filter: none;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 1rem;
}

x` .navbar__links a {
  color: var(--dark-text);
  transition: color var(--transition);
}

.navbar__links a:hover {
  color: var(--primary);
}

@media (min-width: 992px) {
  .navbar__links {
    display: flex;
  }
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-text);
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mobile-menu a:hover {
  background: var(--primary);
  color: var(--accent);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(14, 9, 187, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14, 9, 187, 0.4);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--dark-text);
}

.btn-glass:hover {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

/* ─── SECTION COMMON ─── */
.section {
  padding: 168px 0 120px;
}

section {
  border-radius: 0 0 48px 48px;
}

/* Global Section Stacking & Overlap */
body > section,
body > .hero-wrapper,
body > footer {
  position: relative;
}

body > .hero-wrapper { z-index: 20; }
body > .features { z-index: 19; }
body > .pricing-teaser { z-index: 18; }
body > .testimonials { z-index: 17; background: var(--body-bg); }
body > .task-panel { z-index: 16; }
body > #blog { z-index: 15; background: var(--body-bg); }
body > #faq { z-index: 14; background: var(--subtle-bg); }
body > .final-cta { z-index: 13; }
body > .footer { z-index: 12; }

body > .hero-wrapper + section,
body > section + section,
body > section + footer {
  margin-top: -48px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 24px;
  color: var(--dark-text);
}

.section-desc {
  font-size: 1.15rem;
  color: var(--dark-text);
  opacity: 0.75;
  max-width: 720px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ─── HERO ─── */
.hero-wrapper {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  transition: border-radius var(--transition);
  overflow: hidden;
}

.hero-wrapper.scrolled {
  border-radius: 0 0 48px 48px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 26, 0.7);
  /* Slightly lighter overlay so the image shows */
  z-index: 1;
}

.hero {
  padding: 120px 0 60px;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  text-align: right;
  max-width: 700px;
}

.hero .section-title {
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.hero .section-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.hero__trust {
  margin-top: 24px;
  font-size: 0.95rem;
  opacity: 0.8;
  display: flex;
  gap: 16px;
}

.hero__trust span {
  display: inline-block;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.placeholder-box {
  background: var(--subtle-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--dark-text);
  opacity: 0.6;
  font-size: 0.9rem;
  min-height: 200px;
  overflow: hidden;
  position: relative;
}

.placeholder-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.placeholder-box img {
  display: none;
}

/* ─── LOGOS SCROLLER ─── */
.logos-section {
  position: relative;
  z-index: 2;
  padding: 0 0 60px 0;
  overflow: hidden;
}

.logos-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0 0 40px 0;
  width: 100%;
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: auto;
  max-width: 1200px;
  width: 100%;
  padding: 0 24px;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 24px;
  direction: ltr;
  mask-image: linear-gradient(to right,
      hsl(0 0% 0% / 0),
      hsl(0 0% 0% / 1) 10%,
      hsl(0 0% 0% / 1) 90%,
      hsl(0 0% 0% / 0));
  -webkit-mask-image: linear-gradient(to right,
      hsl(0 0% 0% / 0),
      hsl(0 0% 0% / 1) 10%,
      hsl(0 0% 0% / 1) 90%,
      hsl(0 0% 0% / 0));
}

.marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  min-width: 100%;
  animation: scroll-x 40s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__group {
    animation-play-state: paused;
  }
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 24px));
  }
}

.logo-card {
  background: #ebe9e8;
  border-radius: 24px;
  width: 140px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.logo-invert img {
  filter: brightness(0) !important;
}

[data-theme="dark"] .logo-invert img {
  filter: none !important;
}

.logo-card img,
.logo-card svg {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* ─── FEATURES ─── */
.features {
  position: relative;
  height: 300vh;
  padding: 0;
}

.features-pinned {
  background: var(--body-bg);
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
  overflow: hidden;
  width: 100%;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
}

.features .container {
  display: grid;
  grid-template-columns: 40px 1fr 1.8fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.features__header {
  grid-column: 1 / -1;
  margin-bottom: 32px;
  text-align: center;
}

.features__progress {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.features__progress-line {
  width: 3px;
  height: 160px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.features__progress-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--primary);
  border-radius: 2px;
  transition: height 0.5s ease;
}

.features__progress-line.active::after {
  height: 100%;
}

.features__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--body-bg);
  transition: all var(--transition);
  flex-shrink: 0;
}

.features__dot.active {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(14, 9, 187, 0.2);
}

.features__text {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
}

.features__item {
  position: absolute;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
  pointer-events: none;
  padding: 0 24px;
}

.features__item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.features__item h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.features__item p {
  font-size: 1.1rem;
  opacity: 0.75;
  line-height: 1.8;
}

.features__visual {
  position: relative;
  min-width: 0;
  width: 100%;
}

.features__visual-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: opacity 0.5s ease;
  width: 100%;
}

/* ─── PRICING TEASER ─── */
.pricing-teaser {
  background: var(--subtle-bg);
}

.pricing-teaser .container {
  text-align: center;
  max-width: 700px;
}

.pricing-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px auto;
  max-width: 400px;
}

.pricing-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  justify-content: flex-start;
}

.pricing-checks li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(14, 9, 187, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ─── TESTIMONIALS ─── */
.testimonials-marquee {
  --duration: 120s;
}



.testimonial-card {
  min-width: 360px;
  max-width: 440px;
  border-radius: var(--radius);
  flex-shrink: 0;
  direction: rtl;
  text-align: right;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

.testimonial-card__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.testimonial-card__body {
  padding: 40px 24px 24px;
  position: relative;
  background: linear-gradient(to top, var(--body-bg) 85%, transparent);
  margin-top: -70px;
  z-index: 1;
  border-radius: 0 0 var(--radius) var(--radius);
}

.testimonial-card__quote {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
  opacity: 0.9;
  font-weight: 500;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-card__role {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Audio Player */
.audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.audio-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: all var(--transition);
}

.audio-play-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.1);
}

.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  flex: 1;
}

.waveform span {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  height: 4px;
  transition: height 0.15s ease;
  opacity: 0.4;
}

.waveform.playing span {
  animation: wave 0.6s ease-in-out infinite alternate;
  opacity: 1;
}

.waveform.playing span:nth-child(odd) {
  animation-delay: 0.1s;
}

.waveform.playing span:nth-child(3n) {
  animation-delay: 0.2s;
}

.waveform.playing span:nth-child(4n) {
  animation-delay: 0.3s;
}

@keyframes wave {
  0% {
    height: 4px;
  }

  100% {
    height: 20px;
  }
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.testimonials-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--subtle-bg);
  color: var(--dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.testimonials-nav button:hover {
  background: var(--primary);
  color: var(--accent);
}

/* ─── TASK PANEL ─── */
.task-panel {
  background: transparent;
  height: 300vh;
  padding: 0;
}

.taskpanel-pinned {
  background: var(--subtle-bg);
  border-radius: 0 0 48px 48px;
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
  overflow: hidden;
  width: 100%;
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
}

.task-panel__showcase {
  position: relative;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.task-panel__screen {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  perspective: 1000px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.task-panel__screen-inner {
  transition: transform 0.7s ease, opacity 0.5s ease;
  transform-style: preserve-3d;
}

.task-panel__tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.task-panel__tab {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--body-bg);
  border: 1px solid var(--border);
  color: var(--dark-text);
  transition: all var(--transition);
}

.task-panel__tab.active,
.task-panel__tab:hover {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}

.task-panel__info {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.task-panel__info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.task-panel__info p {
  font-size: 0.95rem;
  opacity: 0.75;
  line-height: 1.7;
}

/* ─── BLOG ─── */
.blog-track {
  display: flex;
  gap: 20px;
  overflow-x: visible;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-track::-webkit-scrollbar {
  display: none;
}

.blog-card {
  min-width: 280px;
  max-width: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--body-bg);
  transition: transform var(--transition);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card__img {
  width: 100%;
  aspect-ratio: 8/5;
  object-fit: cover;
}

.blog-card__body {
  padding: 16px;
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}

.blog-card__excerpt {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.7;
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(14, 9, 187, 0.05);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-text);
  text-align: right;
  gap: 16px;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--primary);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  opacity: 0.75;
  line-height: 1.8;
}

/* ─── FINAL CTA ─── */
.final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1a15d4 50%, var(--primary-hover) 100%);
  text-align: center;
  color: var(--accent);
  padding: 148px 0 100px;
  border-radius: 0 0 48px 48px;
  position: relative;
  z-index: 2;
}

.final-cta .section-title {
  color: var(--accent);
}

.final-cta .section-desc {
  color: rgba(255, 255, 255, 0.85);
  margin-inline: auto;
}

.final-cta .btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-size: 1.1rem;
  padding: 16px 40px;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.3);
}

.final-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.4);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--dark-text);
  color: var(--accent);
  padding: 108px 0 0;
  border-radius: 0;
  margin-top: -48px;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .footer {
  background: #0a0c14;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
  opacity: 0.9;
}

.footer__col a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  opacity: 0.65;
  transition: opacity var(--transition), color var(--transition);
}

.footer__col a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer__license-btn {
  margin-top: 16px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.85rem;
  transition: all var(--transition);
}

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

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  opacity: 1;
}

.footer__social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
  margin-top: 20px;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--body-bg);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--subtle-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero__content {
    text-align: center;
    margin: 0 auto;
  }

  .hero__btns, .hero__trust {
    justify-content: center;
  }

  .hero__visual {
    order: 2;
  }

  .features .container {
    grid-template-columns: 1fr;
  }

  .features__progress {
    display: none;
  }

  .features__visual {
    position: static;
    order: 2;
    margin-top: 16px;
  }

  .features__visual-img {
    max-height: 35vh;
    margin: 0 auto;
  }

  .features__text {
    height: 220px;
    align-items: flex-start;
  }

  .features-pinned, .taskpanel-pinned {
    padding-top: 90px;
  }

  .features__item h3 {
    font-size: 1.25rem;
  }

  .features__item p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section {
    padding: 108px 0 60px;
  }

  .final-cta {
    padding: 108px 0 60px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-teaser .container {
    text-align: right;
  }
}

@media (max-width: 480px) {
  .navbar {
    width: calc(100% - 24px);
    max-width: none;
    padding: 10px 16px;
  }

  .navbar__logo img {
    height: 35px;
  }

  .navbar__actions .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card,
  .blog-card {
    min-width: 260px;
  }
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}