/* ==========================================================================
   BLKCM Studio & Templates — studio.blkcm.me
   Focused Psychological Design · Exact Media Ratios · Full Darija & English
   ========================================================================== */

:root {
  --bg: #050609;
  --surface: #0b0d13;
  --surface-2: #121520;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f6f8;
  --text-soft: rgba(246, 246, 248, 0.7);
  --text-muted: rgba(246, 246, 248, 0.45);
  --gold: #e8c574;
  --gold-bright: #f4d896;
  --accent-glow: rgba(185, 111, 75, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: "Cairo", "Plus Jakarta Sans", sans-serif;
}

html[dir="rtl"] .font-editorial {
  font-family: "Cairo", sans-serif;
  font-style: normal;
  font-weight: 800;
}

::selection {
  background: rgba(232, 197, 116, 0.3);
  color: #fff;
}

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

button {
  font-family: inherit;
}

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

.font-editorial {
  font-family: "Instrument Serif", Georgia, serif;
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

.font-cairo {
  font-family: "Cairo", "Plus Jakarta Sans", sans-serif;
}

/* Subtle Ambient Focus Glow */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: background 0.8s var(--ease);
  background:
    radial-gradient(960px 540px at 50% -10%, var(--accent-glow), transparent 68%),
    radial-gradient(620px 420px at 85% 24%, rgba(232, 197, 116, 0.07), transparent 60%);
}

.container {
  width: min(1340px, 100% - 40px);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.container--narrow {
  width: min(1040px, 100% - 40px);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.section {
  padding: 92px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}

.section--hero {
  border-top: 0;
  padding: 64px 0 76px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  background: rgba(5, 6, 9, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 23px;
  width: auto;
}

.brand-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(232, 197, 116, 0.14);
  color: var(--gold);
  border: 1px solid rgba(232, 197, 116, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
}

.nav-links a:hover {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Global Language Toggle */
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-toggle button {
  padding: 5px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle button.is-active {
  background: #ffffff;
  color: #07080b;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

.btn--gold {
  background: var(--gold);
  color: #07080b;
  box-shadow: 0 12px 34px -6px rgba(232, 197, 116, 0.5);
}

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

.btn--white {
  background: #ffffff;
  color: #07080b;
  box-shadow: 0 12px 36px -8px rgba(255, 255, 255, 0.32);
}

.btn--white:hover {
  background: rgba(255, 255, 255, 0.92);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.11);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 14.5px;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 12.5px;
}

/* Hero */
.hero-header {
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 197, 116, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(232, 197, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 197, 116, 0); }
}

.hero-title {
  margin: 0;
  font-size: clamp(2.35rem, 5.5vw, 4.55rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
}

html[dir="rtl"] .hero-title {
  letter-spacing: 0;
  line-height: 1.2;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  display: block;
  margin-top: 6px;
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 660px;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-sub strong {
  color: #fff;
  font-weight: 700;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trust-strip {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 13px;
  color: var(--text-muted);
}

.trust-strip strong {
  color: var(--gold);
}

/* Section Headers */
.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 42px;
}

.section-kicker {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

html[dir="rtl"] .section-kicker {
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 700;
}

.section-title {
  margin: 0;
  font-size: clamp(1.95rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

html[dir="rtl"] .section-title {
  letter-spacing: 0;
  line-height: 1.25;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.74);
}

.section-title em.gold {
  color: var(--gold);
}

.section-desc {
  margin: 14px auto 0;
  font-size: 15.5px;
  color: var(--text-soft);
  max-width: 600px;
}

/* Pill Tabs */
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.pill-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.pill-tab.is-active,
.pill-tab.is-active:hover {
  background: #ffffff;
  color: #07080b;
  border-color: #ffffff;
  box-shadow: 0 12px 32px -6px rgba(255, 255, 255, 0.4);
}

.pill-tab .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.pill-tab .pill-sub {
  font-size: 11px;
  opacity: 0.58;
}

.pill-tab--logo {
  padding: 12px 26px;
  min-height: 50px;
}

.pill-tab--logo img {
  height: 22px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  display: block;
}

.pill-tab--logo .logo-dark {
  display: none;
}

.pill-tab--logo.is-active .logo-light {
  display: none;
}

.pill-tab--logo.is-active .logo-dark {
  display: block;
}

/* ==========================================================================
   FULL-SIZED LIVE WEBSITE STAGE
   ========================================================================== */
.stage-wrap {
  position: relative;
}

.stage-glow {
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  filter: blur(48px);
  opacity: 0.42;
  pointer-events: none;
  transition: background 0.6s var(--ease);
}

.browser-shell {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0e1017;
  box-shadow: 0 38px 110px -24px rgba(0, 0, 0, 0.92);
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #141722;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  direction: ltr;
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.traffic-lights span:nth-child(1) { background: #ff5f56; }
.traffic-lights span:nth-child(2) { background: #ffbd2e; }
.traffic-lights span:nth-child(3) { background: #27c93f; }

.address-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
}

.browser-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover,
.icon-btn.is-active {
  background: #ffffff;
  color: #07080b;
  border-color: #ffffff;
}

.iframe-viewport {
  position: relative;
  width: 100%;
  height: clamp(600px, 80vh, 840px);
  background: #0c0e15;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  transition: padding 0.35s var(--ease);
}

.iframe-viewport.is-tablet,
.iframe-viewport.is-mobile {
  padding: 18px 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.05), #090b10 70%);
}

.iframe-viewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
  transition: width 0.4s var(--ease), border-radius 0.4s var(--ease);
}

.iframe-viewport.is-tablet iframe {
  width: 820px;
  max-width: calc(100% - 28px);
  border-radius: 18px;
  border: 5px solid #1d212e;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.78);
}

.iframe-viewport.is-mobile iframe {
  width: 390px;
  max-width: calc(100% - 24px);
  border-radius: 26px;
  border: 6px solid #1d212e;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.78);
}

.iframe-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0d0f16;
  color: var(--text-soft);
  font-size: 12px;
  z-index: 4;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.iframe-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stage-summary {
  margin-top: 18px;
  padding: 22px 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(11, 13, 19, 0.92);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.stage-summary-left {
  max-width: 720px;
}

.stage-summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.stage-summary h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.stage-summary-cat {
  font-size: 11.5px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
}

.stage-summary p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-soft);
}

.stage-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   BLKCM STUDIO — EXACT ULTRA-WIDE RATIO (1882 / 820) HIGH-RES GIF STAGE
   ========================================================================== */
.studio-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0a0c12;
  box-shadow: 0 36px 100px -28px rgba(0, 0, 0, 0.92);
}

.studio-media-box {
  width: 100%;
  aspect-ratio: 1882 / 820;
  background: #0a0c12;
  overflow: hidden;
}

.studio-media-box.is-shot {
  aspect-ratio: auto;
}

.studio-media-box img,
.studio-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-caption-bar {
  padding: 16px 24px;
  background: #10131d;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.studio-caption-bar strong {
  color: #fff;
}

/* ==========================================================================
   SETUP WIZARDS — EXACT NEAR-SQUARE RATIOS (920/828 & 860/882) HIGH-RES GIFS
   ========================================================================== */
.wizard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.wizard-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0b0d14;
  box-shadow: 0 28px 80px -26px rgba(0, 0, 0, 0.88);
}

.wizard-media {
  width: 100%;
  overflow: hidden;
  background: #0b0d14;
}

.wizard-media--1 {
  aspect-ratio: 920 / 828;
}

.wizard-media--2 {
  aspect-ratio: 860 / 882;
}

.wizard-media img,
.wizard-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wizard-card-body {
  padding: 22px 24px;
  border-top: 1px solid var(--border);
}

.wizard-card-body h3 {
  margin: 6px 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.wizard-card-body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

/* ==========================================================================
   PRICING (999 DH) + MANIFESTO
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  border-radius: 28px;
  padding: 36px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card--anchor {
  opacity: 0.78;
}

.price-card--hero {
  border-color: rgba(232, 197, 116, 0.45);
  background: linear-gradient(180deg, rgba(232, 197, 116, 0.1) 0%, rgba(11, 13, 19, 0.96) 55%);
  box-shadow: 0 34px 100px -26px rgba(232, 197, 116, 0.22);
}

.price-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(232, 197, 116, 0.18);
  border: 1px solid rgba(232, 197, 116, 0.4);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.price-amount {
  margin: 18px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-num {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.price-currency {
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
}

.price-note {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0 0 22px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
}

.price-card--anchor .price-list {
  color: var(--text-soft);
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Manifesto Card */
.manifesto-card {
  margin-top: 36px;
  padding: 38px 40px;
  border-radius: 28px;
  border: 1px solid rgba(232, 197, 116, 0.24);
  background: linear-gradient(180deg, rgba(232, 197, 116, 0.06), rgba(255, 255, 255, 0.015));
}

.manifesto-body p {
  margin: 0 0 15px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.manifesto-body p.lead {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
}

.manifesto-body p.highlight {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.manifesto-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px 0;
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover {
  color: #fff;
}

/* Fullscreen Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-window {
  width: min(1420px, 100%);
  height: 92vh;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0e1017;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.92);
}

.modal-window .iframe-viewport {
  flex: 1;
  height: auto;
}

/* Responsive */
@media (max-width: 960px) {
  .wizard-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .iframe-viewport {
    height: 520px;
  }

  .stage-summary,
  .price-card,
  .manifesto-card {
    padding: 24px 20px;
  }
}
