/* aiverce.com — shared styles */
:root {
  --bg: #060d18;
  --bg-elevated: #0c1829;
  --bg-card: #111f33;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eef7;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --success: #34d399;
  --warning: #fbbf24;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-ar: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { font-family: var(--font); }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7dd3fc; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(6, 13, 24, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.header-nav a:hover { color: var(--text); }

.lang-switch {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), #6366f1);
  color: #fff !important;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover { box-shadow: 0 12px 40px var(--accent-glow); }

.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(14, 165, 233, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: #38bdf8;
  margin: 0 0 0.75rem;
  max-width: 34rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-trust span { display: flex; align-items: center; gap: 0.35rem; }

.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-dashboard-shot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero-visual .preview-note {
  padding: 0.65rem 1rem 1rem;
  margin-top: 0;
}

.dash-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gauge {
  background: rgba(0,0,0,0.35);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  border: 1px solid var(--border);
}

.gauge-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.gauge-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }

.preview-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-top: 0.5rem;
}

.preview-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--success), var(--accent));
}

.preview-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* Sections */
section { padding: 4rem 0; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

.trust-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.trust-item span { font-size: 0.85rem; color: var(--text-muted); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step h3 { margin: 0 0 0.4rem; font-size: 0.98rem; }
.step p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), var(--shadow);
  position: relative;
}

.price-card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(56,189,248,0.06), transparent 40%);
  pointer-events: none;
}

.price-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.price-card h3 { margin: 0 0 0.25rem; font-size: 1.35rem; }

.price-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.price-list li {
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

html[dir="rtl"] .price-list li { padding-inline-start: 0; }

.price-list li::before { content: "✓"; color: var(--success); font-weight: 700; flex-shrink: 0; }

.faq-list { max-width: 720px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; }

.faq-item[open] summary::after { content: "−"; }

.faq-body {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: #fde68a;
}

.legal-box strong { color: #fef3c7; }

.cta-band {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(99,102,241,0.12));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-band h2 { margin: 0 0 0.75rem; font-size: 1.75rem; }
.cta-band p { color: var(--text-muted); margin: 0 0 1.5rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 { margin: 0 0 0.75rem; font-size: 0.9rem; }

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 0.45rem; }

.footer-links a { color: var(--text-muted); font-size: 0.88rem; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-nav .nav-hide-mobile { display: none; }
  .features-grid, .steps, .trust-grid, .demo-features { grid-template-columns: 1fr; }
  .dash-preview { grid-template-columns: 1fr; }
}

/* Video & gallery */
.media-section { padding: 4rem 0; }


.media-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.media-intro .section-desc {
  margin-bottom: 1rem;
}

.demo-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 2rem;
  max-width: 40rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.demo-features li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

.video-wide {
  width: 100%;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #060d18;
  box-shadow: var(--shadow);
  aspect-ratio: 1280 / 576;
  width: 100%;
  max-width: 100%;
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.video-play-hint {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.shot-card {
  text-align: center;
}

.shot-wide {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #060d18;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  margin-bottom: 0.75rem;
  transition: transform 0.2s, border-color 0.2s;
}

.shot-wide:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
}

.shot-wide img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-card figcaption {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.shot-card strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.shot-sub {
  display: block;
}

.media-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .media-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
}

/* Documentation pages */
.docs-page { padding: 2rem 0 4rem; }
.docs-breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.docs-breadcrumb a { color: var(--accent); }
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.docs-toc {
  position: sticky;
  top: 5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.docs-toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 0.75rem; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-toc li { margin: 0.35rem 0; }
.docs-toc a { color: var(--text-muted); font-size: 0.92rem; }
.docs-toc a:hover { color: var(--accent); }
.docs-content h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 0.5rem; line-height: 1.2; }
.docs-lead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; max-width: 42rem; }
.docs-content h2 { margin: 2.5rem 0 0.75rem; font-size: 1.35rem; scroll-margin-top: 5rem; }
.docs-content h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.docs-content p, .docs-content li { color: var(--text-muted); }
.docs-content strong { color: var(--text); }
.docs-content ol, .docs-content ul { padding-inline-start: 1.25rem; }
.docs-content li { margin: 0.4rem 0; }
.docs-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.docs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.docs-card:hover { border-color: rgba(56, 189, 248, 0.35); }
.docs-card h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--text); }
.docs-card p { margin: 0; font-size: 0.9rem; }
.docs-tip {
  background: rgba(56, 189, 248, 0.08);
  border-inline-start: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}
.docs-tip strong { color: var(--accent); }
.changelog-list { list-style: none; padding: 0; margin: 0; }
.changelog-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.changelog-item:first-child { padding-top: 0; }
.changelog-version { font-weight: 700; color: var(--accent); }
.changelog-date { font-size: 0.85rem; color: var(--text-muted); margin-inline-start: 0.5rem; }
.changelog-badge {
  display: inline-block;
  background: var(--success);
  color: #042f1a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-inline-start: 0.5rem;
  vertical-align: middle;
}
@media (max-width: 800px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; }
}
