/* UAGS Cloudflare landing — from uwns-landing reference, html[data-theme=dark] */

/* ===========================
   UWNS DESIGN SYSTEM
   Inspired by Cloudflare
   =========================== */

:root {
  /* Brand Colors */
  --cf-orange:        #F6821F;
  --cf-orange-dark:   #E05D00;
  --cf-orange-light:  #FFA44D;
  --cf-orange-subtle: #FFF3E8;

  /* Light Mode - Background */
  --bg-primary:    #FFFFFF;
  --bg-secondary:  #F8F8F8;
  --bg-tertiary:   #F0F0F0;
  --bg-overlay:    rgba(0,0,0,0.04);

  /* Light Mode - Text */
  --text-primary:   #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary:  #AEAEB2;
  --text-inverse:   #FFFFFF;

  /* Light Mode - Borders */
  --border-light:  #E8E8E8;
  --border-mid:    #D1D1D6;
  --border-dark:   #AEAEB2;

  /* Light Mode - Nav */
  --nav-bg:        rgba(255,255,255,0.9);
  --nav-border:    #E8E8E8;

  /* Blue accent */
  --blue:          #0051C3;
  --blue-light:    #E8F0FE;
  --green:         #1A7F37;
  --green-light:   #DCFCE7;

  /* Layout */
  --max-width: 1296px;
  --nav-height: 60px;

  /* Typography */
  --font-sans: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', monospace;

  /* Radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
}

html[data-theme="dark"] {
  --bg-primary:    #1B1B1F;
  --bg-secondary:  #242428;
  --bg-tertiary:   #2C2C30;
  --bg-overlay:    rgba(255,255,255,0.04);
  --text-primary:  #F5F5F7;
  --text-secondary:#A1A1A6;
  --text-tertiary: #6E6E73;
  --text-inverse:  #1D1D1F;
  --border-light:  #38383D;
  --border-mid:    #48484D;
  --border-dark:   #6E6E73;
  --nav-bg:        rgba(27,27,31,0.9);
  --nav-border:    #38383D;
  --blue-light:    #0D2A5C;
  --green-light:   #0A2E1A;
  --cf-orange-subtle: #2A1800;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===========================
   NAVIGATION — Cloudflare style
   =========================== */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e8e8;
}
[data-theme="dark"] .nav-wrapper {
  background: rgba(27, 27, 31, 0.92);
  border-bottom-color: #38383d;
}

.nav-inner {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--cf-orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-right: 32px;
  margin-left: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 60px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text-primary);
}
.nav-link.active {
  color: #f6821f;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #f6821f;
  border-radius: 1px 1px 0 0;
}
.nav-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: transform 0.2s;
}
.nav-link:hover .nav-chevron {
  transform: rotate(180deg);
}

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

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.theme-toggle:hover {
  border-color: var(--border-dark);
  color: var(--text-primary);
}

.btn-nav-primary {
  background: #f6821f;
  color: #fff;
  border: none;
  padding: 0 16px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn-nav-primary:hover {
  background: #e05d00;
  transform: translateY(-1px);
}

.btn-nav-ghost {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
  padding: 0 16px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
}
.btn-nav-ghost:hover {
  border-color: var(--text-secondary);
  background: var(--bg-overlay);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

/* Cloudflare's subtle gradient mesh background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-mesh {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    rgba(246,130,31,0.10) 0%,
    rgba(246,130,31,0.04) 40%,
    transparent 70%
  );
}
.hero-mesh-2 {
  position: absolute;
  bottom: -100px;
  left: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(0,81,195,0.06) 0%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}
/* Hero Grid — عمودان (نص + بطاقة) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cf-orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--cf-orange);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.hero h1 em {
  font-style: normal;
  color: var(--cf-orange);
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary-lg {
  background: var(--cf-orange);
  color: #fff;
}
.btn-primary-lg:hover {
  background: var(--cf-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246,130,31,0.35);
}
.btn-ghost-lg {
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
}
.btn-ghost-lg:hover {
  border-color: var(--border-dark);
  background: var(--bg-overlay);
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #f6821f;
}
.hc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hc-title {
  font-size: 13px;
  font-weight: 600;
}
.hc-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #1a7f37;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 999px;
}
.hc-badge-dot {
  width: 6px;
  height: 6px;
  background: #1a7f37;
  border-radius: 50%;
  animation: blink 2s infinite;
}
.hc-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.hc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.hc-icon.orange {
  background: #fff3e8;
}
.hc-icon.blue {
  background: #e8f0fe;
}
.hc-icon.green {
  background: #dcfce7;
}
.hc-row-info {
  flex: 1;
}
.hc-row-label {
  font-size: 11px;
  color: var(--text-secondary);
}
.hc-row-val {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.hc-row-num {
  font-size: 13px;
  font-weight: 600;
  color: #f6821f;
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  border-top: 1px solid var(--border-light);
  margin-top: 45px;
}
.hero-stat {
  flex: 1;
  padding: 18px 24px;
  text-align: center;
}
/* فواصل عمودية: في RTL ترتيب الفليكس من اليمين؛ الفاصل بين عمودين = border-left لكل عمود ما عدا الأيسر (آخر DOM) */
html[dir="ltr"] .hero-stat:not(:first-child) {
  border-left: 1px solid var(--border-light);
}
html[dir="rtl"] .hero-stat:not(:last-child) {
  border-left: 1px solid var(--border-light);
}
.hero-stat-num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #f6821f;
  letter-spacing: -0.5px;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ===========================
   TRUST BAR (like Cloudflare)
   =========================== */
.trust-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 15px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.trust-label {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding-left: 32px;
  flex-shrink: 0;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: 0 32px;
}
.trust-logo {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  white-space: nowrap;
  transition: color 0.2s;
}
.trust-logo:hover { color: var(--text-secondary); }

/* ===========================
   SECTION SHARED STYLES
   =========================== */
.section {
  padding: 72px 0;
}

/* يتماشى مع تقليل المسافات على قسم التسعير (partial) */
.landing-preview__section.landing-pricing-calc {
  padding: 1.5rem 0 0;
}
.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 42px;
}
.section-header.centered {
  text-align: center;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cf-orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}
.section-header.centered .section-desc {
  margin: 0 auto;
}

/* ===========================
   FEATURES — 3-col grid
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.feat {
  padding: 36px 32px;
  border-left: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
  position: relative;
}
.feat:nth-child(3n+1) { border-left: none; }
.feat:nth-last-child(-n+3) { border-bottom: none; }
.feat:hover { background: var(--bg-overlay); }
.feat-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.feat-icon.o { background: var(--cf-orange-subtle); }
.feat-icon.b { background: var(--blue-light); }
.feat-icon.g { background: var(--green-light); }
.feat-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.feat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.feat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cf-orange);
  transition: gap 0.2s;
}
.feat-link:hover { gap: 8px; }

/* ===========================
   HOW IT WORKS — بطاقات + أيقونات تقنية
   =========================== */
.how-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.how-card {
  background: var(--bg-primary);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.how-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.how-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.how-card-icon--lock {
  background: var(--cf-orange-subtle);
}
.how-card-icon--api {
  background: var(--blue-light);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.5px;
}
.how-card-icon--api span {
  font-style: normal;
}
.how-card-icon--invoice {
  background: var(--green-light);
}
.how-card-step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cf-orange);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.how-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.how-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================
   BENTO / VALUE GRID
   =========================== */
.bento {
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.bento-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 36px;
  transition: box-shadow 0.2s;
  overflow: hidden;
}
.bento-card:hover { box-shadow: var(--shadow-md); }
.bento-card.accent {
  background: linear-gradient(135deg, var(--cf-orange) 0%, var(--cf-orange-dark) 100%);
  border-color: transparent;
  color: #fff;
}
.bento-card.accent .bento-label,
.bento-card.accent .bento-desc { color: rgba(255,255,255,0.75); }
.bento-card.dark {
  background: var(--bg-tertiary);
}
.bento-big { grid-row: span 2; }
.bento-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.bento-num {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 12px;
}
.bento-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.bento-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===========================
   TERMINAL
   =========================== */
.terminal-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.terminal-with-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.terminal-aside {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  text-align: center;
}
@media (min-width: 901px) {
  .terminal-with-aside {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }
  .terminal-with-aside .terminal {
    flex: 1;
    min-width: 0;
  }
  .terminal-aside {
    flex: 0 0 148px;
    align-self: center;
    text-align: center;
  }
}
.terminal {
  background: #0D1117;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid #30363D;
}
.term-topbar {
  background: #161B22;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #30363D;
}
.term-dot { width:10px;height:10px;border-radius:50%; }
.term-d1{background:#FF5F57;} .term-d2{background:#FFBD2E;} .term-d3{background:#28C840;}
.term-name { margin-right: auto; font-size: 12px; color: #8B949E; font-family: var(--font-mono); }
.term-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
}
.tc{color:#8B949E;} .ty{color:#E6C07B;} .tg{color:#98C379;}
.tb{color:#61AFEF;} .ta{color:#F6821F;} .tp{color:#C678DD;}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}
.check-icon {
  width: 20px; height: 20px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
}

/* ===========================
   QUOTE CALLOUT
   =========================== */
.callout {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 42px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cf-orange), transparent);
}
.callout-q {
  font-size: 56px;
  color: var(--cf-orange);
  opacity: 0.2;
  line-height: 0.5;
  margin-bottom: 24px;
  font-family: Georgia, serif;
}
.callout-text {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 680px;
  margin: 0 auto 24px;
  letter-spacing: -0.3px;
}
.callout-author {
  font-size: 14px;
  color: var(--text-tertiary);
}
.callout-author strong { color: var(--text-secondary); }

/* ===========================
   CTA FINAL
   =========================== */
.cta-section {
  text-align: center;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(246,130,31,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.email-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto 20px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}
.email-form input {
  flex: 1;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  height: 48px;
}
.email-form input::placeholder { color: var(--text-tertiary); }
.email-form button {
  background: var(--cf-orange);
  color: #fff;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  font-family: var(--font-sans);
}
.email-form button:hover { background: var(--cf-orange-dark); }
.cta-note { font-size: 13px; color: var(--text-tertiary); }

/* ===========================
   FOOTER — Cloudflare style
   Full-width, multi-column
   =========================== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.footer-top {
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {}
.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.social-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.social-btn:hover {
  border-color: var(--cf-orange);
  color: var(--cf-orange);
  background: var(--cf-orange-subtle);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--cf-orange); }

/* Footer Bottom — exactly like Cloudflare */
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0;
}
.footer-legal a {
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 0 12px;
  border-left: 1px solid var(--border-light);
  transition: color 0.15s;
}
.footer-legal a:first-child { border-left: none; }
.footer-legal a:hover { color: var(--text-secondary); }
.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
}
.status-dot {
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: blink 2s infinite;
}
.status-pill--ok {
  color: var(--green);
  background: var(--green-light);
  border-color: rgba(26, 127, 55, 0.2);
}
.status-pill--warn {
  color: #8a5b00;
  background: #fff8e6;
  border-color: rgba(138, 91, 0, 0.25);
}
.status-pill--err {
  color: #b42318;
  background: #fdecec;
  border-color: rgba(180, 35, 24, 0.25);
}

/* Mobile navigation */
.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-inline-end: 4px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-menu-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.nav-menu-close {
  display: none;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}
.nav-wrapper.is-mobile-nav-open .nav-menu-icon {
  display: none;
}
.nav-wrapper.is-mobile-nav-open .nav-menu-close {
  display: block;
}

/* ===========================
   UTILITY
   =========================== */
.full-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

/* Nav: روابط تستخدم نفس شكل الأزرار */
a.btn-nav-ghost,
a.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

/* تمرير للمراسي تحت الهيدر الثابت */
section[id] {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

/* نموذج التواصل (قالب Jinja) */
.cf-flash {
  max-width: 520px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  text-align: center;
}
.cf-flash--ok {
  background: var(--green-light);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.cf-flash--err {
  background: color-mix(in srgb, #fdecec 90%, var(--bg-primary));
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
}
html[data-theme="dark"] .cf-flash--err {
  background: color-mix(in srgb, #450a0a 60%, var(--bg-primary));
}
.cf-contact-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: right;
}
html[dir="ltr"] .cf-contact-form {
  text-align: left;
}
.cf-contact-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.cf-contact-form input,
.cf-contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-mid);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 12px;
}
.cf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .cf-contact-grid {
    grid-template-columns: 1fr;
  }
}
.cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== PRICING FIXES ===== */
.pc-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.pc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.pc-card {
  background: var(--bg-primary);
  border: none;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  min-width: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.pc-card.sel {
  box-shadow: 0 4px 20px rgba(246, 130, 31, 0.22), 0 0 0 2px #F6821F;
}
.pc-card.pop {
  box-shadow: 0 2px 12px rgba(0, 81, 195, 0.12), 0 0 0 2px var(--blue, #0051C3);
}
.pc-card.pop.sel {
  box-shadow: 0 4px 20px rgba(246, 130, 31, 0.22), 0 0 0 2px #F6821F;
}

/* جدول المقارنة — محصور بالكامل */
.compare-table-wrap {
  margin-top: 32px;
  overflow: hidden;
}
.compare-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
}
.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 12px;
}
.compare-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.compare-table th,
.compare-table td {
  padding: 11px 16px;
  border: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare-table tbody tr {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.compare-table thead tr {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.compare-table th:first-child,
.compare-table td:first-child {
  width: 40%;
  text-align: right;
  white-space: normal;
}
.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  width: 20%;
  text-align: center;
}
.compare-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}
.compare-table th:first-child {
  color: var(--text-primary);
}
.compare-table tbody tr:last-child {
  box-shadow: none;
}
.compare-table tbody tr:hover {
  background: var(--bg-overlay);
}
.col-featured {
  background: rgba(246,130,31,0.04) !important;
  font-weight: 600 !important;
}
.compare-table thead .col-featured {
  color: #F6821F !important;
  box-shadow: inset 0 2px 0 #F6821F;
}

/* ROI bar */
.roi-bar {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  margin: 32px 0;
}
.roi-item {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.roi-num {
  font-size: 24px;
  font-weight: 700;
  color: #F6821F;
  letter-spacing: -0.5px;
}
.roi-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.roi-sep {
  background: var(--border-light);
  height: 100%;
}

/* pricing promise */
.pricing-promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.promise-icon { color: #22c55e; font-weight: 700; }
.promise-sep  { color: var(--text-tertiary); }

/* pricing example */
.pricing-example {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 12px;
  padding: 8px;
  background: var(--bg-secondary);
  border-radius: 6px;
  line-height: 1.5;
}
.pricing-example strong { color: #F6821F; font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .nav-inner {
    position: relative;
    flex-wrap: wrap;
  }
  .nav-menu-btn {
    display: inline-flex;
    order: 2;
    margin-inline-start: auto;
  }
  .nav-actions {
    order: 3;
  }
  .nav-links {
    display: none;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border-light);
    background: var(--nav-bg);
    max-height: min(70vh, 420px);
    overflow-y: auto;
  }
  .nav-links[hidden] {
    display: none !important;
  }
  .nav-wrapper.is-mobile-nav-open .nav-links {
    display: flex !important;
  }
  .nav-link {
    height: auto;
    padding: 12px 16px;
    width: 100%;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .how-cards { grid-template-columns: 1fr 1fr; }
  .terminal-wrap { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 20px; }
}
@media (max-width: 600px) {
  .how-cards { grid-template-columns: 1fr; }
}
