/* Digits Studio — Multi-Page Brand Revamp Styles
 * Preserves #FFDA46 (Signal Yellow), #06070B (Obsidian), #292A32 (Graphite),
 * #FDFDFD (Paper), #EEEDF2 (Mist), and #B4A6ED (Lilac).
 */

:root {
  --revamp-yellow: #FFDA46;
  --revamp-obsidian: #06070B;
  --revamp-graphite: #292A32;
  --revamp-paper: #FDFDFD;
  --revamp-mist: #EEEDF2;
  --revamp-lilac: #B4A6ED;
  --revamp-ink: #0E1015;
  --revamp-muted: #6A6E79;
  --revamp-border-dark: #24262F;
  --revamp-border-light: #E6E7EC;
}

.desktop-nav a.is-active,
.mobile-menu a.is-active {
  color: var(--revamp-yellow) !important;
  font-weight: 600;
}

/* Revamped Floating Pill Header */
.editorial-navigation .navigation-inner {
  background: rgba(17, 18, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.editorial-navigation .header-actions .button.small {
  background: var(--revamp-yellow);
  color: var(--revamp-obsidian);
  border-color: var(--revamp-yellow);
  font-weight: 700;
  border-radius: 999px;
}

/* Homepage Brand Pillars Strip */
.brand-pillars-strip {
  background: var(--revamp-obsidian);
  color: #FFFFFF;
  border-top: 1px solid var(--revamp-border-dark);
  border-bottom: 1px solid var(--revamp-border-dark);
  padding: 40px clamp(20px, 5vw, 72px);
}

.brand-pillars-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.brand-pillar-item {
  background: #101218;
  border: 1px solid var(--revamp-border-dark);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-pillar-item span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--revamp-yellow);
}

.brand-pillar-item strong {
  font-family: EditorialSerif, Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

html[dir="rtl"] .brand-pillar-item strong {
  font-family: Alexandria, "IBM Plex Sans Arabic", sans-serif;
}

.brand-pillar-item p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

/* Sub-page Editorial Hero */
.page-hero {
  background: var(--revamp-obsidian);
  color: #FFFFFF;
  padding: 156px clamp(20px, 5vw, 72px) 84px;
  border-bottom: 1px solid var(--revamp-border-dark);
  position: relative;
  overflow: hidden;
}

.page-hero--yellow {
  background: var(--revamp-yellow);
  color: var(--revamp-obsidian);
  border-bottom-color: rgba(6, 7, 11, 0.12);
}

.page-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 218, 70, 0.12);
  color: var(--revamp-yellow);
  border: 1px solid rgba(255, 218, 70, 0.28);
  margin-bottom: 22px;
}

.page-hero--yellow .page-hero__eyebrow {
  background: var(--revamp-obsidian);
  color: var(--revamp-yellow);
  border-color: var(--revamp-obsidian);
}

.page-hero__title {
  font-family: EditorialSerif, Georgia, serif;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 880px;
  margin: 0 0 22px;
}

html[dir="rtl"] .page-hero__title,
html[dir="rtl"] .pillar-card h3,
html[dir="rtl"] .service-pillar h3 {
  font-family: Alexandria, "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.page-hero__lead {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  max-width: 640px;
  opacity: 0.82;
  margin: 0 0 32px;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Pill Buttons */
.revamp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.revamp-btn:hover {
  transform: translateY(-2px);
}

.revamp-btn--yellow {
  background: var(--revamp-yellow);
  color: var(--revamp-obsidian);
}

.revamp-btn--dark {
  background: var(--revamp-obsidian);
  color: #FFFFFF;
}

.revamp-btn--ghost-light {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.revamp-btn--ghost-dark {
  background: transparent;
  color: var(--revamp-obsidian);
  border-color: rgba(6, 7, 11, 0.25);
}

/* Editorial Content Bands */
.revamp-band {
  padding: 88px clamp(20px, 5vw, 72px);
}

.revamp-band--paper {
  background: var(--revamp-paper);
  color: var(--revamp-ink);
}

.revamp-band--mist {
  background: var(--revamp-mist);
  color: var(--revamp-ink);
}

.revamp-band--obsidian {
  background: var(--revamp-obsidian);
  color: #FFFFFF;
}

.revamp-band--yellow {
  background: var(--revamp-yellow);
  color: var(--revamp-obsidian);
}

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

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--revamp-border-light);
  border-radius: 18px;
  padding: 28px;
}

.revamp-band--obsidian .pillar-card {
  background: #101218;
  border-color: var(--revamp-border-dark);
  color: #FFFFFF;
}

.pillar-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--revamp-obsidian);
  background: var(--revamp-yellow);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-family: EditorialSerif, Georgia, serif;
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.pillar-card p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0;
}

/* Services Deep-Dive Grid */
.service-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-pillar {
  background: #101218;
  border: 1px solid var(--revamp-border-dark);
  border-radius: 20px;
  padding: 34px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.service-pillar__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--revamp-yellow);
}

.service-pillar h3 {
  font-family: EditorialSerif, Georgia, serif;
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}

.service-pillar ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.service-pillar ul li::before {
  content: "→ ";
  color: var(--revamp-yellow);
  font-weight: 700;
}

/* Multi-Page Footer Nav */
.footer-pages-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}

.footer-pages-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-pages-nav a:hover {
  color: var(--revamp-yellow);
}

/* Trusted By Strip */
.trusted-strip {
  background: var(--revamp-obsidian);
  border-bottom: 1px solid var(--revamp-border-dark);
  padding: 24px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
}

.trusted-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.trusted-strip__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--revamp-yellow);
}

.trusted-strip__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  align-items: center;
  font-family: EditorialSerif, Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: #FFFFFF;
}

.trusted-strip__logos a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.trusted-strip__logos a:hover {
  opacity: 1;
  color: var(--revamp-yellow);
}

/* Engagement Tiers Grid */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.tier-card {
  background: var(--revamp-paper);
  border: 1px solid var(--revamp-border-light);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: var(--revamp-ink);
}

.tier-card--featured {
  background: var(--revamp-obsidian);
  border-color: var(--revamp-yellow);
  color: #FFFFFF;
}

.tier-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-duration {
  background: var(--revamp-mist);
  color: var(--revamp-obsidian);
  padding: 4px 10px;
  border-radius: 999px;
}

.tier-card--featured .tier-duration {
  background: var(--revamp-yellow);
}

.tier-card h3 {
  font-family: EditorialSerif, Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 14px 0 8px;
}

html[dir="rtl"] .tier-card h3 {
  font-family: Alexandria, "IBM Plex Sans Arabic", sans-serif;
}

.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  opacity: 0.85;
}

.tier-card ul li::before {
  content: "✓ ";
  color: var(--revamp-yellow);
  font-weight: 700;
}

.tier-card:not(.tier-card--featured) ul li::before {
  color: var(--revamp-obsidian);
}

/* Free Audit Callout Banner */
.audit-banner {
  background: #101218;
  border: 1px solid var(--revamp-border-dark);
  border-left: 5px solid var(--revamp-yellow);
  border-radius: 18px;
  padding: 30px 34px;
  color: #FFFFFF;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

html[dir="rtl"] .audit-banner {
  border-left: 1px solid var(--revamp-border-dark);
  border-right: 5px solid var(--revamp-yellow);
}

/* Micro-interactions (respecting reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .pillar-card,
  .service-pillar,
  .tier-card,
  .brand-pillar-item {
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }

  .pillar-card:hover,
  .service-pillar:hover,
  .tier-card:hover,
  .brand-pillar-item:hover {
    transform: translateY(-4px);
    border-color: var(--revamp-yellow);
  }

  .work-window img,
  .concept-work-image img {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .work-card:hover .work-window img,
  .work-card:hover .concept-work-image img {
    transform: scale(1.03);
  }
}

/* Mobile Navigation Drawer Polish */
.mobile-menu:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(11, 13, 19, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 16px;
  margin-top: 10px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.mobile-menu a:last-child {
  background: var(--revamp-yellow);
  color: var(--revamp-obsidian);
  font-weight: 700;
  justify-content: center;
  margin-top: 6px;
}

/* Arabic RTL Legibility Polish */
html[dir="rtl"] body {
  line-height: 1.75;
}

/* Unified 1200px Container Alignment */
.work.section,
.process.section,
.questions.section {
  padding-left: clamp(20px, 5vw, 72px);
  padding-right: clamp(20px, 5vw, 72px);
}

.work.section > *,
.process.section > *,
.questions.section > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.work-window,
.concept-work-image {
  overflow: hidden;
}

.reply-sla {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--revamp-obsidian);
  opacity: 0.78;
  margin-top: 8px;
}

/* Flagship Interactive Demos Showcase */
.demos-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.demo-showcase-card {
  background: #101218;
  border: 1px solid var(--revamp-border-dark);
  border-radius: 20px;
  padding: 28px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.demo-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--revamp-yellow);
}

.demo-showcase-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 218, 70, 0.14);
  color: var(--revamp-yellow);
}

.demo-showcase-card h3 {
  font-family: EditorialSerif, Georgia, serif;
  font-size: 26px;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}

html[dir="rtl"] .demo-showcase-card h3 {
  font-family: Alexandria, "IBM Plex Sans Arabic", sans-serif;
}

/* Interactive Scope Estimator */
.estimator-box {
  background: #101218;
  border: 1px solid var(--revamp-border-dark);
  border-radius: 24px;
  padding: 36px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}

.est-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}

.est-opt {
  background: #171A23;
  border: 1px solid var(--revamp-border-dark);
  color: #FFFFFF;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.est-opt.is-selected {
  background: var(--revamp-yellow);
  color: var(--revamp-obsidian);
  border-color: var(--revamp-yellow);
}

.est-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.est-summary {
  background: #06070B;
  border: 1px solid var(--revamp-border-dark);
  border-radius: 18px;
  padding: 26px;
}

.est-metric {
  margin: 14px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--revamp-border-dark);
}

.est-metric span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.58);
}

.est-metric strong {
  font-size: 24px;
  color: var(--revamp-yellow);
}

@media (max-width: 860px) {
  .estimator-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}
