/* Landing sections (gs-*). Resting state = final state; public/js/geo-motion.js
   animates INTO it, so no-JS and reduced-motion visitors see the full page. */

.gs-h { max-width: 22ch; margin-inline: auto; }
.gs-lead { max-width: 60ch; }

/* ---------- 1. ChatGPT names three ---------- */
.gs-chat { padding-top: 80px; }
.gs-chat-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.gs-chat-copy .rw-h2, .gs-chat-copy .rw-lead { text-align: start; margin-inline: 0; }
.gs-pts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.gs-pts li { position: relative; padding-inline-start: 30px; line-height: 1.8; color: var(--fg-secondary); font-size: 16px; }
.gs-pts li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .65em; width: 12px; height: 12px; border-radius: 50%; background-image: var(--abdul-gradient-salmon); box-shadow: 0 0 0 4px color-mix(in oklab, #f5536a 18%, transparent); }
.gs-window { position: relative; border-radius: 22px; padding: 18px; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #1a1540 0%, #12102f 55%, #1d1a4a 100%); box-shadow: 0 40px 80px -30px rgba(31,10,82,.55), inset 0 1px 0 rgba(255,255,255,.08); }
.gs-window::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 70%; background: radial-gradient(closest-side, rgba(52,224,232,.18), transparent); pointer-events: none; }
.gs-window-bar { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 16px; }
.gs-window-bar img { background: #fff; border-radius: 6px; padding: 2px; }
.gs-window-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.gs-window-bar span { margin-inline-end: auto; }
.gs-msg { border-radius: 16px; padding: 12px 14px; font-size: 15px; line-height: 1.7; max-width: 85%; }
.gs-user { margin-inline-start: auto; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); width: fit-content; }
.gs-bot { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; max-width: 100%; padding: 0; }
.gs-bot-av { background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.gs-bot-p { margin: 0; color: rgba(255,255,255,.9); }
.gs-w { display: inline-block; }
.gs-recs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.gs-rec { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.gs-rec-n { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; background: rgba(255,255,255,.12); }
.gs-rec-t { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.gs-rec-t small { color: rgba(255,255,255,.6); font-size: 12.5px; }
.gs-rec-r { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; color: #fbbf24; }
.gs-rec-r svg { width: 14px; height: 14px; fill: #fbbf24; }
.gs-rec-you { border: 1.5px dashed rgba(245,83,106,.7); background: rgba(245,83,106,.08); overflow: hidden; }
.gs-rec-you .gs-rec-t small { color: rgba(255,179,140,.75); }
.gs-rec-you .gs-rec-n { background-image: var(--abdul-gradient-salmon); }
.gs-rec-you .gs-rec-t b { color: #ffb38c; }

/* ---------- 2. Pinned story ---------- */
.gs-story { padding: 72px 20px 24px; }
.gs-story-in { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; min-height: min(640px, 88vh); }
.gs-story-copy .rw-h2, .gs-story-copy .rw-lead { text-align: start; margin-inline: 0; }
.gs-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; position: relative; }
.gs-step { display: flex; gap: 16px; padding: 16px; border-radius: 18px; transition: background .3s; }
.gs-step h3 { margin: 0 0 4px; font-family: var(--font-arabic-display); font-feature-settings: var(--ff-display); font-size: 20px; }
.gs-step p { margin: 0; color: var(--fg-secondary); line-height: 1.8; }
.gs-step-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background-image: var(--abdul-gradient-salmon); }
.gs-step.is-on { background: #fff; box-shadow: 0 16px 40px -24px rgba(31,10,82,.4); }
.gs-device { position: relative; aspect-ratio: 4 / 5; max-height: 560px; width: 100%; border-radius: 30px; overflow: hidden;
  background: var(--abdul-gradient-core, linear-gradient(165deg,#160640,#3d18bf)); box-shadow: 0 40px 90px -35px rgba(31,10,82,.7); }
.gs-screen { position: absolute; inset: 9%; border-radius: 22px; background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
/* no-JS: show the three screens as a readable stack instead of overlapping */
.gs-device:not(.gm) { aspect-ratio: auto; display: grid; gap: 14px; padding: 18px; }
.gs-device:not(.gm) .gs-screen { position: static; }
.gs-mini-bar { height: 5px; border-radius: 99px; background: var(--abdul-paper-200, #f3f1ea); overflow: hidden; margin-bottom: 8px; }
.gs-mini-bar i { display: block; height: 100%; background-image: var(--abdul-gradient-salmon); border-radius: 99px; }
.gs-mini-q { font-family: var(--font-arabic-display); font-size: 19px; margin-bottom: 4px; }
.gs-mini-opt { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border-subtle, rgba(20,8,50,.1)); background: var(--bg-canvas, #fcfbf8); font-weight: 600; font-size: 14.5px; }
.gs-mini-opt.is-on { border-color: #f5536a; }
.gs-s2 { align-items: stretch; justify-content: center; }
.gs-radar { position: relative; width: 90px; height: 90px; margin: 0 auto 10px; }
.gs-radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #5526e0; opacity: .35; }
.gs-radar span:nth-child(2) { inset: 18px; opacity: .6; }
.gs-radar b { position: absolute; inset: 34px; border-radius: 50%; background-image: var(--abdul-gradient-salmon); }
.gs-mini-line { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; direction: ltr; justify-content: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--bg-canvas, #fcfbf8); }
.gs-mini-line i { width: 18px; height: 18px; border-radius: 50%; background-image: var(--abdul-gradient-mint, linear-gradient(135deg,#1fd896,#12b6c9)); flex: none; }
.gs-s3 { background: linear-gradient(165deg, #160640, #2e108f 60%, #3d18bf); color: #fff; justify-content: center; }
.gs-pdf { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.gs-pdf > b { font-family: var(--font-arabic-display); font-size: 20px; }
.gs-pdf small { color: rgba(255,255,255,.7); }
.gs-pdf-ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, #1f0a52 78%, transparent 80% 100%), conic-gradient(#f5a524 calc(var(--v) * 1%), rgba(255,255,255,.15) 0); }
.gs-pdf-ring span { font-size: 36px; font-weight: 800; }

/* ---------- 3. Bento ---------- */
.gs-bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(0, auto); gap: 16px; margin-top: 30px; }
.gs-tile { --mx: 50%; --my: 0%; position: relative; overflow: hidden; border-radius: 22px; padding: 22px; color: #fff; isolation: isolate;
  background: linear-gradient(160deg, #1a1540, #12102f); border: 1px solid rgba(255,255,255,.08); }
/* Spotlight that follows the cursor (geo-motion.js sets --mx/--my). */
.gs-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(127,236,240,.14), transparent 60%); }
.gs-tile:hover::before { opacity: 1; }
.gs-tile h3 { margin: 16px 0 6px; font-family: var(--font-arabic-display); font-feature-settings: var(--ff-display); font-size: 19px; }
.gs-tile p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.75; font-size: 14.5px; }
.gs-t1 { grid-column: span 3; } .gs-t2 { grid-column: span 3; }
.gs-t3 { grid-column: span 2; } .gs-t4 { grid-column: span 2; } .gs-t5 { grid-column: span 2; }
.gs-t6 { grid-column: span 6; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.gs-t6 .gs-viz { grid-row: span 2; }
.gs-t6 h3 { margin-top: 0; align-self: end; }
.gs-viz { min-height: 150px; display: flex; align-items: center; justify-content: center; }
.gs-score { gap: 26px; }
.gs-ring { flex: none; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, #15123a 78%, transparent 80% 100%), conic-gradient(#f5a524 calc(var(--v) * 1%), rgba(255,255,255,.1) 0); }
.gs-ring b { font-size: 38px; font-weight: 800; }
.gs-bars3, .gs-sov { flex: 1; display: grid; gap: 12px; width: 100%; }
.gs-bars3 span, .gs-sov span { display: grid; gap: 5px; }
.gs-bars3 small, .gs-sov small { color: rgba(255,255,255,.7); font-size: 12.5px; font-weight: 600; }
.gs-bars3 i, .gs-sov i { display: block; height: 9px; border-radius: 99px; background: linear-gradient(90deg, #3f74f0, #7fecf0); width: calc(var(--w, 60) * 1%); }
[dir=rtl] .gs-bars3 i, [dir=rtl] .gs-sov i { background: linear-gradient(270deg, #3f74f0, #7fecf0); }
.gs-sov .us small { color: #ffb38c; } .gs-sov .us i { background: linear-gradient(90deg, #ff9466, #f5536a); }
.gs-matrix { border-collapse: separate; border-spacing: 6px; font-size: 13px; direction: ltr; }
.gs-matrix th { color: rgba(255,255,255,.6); font-weight: 600; padding: 0 4px; }
.gs-matrix td { width: 58px; height: 34px; text-align: center; border-radius: 9px; font-weight: 800; font-size: 15px; }
.gs-matrix td.y { background: rgba(31,216,150,.16); color: #3ce0a6; } .gs-matrix td.n { background: rgba(245,83,106,.14); color: #ff7a8a; }
.gs-code { margin: 0; width: 100%; min-height: 140px; text-align: left; background: rgba(0,0,0,.35); border-radius: 12px; padding: 14px; font: 12.5px/1.7 ui-monospace, Menlo, monospace; color: #cfe9ff; white-space: pre-wrap; }
.gs-caret { display: inline-block; width: 7px; height: 14px; background: #7fecf0; vertical-align: -2px; animation: gs-blink 1s steps(1) infinite; }
@keyframes gs-blink { 50% { opacity: 0; } }
.gs-plan { position: relative; justify-content: flex-start; }
.gs-plan-line { position: absolute; inset-inline-start: 13px; top: 18px; bottom: 18px; width: 10px; height: calc(100% - 36px); overflow: visible; }
.gs-plan-line path { stroke: #1fd896; stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.gs-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.gs-plan li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.gs-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #1fd896; position: relative; box-shadow: 0 0 0 4px #15123a; }
.gs-tick::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0b3b2b; }
.gs-prompt { position: relative; width: 100%; border-radius: 16px; padding: 18px 18px 46px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.gs-prompt p { margin: 0; color: #fff; font-size: 15px; line-height: 1.8; }
.gs-copy { position: absolute; bottom: 12px; inset-inline-end: 12px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background-image: var(--abdul-gradient-salmon); }

/* ---------- 4. CTA with an animated gradient border ---------- */
@property --gs-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.gs-cta-sec { padding-bottom: 40px; }
.gs-cta { position: relative; border-radius: 28px; padding: 54px 24px; text-align: center; color: #fff; isolation: isolate;
  background: var(--abdul-gradient-core, linear-gradient(165deg,#160640,#3d18bf)); }
.gs-cta::before { content: ''; position: absolute; inset: -2px; border-radius: 30px; z-index: -1;
  background: conic-gradient(from var(--gs-a), #f5536a, #7fecf0, #5526e0, #ff9466, #f5536a); animation: gs-spin 6s linear infinite; }
.gs-cta::after { content: ''; position: absolute; inset: 0; border-radius: 28px; z-index: -1; background: var(--abdul-gradient-core, linear-gradient(165deg,#160640,#3d18bf)); }
@keyframes gs-spin { to { --gs-a: 360deg; } }
.gs-cta-h { font-family: var(--font-arabic-display); font-feature-settings: var(--ff-display); font-size: clamp(26px, 4vw, 40px); margin: 0 0 10px; line-height: 1.35; }
.gs-cta p { color: rgba(255,255,255,.8); margin: 0 0 24px; font-size: 17px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .gs-chat-grid, .gs-story-in { grid-template-columns: 1fr; gap: 28px; }
  .gs-story-in { min-height: 0; }
  .gs-device { max-width: 420px; margin: 0 auto; }
  .gs-bento { grid-template-columns: 1fr; }
  .gs-t1, .gs-t2, .gs-t3, .gs-t4, .gs-t5, .gs-t6 { grid-column: auto; }
  .gs-t6 { grid-template-columns: 1fr; } .gs-t6 .gs-viz { grid-row: auto; }
  .gs-score { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .gs-cta::before, .gs-caret { animation: none; } }
