﻿:root {
  --bg: #0B0F19;
  --surface: #111827;
  --surface-2: #172033;
  --border: #1F2937;
  --text: #F9FAFB;
  --muted: #9CA3AF;
  --gold: #F59E0B;
  --emerald: #10B981;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

.mono { font-family: 'JetBrains Mono', monospace; }

a { color: var(--gold); text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }

.brand-badge {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold); border: 1px solid rgba(245, 158, 11, 0.35);
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
}

.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.btn-cta, .btn-primary {
  background: var(--gold); color: #0B0F19 !important;
  font-weight: 700; padding: 10px 18px; border-radius: 10px;
  display: inline-block;
}

.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); padding: 10px 18px;
  border-radius: 10px; font-weight: 600; display: inline-block;
}

.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 28px; align-items: center; }
.eyebrow { color: var(--emerald); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.2; margin: 10px 0 14px; }
.lead { color: var(--muted); font-size: 1rem; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px;
}

.panel-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.panel-row:last-child { border-bottom: none; padding-bottom: 0; }
.panel-row span { color: var(--muted); }

.section { padding: 52px 0; }
.section-alt { background: rgba(17, 24, 39, 0.5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: 1.5rem; margin-bottom: 24px; }

.cards-3, .steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}
.card h3, .step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p, .step p { color: var(--muted); font-size: 0.9rem; }
.step-num { display: inline-block; color: var(--gold); font-weight: 700; margin-bottom: 10px; }

.faq-list { max-width: 780px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
}
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { color: var(--muted); margin-top: 10px; font-size: 0.92rem; }

.footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

@media (max-width: 820px) {
  .hero-grid, .cards-3, .steps-3 { grid-template-columns: 1fr; }
}

/* RTL support for Arabic (/ar/) without layout overflow */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}
html[dir="rtl"] main,
html[dir="rtl"] .container,
html[dir="rtl"] .cr-wrap,
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .cards-3,
html[dir="rtl"] .steps-3,
html[dir="rtl"] .kpi-grid,
html[dir="rtl"] .bento-mid,
html[dir="rtl"] .cr-footer-grid,
html[dir="rtl"] .table-wrap {
  max-width: 100%;
  overflow-x: hidden;
}
html[dir="rtl"] .cr-nav-row,
html[dir="rtl"] .hero-header,
html[dir="rtl"] .card-head,
html[dir="rtl"] .slider-header,
html[dir="rtl"] .calc-result,
html[dir="rtl"] .cr-subbar-inner,
html[dir="rtl"] .cr-copy-row {
  flex-direction: row-reverse;
}
html[dir="rtl"] .mono,
html[dir="rtl"] .notranslate,
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="search"],
html[dir="rtl"] #accountInput {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Paragraf justify */
main p,
article p,
.faq-item p,
.modal-body p {
  text-align: justify;
  text-justify: inter-word;
}
