:root {
  --navy: #0b2545;
  --blue: #1e5fa8;
  --teal: #0e7c7b;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --text: #1a2333;
  --text-muted: #55647a;
  --border: #e3e9f0;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
}
.logo span { color: var(--teal); }
.main-nav {
  display: flex;
  gap: 20px;
  flex: 1;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.lang-switcher {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.9rem;
  background: white;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--navy);
  margin: 0 0 20px;
  font-weight: 800;
  line-height: 1.15;
}
.hero-sub {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover { background: var(--blue); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--navy); text-decoration: none; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.sub-heading {
  margin-top: 40px;
  color: var(--navy);
  font-size: 1.2rem;
}

.goal-grid {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.goal-grid li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
  color: var(--navy);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.card-grid.two-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
}
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.product-card { border-top: 3px solid var(--teal); }

.timeline {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-left: 2px solid var(--border);
}
.timeline li {
  display: flex;
  gap: 20px;
  padding: 0 0 28px 24px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}
.timeline .tag {
  min-width: 48px;
  font-weight: 800;
  color: var(--teal);
}
.timeline .tag-final { color: var(--navy); }
.timeline strong { color: var(--navy); display: block; margin-bottom: 2px; }
.timeline p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.bullet-list {
  margin: 20px 0;
  padding-left: 20px;
  color: var(--text-muted);
}
.bullet-list li { margin-bottom: 6px; }

.center-cta { text-align: center; margin-top: 32px; }

/* Contact form */
.contact-form {
  max-width: 560px;
  margin-top: 28px;
}
.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: white;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-form .btn { margin-top: 4px; }
.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}
.footer-inner p { margin: 6px 0; }
.site-footer a { color: white; }

/* RTL support (Arabic) */
html[dir="rtl"] .header-inner { direction: rtl; }
html[dir="rtl"] .timeline { border-left: none; border-right: 2px solid var(--border); }
html[dir="rtl"] .timeline li { padding: 0 24px 28px 0; }
html[dir="rtl"] .timeline li::before { left: auto; right: -7px; }
html[dir="rtl"] .bullet-list { padding-left: 0; padding-right: 20px; }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
}

/* ---------- Release Notes ---------- */

.hero.compact { padding: 56px 0 48px; }
.hero.compact h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }

.badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.status-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.status-pill.live { background: #e4f5ef; color: var(--teal); }
.status-pill.demo { background: #eaf1fb; color: var(--blue); }
.status-pill.next { background: #fdeee0; color: #b5590f; }
.status-pill.date { background: var(--bg-alt); color: var(--text-muted); }

.release-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.release-tabs a {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}
.release-tabs a:hover { border-color: var(--blue); text-decoration: none; }
.release-tabs a.active { background: var(--navy); border-color: var(--navy); color: white; }

.check-grid {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.check-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.check-grid li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
}

.flow-diagram {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.flow-diagram .step {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}
.flow-diagram .arrow { color: var(--text-muted); font-weight: 700; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.pill-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.link-cards a.card {
  color: var(--navy);
  display: block;
  font-weight: 700;
}
.link-cards a.card:hover { border-color: var(--blue); text-decoration: none; }
.link-cards a.card span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.release-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.release-hub-grid .card h4 { font-size: 1.15rem; }
.release-hub-grid .card .btn { margin-top: 14px; }

.release-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.release-table th, .release-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.release-table th {
  background: var(--bg-alt);
  color: var(--navy);
  font-weight: 700;
}
.release-table td { color: var(--text-muted); }
.release-table tr:last-child td { border-bottom: none; }

.empty-note {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

html[dir="rtl"] .breadcrumb, html[dir="rtl"] .flow-diagram { direction: rtl; }
