@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --bg: #060a09;
  --bg-elevated: #0b1210;
  --surface: #101915;
  --surface-alt: #16211c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --mint: #2fe6b0;
  --mint-dark: #1fae86;
  --mint-soft: rgba(47, 230, 176, 0.12);
  --coral: #ff5c4d;
  --coral-soft: rgba(255, 92, 77, 0.12);
  --text: #f4f7f6;
  --text-dim: #9fb3ac;
  --text-faint: #64766f;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

html[dir='rtl'] body { direction: rtl; }
html[dir='ltr'] body { direction: ltr; }

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; z-index: 1; }

/* Ambient glow background, mirrors the reference's dark-with-mint-glow feel */
.glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 0%, rgba(47, 230, 176, 0.14), transparent 60%),
    radial-gradient(500px 380px at 10% 15%, rgba(47, 230, 176, 0.08), transparent 60%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 9, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand svg { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  color: var(--text-dim);
}

.nav-links a:hover { color: var(--text); }

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

.lang-toggle {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-faint);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
}

.lang-toggle button.active { background: var(--mint); color: #06100d; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--mint);
  color: #06100d;
  box-shadow: 0 0 0 0 rgba(47, 230, 176, 0.4);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover { box-shadow: 0 8px 30px rgba(47, 230, 176, 0.35); transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover { border-color: var(--mint); }

.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 60px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mint);
  background: var(--mint-soft);
  border: 1px solid rgba(47, 230, 176, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

h1 em { color: var(--mint); font-style: normal; }

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Mockup order card */
.order-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(47, 230, 176, 0.08);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.order-id { font-size: 13px; color: var(--text-faint); }
.order-id strong { color: var(--text); display: block; font-size: 15px; margin-top: 2px; }

.badge {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.badge-mint { background: var(--mint-soft); color: var(--mint); border: 1px solid rgba(47, 230, 176, 0.3); }

.order-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.order-amount { font-size: 30px; font-weight: 800; }
.order-amount span { font-size: 15px; color: var(--text-dim); font-weight: 500; }
.fee-pill { text-align: end; }
.fee-pill .label { font-size: 12px; color: var(--text-faint); display: block; margin-bottom: 4px; }
.fee-pill .value { font-size: 18px; font-weight: 800; color: var(--mint); }

.milestones { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }

.milestone { display: flex; align-items: center; gap: 12px; font-size: 14px; }

.milestone .dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px;
}

.milestone.done .dot { background: var(--mint); color: #06100d; }
.milestone.active .dot { background: transparent; border: 2px solid var(--mint); color: var(--mint); }
.milestone.pending .dot { background: transparent; border: 2px solid var(--border-strong); color: var(--text-faint); }
.milestone.done span.label { color: var(--text); }
.milestone.active span.label { color: var(--text); }
.milestone.pending span.label { color: var(--text-faint); }
.milestone .status { margin-inline-start: auto; font-size: 12px; color: var(--text-faint); }

.order-actions { display: flex; gap: 10px; }
.order-actions .btn { flex: 1; }
.btn-disabled { opacity: 0.45; pointer-events: none; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
}

/* ---------- Section shared ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: 34px; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.01em; }
.section-head h2 em { color: var(--mint); font-style: normal; }
.section-head p { color: var(--text-dim); font-size: 16px; margin: 0; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--mint);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}

/* ---------- Problem ---------- */
.problem { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.problem-copy h2 { font-size: 32px; font-weight: 800; margin: 0 0 16px; }
.problem-copy h2 em { color: var(--coral); font-style: normal; }
.problem-copy p { color: var(--text-dim); font-size: 16px; }
.problem-cards { display: flex; flex-direction: column; gap: 16px; }

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--coral);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.problem-card .icon { color: var(--coral); margin-bottom: 10px; }
.problem-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.problem-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

@media (max-width: 860px) {
  .problem .container { grid-template-columns: 1fr; }
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); margin: 0; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- Lifecycle ---------- */
.lifecycle { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.lifecycle-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.lifecycle-track::before {
  content: '';
  position: absolute;
  top: 24px;
  inset-inline: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--border-strong));
  z-index: 0;
}

.step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }

.step .num {
  width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--mint);
  color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}

.step:last-child .num { background: var(--mint); color: #06100d; }

.step h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.step p { font-size: 13px; color: var(--text-dim); margin: 0; }

@media (max-width: 860px) {
  .lifecycle-track { grid-template-columns: 1fr; gap: 32px; }
  .lifecycle-track::before { display: none; }
}

/* ---------- Sectors ---------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sector-card {
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.sector-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--sector-gradient);
  opacity: 0.9;
  z-index: 0;
}

.sector-card > * { position: relative; z-index: 1; }

.sector-card .icon { width: 42px; height: 42px; margin: 0 auto 16px; color: #06100d; background: rgba(255,255,255,0.85); border-radius: 12px; display:flex; align-items:center; justify-content:center; }
.sector-card h3 { color: #06100d; font-size: 15px; font-weight: 800; margin: 0; }

.sector-1 { --sector-gradient: linear-gradient(160deg, #2fe6b0, #1a8f70); }
.sector-2 { --sector-gradient: linear-gradient(160deg, #7fe9c9, #2fbf94); }
.sector-3 { --sector-gradient: linear-gradient(160deg, #a7f0d8, #3fd3a3); }
.sector-4 { --sector-gradient: linear-gradient(160deg, #57d9ac, #16785c); }

@media (max-width: 900px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Trust stats ---------- */
.trust { text-align: center; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
}
.trust-card .stat { font-size: 40px; font-weight: 800; color: var(--mint); margin-bottom: 10px; }
.trust-card .label { font-size: 14px; color: var(--text-dim); }

@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA footer ---------- */
.cta-footer {
  text-align: center;
  padding: 100px 0;
  background: radial-gradient(700px 300px at 50% 0%, rgba(47,230,176,0.12), transparent 70%);
}
.cta-footer h2 { font-size: 38px; font-weight: 800; margin: 0 0 16px; }
.cta-footer h2 em { color: var(--mint); font-style: normal; }
.cta-footer p { color: var(--text-dim); max-width: 480px; margin: 0 auto 32px; font-size: 16px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; max-width: 280px; margin-top: 12px; }
.footer-cols { display: flex; gap: 64px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; font-size: 13px; color: var(--text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 700px) {
  .footer-grid { flex-direction: column; }
  .footer-cols { gap: 32px; }
}

[data-i18n] { transition: opacity 0.15s ease; }
