/* ==========================================================================
   CallerID — Official Design System & Marketing/Legal Stylesheet
   Built with agency-ui-designer, agency-ux-architect & agency-seo-specialist
   ========================================================================== */

:root {
  /* Dark Theme Default (Matches iOS App Hero Navy & Sapphire Palette) */
  --bg-canvas: #040916;
  --bg-surface: #081229;
  --bg-elevated: rgba(13, 27, 58, 0.74);
  --bg-card: rgba(11, 23, 51, 0.78);
  --bg-card-hover: rgba(16, 33, 72, 0.92);
  --bg-glass: rgba(8, 18, 41, 0.76);
  --text-primary: #F8FAFC;
  --text-secondary: #94A8C9;
  --text-muted: #647899;
  --border-subtle: rgba(148, 168, 201, 0.14);
  --border-highlight: rgba(0, 212, 255, 0.36);

  /* Brand Accent Tokens */
  --brand-blue: #0A58FF;
  --brand-blue-bright: #2B74FF;
  --brand-cyan: #00D4FF;
  --brand-emerald: #10B981;
  --brand-amber: #F59E0B;
  --brand-crimson: #F43F5E;
  --brand-gold: #FBBF24;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0A58FF 0%, #00D4FF 100%);
  --grad-pill: linear-gradient(95deg, #0A58FF 0%, #059BFF 52%, #00D4FF 100%);
  --grad-surface: linear-gradient(180deg, rgba(16, 34, 74, 0.65) 0%, rgba(7, 15, 34, 0.85) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.20) 0%, rgba(10, 88, 255, 0.06) 45%, transparent 75%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout & Radii */
  --container-max: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 20px 45px -15px rgba(2, 6, 18, 0.65), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 14px 34px -6px rgba(10, 88, 255, 0.42);
  --transition-base: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-canvas: #F3F7FD;
  --bg-surface: #FFFFFF;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.84);
  --text-primary: #071226;
  --text-secondary: #3B4E6B;
  --text-muted: #647693;
  --border-subtle: rgba(10, 35, 80, 0.11);
  --border-highlight: rgba(10, 88, 255, 0.32);
  --grad-surface: linear-gradient(180deg, #FFFFFF 0%, #F5F9FF 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(10, 88, 255, 0.11) 0%, rgba(0, 212, 255, 0.04) 45%, transparent 75%);
  --shadow-card: 0 16px 36px -12px rgba(9, 24, 54, 0.08), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 12px 28px -6px rgba(10, 88, 255, 0.28);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-canvas);
  background-image: var(--grad-glow);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Sticky Glassmorphic Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: contain;
}

.brand-lockup .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.theme-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
}

.theme-btn.active {
  background: var(--brand-blue);
  color: #FFFFFF;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.btn-primary {
  background: var(--grad-pill);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -6px rgba(0, 212, 255, 0.52);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(10, 88, 255, 0.14);
  border: 1px solid var(--border-highlight);
  color: var(--brand-cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

[data-theme="light"] .eyebrow-badge {
  color: var(--brand-blue);
  background: rgba(10, 88, 255, 0.08);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 72px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-title .gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.14rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.trust-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.metric-item span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--grad-surface);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 12px;
}

.hero-media-frame video,
.hero-media-frame img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  display: block;
}

.media-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Interactive Live Lookup & Route Simulator Section
   ========================================================================== */
.section {
  padding: 76px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.06rem;
  color: var(--text-secondary);
}

.simulator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.sim-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.sim-input {
  flex: 1;
  min-width: 240px;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}

.sim-input:focus {
  outline: 2px solid var(--brand-cyan);
  border-color: transparent;
}

.sim-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.preset-chip {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.preset-chip:hover {
  border-color: var(--brand-cyan);
  color: var(--text-primary);
}

.sim-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.sim-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sim-stat-card .label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.sim-stat-card .value {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ==========================================================================
   Feature Grid & Video Showcase Cards
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
}

.feature-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.feature-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-cyan);
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.video-showcase-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.video-card video {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  background: #040916;
}

.video-card h3 {
  font-size: 1.32rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.video-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Pricing / App Store Connect Subscription Plans
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.popular {
  border: 2px solid var(--brand-cyan);
  box-shadow: var(--shadow-glow);
}

.popular-ribbon {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--grad-pill);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.price-tier-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-sku {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.price-amount {
  font-size: 2.65rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.1;
  margin-bottom: 6px;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.price-features {
  list-style: none;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.price-features li::before {
  content: "✓";
  color: var(--brand-emerald);
  font-weight: 900;
}

/* ==========================================================================
   SEO Comparison Table & FAQ Accordion
   ========================================================================== */
.comparison-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.comparison-table th {
  font-weight: 800;
  color: var(--text-primary);
  background: rgba(10, 88, 255, 0.08);
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.faq-item summary {
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Legal Document Layout (Privacy Policy, Terms of Use, Contact Us)
   ========================================================================== */
.legal-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.legal-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 48px 0 84px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.legal-toc h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-cyan);
  margin-bottom: 14px;
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-toc a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.legal-toc a:hover {
  color: var(--brand-cyan);
}

.legal-article {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 42px;
  box-shadow: var(--shadow-card);
}

.legal-section {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.42rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.legal-section h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--text-primary);
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-callout {
  background: rgba(10, 88, 255, 0.10);
  border-left: 4px solid var(--brand-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 16px 0;
}

.legal-callout strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Contact Us Interactive Form & Support Cards
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  padding: 48px 0 84px;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.contact-info-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: 2px solid var(--brand-cyan);
  border-color: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-col h4 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .video-showcase-dual,
  .features-grid,
  .pricing-grid,
  .legal-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .trust-metrics-strip,
  .sim-result-grid {
    grid-template-columns: 1fr;
  }
  .legal-article,
  .simulator-box,
  .contact-form-card {
    padding: 24px 18px;
  }
}


/* ==========================================================================
   Bilingual Support (EN / AR) & Multi-App Showcase Extensions
   ========================================================================== */

/* Font import for Arabic typography */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

/* Dynamic Language Visibility Rules */
html[lang="en"] [data-lang="ar"] {
  display: none !important;
}
html[lang="ar"] [data-lang="en"] {
  display: none !important;
}

/* RTL Typography & Direction */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', var(--font-sans);
}

html[dir="rtl"] body {
  font-family: 'Cairo', var(--font-sans);
}

html[dir="rtl"] .brand-lockup span {
  font-family: 'Cairo', var(--font-sans);
  letter-spacing: normal;
}

html[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

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

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .app-hero-btns,
html[dir="rtl"] .trust-strip {
  justify-content: flex-start;
}

html[dir="rtl"] .pill-badge svg,
html[dir="rtl"] .feature-pill svg,
html[dir="rtl"] .meta-pill svg {
  margin-right: 0;
  margin-left: 6px;
}

html[dir="rtl"] .arrow-icon,
html[dir="rtl"] .chevron-icon {
  transform: scaleX(-1);
}

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

html[dir="rtl"] .legal-toc ul {
  padding-left: 0;
  padding-right: 14px;
}

html[dir="rtl"] .sim-preset-chips {
  direction: ltr;
  justify-content: flex-end;
}

/* Language Switcher Component */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--grad-brand);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(10, 88, 255, 0.4);
}

/* App Showcase Master Hub Cards (index.html) */
.apps-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.app-hub-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.app-hub-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: 0 28px 60px -15px rgba(2, 6, 20, 0.85), 0 0 0 1px var(--border-highlight);
}

.app-hub-card.featured {
  border-color: rgba(0, 212, 255, 0.45);
  background: linear-gradient(180deg, rgba(14, 38, 88, 0.4) 0%, rgba(8, 20, 48, 0.8) 100%);
}

.app-hub-badge-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--grad-brand);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[dir="rtl"] .app-hub-badge-tag {
  right: auto;
  left: 18px;
}

.app-hub-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}

.app-hub-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-hub-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.app-hub-category {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 14px;
}

.app-hub-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
  flex-grow: 1;
}

.app-hub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.app-hub-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.app-hub-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-appstore:hover {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
}

.btn-appstore svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  color: var(--brand-cyan);
}

/* Dedicated App Page Hero Banner */
.app-detail-hero {
  padding: 120px 0 70px;
  background: radial-gradient(circle at 50% 20%, rgba(10, 88, 255, 0.18) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
}

.app-detail-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 30px;
}

.app-detail-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.app-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-detail-info h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.15;
}

.app-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Media Grid for Cleaners / Simulators */
.feature-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-base);
}

.feature-showcase-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

@media (max-width: 1024px) {
  .apps-hub-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .app-detail-header {
    flex-direction: column;
    text-align: center;
  }
  html[dir="rtl"] .app-detail-header {
    text-align: center;
  }
}
