:root {
  color-scheme: dark;
  --bg-deep: #050912;
  --bg-main: #080f1c;
  --bg-surface: #0c1527;
  --bg-card: #0f1b30;
  --bg-card-elevated: #14223d;
  --bg-glass: rgba(12, 21, 39, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: #1e2f4a;
  --border-highlight: #2a466e;
  --accent-blue: #38bdf8;
  --accent-blue-bright: #60a5fa;
  --accent-cyan: #00b4d8;
  --accent-glow: rgba(56, 189, 248, 0.22);
  --accent-glow-subtle: rgba(56, 189, 248, 0.08);
  --accent-amber: #fbbf24;
  --accent-emerald: #34d399;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --badge-bg: #0f2540;
  --badge-border: #23436a;
  --badge-text: #7dd3fc;
  --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-w: 1200px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(ellipse 90% 45% at 50% 0%, #0d284f 0%, transparent 65%),
              radial-gradient(ellipse 60% 30% at 85% 20%, #0a2040 0%, transparent 50%),
              var(--bg-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[dir="rtl"] {
  font-family: 'Segoe UI', 'Cairo', 'Noto Sans Arabic', system-ui, sans-serif;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: #7dd3fc;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 15, 28, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-wordmark {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-item a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active a {
  color: var(--accent-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  background: var(--bg-surface);
  transition: all 0.18s ease;
}

.lang-switch:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: #38bdf8;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-card);
}

.btn-secondary:hover {
  background: var(--bg-card-elevated);
  border-color: var(--border-highlight);
  color: #ffffff;
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* Page Container */
.page-wrap {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  padding: 40px 0 64px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-panel {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 30px;
  background: linear-gradient(145deg, #112036 0%, #091322 100%);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6), 0 0 50px var(--accent-glow-subtle);
  display: grid;
  place-items: center;
  width: 100%;
}

.hero-panel img {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(2, 132, 199, 0.35));
}

/* Feature Grid */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 72px auto 40px;
}

.section-eyebrow {
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 16.5px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.24s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--bg-card-elevated);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Screenshot Preview Section */
.preview-box {
  margin: 50px 0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.preview-bar {
  background: #091322;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-card);
  font-size: 13px;
  color: var(--text-muted);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.preview-box img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-caption {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-card);
  background: var(--bg-surface);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.24s ease;
}

.pricing-card.featured {
  border-color: var(--accent-blue);
  background: linear-gradient(180deg, #12243d 0%, #0d1a2e 100%);
  box-shadow: 0 10px 40px rgba(2, 132, 199, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-blue);
  color: #061122;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
}

.pricing-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.pricing-price {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin: 14px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 42px;
}

.pricing-features {
  list-style: none;
  margin: 18px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent-blue);
  font-weight: bold;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

body[dir="rtl"] table {
  text-align: right;
}

th {
  background: #091322;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-card);
}

td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-primary);
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

code {
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12.5px;
}

/* Callout / Notice Box */
.notice-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.notice-box.info {
  border-left: 4px solid var(--accent-blue);
}

body[dir="rtl"] .notice-box.info {
  border-left: 1px solid var(--border-card);
  border-right: 4px solid var(--accent-blue);
}

.notice-box.warning {
  border-left: 4px solid var(--accent-amber);
}

body[dir="rtl"] .notice-box.warning {
  border-left: 1px solid var(--border-card);
  border-right: 4px solid var(--accent-amber);
}

.notice-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.notice-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.notice-text strong {
  color: var(--text-primary);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: #040811;
  padding: 56px 24px 32px;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-lead {
    margin: 0 auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
