/* ============================================================
   SHAREEK — Main Stylesheet
   Brand-compliant: Deep Navy · Silver · Lora / Poppins / Cairo
   ============================================================ */

/* ── 1. Custom Properties ─────────────────────────────────── */
:root {
  /* ── Brand Colors ── */
  --bg-primary:    #0D1B2A;          /* Deep Navy   — primary background  */
  --bg-secondary:  #0e1d2c;          /* near-Navy   — alternate sections  */
  --bg-card:       #111F2E;          /* Dark Card   — cards & panels      */
  --bg-card-hover: #152635;
  --bg-glass:      rgba(17, 31, 46, 0.88);

  --accent:        #D3D1C7;          /* Silver      — primary accent      */
  --accent-light:  #E8E6DD;          /* Silver tint — hover highlights    */
  --accent-dark:   #B4B2A9;          /* Silver Dark — secondary accent    */
  --accent-glow:   rgba(211, 209, 199, 0.07);
  --accent-border: rgba(211, 209, 199, 0.2);

  --text-primary:  #F0EDE6;          /* Off-White   — headlines & body    */
  --text-secondary:#B4B2A9;          /* Silver Dark — body paragraphs     */
  --text-muted:    #5A6E82;          /* Muted Slate — captions, meta      */

  --border:        #1A2E42;          /* Dark Slate  — inner borders       */
  --border-light:  #3A5068;          /* Deep Slate  — outer borders       */

  --success:       #4caf7d;

  /* ── Radii ── */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* ── Shadows ── */
  --shadow-card: 0 4px 28px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 48px rgba(211, 209, 199, 0.06);

  /* ── Typography ── */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-en:      'Poppins', system-ui, -apple-system, sans-serif;
  --font-ar:      'Cairo', 'Segoe UI', system-ui, sans-serif;
  --font:         var(--font-en);

  --transition:      0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s  cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] { --font: var(--font-ar); }

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

[dir="rtl"] h1,
[dir="rtl"] h2 {
  font-family: var(--font-ar);   /* Cairo for Arabic — Lora has no Arabic glyphs */
}

h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
}

/* ── 4. Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 100px; }

/* ── 5. Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(13, 27, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  justify-self: start;
}

.logo-badge { flex-shrink: 0; }

[dir="rtl"] .nav__logo {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
}

[dir="rtl"] .nav__links {
  justify-self: center;
}

.nav__links a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
  background: rgba(211, 209, 199, 0.06);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.lang-toggle {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}

.lang-toggle:hover {
  color: var(--text-primary);
  border-color: var(--accent-border);
  background: var(--accent-glow);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-card);
  z-index: 99;
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 15px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.nav__mobile a:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.nav__mobile .btn { margin-block-start: 8px; justify-content: center; }

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}

/* Primary — Silver fill, Deep Navy text */
.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 12px 24px;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(211, 209, 199, 0.18);
}

.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(211, 209, 199, 0.26);
}

.btn--primary:active { transform: translateY(0); }

/* Ghost — Silver border, soft text */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  font-size: 0.9rem;
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent-border);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* Outline — accent border, accent text */
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent-border);
  padding: 12px 24px;
  font-size: 0.9rem;
}

.btn--outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn--lg  { padding: 15px 32px; font-size: 1rem;    border-radius: var(--radius-lg); }
.btn--sm  { padding: 9px  18px; font-size: 0.85rem; }

/* ── 7. Section Utilities ─────────────────────────────────── */
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-block-end: 16px;
}

[dir="rtl"] .section__label { letter-spacing: 0; }

.section__label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

[dir="rtl"] .section__label::before { display: none; }
[dir="rtl"] .section__label::after {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-block-end: 20px;
  max-width: 700px;
  line-height: 1.25;
}

[dir="rtl"] .section__title {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

.section__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.8;
  margin-block-end: 48px;
}

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block-start: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%,  rgba(211, 209, 199, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 88% 75%,  rgba(26, 46, 66, 0.55)   0%, transparent 60%);
  pointer-events: none;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.22;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black, transparent);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 80px;
  max-width: 820px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(211, 209, 199, 0.05);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin-block-end: 28px;
  letter-spacing: 0.03em;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(1.5); }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-block-end: 24px;
}

[dir="rtl"] .hero__headline {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 580px;
  margin-block-end: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-block-end: 60px;
}

.hero__stats {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: fit-content;
}

.hero__stat { padding: 20px 32px; text-align: center; }

.hero__stat + .hero__stat {
  border-inline-start: 1px solid var(--border);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-block-end: 4px;
}

[dir="rtl"] .stat__num { font-family: var(--font-ar); }

.stat__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Hero orbs — very subtle, brand-aligned tones */
.hero__orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.3;
}

.orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(58, 80, 104, 0.5), transparent);
  inset-block-start: -180px;
  inset-inline-end: -80px;
  animation: float 10s ease-in-out infinite;
}

.orb--2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(26, 46, 66, 0.6), transparent);
  inset-block-end: 80px;
  inset-inline-start: -40px;
  animation: float 14s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-24px); }
}

/* ── 9. Problem Section ───────────────────────────────────── */
.problem {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.problem::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-block-start: 8px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.pain-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pain-card:hover::before { opacity: 1; }

.pain-icon {
  width: 52px; height: 52px;
  background: rgba(180, 178, 169, 0.06);
  border: 1px solid rgba(180, 178, 169, 0.14);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 20px;
  color: var(--accent-dark);
}

.pain-icon svg { width: 24px; height: 24px; }

.pain-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-block-end: 10px;
  color: var(--text-primary);
}

.pain-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── 10. Solution Section ─────────────────────────────────── */
.solution__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

[dir="rtl"] .solution__inner { direction: rtl; }

.solution__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-block-end: 40px;
}

.solution__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(211, 209, 199, 0.07);
  border: 1px solid rgba(211, 209, 199, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--accent);
  margin-block-start: 2px;
}

/* Dashboard Mockup */
.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  font-size: 0.85rem;
}

.mockup__header {
  background: var(--bg-secondary);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-block-end: 1px solid var(--border);
}

.mockup__dot { width: 11px; height: 11px; border-radius: 50%; }
.mockup__dot.red    { background: #ff5f57; }
.mockup__dot.yellow { background: #febc2e; }
.mockup__dot.green  { background: #28c840; }

.mockup__title {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-inline-start: 8px;
}

.mockup__body { padding: 24px; }

.mockup__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-block-end: 24px;
}

.mockup__metric {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.metric__label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-block-end: 6px;
  line-height: 1.35;
}

.metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

[dir="rtl"] .metric__value { font-family: var(--font-ar); }

.metric__value.accent  { color: var(--accent); }
.metric__value.success { color: var(--success); }

.mockup__section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-block-end: 12px;
}

[dir="rtl"] .mockup__section-title { letter-spacing: 0; }

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 10px;
}

.bar-row > span:first-child {
  width: 68px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-align: end;
}

[dir="rtl"] .bar-row > span:first-child { text-align: start; }

.bar {
  flex: 1;
  height: 7px;
  background: var(--bg-secondary);
  border-radius: 100px;
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-row > span:last-child {
  width: 28px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── 11. Features Section ─────────────────────────────────── */
.features { background: var(--bg-primary); }
.features .section__title { max-width: 800px; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(211,209,199,0.04), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(211,209,199,0.05);
}

.feature-card:hover::after { opacity: 1; }

.feature-card__icon {
  width: 56px; height: 56px;
  background: rgba(211, 209, 199, 0.05);
  border: 1px solid rgba(211, 209, 199, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 24px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.feature-card__icon svg { width: 26px; height: 26px; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-block-end: 12px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.feature-card > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-block-end: 24px;
  position: relative;
  z-index: 1;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.feature-bullets li::before {
  content: '→';
  color: var(--accent-dark);
  font-size: 0.76rem;
  flex-shrink: 0;
}

[dir="rtl"] .feature-bullets li::before { content: '←'; }

/* ── 12. Final CTA Section ────────────────────────────────── */
.cta-final {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(211,209,199,0.025), transparent 70%);
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.cta-final__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-block-end: 20px;
}

[dir="rtl"] .cta-final__inner h2 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

.cta-final__inner p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-block-end: 40px;
}

.cta-final__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── 13. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--bg-primary);
  border-block-start: 1px solid var(--border);
  padding-block: 60px 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-block-end: 48px;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-block-start: 16px;
  max-width: 260px;
}

.footer__col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-block-end: 20px;
}

[dir="rtl"] .footer__col h4 { letter-spacing: 0; }

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }

.footer__col ul a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__col ul a:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block-start: 32px;
  border-block-start: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── 14. Contact / Demo Form ──────────────────────────────── */
.form-wrapper {
  max-width: 640px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(211, 209, 199, 0.08);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit { margin-block-start: 24px; width: 100%; justify-content: center; }

.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.visible { display: block; }

.form-success__icon {
  width: 64px; height: 64px;
  background: rgba(76, 175, 125, 0.1);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-block-end: 20px;
  font-size: 1.4rem;
  color: var(--success);
}

.form-success h3 { font-size: 1.3rem; margin-block-end: 10px; }
.form-success p  { color: var(--text-secondary); font-size: 0.95rem; }

/* ── 15. Product Page ─────────────────────────────────────── */
.page-hero {
  padding-block: 160px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(211,209,199,0.03), transparent 70%);
  pointer-events: none;
}

.page-hero .section__label { justify-content: center; }
.page-hero .section__title { max-width: 700px; margin-inline: auto; text-align: center; }
.page-hero .section__desc  { max-width: 540px; margin-inline: auto; text-align: center; margin-block-end: 0; }

.steps { background: var(--bg-secondary); }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.steps__grid::before {
  content: '';
  position: absolute;
  inset-block-start: 39px;
  inset-inline-start: calc(12.5% + 20px);
  inset-inline-end: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-dark));
  opacity: 0.3;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-num {
  width: 48px; height: 48px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--accent-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-inline: auto;
  margin-block-end: 20px;
}

[dir="rtl"] .step-num { font-family: var(--font-ar); }

.step-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-block-end: 10px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── 16. About Page ───────────────────────────────────────── */
.about-values { background: var(--bg-secondary); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.value-card__icon {
  width: 52px; height: 52px;
  background: rgba(211, 209, 199, 0.05);
  border: 1px solid rgba(211, 209, 199, 0.14);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-block-end: 20px;
}

.value-card h3 { font-size: 1rem; font-weight: 700; margin-block-end: 10px; }
.value-card p  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ── 17. Animations ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── 18. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .solution__inner { grid-template-columns: 1fr; gap: 56px; }
  .footer__inner   { grid-template-columns: 1fr 1fr; }
  .features__grid  { grid-template-columns: 1fr; }
  .steps__grid     { grid-template-columns: 1fr 1fr; }
  .steps__grid::before { display: none; }
  .values-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding-block: 72px; }

  .nav__links                 { display: none; }
  .nav__actions .btn--primary { display: none; }
  .nav__hamburger             { display: flex; }

  .hero__stats { flex-direction: column; gap: 0; width: 100%; }
  .hero__stat  { padding: 16px 24px; }
  .hero__stat + .hero__stat {
    border-inline-start: none;
    border-block-start: 1px solid var(--border);
  }

  .pain-grid      { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .steps__grid    { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: 1fr; }
  .mockup__metrics{ grid-template-columns: 1fr; }

  .footer__inner  { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }

  .form-wrapper   { padding: 28px 20px; }
  .form-grid      { grid-template-columns: 1fr; }

  .cta-final__actions { flex-direction: column; }
  .cta-final__actions .btn { width: 100%; justify-content: center; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container    { padding-inline: 16px; }
  .feature-card { padding: 28px 20px; }
}

/* ── 19. RTL-specific overrides ───────────────────────────── */
[dir="rtl"] .bar__fill {
  background: linear-gradient(270deg, var(--accent-dark), var(--accent));
}

[dir="rtl"] .steps__grid::before {
  background: linear-gradient(270deg, var(--accent-dark), var(--accent), var(--accent-dark));
}

/* ── 20. Premium Animations ───────────────────────────────── */

/* Shared entrance keyframe */
@keyframes enterUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Gentle continuous float */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-6px); }
}

/* Nav slides in from top on page load */
@keyframes navEnter {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0);     }
}

.nav { animation: navEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Hero content — staggered entrance on load ── */
.hero__badge    { animation: enterUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both 0.15s; }
.hero__headline { animation: enterUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both 0.30s; }
.hero__sub      { animation: enterUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both 0.44s; }
.hero__actions  { animation: enterUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both 0.56s; }

/* Stats bar: entrance + continuous float after it settles */
.hero__stats {
  animation:
    enterUp     0.7s  cubic-bezier(0.22, 1, 0.36, 1) both     0.68s,
    gentleFloat 5.5s  ease-in-out                    infinite  1.6s;
}

/* Badge also floats subtly after entering */
.hero__badge {
  animation:
    enterUp     0.7s  cubic-bezier(0.22, 1, 0.36, 1) both     0.15s,
    gentleFloat 4.5s  ease-in-out                    infinite  1.1s;
}

/* ── Nav link — underline grows from centre on hover ── */
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition);
  opacity: 0.65;
  pointer-events: none;
}

.nav__links a:hover::after,
.nav__links a.active::after { width: calc(100% - 28px); }

/* ── Feature card icon — spring scale + subtle rotate ── */
.feature-card__icon {
  transition:
    background   var(--transition),
    border-color var(--transition),
    transform    0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-card__icon {
  background:   rgba(211, 209, 199, 0.12);
  border-color: rgba(211, 209, 199, 0.32);
  transform:    scale(1.1) rotate(4deg);
}

/* ── Pain card icon — spring scale ── */
.pain-icon {
  transition:
    background   var(--transition),
    border-color var(--transition),
    transform    0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pain-card:hover .pain-icon {
  background:   rgba(211, 209, 199, 0.1);
  border-color: rgba(211, 209, 199, 0.24);
  transform:    scale(1.08);
}

/* ── Step card number — fills solid on hover ── */
.step-num {
  transition:
    background   var(--transition),
    color        var(--transition),
    border-color var(--transition),
    transform    0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover .step-num {
  background:   var(--accent);
  color:        var(--bg-primary);
  border-color: var(--accent);
  transform:    scale(1.1);
}

/* ── Value card icon ── */
.value-card__icon {
  transition:
    background   var(--transition),
    border-color var(--transition),
    transform    0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover .value-card__icon {
  background:   rgba(211, 209, 199, 0.1);
  border-color: rgba(211, 209, 199, 0.28);
  transform:    scale(1.08);
}

/* ── Button press feedback ── */
.btn { touch-action: manipulation; }

.btn--primary:active { transform: translateY(1px) scale(0.97) !important; box-shadow: none !important; }
.btn--ghost:active   { transform: translateY(1px) scale(0.97) !important; }
.btn--outline:active { transform: translateY(1px) scale(0.97) !important; }

/* ── GPU hints — only on elements that animate ── */
.hero__badge,
.hero__headline,
.hero__sub,
.hero__actions,
.hero__stats,
.orb,
.fade-up {
  will-change: transform, opacity;
}

.fade-up.visible { will-change: auto; }

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