@import url("fonts.css");
@import url("global-shell.css");

/* =========================================================
   Marsam Product Pages — shared English and Arabic styling
   ========================================================= */
:root {
    color-scheme: light;
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --line: rgba(29, 29, 31, 0.12);
    --blue: #0071e3;
    --purple: #7c3aed;
    --pink: #ff3b81;
    --orange: #ff8a00;
    --paper: #fff;
    --soft: #f5f5f7;
    --radius: 34px;
    --page: 1180px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.47;
    -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: "SF Arabic", "SF Pro AR", "Geeza Pro", Tahoma, Arial, sans-serif; }
a { color: inherit; }
button { font: inherit; }

/* ---------- Accessible navigation ---------- */
.skip-link {
    position: fixed; z-index: 100; inset-block-start: 10px; inset-inline-start: 10px;
    padding: 10px 16px; border-radius: 999px; color: #fff; background: #000;
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.product-nav {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}
.product-nav__inner {
    width: min(var(--page), calc(100% - 44px)); min-height: 58px; margin: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { font-size: 21px; font-weight: 650; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { padding: 7px 14px; border-radius: 999px; color: #fff !important; background: var(--blue); }

/* ---------- Hero product story ---------- */
.hero {
    position: relative; overflow: hidden; min-height: 920px;
    padding: clamp(92px, 11vw, 150px) 22px 0; text-align: center;
    background:
        radial-gradient(circle at 22% 32%, rgba(255,59,129,.2), transparent 28%),
        radial-gradient(circle at 78% 26%, rgba(0,113,227,.2), transparent 28%),
        linear-gradient(180deg, #fff 0%, #fbf7ff 63%, #f5f5f7 100%);
}
.hero::before, .hero::after {
    content: ""; position: absolute; width: 360px; height: 46px; border-radius: 999px;
    filter: blur(3px); opacity: .8; transform: rotate(-18deg);
}
.hero::before { inset: 180px auto auto -120px; background: linear-gradient(90deg, var(--pink), var(--orange)); }
.hero::after { inset: 240px -160px auto auto; background: linear-gradient(90deg, var(--blue), var(--purple)); transform: rotate(22deg); }
.eyebrow { margin: 0 0 16px; color: var(--purple); font-size: 21px; font-weight: 650; }
.hero h1 {
    max-width: 1000px; margin: 0 auto; font-size: clamp(58px, 9vw, 112px);
    font-weight: 750; line-height: .93; letter-spacing: -.065em;
    background: linear-gradient(100deg, #ff2d74 5%, #ff8a00 34%, #7c3aed 65%, #0071e3 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.08; }
.hero-copy { max-width: 720px; margin: 30px auto 32px; color: #424245; font-size: clamp(22px, 2.5vw, 30px); font-weight: 500; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); text-decoration: none; }
.button--primary { color: #fff; background: var(--blue); }
.button:hover { filter: brightness(1.07); }

/* ---------- Replaceable media placeholders ---------- */
.media-placeholder {
    position: relative; display: grid; place-items: center; overflow: hidden;
    color: rgba(255,255,255,.78); background:
        linear-gradient(145deg, rgba(255,255,255,.12), transparent 48%),
        linear-gradient(125deg, #171025, #2e1853 48%, #092d52);
    border: 1px solid rgba(255,255,255,.16); box-shadow: 0 40px 90px rgba(23,16,37,.24);
}
.media-placeholder::after {
    content: attr(data-placeholder); padding: 10px 16px; border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
    background: rgba(0,0,0,.22); backdrop-filter: blur(12px);
}
.hero-device {
    /* Main Marsam artwork preserves its native 2400 × 1053 panoramic ratio. */
    width: min(1000px, calc(100% - 20px)); margin: 72px auto 0;
    border: 12px solid #202124; border-bottom-width: 18px; border-radius: 36px 36px 18px 18px;
    overflow: hidden; background: #202124; box-shadow: 0 40px 90px rgba(23,16,37,.24);
    transform: perspective(1200px) rotateX(3deg);
}
.hero-device img { display: block; width: 100%; height: auto; }

/* ---------- Shared sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) 22px; }
.section--dark { color: #f5f5f7; background: #08080a; }
.section--soft { background: var(--soft); }
.section__inner { width: min(var(--page), 100%); margin: auto; }
.kicker { margin: 0 0 14px; color: var(--pink); font-size: 21px; font-weight: 650; }
.section-title { max-width: 900px; margin: 0 0 52px; font-size: clamp(44px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -.052em; }
html[lang="ar"] .section-title { letter-spacing: 0; line-height: 1.16; }
.section-lead { max-width: 760px; margin: -28px 0 52px; color: var(--muted); font-size: clamp(20px, 2.2vw, 28px); }
.section--dark .section-lead { color: #a1a1a6; }

.showcase-image { aspect-ratio: 16 / 9; border-radius: var(--radius); }
img.showcase-image { display:block; width:100%; height:auto; object-fit:cover; }

.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.feature-card {
    position: relative; overflow: hidden; min-height: 0;
    padding: clamp(30px, 4vw, 52px); border-radius: var(--radius); background: #fff;
    display: flex; flex-direction: column;
}
.feature-card--wide { grid-column: span 7; }
.feature-card--narrow { grid-column: span 5; }
.feature-card--full { grid-column: 1 / -1; min-height: 0; }
.feature-card h3 { max-width: 600px; margin: 0 0 16px; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.04em; }
html[lang="ar"] .feature-card h3 { letter-spacing: 0; line-height: 1.15; }
.feature-card p { max-width: 570px; margin: 0; color: var(--muted); font-size: 20px; }
.feature-card .media-placeholder {
    position: relative; inset: auto; width: 100%; min-height: 250px;
    margin-top: clamp(24px, 3vw, 36px); border-radius: 24px; box-shadow: none;
}
.feature-card--full .media-placeholder { min-height: 330px; }
.feature-card .feature-image {
    position: static; inset: auto; display: block; width: 100%; height: auto;
    margin-top: clamp(24px, 3vw, 36px); border-radius: 24px; object-fit: contain;
}
.card-pink { background: #fff0f5; }
.card-blue { background: #edf7ff; }
.card-yellow { background: #fff8df; }

.privacy-panel {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center;
    padding: clamp(44px, 7vw, 86px); border-radius: var(--radius);
    background: linear-gradient(135deg, #19151f, #0c2035); box-shadow: 0 35px 80px rgba(0,0,0,.18);
}
.privacy-panel h2 { margin: 0 0 20px; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.05em; }
html[lang="ar"] .privacy-panel h2 { letter-spacing: 0; line-height: 1.15; }
.privacy-panel p { margin: 0 0 28px; color: #c7c7cc; font-size: 22px; }
.privacy-badge { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffdf70, #ff3b81 36%, #5535d7 68%, #06152c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 25px 80px rgba(124,58,237,.35); }

.closing { text-align: center; background: linear-gradient(180deg, #fff, #f5f5f7); }
.closing h2 { max-width: 900px; margin: 0 auto 22px; font-size: clamp(48px, 7vw, 86px); line-height: 1; letter-spacing: -.055em; }
html[lang="ar"] .closing h2 { letter-spacing: 0; line-height: 1.15; }
.closing p { margin: 0 0 30px; color: var(--muted); font-size: 24px; }

/* ---------- Footer ---------- */
.site-footer { padding: 34px 22px; color: var(--muted); background: var(--soft); font-size: 13px; }
.footer-inner { width: min(var(--page), 100%); margin: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
    .nav-links a:not(.nav-cta):not(.language-link) { display: none; }
    .hero { min-height: 720px; }
    .hero::before, .hero::after { width: 220px; height: 30px; }
    .hero-device { margin-top: 52px; border-width: 7px; border-bottom-width: 11px; border-radius: 22px 22px 12px 12px; }
    .feature-card--wide, .feature-card--narrow, .feature-card--full { grid-column: 1 / -1; min-height: 0; }
    .privacy-panel { grid-template-columns: 1fr; }
    .privacy-badge { width: min(280px, 80%); margin: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
