/* ==========================================================================
   Digital Twin — Landing Page
   Plain CSS (no Tailwind/build step) — matches the project's existing stack.
   Brand tokens pulled from brand.css: Indigo #5B5CEB / Emerald #10B981 / Gold #F9C74F
   ========================================================================== */

:root {
  --indigo: #5b5ceb;
  --indigo-soft: rgba(91, 92, 235, 0.16);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.16);
  --gold: #f9c74f;
  --gold-soft: rgba(249, 199, 79, 0.16);

  --bg: #10111b;
  --bg-elevated: #15172400;
  --card: rgba(28, 30, 46, 0.6);
  --card-solid: #1c1e2e;
  --border: rgba(255, 255, 255, 0.1);
  --foreground: #f3f4fb;
  --muted: #9799ad;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans: "IBM Plex Sans", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- glass surfaces ---------- */

.glass {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.glass-edge {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.glass-edge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--indigo), transparent 40%, transparent 60%, var(--emerald));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.glass-edge:hover::before {
  opacity: 0.9;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 0 28px -6px rgba(91, 92, 235, 0.65);
}

.btn-primary:hover {
  box-shadow: 0 0 36px -2px rgba(91, 92, 235, 0.85);
}

.btn-outline {
  background: var(--card-solid);
  border-color: rgba(91, 92, 235, 0.3);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: rgba(91, 92, 235, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  height: 40px;
  padding: 0 14px;
}

.btn-ghost:hover {
  color: var(--foreground);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 16px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1152px;
  height: 64px;
  padding: 0 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
}

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

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-actions .btn-ghost {
    display: inline-flex;
  }
}

.nav-actions .btn-ghost {
  display: none;
}

/* ---------- language switch (globe icon + dropdown) ---------- */

.lang-switch {
  position: relative;
}

.lang-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switch-btn svg {
  width: 18px;
  height: 18px;
}

.lang-switch-btn:hover {
  color: var(--foreground);
  border-color: rgba(91, 92, 235, 0.4);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: var(--card-solid);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.lang-switch-menu.open {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--foreground);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-option .lang-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--indigo);
  visibility: hidden;
}

.lang-option .lang-check svg {
  width: 14px;
  height: 14px;
}

.lang-option[aria-checked="true"] .lang-check {
  visibility: visible;
}

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

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 148px 0 96px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 35%, rgba(91, 92, 235, 0.22), transparent 55%),
    radial-gradient(circle at 88% 72%, rgba(16, 185, 129, 0.16), transparent 50%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.hero-copy {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: rgba(28, 30, 46, 0.82);
  border: 1px solid var(--border);
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-copy {
    margin: 0;
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(16, 17, 27, 0.8);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-copy h1 .gradient {
  background: linear-gradient(90deg, var(--indigo), var(--emerald), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 24px auto 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero-copy p {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-visual {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
}

@media (min-width: 1024px) {
  .hero-visual {
    max-width: none;
  }
}

.hero-visual-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-visual-frame .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(91, 92, 235, 0.3), transparent 70%);
}

.hero-visual-frame .art-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(circle at center, black 58%, transparent 78%);
  mask-image: radial-gradient(circle at center, black 58%, transparent 78%);
}

.hero-status {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 17, 27, 0.6);
  backdrop-filter: blur(6px);
  font-size: 12px;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--emerald);
}

.dot-pulse {
  animation: pulse-glow 4s ease-in-out infinite;
}

.float {
  animation: float-slow 8s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Modules (verticals) grid
   ========================================================================== */

.module-grid {
  margin-top: 56px;
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.module-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  transition: transform 0.3s ease;
}

.module-card:hover {
  transform: translateY(-4px);
}

.module-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.module-icon svg {
  width: 22px;
  height: 22px;
}

.module-metric {
  text-align: right;
}

.module-metric .live {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.module-metric .value {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
}

.module-metric .label {
  font-size: 12px;
  color: var(--muted);
}

.module-card h3 {
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 600;
}

.module-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   Omnichannel
   ========================================================================== */

.omni-grid {
  margin-top: 56px;
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .omni-grid {
    grid-template-columns: 2fr 3fr;
    align-items: stretch;
  }
}

.omni-panel {
  padding: 24px;
}

.omni-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.omni-panel-head svg {
  width: 16px;
  height: 16px;
  color: var(--indigo);
}

.channel-list,
.stream-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(16, 17, 27, 0.4);
}

.channel-row .left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid;
}

.chip-icon svg {
  width: 18px;
  height: 18px;
}

.synced {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--emerald);
}

.synced svg {
  width: 14px;
  height: 14px;
}

.stream-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stream-panel-head .title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.stream-panel-head .badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 17, 27, 0.6);
  font-size: 12px;
  color: var(--muted);
}

.stream-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(16, 17, 27, 0.4);
  transition: border-color 0.2s ease;
}

.stream-item:hover {
  border-color: rgba(91, 92, 235, 0.3);
}

.stream-body {
  min-width: 0;
  flex: 1;
}

.stream-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stream-row .channel {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-row .time {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.stream-handle {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-message {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(243, 244, 251, 0.9);
}

/* ==========================================================================
   Unified engine (chart + command center)
   ========================================================================== */

.engine-grid {
  margin-top: 56px;
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .engine-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.chart-card,
.command-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.chart-card:hover,
.command-card:hover {
  transform: translateY(-3px);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.chart-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.chart-head p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.chart-head .stat {
  text-align: right;
}

.chart-head .stat .value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--emerald);
}

.chart-head .stat .label {
  font-size: 12px;
  color: var(--muted);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.command-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.command-head svg {
  width: 16px;
  height: 16px;
  color: var(--indigo);
}

.command-head .status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.command-screen {
  margin-top: 16px;
  flex: 1;
  min-height: 148px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.command-screen .prompt {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-screen .prompt .query {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--indigo);
}

.command-screen .prompt .answer {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.command-screen .prompt .answer svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.command-empty {
  text-align: center;
}

.command-empty p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.suggestions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.suggestion-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.suggestion-chip:hover {
  border-color: rgba(91, 92, 235, 0.4);
  color: var(--foreground);
}

.command-form {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.command-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease;
}

.command-input:focus-within {
  border-color: rgba(91, 92, 235, 0.5);
}

.command-input svg {
  width: 16px;
  height: 16px;
  color: var(--indigo);
  flex-shrink: 0;
}

.command-input input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--foreground);
  font-family: inherit;
  font-size: 14px;
}

.command-input input::placeholder {
  color: var(--muted);
}

.command-submit {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 20px -6px rgba(91, 92, 235, 0.7);
}

.command-submit svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Pricing teaser
   ========================================================================== */

.pricing-card {
  margin-top: 40px;
  max-width: 720px;
  margin-inline: auto;
  padding: 40px;
  text-align: center;
}

.pricing-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.pricing-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-card .btn {
  margin-top: 24px;
}

.pricing-grid {
  margin-top: 48px;
  display: grid;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-grid-2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .pricing-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-tier {
  position: relative;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.pricing-tier:hover {
  transform: translateY(-4px);
}

.pricing-tier-featured {
  border-color: rgba(91, 92, 235, 0.5);
  box-shadow: 0 0 40px -12px rgba(91, 92, 235, 0.45);
}

.tier-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-tier h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.tier-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 42px;
}

.tier-price {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tier-price .amount {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
}

.tier-price .period {
  font-size: 14px;
  color: var(--muted);
}

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

.tier-features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--foreground);
  line-height: 1.5;
}

.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.tier-features li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Why teams switch (replaces fabricated "trusted by" logos)
   ========================================================================== */

.why-row {
  margin-top: 40px;
  display: grid;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .why-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item {
  padding: 20px;
}

.why-item .value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--emerald);
}

.why-item .label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-cols {
  display: grid;
  gap: 40px;
  padding: 56px 0;
}

@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-cols {
    grid-template-columns: 2fr repeat(4, 1fr);
  }
}

.footer-brand p {
  margin: 16px 0 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--foreground);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Focus visibility
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* ==========================================================================
   RTL (Arabic) overrides
   ========================================================================== */

[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

@media (min-width: 1024px) {
  [dir="rtl"] .hero-copy {
    text-align: right;
  }
  [dir="rtl"] .hero-actions {
    justify-content: flex-end;
  }
}

[dir="rtl"] .hero-status {
  left: auto;
  right: 16px;
}

[dir="rtl"] .tier-features li {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .tier-features li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .tier-features li::after {
  left: auto;
  right: 4px;
  border-left: none;
  border-right: 2px solid var(--emerald);
  transform: rotate(45deg);
}

[dir="rtl"] .module-metric,
[dir="rtl"] .chart-head .stat {
  text-align: left;
}
