/* Landing page, version 2. Scoped to .l2 so the classic landing and every
   site page are untouched. Colours are the platform's own brand, not a
   site theme. Every animation stops under prefers-reduced-motion. */

.l2 {
  --l2-ink: #0d0f14;
  --l2-ink-2: #171a22;
  --l2-paper: #fbfaf7;
  --l2-line: rgba(13, 15, 20, .1);
  --l2-muted: #5d6270;
  --l2-accent: #ff6a2b;
  --l2-radius: 20px;
  color: var(--l2-ink);
}
main:has(> .l2) { padding-top: 0; }
/* Full-width bands: equal negative margins on both sides work left to right and right to left. */
.l2-bleed { width: auto; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
body:has(.l2) { overflow-x: clip; }
.l2 h1, .l2 h2, .l2 h3 { letter-spacing: -.025em; }

/* ---------- buttons, pills ---------- */
.l2-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.l2-btn:hover { text-decoration: none; transform: translateY(-2px); }
.l2-btn-primary { background: var(--l2-accent); color: #1b0d05; box-shadow: 0 10px 26px rgba(255, 106, 43, .28); }
.l2-btn-primary:hover { box-shadow: 0 14px 32px rgba(255, 106, 43, .36); color: #1b0d05; }
.l2-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.l2-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.l2-pill { display: inline-flex; gap: .45rem; align-items: center; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e9eaf0; font-size: .82rem; text-decoration: none; }
.l2-pill b { background: var(--l2-accent); color: #1b0d05; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.l2-pill:hover { text-decoration: none; color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------- hero ---------- */
.l2-hero { position: relative; overflow: hidden; background: var(--l2-ink); color: #f4f5f8; padding: clamp(3rem, 7vw, 6rem) 1.25rem clamp(3.5rem, 8vw, 7rem); isolation: isolate; }
.l2-hero-glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.l2-hero-glow span { position: absolute; width: 50vmax; height: 50vmax; border-radius: 50%; filter: blur(80px); opacity: .22; animation: l2-drift 20s ease-in-out infinite alternate; }
.l2-hero-glow span { background: radial-gradient(circle, var(--l2-accent), transparent 62%); top: -30%; left: -15%; }
@keyframes l2-drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }
.l2-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }
.l2-hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.l2-hero h1 { margin: 1.1rem 0 1rem; font-size: clamp(2.5rem, 6.2vw, 4.8rem); line-height: 1.02; font-weight: 800; color: #fff; }
/* The rotating word: every word in one grid cell, only .rot-live shown, so the
   cell keeps the longest word's size and the headline never reflows. */
.rot { display: inline-grid; justify-items: start; vertical-align: top; }
.rot > * { grid-area: 1 / 1; }
.rot-ghost { visibility: hidden; }
.rot.rot-fit { white-space: nowrap; }   /* once the script has sized it to fit */
.l2-rotate { color: var(--l2-accent); }
.l2-rotate .rot-live { transition: opacity .35s ease, transform .35s ease; }
.l2-rotate .rot-live.is-fading { opacity: 0; transform: translateY(.15em); }
.l2-rotate .rot-live.is-typing::after { content: ""; display: inline-block; width: .08em; height: .9em; margin-left: .06em; background: var(--l2-accent); vertical-align: -.08em; animation: l2-caret .8s steps(1) infinite; }
@keyframes l2-caret { 50% { opacity: 0; } }
.l2-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; color: #c4c7d2; max-width: 34rem; margin: 0 0 1.8rem; }
.l2-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.l2-assure { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; margin: 1.4rem 0 0; color: #9da1ad; font-size: .85rem; }
.l2-assure li::before { content: "✓"; color: var(--l2-accent); margin-right: .4rem; font-weight: 700; }

.l2-stage { position: relative; perspective: 1400px; }
.l2-browser { position: relative; border-radius: 16px; overflow: hidden; background: #1c1f28; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.l2-browser-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: #252935; }
.l2-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b3f4c; }
.l2-browser-bar i:nth-child(1) { background: #ff5f57; } .l2-browser-bar i:nth-child(2) { background: #febc2e; } .l2-browser-bar i:nth-child(3) { background: #28c840; }
.l2-url { margin-left: .8rem; flex: 1; padding: .28rem .8rem; border-radius: 999px; background: #1a1d25; color: #a9adba; font-size: .76rem; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.l2-screens { position: relative; aspect-ratio: 16 / 10.5; background: #111; }
.l2-screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 6s ease; margin: 0; border-radius: 0; }
.l2-screen.is-on { opacity: 1; transform: scale(1); }
.l2-screen-blank { display: grid; gap: .8rem; padding: 2rem; align-content: start; background: linear-gradient(160deg, #f5efe6, #fff); }
.l2-screen-blank span { height: 14px; border-radius: 8px; background: rgba(0, 0, 0, .08); } .l2-screen-blank span:first-child { height: 40px; width: 70%; }
.l2-chip { position: absolute; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--l2-ink); font-size: .82rem; font-weight: 700; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); white-space: nowrap; animation: l2-float 6s ease-in-out infinite; }
.l2-chip-a { top: 8%; left: -6%; }
.l2-chip-b { bottom: 18%; left: -9%; animation-delay: -2s; }
.l2-chip-c { top: 22%; right: -5%; animation-delay: -3.5s; font-family: "Cairo", "Tajawal", system-ui, sans-serif; }
.l2-chip-d { bottom: -4%; right: 12%; animation-delay: -1s; }
@keyframes l2-float { 50% { transform: translateY(-10px); } }

/* ---------- marquee ---------- */
.l2-marquee { overflow: hidden; background: var(--l2-ink-2); border-top: 1px solid rgba(255, 255, 255, .06); padding: 1rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.l2-marquee-track { display: flex; width: max-content; animation: l2-marquee 38s linear infinite; }
.l2-marquee:hover .l2-marquee-track { animation-play-state: paused; }
.l2-marquee ul { display: flex; gap: 2.6rem; list-style: none; margin: 0; padding: 0 1.3rem; }
.l2-marquee a { display: inline-flex; align-items: center; gap: .6rem; color: #d7d9e0; font-weight: 600; font-size: .95rem; white-space: nowrap; text-decoration: none; opacity: .8; transition: opacity .2s; }
.l2-marquee a:hover { opacity: 1; color: #fff; }
.l2-marquee img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; margin: 0; }
@keyframes l2-marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.l2-section { padding: clamp(4rem, 9vw, 7rem) 0 0; }
.l2-head { max-width: 46rem; margin: 0 0 2.4rem; }
.l2-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.l2-eyebrow { margin: 0 0 .6rem; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--l2-accent); }
.l2-head h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; font-weight: 800; }
.l2-sub { margin: .9rem 0 0; color: var(--l2-muted); font-size: 1.08rem; line-height: 1.6; }

/* reveal: only when JS has run, and never on what is already on screen */
.l2-js .l2-reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }
.l2-reveal { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }

/* ---------- steps ---------- */
.l2-steps { position: relative; }
.l2-steps-rail { position: relative; height: 3px; border-radius: 3px; background: var(--l2-line); margin: 0 0 2rem; overflow: hidden; }
.l2-steps-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--l2-accent); border-radius: 3px; }
.l2-steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.l2-steps-list li { padding: 1.8rem; border-radius: var(--l2-radius); background: #fff; border: 1px solid var(--l2-line); box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.l2-steps-list li:nth-child(2) { --d: .12s; } .l2-steps-list li:nth-child(3) { --d: .24s; }
.l2-step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--l2-ink); color: #fff; font-weight: 800; margin-bottom: 1.1rem; }
.l2-steps-list h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.l2-steps-list p { margin: 0; color: var(--l2-muted); line-height: 1.6; }

/* ---------- look playground ---------- */
.l2-play-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.l2-looks { display: grid; gap: .45rem; }
.l2-look { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--l2-line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; }
.l2-look:hover { transform: translateX(3px); }
.l2-look.is-on { border-color: var(--l2-ink); box-shadow: 0 10px 24px rgba(13, 15, 20, .1); }
.l2-look-dots { display: inline-flex; gap: 3px; padding: 6px; border-radius: 9px; border: 1px solid var(--l2-line); }
.l2-look-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.l2-demo { --d-bg: #fbf7f1; --d-surface: #fff; --d-text: #1c1c1a; --d-accent: #1c1c1a; --d-accent2: #e4b48a; --d-heading: Georgia, serif; --d-body: system-ui, sans-serif; --d-radius: 10px;
  border-radius: var(--l2-radius); overflow: hidden; background: var(--d-bg); color: var(--d-text); font-family: var(--d-body); box-shadow: 0 30px 70px rgba(13, 15, 20, .14), 0 0 0 1px var(--l2-line);
  }
.l2-demo-bar { display: flex; gap: 1.2rem; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--d-text) 12%, transparent); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.l2-demo-brand { margin-right: auto; font-family: var(--d-heading); font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.l2-demo-hero { padding: clamp(2rem, 5vw, 3.6rem) 1.5rem; background: linear-gradient(135deg, color-mix(in srgb, var(--d-accent) 14%, var(--d-bg)), var(--d-bg) 70%); }
.l2-demo-kicker { margin: 0 0 .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--d-accent); }
.l2-demo-title { margin: 0 0 .7rem; font-family: var(--d-heading); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; }
.l2-demo-text { margin: 0 0 1.3rem; max-width: 30rem; opacity: .75; line-height: 1.6; }
.l2-demo-btn { display: inline-block; padding: .7rem 1.3rem; border-radius: var(--d-radius); background: var(--d-accent); color: var(--d-on-accent, #fff); font-weight: 700; font-size: .85rem; }
.l2-demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; padding: 1.5rem; }
.l2-demo-cards div { display: grid; gap: .3rem; padding: 1rem; border-radius: var(--d-radius); background: var(--d-surface); border: 1px solid color-mix(in srgb, var(--d-text) 10%, transparent); }
.l2-demo-cards div::before { content: ""; aspect-ratio: 4 / 3; border-radius: calc(var(--d-radius) * .7); background: linear-gradient(135deg, var(--d-accent2), color-mix(in srgb, var(--d-accent) 60%, var(--d-bg))); margin-bottom: .4rem; }
.l2-demo-cards b { font-family: var(--d-heading); }
.l2-demo-cards small { color: var(--d-accent); font-weight: 700; }

/* ---------- showcase ---------- */
.l2-show-nav { display: flex; gap: .5rem; }
.l2-round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--l2-line); background: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s; }
.l2-round:hover { background: var(--l2-ink); color: #fff; }
.l2-show-track { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem max(1.25rem, calc(50vw - 590px)) 1.6rem; scrollbar-width: none; cursor: grab; }
.l2-show-track::-webkit-scrollbar { display: none; }
.l2-show-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.l2-show-card { flex: 0 0 min(340px, 78vw); scroll-snap-align: start; display: grid; gap: .3rem; color: var(--l2-ink); text-decoration: none; }
.l2-show-card:hover { text-decoration: none; }
.l2-show-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--l2-radius); overflow: hidden; background: linear-gradient(135deg, #f3ece3, #e9e4ff); margin-bottom: .6rem; box-shadow: 0 18px 40px rgba(13, 15, 20, .1); }
.l2-show-img img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.l2-show-img b { font-size: 3rem; color: var(--l2-accent); }
.l2-show-card:hover .l2-show-img img { transform: scale(1.06); }
.l2-show-card strong { font-size: 1.05rem; }
.l2-show-card small { color: var(--l2-muted); }
.l2-show-card em { font-style: normal; font-weight: 700; font-size: .85rem; color: var(--l2-accent); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.l2-show-card:hover em { opacity: 1; transform: none; }

/* ---------- bento ---------- */
.l2-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.l2-tile { --mx: 50%; --my: 50%; position: relative; overflow: hidden; padding: 1.8rem; border-radius: var(--l2-radius); background: #fff; border: 1px solid var(--l2-line); }
.l2-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 106, 43, .07), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.l2-tile:hover::before { opacity: 1; }
.l2-tile-wide { grid-column: span 2; }
.l2-tile-wide:last-child { grid-column: 1 / -1; }
.l2-tile:nth-child(2) { --d: .08s; } .l2-tile:nth-child(3) { --d: .16s; } .l2-tile:nth-child(5) { --d: .08s; } .l2-tile:nth-child(6) { --d: .16s; }
.l2-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--l2-paper); border: 1px solid var(--l2-line); color: var(--l2-accent); margin-bottom: 1rem; }
.l2-ico svg { display: block; }
.l2-tile h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.l2-tile p { margin: 0; color: var(--l2-muted); line-height: 1.6; }

/* ---------- numbers ---------- */
.l2-numbers { margin-top: clamp(4rem, 9vw, 7rem); background: var(--l2-ink); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 1.25rem; }
.l2-numbers dl { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.l2-numbers div { margin: 0; }
.l2-numbers dt { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1; color: #fff; }
.l2-numbers dd::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--l2-accent); margin: .7rem 0 .5rem; }
.l2-numbers dd { margin: .4rem 0 0; color: #a9adba; }

/* ---------- faq, final ---------- */
.l2-faq .faq { max-width: 860px; }
.l2-final { position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(4rem, 9vw, 7rem); margin-bottom: -4rem; padding: clamp(4rem, 9vw, 7rem) 1.25rem; background: var(--l2-ink); color: #fff; text-align: center; display: grid; justify-items: center; gap: .6rem; }
.l2-final h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
.l2-final p { margin: 0 0 1.2rem; color: #c4c7d2; font-size: 1.1rem; }

/* ---------- plans include keeps its own styles; give it room ---------- */
.l2 .ld-plans-section, .l2 section.ld-section { padding-top: clamp(4rem, 9vw, 7rem); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .l2-hero-inner { grid-template-columns: 1fr; }
  .l2-stage { margin: 1rem .5rem 0; }
  .l2-browser { transform: none; }
  .l2-chip-a { left: 2%; } .l2-chip-b { left: -2%; } .l2-chip-c { right: 0; } .l2-chip-d { right: 4%; }
  .l2-steps-list, .l2-bento { grid-template-columns: 1fr; }
  .l2-tile-wide { grid-column: auto; }
  .l2-play-grid { grid-template-columns: 1fr; }
  .l2-looks { grid-template-columns: repeat(2, 1fr); }
  .l2-numbers dl { grid-template-columns: repeat(2, 1fr); }
  .l2-head-row { align-items: start; flex-direction: column; }
}
@media (max-width: 520px) {
  .l2-demo-cards { grid-template-columns: 1fr 1fr; } .l2-demo-cards div:last-child { display: none; }
  .l2-chip { font-size: .72rem; padding: .4rem .6rem; }
}

/* ---------- right to left ---------- */
[dir="rtl"] .l2-browser { transform: rotateY(9deg) rotateX(4deg); }
[dir="rtl"] .l2-look { text-align: right; }
[dir="rtl"] .l2-look:hover { transform: translateX(-3px); }
[dir="rtl"] .l2-steps-fill { inset: 0 0 0 auto; }
[dir="rtl"] .l2-assure li::before { margin: 0 0 0 .4rem; }

/* ---------- less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .l2 *, .l2 *::before, .l2 *::after { animation: none !important; transition: none !important; }
  .l2-js .l2-reveal:not(.is-in) { opacity: 1; transform: none; }
  .l2-browser { transform: none; }
}

/* ---------- joins: header on the dark hero, no gaps between full-width bands ---------- */
.l2 > section { margin-top: 0; margin-bottom: 0; }
body:has(.l2) { background: var(--l2-paper, #fbfaf7); }
body:has(.l2) .site-header { background: #0d0f14; color: #e9eaf0; max-width: none; padding-left: max(1.25rem, calc(50vw - 590px)); padding-right: max(1.25rem, calc(50vw - 590px)); border-bottom: 1px solid rgba(255, 255, 255, .06); }
body:has(.l2) .site-header a { color: #e9eaf0; }
body:has(.l2) .site-header .brand img { filter: none; }
body:has(.l2) main { max-width: 1180px; }
body:has(.l2) .site-footer { margin-top: 0; }

.l2-chip svg { color: var(--l2-accent); flex: none; }
