/* =========================
  Ledger & Logic — Premium Systems Design
  Theme: Deep Blue Intelligence
========================= */

:root {
  /* Core Palette - Deep Blue Context */
  --void: #020408;
  /* Almost Black */
  --depth: #0B1121;
  /* Deep Background */
  --surface: #151e32;
  /* Card Surface */
  --surface-hover: #1e2942;

  --brand: #3b82f6;
  /* Primary Blue */
  --brand-glow: rgba(59, 130, 246, 0.5);

  --text-main: #f8fafc;
  /* White-ish */
  --text-muted: #94a3b8;
  /* Slate */

  --success: #10b981;
  --accent-cyan: #06b6d4;

  /* Metrics */
  --container: 1240px;
  --gutter: 2rem;
  --radius: 16px;

  /* Effects */
  --glass: rgba(11, 17, 33, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.4);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* Fonts */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  /* Tech feel */
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--void);
  background-image:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e293b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--text-main);
  font-family: var(--font-ar);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[lang="en"],
.text-en,
.brand-name {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  color: #fff;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Utils */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.85em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.badge--accent {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.badge--ai {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Nav */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 40px;
  height: 40px;
  background: var(--brand);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.brand-text {
  line-height: 1.2;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-actions a:hover {
  color: var(--brand);
}

/* Language Switch */
.switch {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 99px;
  border: var(--glass-border);
}

.switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.switch button.active {
  background: var(--brand);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Decorative Glow behind Hero */
.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.card--link { display:block; color: inherit; text-decoration: none; }

.btn--primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(59, 130, 246, 0.5);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: var(--glass-border);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn--block {
  width: 100%;
}

.chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}


/* Hero Cards (Right Side) */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  perspective: 1000px;
}

.mini-card {
  background: rgba(21, 30, 50, 0.6);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.4s var(--ease), border 0.4s;
}

.mini-card:hover {
  transform: translateX(-10px) scale(1.02);
  border-color: var(--brand);
  background: rgba(21, 30, 50, 0.9);
}

.mini-title {
  color: var(--brand);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.mini-text {
  color: #e2e8f0;
  font-size: 0.95rem;
}

/* Section Common */
.section {
  padding: 6rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  margin: 0;
  font-size: 1.1rem;
}

/* Grids */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Premium Cards */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Subtle glow on hover */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-family: var(--font-en);
  color: #fff;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.card-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Divider & Footer */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 4rem 0;
}

.footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================
   Product Page Styles
   ========================= */

.mb-4 {
  margin-bottom: 1rem;
}

/* Product Visual (CSS Dashboard) */
.product-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dash-window {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.dash-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 12px;
  align-items: center;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.dash-title {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dash-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-stat {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-val {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0;
}

.stat-label {
  font-size: 12px;
  color: var(--brand);
  text-transform: uppercase;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.dash-card {
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.dash-row {
  height: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}


/* Feature Grid */
.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* System Flow */
.system-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  flex-wrap: wrap;
  gap: 2rem;
}

.flow-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  display: block;
  line-height: 1;
}

.flow-step h4 {
  color: var(--brand);
  margin-top: -1rem;
}

.flow-line {
  flex: 1;
  height: 1px;
  background: var(--brand);
  opacity: 0.2;
  min-width: 50px;
}

/* Pricing */
.pricing-grid {
  align-items: flex-end;
}

.pricing-card {
  text-align: center;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-color: var(--brand);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.plan-name {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  text-align: left;
}

.plan-features li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.plan-features li::before {
  content: "✓";
  color: var(--brand);
  margin-right: 10px;
}

/* Mobile */
@media (max-width: 900px) {

  .hero-wrap,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-right {
    order: -1;
    perspective: none;
  }

  .mini-card:hover {
    transform: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}