:root {
  color-scheme: light;
  --green: #174b3e;
  --green-deep: #0d2f27;
  --green-soft: #e6f0e8;
  --ivory: #f7f7f0;
  --paper: #fffef9;
  --ink: #173d32;
  --muted: #68766e;
  --line: #d9e4d8;
  --terracotta: #b55c2a;
  --top: #c26018;
  --featured: #6d4aa2;
  --vip: #a66e0b;
  --ad: #24679b;
  --shadow: 0 24px 80px rgba(23, 75, 62, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; }
img, svg { max-width: 100%; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 14px; background: white; border-radius: 10px; }
.skip:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(247,247,240,.9); border-bottom: 1px solid rgba(217,228,216,.85); }
.nav { width: min(1160px, calc(100% - 32px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.55rem; font-weight: 900; text-decoration: none; letter-spacing: -.04em; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); }
.nav-links, .language-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav-links a, .language-links a { font-size: .9rem; font-weight: 750; text-decoration: none; color: var(--muted); }
.nav-links a:hover, .language-links a:hover, .nav-links a:focus-visible, .language-links a:focus-visible { color: var(--green); }

main { overflow: hidden; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: auto; }
.hero { padding: clamp(64px, 9vw, 120px) 0 72px; background: radial-gradient(circle at 80% 20%, #dbead8 0, transparent 30%), linear-gradient(180deg, #fbfbf5 0, var(--ivory) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: clamp(38px, 7vw, 96px); }
.hero-grid > * { min-width: 0; }
.eyebrow { color: var(--terracotta); font-weight: 850; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .6em; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(3.1rem, 8vw, 6.8rem); max-width: 10ch; }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); max-width: 14ch; }
h3 { font-size: 1.25rem; }
.hero-copy { font-size: clamp(1.08rem, 2vw, 1.35rem); max-width: 610px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 14px; text-decoration: none; font-weight: 850; border: 1px solid var(--green); }
.button.primary { background: var(--green); color: white; }
.button.secondary { color: var(--green); background: transparent; }
.launch-note { display: inline-flex; max-width: 100%; gap: 10px; align-items: center; margin-top: 24px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .88rem; white-space: normal; }
.launch-note span { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }

.product-visual { min-width: 0; width: 100%; min-height: 560px; position: relative; display: grid; place-items: center; }
.phone { width: min(360px, calc(100vw - 56px)); padding: 24px; border-radius: 42px; color: #edf5ef; background: var(--green-deep); box-shadow: var(--shadow); transform: rotate(2deg); }
.phone-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.phone-head strong { font-size: 1.5rem; }
.phone-search { padding: 14px 16px; border: 1px solid #4c7163; border-radius: 15px; color: #c9dbd0; margin-bottom: 16px; }
.market-card { background: #17372c; border: 1px solid #46695a; border-radius: 20px; padding: 16px; margin-top: 12px; }
.market-card .meta { color: #b8cbbf; font-size: .86rem; }
.market-card .tag { display: inline-block; margin-top: 12px; padding: 4px 9px; border-radius: 99px; font-size: .73rem; font-weight: 850; background: #274f40; }
.floating { position: absolute; max-width: 46%; padding: 13px 15px; border-radius: 16px; background: var(--paper); box-shadow: 0 16px 50px rgba(23,75,62,.16); font-weight: 850; overflow-wrap: anywhere; }
.floating.one { inset-inline-start: 0; top: 22%; color: var(--featured); }
.floating.two { inset-inline-end: 0; bottom: 18%; color: var(--top); }

.section { padding: 88px 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-intro { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 38px; }
.section-intro p { max-width: 590px; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 24px; background: var(--paper); padding: 26px; }
.card-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--green-soft); color: var(--green); font-weight: 900; margin-bottom: 20px; }
.card p, .step p { color: var(--muted); margin-bottom: 0; }
.role-card { min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.role-card a { color: var(--green); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.step { background: var(--ivory); padding: 28px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.trust-panel { border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: var(--green); color: white; }
.trust-panel p { color: #cfe0d5; }
.trust-list { display: grid; gap: 12px; }
.trust-item { background: rgba(255,255,255,.1); padding: 14px 16px; border-radius: 14px; }
.commercial-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.product { padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); }
.pill { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: .73rem; font-weight: 900; color: white; }
.pill.top { background: var(--top); }.pill.featured { background: var(--featured); }.pill.vip { background: var(--vip); }.pill.ad { background: var(--ad); }
.morocco { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.map-shape { min-height: 360px; border-radius: 32px; background: linear-gradient(145deg, #dfead8, #f2dfcf); display: grid; place-items: center; font-size: clamp(4rem, 14vw, 9rem); }
.faq { display: grid; gap: 10px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 17px 20px; }
summary { cursor: pointer; font-weight: 850; }

.legal-hero { padding: 72px 0 36px; }
.legal-hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 15ch; }
.notice { padding: 18px 20px; border: 1px solid #e5c58e; background: #fff4dd; border-radius: 16px; color: #6e4912; margin: 24px 0; }
.prose { max-width: 780px; padding-bottom: 90px; }
.prose h2 { font-size: 1.75rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose li { margin: .45em 0; }
.support-form { opacity: .72; display: grid; gap: 12px; margin-top: 24px; }
.support-form input, .support-form select, .support-form textarea { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #f0f0e9; }
.support-form button { min-height: 48px; border: 0; border-radius: 12px; font-weight: 850; }

.marketplace-hero { padding: 72px 0 38px; background: radial-gradient(circle at 80% 0, #dbead8 0, transparent 36%); }
.marketplace-hero h1 { max-width: 14ch; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.marketplace-shell { padding: 0 0 88px; }
.marketplace-filters { position: sticky; top: 88px; z-index: 10; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,254,249,.96); box-shadow: var(--shadow); }
.marketplace-filters label { display: grid; gap: 7px; color: var(--green); font-weight: 850; }
.marketplace-filters select { width: 100%; min-height: 48px; padding: 0 42px 0 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; font: inherit; }
[dir="rtl"] .marketplace-filters select { padding: 0 14px 0 42px; }
.marketplace-filters button { cursor: pointer; }
.marketplace-status { min-height: 62px; display: grid; place-items: center; margin: 22px 0; color: var(--muted); text-align: center; font-weight: 750; }
.marketplace-status.is-pending { min-height: auto; padding: 20px; border: 1px solid #e5c58e; border-radius: 16px; color: #6e4912; background: #fff4dd; }
.marketplace-results { display: grid; gap: 38px; }
.marketplace-group > h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.marketplace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.marketplace-card { min-width: 0; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.marketplace-card h3 { overflow-wrap: anywhere; }
.marketplace-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 14px; }
.marketplace-fact { padding: 5px 9px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: .78rem; font-weight: 800; }
.marketplace-description { color: var(--muted); }
.marketplace-detail-button { min-height: 44px; margin-top: auto; border: 1px solid var(--green); border-radius: 12px; color: var(--green); background: transparent; font: inherit; font-weight: 850; cursor: pointer; }
.marketplace-account-note { margin-top: 42px; }
.marketplace-dialog { width: min(620px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 40px)); padding: 54px 28px 30px; border: 0; border-radius: 26px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.marketplace-dialog::backdrop { background: rgba(13,47,39,.64); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.marketplace-contacts { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--green-soft); overflow-wrap: anywhere; }
.marketplace-protected { margin-top: 22px; color: var(--muted); font-size: .9rem; }

footer { background: var(--green-deep); color: #dbe8df; padding: 52px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
footer a { color: inherit; text-decoration: none; }
.footer-links { display: grid; gap: 8px; }
.fine { color: #a9c0b2; font-size: .86rem; }

[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
[dir="rtl"] .phone { transform: rotate(-2deg); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero-grid, .morocco, .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .product-visual { min-height: 500px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .commercial-row { grid-template-columns: repeat(2, 1fr); }
  .section-intro { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .marketplace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .wrap { width: calc(100vw - 32px); max-width: calc(100vw - 32px); margin-inline: 16px; }
  .nav { min-height: 64px; }
  .brand { font-size: 1.25rem; }
  .language-links { gap: 10px; }
  .language-links a { font-size: .78rem; }
  .hero { padding-top: 48px; }
  h1 { width: 100%; max-width: 100%; font-size: 2.65rem; }
  .hero-copy { width: 100%; max-width: 100%; }
  .actions .button { flex: 1 1 140px; }
  .launch-note { border-radius: 18px; }
  .floating { display: none; }
  .phone, [dir="rtl"] .phone { width: calc(100vw - 64px); transform: none; }
  .commercial-row { grid-template-columns: 1fr; }
  .marketplace-filters { position: static; grid-template-columns: 1fr; }
  .marketplace-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
