/*
 * EduNova landing page — RC1 private pilot
 * Status: Draft for owner review. Not publicly published.
 *
 * Design intent: a premium education / SaaS landing page in the
 * "EduNova Classic" colour family. No remote fonts, no third-party
 * stylesheets, no JS frameworks. System / web-safe fonts only —
 * mirrors the product's own no-remote-fetch story.
 */

:root {
  /* Brand palette — EduNova Classic family */
  --brand-primary:        #1f4f99;
  --brand-primary-hover:  #1a4282;
  --brand-accent:         #3a7dde;
  --brand-secondary:      #f6c244;
  --brand-secondary-hover:#e0ae2c;

  /* Text + surfaces */
  --text-primary:  #1c2530;
  --text-muted:    #5a6678;
  --text-inverse:  #ffffff;
  --surface:       #ffffff;
  --surface-alt:   #f5f7fb;
  --surface-card:  #ffffff;
  --surface-hero:  linear-gradient(135deg, #f4f8ff 0%, #eef2fb 100%);
  --surface-pilot: #fff8e6;
  --surface-dark:  #1c2530;

  /* Borders / lines */
  --border-soft:   #e3e7ee;
  --border-medium: #c8d0de;

  /* Status accents */
  --accent-success: #2c8a5a;
  --accent-warn:    #b8730e;
  --accent-danger:  #b6383b;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;

  /* Type scale */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-eyebrow: 0.85rem;
  --fs-body:    1.05rem;
  --fs-h6:      1rem;
  --fs-h5:      1.15rem;
  --fs-h4:      1.4rem;
  --fs-h3:      1.75rem;
  --fs-h2:      2.4rem;
  --fs-h1:      3.4rem;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28, 37, 48, 0.05), 0 1px 3px rgba(28, 37, 48, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 37, 48, 0.08), 0 2px 4px rgba(28, 37, 48, 0.04);
  --shadow-lg: 0 14px 32px rgba(28, 37, 48, 0.12), 0 4px 12px rgba(28, 37, 48, 0.06);

  /* Layout */
  --content-narrow: 760px;
  --content-medium: 1100px;
  --content-wide:   1320px;
  --content-max:    1600px;
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--brand-primary); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }
p  { margin: 0 0 var(--space-4); }
ul, ol { padding-inline-start: 1.4em; }
li { margin: var(--space-2) 0; }
code, pre { font-family: var(--font-mono); font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: var(--space-7) 0; }

/* ---------- Layout containers ---------- */

.container       { max-width: var(--content-wide);   margin: 0 auto; padding: 0 var(--space-5); }
.container-narrow{ max-width: var(--content-narrow); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-7) 0; }
.section-alt   { background: var(--surface-alt); }
.section-dark  { background: var(--surface-dark); color: var(--text-inverse); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-inverse); }
.section-pilot { background: var(--surface-pilot); border-block: 1px solid #f0d68a; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-3);
}

.lede {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.55;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.site-logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--brand-secondary-hover); }
.site-nav { display: flex; gap: var(--space-5); align-items: center; }
.site-nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--brand-primary); text-decoration: none; }
.lang-switch {
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}
.lang-switch:hover { background: var(--surface-alt); color: var(--text-primary); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-primary-hover); color: var(--text-inverse); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--surface);
  color: var(--brand-primary);
  border-color: var(--border-medium);
}
.btn-secondary:hover { background: var(--surface-alt); color: var(--brand-primary); }
.btn-accent {
  background: var(--brand-secondary);
  color: var(--text-primary);
}
.btn-accent:hover { background: var(--brand-secondary-hover); color: var(--text-primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.btn-row .btn { flex: 0 0 auto; }

/* ---------- Hero ---------- */

.hero { background: var(--surface-hero); padding: var(--space-9) 0 calc(var(--space-9) + 24px); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-8); align-items: center; }
.hero h1 { color: var(--brand-primary); margin-bottom: var(--space-5); }
.hero__tagline {
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 var(--space-5);
  max-width: 36ch;
}
.hero__compat {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.hero__pilot-badge {
  display: inline-block;
  background: var(--surface-pilot);
  border: 1px solid #f0d68a;
  color: var(--accent-warn);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
}
.hero__trust {
  margin-top: var(--space-6);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}
.hero__visual { display: flex; justify-content: center; }
.hero__visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}

/* ---------- Problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.problem-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.problem-card h4 { margin-bottom: var(--space-3); color: var(--brand-primary); }

/* ---------- Solution ---------- */

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-5);
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
}
.capability-list li {
  padding: var(--space-3) 0 var(--space-3) 28px;
  position: relative;
  border-block-end: 1px solid var(--border-soft);
}
.capability-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(31, 79, 153, 0.12);
}
.capability-list li strong { color: var(--text-primary); }

/* ---------- Feature blocks ---------- */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  padding: var(--space-7) 0;
}
.feature-block:nth-child(even) { direction: rtl; }
.feature-block:nth-child(even) > * { direction: ltr; }
html[dir="rtl"] .feature-block:nth-child(even) { direction: ltr; }
html[dir="rtl"] .feature-block:nth-child(even) > * { direction: rtl; }
.feature-block + .feature-block { border-top: 1px solid var(--border-soft); }
.feature-block__visual img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.feature-block__content h3 { color: var(--brand-primary); }
.feature-block__content blockquote {
  border-inline-start: 4px solid var(--brand-secondary);
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-4);
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.gallery figure {
  margin: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.gallery figure:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gallery img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.gallery figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.pricing-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-medium); }
.pricing-card--featured {
  border-color: var(--brand-primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.pricing-card--featured::before {
  content: "Most institutions";
  position: absolute;
  top: -12px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
html[dir="rtl"] .pricing-card--featured::before { content: "الأنسب للمؤسسات"; transform: translateX(50%); }
.pricing-card h3 { margin-bottom: var(--space-2); color: var(--brand-primary); font-size: 1.4rem; }
.pricing-card__price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1;
}
.pricing-card__price small { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin-inline-start: 4px; }
.pricing-card__sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: var(--space-4); }
.pricing-card ul { padding-inline-start: 0; list-style: none; margin: 0 0 var(--space-5); flex: 1; }
.pricing-card li { padding-inline-start: 26px; position: relative; padding-block: 6px; font-size: 0.95rem; }
.pricing-card li::before {
  content: "✓";
  color: var(--accent-success);
  font-weight: 700;
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
}
.pricing-card .btn { width: 100%; text-align: center; }

.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.service-item {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}
.service-item__price { font-weight: 700; color: var(--brand-primary); }

/* ---------- Pilot notice ---------- */

.pilot-notice {
  max-width: var(--content-medium);
  margin: 0 auto;
  text-align: center;
}
.pilot-notice h2 { color: var(--accent-warn); }
.pilot-notice .btn { margin-top: var(--space-5); }

/* ---------- Known limitations ---------- */

.limitations-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-6);
  font-size: 0.95rem;
}
.limitations-table th, .limitations-table td {
  text-align: start;
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.limitations-table th {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--text-primary);
}
.limitations-table td:first-child { font-weight: 600; color: var(--brand-primary); width: 30%; }
.limitations-table td .status-no { color: var(--accent-danger); font-weight: 700; margin-inline-end: 6px; }

/* ---------- FAQ ---------- */

.faq-list { max-width: var(--content-narrow); margin: var(--space-6) auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: var(--space-4) 0;
}
.faq-item summary {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--text-primary);
  padding: var(--space-2) 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--brand-primary);
  font-weight: 300;
  transition: transform 180ms ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: var(--space-3) 0 var(--space-2); color: var(--text-muted); }
.faq-item:hover summary { color: var(--brand-primary); }

/* ---------- Closing CTAs ---------- */

.closing-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.closing-cta-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.closing-cta-card h4 { color: var(--brand-primary); margin: 0; }
.closing-cta-card p { color: var(--text-muted); flex: 1; margin: 0; font-size: 0.95rem; }
.closing-cta-card .btn { align-self: flex-start; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface-dark);
  color: #c8d0de;
  padding: var(--space-7) 0 var(--space-5);
  font-size: 0.9rem;
}
.site-footer a { color: #c8d0de; }
.site-footer a:hover { color: var(--text-inverse); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.site-footer__brand strong { color: var(--text-inverse); font-size: 1.1rem; }
.site-footer__brand p { margin-top: var(--space-3); }
.site-footer h5 { color: var(--text-inverse); font-size: 0.95rem; font-weight: 600; margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: var(--space-2) 0; }
.site-footer__legal {
  border-top: 1px solid #2c3a4d;
  padding-top: var(--space-4);
  font-size: 0.85rem;
  color: #8e98a8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}

/* ---------- Responsive: tablet (<= 1100px) ---------- */

@media (max-width: 1100px) {
  :root { --fs-h1: 2.6rem; --fs-h2: 2rem; --fs-h3: 1.5rem; }
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual img { max-width: 540px; margin: 0 auto; }
  .feature-block { grid-template-columns: 1fr; gap: var(--space-5); padding: var(--space-6) 0; }
  .feature-block:nth-child(even) { direction: ltr; }
  .pricing-grid, .closing-cta-grid, .services-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Responsive: mobile (<= 720px) ---------- */

@media (max-width: 720px) {
  :root { --fs-h1: 2.05rem; --fs-h2: 1.7rem; --fs-h3: 1.35rem; --fs-body: 1rem; }
  .section { padding: var(--space-7) 0; }
  .container, .container-narrow, .site-header__inner { padding-inline: var(--space-4); }
  .hero { padding: var(--space-7) 0; }
  .hero__tagline { font-size: 1.2rem; }
  .problem-grid, .capability-list, .pricing-grid, .closing-cta-grid, .services-row, .gallery { grid-template-columns: 1fr; }
  .site-nav { gap: var(--space-3); }
  .site-nav a:not(.btn) { display: none; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; text-align: center; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__legal { flex-direction: column; }
  .limitations-table th, .limitations-table td { padding: var(--space-3); font-size: 0.9rem; }
}

/* ---------- RTL adjustments ---------- */

html[dir="rtl"] body { font-family: "Segoe UI", "Helvetica Neue", "Noto Sans Arabic", "Cairo", system-ui, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6 { letter-spacing: 0; }
html[dir="rtl"] .hero h1 { letter-spacing: 0; }
html[dir="rtl"] .pricing-card__price small { margin-inline-start: 4px; margin-inline-end: 0; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .btn-row, .btn { display: none; }
  body { color: #000; background: #fff; }
}
