/* =========================================================
   Soodar modern homepage — design tokens & layout
   Accent: deep navy + teal (network infra, not purple/cream)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");
@import url("https://cdn.jsdelivr.net/npm/vazirmatn@33.003/Vazirmatn-font-face.css");

:root {
  --soo-ink: #07111f;
  --soo-navy: #0c1b2e;
  --soo-slate: #1a2f45;
  --soo-mist: #e8eef4;
  --soo-fog: #f4f7fa;
  --soo-teal: #0f9d8a;
  --soo-teal-bright: #1ec9b0;
  --soo-teal-deep: #0a7a6b;
  --soo-text: #1b2838;
  --soo-muted: #5a6b7d;
  --soo-line: rgba(15, 157, 138, 0.22);
  --soo-radius: 4px;
  --soo-font-display: "Outfit", "Vazirmatn", sans-serif;
  --soo-font-body: "IBM Plex Sans", "Vazirmatn", sans-serif;
  --soo-shadow: 0 18px 40px rgba(7, 17, 31, 0.12);
  --soo-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="fa-ir"],
html[dir="rtl"] {
  --soo-font-display: "Vazirmatn", "Outfit", sans-serif;
  --soo-font-body: "Vazirmatn", "IBM Plex Sans", sans-serif;
}

body {
  font-family: var(--soo-font-body);
  color: var(--soo-text);
  background: var(--soo-fog);
  font-size: 18px !important;
  line-height: 1.75 !important;
}

/* Override theme `p { font-size: 15px }` */
.soo-hero p,
.soo-pillars p,
.soo-arch p,
.soo-features p,
.soo-usecases p,
.soo-demos p,
.soo-section-head p,
.soo-feature p,
.soo-arch__part p,
.soo-pillar__text,
.soo-hero__lead,
.soo-hero__subtitle {
  font-size: 1.125rem !important; /* ~20px */
  line-height: 1.8 !important;
}

/* ---------- Navigation polish ---------- */
.navigation {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 27, 46, 0.06);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navigation .navbar .navbar-nav > li > a {
  font-family: var(--soo-font-body);
  font-weight: 500;
  font-size: 16px !important;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--soo-slate);
}

.navigation .navbar .navbar-nav > li > a:hover,
.navigation .navbar .navbar-nav > li > a:focus {
  color: var(--soo-teal-deep);
}

.navigation .navbar .dropdown-menu a:hover {
  background: var(--soo-teal);
}

#select-language {
  border-radius: var(--soo-radius);
  border-color: rgba(12, 27, 46, 0.15) !important;
  font-family: var(--soo-font-body);
  padding: 4px 8px;
}

/* ---------- Shared section heads ---------- */
/* Theme styles bare `header { background:#fff }` — never use <header> for these. */
.soo-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  background: transparent !important;
  padding: 0 !important;
}

.soo-section-head h2 {
  font-family: var(--soo-font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.2vw, 2.6rem) !important;
  color: var(--soo-ink);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.soo-section-head p {
  color: var(--soo-muted);
  font-size: 1.25rem !important;
  line-height: 1.8 !important;
  margin: 0;
}

/* Dark sections: force readable light text */
.soo-hero,
.soo-arch,
.soo-demos {
  color: #e8f4f1;
}

.soo-section-head--light h2 {
  color: #e8f4f1 !important;
}

.soo-section-head--light p {
  color: rgba(232, 244, 241, 0.85) !important;
}

/* ---------- Buttons ---------- */
.soo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--soo-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border-radius: var(--soo-radius);
  transition: transform 0.35s var(--soo-ease), background 0.25s ease, color 0.25s ease, box-shadow 0.35s ease;
}

.soo-btn--primary {
  background: var(--soo-teal);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(15, 157, 138, 0.35);
}

.soo-btn--primary:hover {
  background: var(--soo-teal-bright);
  color: #fff !important;
  transform: translateY(-2px);
}

.soo-btn--ghost {
  background: transparent;
  color: #e8f4f1 !important;
  border: 1px solid rgba(232, 244, 241, 0.45);
}

.soo-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.soo-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--soo-ink);
  color: #e8f4f1;
  padding: 88px 0 72px;
}

.soo-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transform: scale(1.04);
  filter: saturate(0.85) brightness(0.55);
}

.soo-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(15, 157, 138, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(30, 201, 176, 0.12), transparent 50%),
    linear-gradient(160deg, rgba(7, 17, 31, 0.82) 0%, rgba(12, 27, 46, 0.88) 45%, rgba(16, 40, 56, 0.9) 100%);
  animation: soo-hero-glow 12s ease-in-out infinite alternate;
}

.soo-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 244, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 244, 241, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.7;
}

.soo-hero__inner {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  /* Force image LEFT / text RIGHT even on RTL pages */
  direction: ltr;
}

.soo-hero__copy {
  flex: 1 1 52%;
  max-width: 54%;
  min-width: 0;
  text-align: right;
  direction: rtl;
}

html:not([dir="rtl"]) .soo-hero__copy {
  text-align: left;
  direction: ltr;
}

html[dir="rtl"] .soo-hero__copy {
  text-align: right;
}

html[dir="rtl"] .soo-hero__visual {
  justify-content: center;
}

html:not([dir="rtl"]) .soo-hero__copy {
  order: unset;
  text-align: left;
  direction: ltr;
}

html:not([dir="rtl"]) .soo-hero__visual {
  order: unset;
  justify-content: center;
}

.soo-hero__badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soo-teal-bright);
  border: 1px solid rgba(30, 201, 176, 0.4);
  border-radius: 999px;
  background: rgba(15, 157, 138, 0.12);
}

.soo-hero__brand {
  font-family: var(--soo-font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(30, 201, 176, 0.25);
}

.soo-hero__title {
  font-family: var(--soo-font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.25rem) !important;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 18px;
  color: #ffffff;
  max-width: none;
  text-shadow: 0 0 40px rgba(30, 201, 176, 0.2);
}

.soo-hero__subtitle {
  font-family: var(--soo-font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem) !important;
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 16px;
  color: rgba(232, 244, 241, 0.95);
  max-width: none;
}

.soo-hero__lead {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem) !important;
  line-height: 1.85 !important;
  color: rgba(232, 244, 241, 0.82);
  max-width: none;
  margin: 0;
}

.soo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.soo-hero__visual {
  position: relative;
  display: flex;
  flex: 0 1 46%;
  max-width: 520px;
  min-width: 0;
  justify-content: center;
  align-items: center;
}

.soo-hero__glow {
  position: absolute;
  width: 78%;
  height: 55%;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(30, 201, 176, 0.35), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.soo-hero__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 6px;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
  transform: translateY(0);
  transition: transform 0.6s var(--soo-ease);
}

.soo-hero__visual:hover .soo-hero__img {
  transform: translateY(-8px);
}

/* ---------- Tech stack strip ---------- */
.soo-stack {
  background: #fff;
  border-bottom: 1px solid rgba(12, 27, 46, 0.06);
  padding: 28px 0;
}

.soo-stack__label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soo-muted);
  margin: 0 0 16px;
}

.soo-stack__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
}

.soo-stack__list a {
  display: block;
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.soo-stack__list a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.soo-stack__list img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* ---------- Pillars ---------- */
.soo-pillars {
  padding: 72px 0 40px;
  background: var(--soo-fog);
}

.soo-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.soo-pillar {
  position: relative;
  padding-top: 8px;
}

.soo-pillar::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--soo-teal);
  margin-bottom: 20px;
  transform: scaleX(0.6);
  transform-origin: right center;
  transition: transform 0.4s var(--soo-ease);
}

html:not([dir="rtl"]) .soo-pillar::before {
  transform-origin: left center;
}

.soo-pillar:hover::before {
  transform: scaleX(1);
}

.soo-pillar__link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.soo-pillar__icon {
  font-size: 1.75rem;
  color: var(--soo-teal);
  margin-bottom: 12px;
  display: inline-block;
}

.soo-pillar__title {
  font-family: var(--soo-font-display);
  font-size: 1.55rem !important;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--soo-ink);
}

.soo-pillar__text {
  color: var(--soo-muted);
  line-height: 1.85 !important;
  font-size: 1.15rem !important;
  margin: 0;
  text-align: start;
}

/* ---------- Use cases ---------- */
.soo-usecases {
  padding: 64px 0 80px;
  background: #fff;
}

.soo-usecases__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: none;
}

.soo-usecase {
  padding: 0;
  border-inline-end: none;
  background: #fff;
  border: 1px solid rgba(12, 27, 46, 0.06);
  border-radius: var(--soo-radius);
  overflow: hidden;
  transition: transform 0.35s var(--soo-ease), box-shadow 0.35s var(--soo-ease);
}

.soo-usecase:hover {
  transform: translateY(-4px);
  box-shadow: var(--soo-shadow);
}

.soo-usecase:last-child {
  border-inline-end: none;
}

.soo-usecase__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soo-navy);
}

.soo-usecase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--soo-ease);
}

.soo-usecase:hover .soo-usecase__media img {
  transform: scale(1.04);
}

.soo-usecase h3 {
  font-family: var(--soo-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--soo-ink);
  margin: 0;
  padding: 20px 22px 8px;
}

.soo-usecase p {
  color: var(--soo-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.98rem;
  padding: 0 22px 24px;
}

/* ---------- Architecture ---------- */
.soo-arch {
  position: relative;
  padding: 80px 0;
  background-color: #0a1628 !important;
  background-image:
    linear-gradient(135deg, #0a1628 0%, #123047 55%, #0d3d38 100%) !important;
  color: #e8f4f1 !important;
  overflow: hidden;
}

.soo-arch .soo-section-head,
.soo-demos .soo-section-head {
  background: transparent !important;
}

.soo-arch .soo-section-head h2,
.soo-demos .soo-section-head h2 {
  color: #e8f4f1 !important;
}

.soo-arch .soo-section-head p,
.soo-demos .soo-section-head p {
  color: rgba(232, 244, 241, 0.78) !important;
}

.soo-arch::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(30, 201, 176, 0.25), transparent 65%);
  pointer-events: none;
}

.soo-arch__inner {
  position: relative;
  z-index: 1;
}

.soo-arch__visual {
  margin: 0 0 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(232, 244, 241, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.soo-arch__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.soo-arch__parts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.soo-arch__part {
  padding: 28px 24px;
  border: 1px solid rgba(232, 244, 241, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--soo-radius);
  transition: border-color 0.3s ease, transform 0.4s var(--soo-ease), background 0.3s ease;
}

.soo-arch__part:hover {
  border-color: rgba(30, 201, 176, 0.55);
  background: rgba(15, 157, 138, 0.1);
  transform: translateY(-4px);
}

.soo-arch__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soo-teal-bright);
  margin-bottom: 10px;
}

.soo-arch__part h3 {
  font-family: var(--soo-font-display);
  font-size: 1.65rem !important;
  margin: 0 0 12px;
  color: #fff;
}

.soo-arch__part p {
  margin: 0;
  color: rgba(232, 244, 241, 0.82);
  line-height: 1.85 !important;
  font-size: 1.15rem !important;
}

/* ---------- Features ---------- */
.soo-features {
  padding: 80px 0;
  background: var(--soo-fog);
}

.soo-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.soo-feature {
  background: #fff;
  border: 1px solid rgba(12, 27, 46, 0.06);
  border-radius: var(--soo-radius);
  transition: border-color 0.25s ease, box-shadow 0.35s var(--soo-ease), transform 0.35s var(--soo-ease);
}

.soo-feature:hover {
  border-color: rgba(15, 157, 138, 0.35);
  box-shadow: var(--soo-shadow);
  transform: translateY(-3px);
}

.soo-feature__link {
  display: block;
  padding: 22px 20px;
  text-decoration: none !important;
  color: inherit;
  height: 100%;
}

.soo-feature__cat {
  display: inline-block;
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soo-teal-deep);
  margin-bottom: 8px;
}

.soo-feature h3 {
  font-family: var(--soo-font-display);
  font-size: 1.35rem !important;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--soo-ink);
}

.soo-feature p {
  margin: 0;
  font-size: 1.125rem !important;
  line-height: 1.85 !important;
  color: var(--soo-muted);
}

.soo-feature p ul {
  padding-inline-start: 1.1rem;
  margin: 8px 0 0;
  font-size: inherit;
}

/* ---------- Demos / CTA ---------- */
.soo-demos.call-to-action,
.soo-demos {
  position: relative;
  padding: 72px 0 80px !important;
  background-color: #0c1b2e !important;
  background-image: linear-gradient(180deg, #0c1b2e 0%, #0a2a28 100%) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  color: #e8f4f1 !important;
}

.soo-demos::before,
.soo-demos.call-to-action::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

.soo-demos .soo-section-head,
.soo-demos .soo-section-head--light {
  background: transparent !important;
}

.soo-demos .section-title h2,
.soo-demos h2,
.soo-demos .soo-section-head h2,
.soo-demos .soo-section-head--light h2 {
  color: #e8f4f1 !important;
}

.soo-demos p,
.soo-demos .soo-section-head p,
.soo-demos .soo-section-head--light p {
  color: rgba(232, 244, 241, 0.85) !important;
}

.soo-demos__tabs {
  display: flex !important;
  flex-flow: unset !important;
  direction: ltr;
  padding-left: 10px;
}

.soo-demos__tabs .nav-link {
  margin: 5px;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cfe8e2 !important;
  border: 1px solid rgba(232, 244, 241, 0.12) !important;
  border-radius: var(--soo-radius) !important;
}

.soo-demos__tabs .nav-link.active,
.soo-demos__tabs .nav-link:hover {
  background: var(--soo-teal) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.soo-demos__player {
  margin-top: 24px;
}

.soo-demos .player-wrapper {
  direction: ltr;
  border-radius: var(--soo-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.soo-demos__workshop {
  display: inline-block;
  margin-top: 16px;
  font-size: 1rem;
  color: var(--soo-teal-bright) !important;
  text-decoration: none !important;
  font-weight: 500;
}

.soo-demos__workshop:hover {
  color: #fff !important;
}

.MultiCarousel .MultiCarousel-inner .item > a {
  background: transparent;
}

/* ---------- Motion ---------- */
@keyframes soo-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes soo-hero-glow {
  from { filter: hue-rotate(0deg) brightness(1); }
  to { filter: hue-rotate(8deg) brightness(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .soo-hero__bg,
  .soo-hero__badge,
  .soo-hero__brand,
  .soo-hero__title,
  .soo-hero__lead,
  .soo-hero__actions,
  .soo-hero__visual {
    animation: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .soo-hero {
    min-height: auto;
    padding: 56px 0 48px;
  }

  .soo-hero__inner {
    flex-direction: column !important;
    text-align: center;
    gap: 28px;
  }

  .soo-hero__copy,
  .soo-hero__visual {
    flex: 1 1 auto !important;
    max-width: 100% !important;
    width: 100%;
  }

  html[dir="rtl"] .soo-hero__copy,
  html:not([dir="rtl"]) .soo-hero__copy {
    text-align: center;
  }

  .soo-hero__title,
  .soo-hero__subtitle,
  .soo-hero__lead {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .soo-hero__actions {
    justify-content: center;
  }

  .soo-hero__img {
    max-width: 320px;
  }

  .soo-pillars__grid,
  .soo-usecases__row,
  .soo-arch__parts,
  .soo-features__grid {
    grid-template-columns: 1fr;
  }

  .soo-usecase {
    border-inline-end: none;
    border-bottom: none;
    padding-inline: 0;
  }

  .soo-usecase h3,
  .soo-usecase p {
    text-align: start;
  }

  .soo-pillar::before {
    margin-left: auto;
    margin-right: auto;
  }

  html[dir="rtl"] .soo-pillar,
  html:not([dir="rtl"]) .soo-pillar {
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .soo-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .soo-pillars__grid {
    grid-template-columns: 1fr;
  }

  .soo-hero__img {
    max-width: 100%;
  }
}

/* Override legacy slider/intro leftovers if any */
.slider {
  display: none;
}

#f-intro {
  display: none;
}

/* Keep asciinema LTR */
.asciinema-terminal .line {
  display: flex;
  width: 100%;
  direction: ltr;
}
