/**
 * ProEdit Day Theme (الوضع النهاري الفاتح المستوحى من ProEdit)
 * ألوان متناسقة، سرعة فائقة، خطوط عربية أنيقة، متوافق مع كافة الشاشات
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Day Light Palette extracted from ProEdit workspace.css */
  --bg-base: #f0f4fa;
  --bg-gradient: radial-gradient(1100px 620px at 0% 0%, rgba(146, 128, 255, 0.12), transparent 62%),
                 radial-gradient(900px 600px at 100% 100%, rgba(88, 150, 255, 0.12), transparent 62%),
                 #f0f4fa;
  --surface: #ffffff;
  --surface-panel: #eef3fa;
  --surface-panel-2: #e2eaf4;
  --surface-top: #f7fafc;
  --border-line: #cdd8e6;
  --border-subtle: #e1e9f2;
  
  /* Text & Colors */
  --txt-main: #152238;
  --txt-dim: #51627b;
  --txt-muted: #7e8fa6;
  --txt-white: #ffffff;
  
  /* Accent ProEdit Brand Colors */
  --acc-primary: #ff5512;
  --acc-primary-hover: #e04406;
  --acc-orange-subtle: rgba(255, 85, 18, 0.08);
  --acc-teal: #108e5e;
  --acc-teal-subtle: rgba(16, 142, 94, 0.1);
  --acc-blue: #1c64c2;
  --acc-blue-subtle: rgba(28, 100, 194, 0.1);
  --acc-purple: #7942ec;
  
  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(21, 34, 56, 0.04);
  --shadow-md: 0 10px 30px rgba(21, 34, 56, 0.07);
  --shadow-lg: 0 20px 50px rgba(21, 34, 56, 0.11);
  --shadow-glow: 0 0 35px rgba(255, 85, 18, 0.18);

  /* Fonts */
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --max-width: 1240px;
  --header-height: 76px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
  background: var(--bg-base);
  color: var(--txt-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Helpers */
.text-gradient {
  background: linear-gradient(135deg, var(--txt-main) 20%, var(--acc-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-acc {
  background: linear-gradient(135deg, #ff5512 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--border-line);
  background: var(--surface);
  color: var(--txt-dim);
}

.badge-acc {
  background: var(--acc-orange-subtle);
  border-color: rgba(255, 85, 18, 0.25);
  color: var(--acc-primary);
}

.badge-teal {
  background: var(--acc-teal-subtle);
  border-color: rgba(16, 142, 94, 0.25);
  color: var(--acc-teal);
}

.badge-blue {
  background: var(--acc-blue-subtle);
  border-color: rgba(28, 100, 194, 0.25);
  color: var(--acc-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--acc-primary) 0%, #ff6e2b 100%);
  color: var(--txt-white);
  box-shadow: 0 4px 20px rgba(255, 85, 18, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 85, 18, 0.42);
}

.btn-secondary {
  background: var(--surface);
  color: var(--txt-main);
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface-panel);
  border-color: var(--txt-muted);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.12rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════ Header ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(240, 244, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--acc-primary), #ff8442);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 85, 18, 0.35);
}

.logo-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-badge {
  font-size: 0.68rem;
  background: var(--surface-panel-2);
  color: var(--acc-blue);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--txt-dim);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--acc-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--acc-primary);
  transition: width 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Supported Hosts Sub-Banner in Header/Hero */
.hosts-pill-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  width: fit-content;
  margin: 0 auto 28px auto;
  box-shadow: var(--shadow-sm);
}

.host-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--txt-dim);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
}

.host-item-tag.highlight {
  background: var(--acc-orange-subtle);
  border-color: rgba(255, 85, 18, 0.3);
  color: var(--acc-primary);
}

/* ═══════════════════════════════════════════════ Hero Section ═══ */
.hero-section {
  padding: 56px 0 72px 0;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-line);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--txt-dim);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1px;
  max-width: 980px;
  margin: 0 auto 22px auto;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  color: var(--txt-dim);
  max-width: 820px;
  margin: 0 auto 36px auto;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--txt-dim);
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-icon {
  color: var(--acc-teal);
}

/* ═══════════════════════════════════════════════ Section Styles ═══ */
.section-pad {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--acc-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--txt-dim);
}

/* ═══════════════════════════════════════════════ Time Calculator ═══ */
.time-calc-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
  margin-bottom: 50px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.calc-control-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-label {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-panel-2);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--acc-primary);
  box-shadow: 0 2px 10px rgba(255, 85, 18, 0.45);
  cursor: pointer;
  border: 3px solid white;
}

.calc-pills {
  display: flex;
  gap: 12px;
}

.calc-pill {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-pill.active {
  background: var(--acc-primary);
  color: white;
  border-color: var(--acc-primary);
}

.calc-stats-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-hours-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--acc-primary);
}

.calc-hours-desc {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--txt-main);
}

.calc-subtext {
  font-size: 0.88rem;
  color: var(--txt-muted);
}

/* Comparison Table Mini */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.compare-card.winner {
  border-color: var(--acc-primary);
  background: linear-gradient(180deg, rgba(255, 85, 18, 0.03) 0%, var(--surface) 100%);
  position: relative;
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════ Tools Grid ═══ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.28s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 85, 18, 0.35);
}

.tool-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface-panel);
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.tool-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--txt-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--txt-main);
}

.tool-desc {
  font-size: 0.94rem;
  color: var(--txt-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-badge-pill {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-panel-2);
  color: var(--txt-dim);
}

/* ═══════════════════════════════════════════════ Pricing Section ═══ */
.pricing-section {
  padding: 92px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(226, 234, 244, 0.4) 100%);
}

.pricing-currency-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.toggle-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-line);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--txt-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: var(--acc-primary);
  color: white;
  border-color: var(--acc-primary);
  box-shadow: 0 3px 12px rgba(255, 85, 18, 0.3);
}

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

.price-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.price-card.featured {
  border: 2px solid var(--acc-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.price-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--acc-primary), #ff8442);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(255, 85, 18, 0.35);
  white-space: nowrap;
}

.price-header {
  margin-bottom: 24px;
  text-align: center;
}

.plan-name {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.plan-sub {
  font-size: 0.88rem;
  color: var(--txt-dim);
  min-height: 40px;
}

.price-amount-box {
  margin: 20px 0;
  text-align: center;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 800;
  vertical-align: super;
  margin-left: 4px;
  color: var(--txt-main);
}

.price-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--txt-main);
}

.price-period {
  font-size: 0.92rem;
  color: var(--txt-muted);
  font-weight: 600;
}

.price-original {
  font-size: 0.95rem;
  color: var(--txt-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.price-features {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.price-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--txt-dim);
  line-height: 1.45;
}

.feature-check {
  color: var(--acc-teal);
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 900;
}

.payment-methods-banner {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.payment-tags {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pay-badge {
  background: var(--surface-panel);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════ FAQ Accordion ═══ */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--txt-dim);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--acc-primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 28px;
  color: var(--txt-dim);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 22px;
  transition: max-height 0.35s ease-in-out;
}

/* ═══════════════════════════════════════════════ Footer ═══ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-line);
  padding: 72px 0 36px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-desc {
  font-size: 0.94rem;
  color: var(--txt-dim);
  max-width: 360px;
  line-height: 1.65;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--txt-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--txt-dim);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--acc-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--txt-muted);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .price-card.featured {
    transform: none;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.product-logo {
  flex: 0 0 42px;
  padding: 5px;
  border-radius: 12px;
  background: #fff1e9;
}

.product-screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 315px), 1fr));
  gap: 20px;
}

.product-screen-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  background: var(--surface-panel);
}

.product-screen-card p {
  margin: 0;
  color: var(--txt-dim);
}

.product-screen-card a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #101219;
}

.product-screen-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.product-screens-more {
  margin-block-start: 22px;
}

.product-studio-preview {
  margin: 0 0 48px;
}

.product-studio-preview img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
}

.product-studio-preview figcaption {
  margin-block-start: 10px;
  color: var(--txt-dim);
}
