/* ============================================
   NICHE POWER — Stripe-Inspired Design System
   Plus Jakarta Sans (Sohne substitute)
   Deep navy + purple accent + blue-tinted shadows
   ============================================ */

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

:root {
  /* Brand */
  --purple: #533afd;
  --purple-hover: #4434d4;
  --purple-deep: #2e2b8c;
  --purple-light: #b9b9f9;
  --purple-bg: rgba(83, 58, 253, 0.05);

  /* Accent (decorative only) */
  --ruby: #ea2261;
  --magenta: #f96bee;
  --green: #15be53;
  --green-bg: rgba(21, 190, 83, 0.12);
  --green-text: #108c3d;

  /* Neutrals */
  --heading: #061b31;
  --label: #273951;
  --body: #64748d;
  --canvas: #ffffff;
  --border: #e5edf5;
  --border-purple: #b9b9f9;
  --border-soft: #d6d9fc;

  /* Dark brand */
  --brand-dark: #1c1e54;
  --dark-navy: #0d253d;

  /* Shadows — Stripe's blue-tinted system */
  --shadow-elevated: rgba(50, 50, 93, 0.25) 0px 30px 45px -30px,
                     rgba(0, 0, 0, 0.1) 0px 18px 36px -18px;
  --shadow-standard: rgba(50, 50, 93, 0.12) 0px 15px 35px -10px,
                     rgba(0, 0, 0, 0.06) 0px 5px 15px -5px;
  --shadow-ambient: rgba(50, 50, 93, 0.08) 0px 6px 18px -4px;
  --shadow-subtle: rgba(50, 50, 93, 0.04) 0px 3px 8px -2px;

  /* Typography */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Source Code Pro', SFMono-Regular, Menlo, monospace;

  /* Radius — conservative, Stripe-style */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--body);
  background: var(--canvas);
  line-height: 1.4;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ==============================
   NAVIGATION
   ============================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__logo-mark {
  font-weight: 500;
  font-size: 13px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  border-radius: var(--r-md);
  color: #fff;
  letter-spacing: -0.3px;
}

.nav__logo-mark--light {
  background: rgba(255, 255, 255, 0.12);
}

.nav__logo-text {
  font-weight: 500;
  font-size: 15px;
  color: var(--heading);
  letter-spacing: -0.3px;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--heading);
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--purple);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__link--signin {
  color: var(--label);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-md);
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--heading);
  border-radius: 1px;
  transition: all 0.25s ease;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
}

.btn--primary:hover {
  background: var(--purple-hover);
  box-shadow: var(--shadow-ambient);
}

.btn--ghost {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--border-purple);
}

.btn--ghost:hover {
  background: var(--purple-bg);
}

.btn--sm {
  padding: 7px 14px;
  font-size: 14px;
}

.btn__arrow {
  font-weight: 300;
  transition: transform 0.15s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(2px);
}

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -120px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle,
    rgba(234, 34, 97, 0.06) 0%,
    rgba(249, 107, 238, 0.04) 30%,
    rgba(83, 58, 253, 0.03) 50%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__content {
  max-width: 540px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 10px;
  background: var(--green-bg);
  border: 1px solid rgba(21, 190, 83, 0.25);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 400;
  color: var(--green-text);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero__title {
  font-size: 48px;
  font-weight: 300;
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 32px;
}

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

/* ── Hero Visual (Dashboard Mockup) ── */
.hero__visual {
  position: relative;
}

.hero-dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
}

.hero-dash__card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-standard);
  transition: all 0.3s ease;
}

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

.hero-dash__card--campaign {
  grid-column: 1 / 2;
}

.hero-dash__card--kol {
  grid-column: 2 / 3;
}

.hero-dash__card--video {
  grid-column: 1 / -1;
}

.hero-dash__card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.hero-dash__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.hero-dash__dot--green { background: var(--green); }
.hero-dash__dot--purple { background: var(--purple); }

.hero-dash__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--label);
  letter-spacing: 0.2px;
}

.hero-dash__metric {
  font-size: 32px;
  font-weight: 300;
  color: var(--heading);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
  font-feature-settings: "tnum";
}

.hero-dash__sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--body);
  margin-bottom: 12px;
}

.hero-dash__bar-row {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.hero-dash__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--magenta));
  border-radius: 3px;
}

.hero-dash__avatars {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
}

.hero-dash__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  margin-right: -6px;
  border: 2px solid var(--canvas);
}

.hero-dash__avatar:nth-child(1) { background: var(--purple); }
.hero-dash__avatar:nth-child(2) { background: var(--ruby); }
.hero-dash__avatar:nth-child(3) { background: var(--green-text); }

.hero-dash__avatar--more {
  background: var(--border) !important;
  color: var(--label) !important;
  font-size: 10px;
}

.hero-dash__stat-row {
  display: flex;
  gap: 24px;
}

.hero-dash__stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-dash__stat-val {
  font-size: 20px;
  font-weight: 300;
  color: var(--heading);
  letter-spacing: -0.5px;
  font-feature-settings: "tnum";
}

.hero-dash__stat-lab {
  font-size: 11px;
  font-weight: 400;
  color: var(--body);
}

.hero-dash__float-badge {
  position: absolute;
  bottom: -12px;
  right: -8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--heading);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-elevated);
  letter-spacing: -0.2px;
  font-feature-settings: "tnum";
}

.hero-dash__float-badge svg {
  color: #34d399;
}

.hero-dash__card-head svg {
  color: var(--ruby);
}

/* ==============================
   SECTION SHARED
   ============================== */
.section-header {
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-label--light {
  color: var(--purple-light);
}

.section-title {
  font-size: 38px;
  font-weight: 300;
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-title--light {
  color: #fff;
}

.section-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.55;
  max-width: 520px;
}

.section-desc--light {
  color: rgba(255, 255, 255, 0.6);
}

/* ==============================
   PRODUCTS
   ============================== */
.products {
  padding: 100px 0;
}

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

.card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  transition: all 0.25s ease;
}

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

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  margin-bottom: 20px;
}

.card__icon--purple {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid var(--border-soft);
}

.card__icon--ruby {
  background: rgba(234, 34, 97, 0.06);
  color: var(--ruby);
  border: 1px solid rgba(234, 34, 97, 0.15);
}

.card__icon--green {
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid rgba(21, 190, 83, 0.2);
}

.card__icon--magenta {
  background: rgba(249, 107, 238, 0.06);
  color: var(--magenta);
  border: 1px solid rgba(249, 107, 238, 0.15);
}

.card__title {
  font-size: 22px;
  font-weight: 300;
  color: var(--heading);
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  line-height: 1.15;
}

.card__desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 20px;
}

.card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  color: var(--label);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: #f8fafc;
}

/* ==============================
   SERVICES (Dark Brand Section)
   ============================== */
.services {
  padding: 100px 0;
  background: var(--brand-dark);
  position: relative;
}

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

.service-card {
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  transition: all 0.25s ease;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.service-card__number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-light);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  line-height: 1.15;
}

.service-card__desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

/* ==============================
   ABOUT
   ============================== */
.about {
  padding: 100px 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about__text {
  font-size: 16px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 14px;
}

.about__text:last-child {
  margin-bottom: 0;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  transition: all 0.25s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-standard);
  border-color: transparent;
}

.stat-card__value {
  font-size: 36px;
  font-weight: 300;
  color: var(--heading);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}

.stat-card__label {
  font-size: 13px;
  font-weight: 400;
  color: var(--body);
}

/* ==============================
   CONTACT
   ============================== */
.contact {
  padding: 60px 0 120px;
}

.contact__card {
  text-align: center;
  padding: 72px 48px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-standard);
  background: var(--canvas);
}

.contact__title {
  font-size: 38px;
  font-weight: 300;
  color: var(--heading);
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin-bottom: 16px;
}

.contact__desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto 32px;
}

.contact__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  padding: 72px 0 36px;
  background: var(--dark-navy);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  margin-bottom: 56px;
}

.footer__logo-text {
  color: #fff;
}

.footer__tagline {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
}

.footer__links {
  display: flex;
  gap: 56px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__heading {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.footer__link {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__copy {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.15s ease;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ==============================
   LANGUAGE SWITCHER
   ============================== */
.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--label);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.lang-switcher__btn:hover {
  border-color: var(--border-purple);
  color: var(--heading);
}

.lang-switcher__btn svg {
  flex-shrink: 0;
}

.lang-switcher__chevron {
  transition: transform 0.15s ease;
}

.lang-switcher__dropdown.open + .lang-switcher__chevron,
.lang-switcher__dropdown.open ~ .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-standard);
  padding: 4px;
  z-index: 100;
}

[dir="rtl"] .lang-switcher__dropdown {
  right: auto;
  left: 0;
}

.lang-switcher__dropdown.open {
  display: block;
}

.lang-switcher__option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--label);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s ease;
}

[dir="rtl"] .lang-switcher__option {
  text-align: right;
}

.lang-switcher__option:hover {
  background: var(--purple-bg);
  color: var(--purple);
}

/* ==============================
   RTL SUPPORT (Arabic)
   ============================== */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .hero__inner {
  direction: rtl;
}

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

[dir="rtl"] .hero__actions {
  justify-content: flex-start;
}

[dir="rtl"] .hero-dash__float-badge {
  right: auto;
  left: -8px;
}

[dir="rtl"] .section-header {
  text-align: right;
}

[dir="rtl"] .section-desc {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .btn__arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .btn:hover .btn__arrow {
  transform: scaleX(-1) translateX(2px);
}

[dir="rtl"] .nav__links {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer__links {
  flex-direction: row-reverse;
}

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

[dir="rtl"] .contact__actions {
  justify-content: flex-start;
}

[dir="rtl"] .about__content .section-title {
  text-align: right;
}

/* ==============================
   SCROLL REVEAL
   ============================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .hero-dash {
    max-width: 480px;
  }

  .section-title,
  .contact__title {
    font-size: 32px;
    letter-spacing: -0.6px;
  }

  .products__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }

  .nav__right .nav__link--signin,
  .nav__right .btn {
    display: none;
  }

  .nav__links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav__toggle {
    display: flex;
  }

  .lang-switcher--mobile {
    display: block;
    margin-right: 12px;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero__title {
    font-size: 32px;
    letter-spacing: -0.6px;
  }

  .hero__title br {
    display: none;
  }

  .hero-dash__metric {
    font-size: 26px;
  }

  .hero-dash__stat-val {
    font-size: 18px;
  }

  .section-title br,
  .contact__title br {
    display: none;
  }

  .products,
  .services,
  .about {
    padding: 72px 0;
  }

  .contact {
    padding: 40px 0 80px;
  }

  .contact__card {
    padding: 48px 24px;
  }

  .card,
  .service-card {
    padding: 28px;
  }

  .about__stats {
    gap: 12px;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .stat-card__value {
    font-size: 28px;
  }

  .footer__links {
    flex-direction: column;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
