/* dipexer.com. Navy hero where a brief turns into a fan of real decks, a moving ribbon of real slides, then
   "every request gets its own design" cases, a bento of layouts, the editor, steps, features, pricing, FAQ.
   Every slide image is a real Dipexer export. CSS only (the CSP allows no scripts). */
@font-face { font-family: "Plex Arabic"; src: url("/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/IBMPlexSansArabic-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("/fonts/ReadexPro.ttf") format("truetype"); font-weight: 160 700; font-display: swap; }

:root {
  --navy: #14283f; --navy-2: #0c1a2b; --navy-3: #081320; --teal: #00857d; --teal-2: #19b3a6; --ink: #18212b; --muted: #5a6570;
  --bg: #ffffff; --soft: #f3f6f5; --line: #e1e6e4; --on-navy: #dbe7ef; --on-navy-2: #a9bccb;
  --display: "Readex Pro", "Plex Arabic", system-ui, sans-serif;
  --body: "Plex Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --shadow: 0 30px 70px rgba(3, 10, 20, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: max(18px, env(safe-area-inset-left, 0px)) max(18px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.22; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.eyebrow { font-weight: 600; color: var(--teal); font-size: 0.95rem; letter-spacing: 0.01em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; text-decoration: none;
  border-radius: 12px; padding: 12px 22px; border: 1px solid transparent; white-space: nowrap; }
.btn.primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(0, 133, 125, 0.28); }
.btn.primary:hover { background: #006f68; }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn.ghost:hover { border-color: #fff; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; }

/* logo bars motif */
.bars { display: grid; gap: 6px; width: 64px; }
.bars i { display: block; height: 9px; border-radius: 3px; background: var(--teal-2); }
.bars i:nth-child(1) { width: 56%; } .bars i:nth-child(2) { width: 68%; margin-inline-start: 10%; } .bars i:nth-child(3) { width: 80%; margin-inline-start: 20%; }

/* --- header ------------------------------------------------------------------------------------------ */
.top { background: var(--navy-2); color: #fff; position: relative; z-index: 2; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.top .logo img { height: 34px; width: auto; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.top nav a { color: var(--on-navy); text-decoration: none; }
.top nav a:hover { color: #fff; }
.top nav .btn { padding: 8px 16px; color: #fff; }
.links { display: flex; gap: 22px; }
@media (max-width: 900px) { .links { display: none; } }

/* --- hero: a brief becomes decks ----------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 420px at 85% 15%, rgba(25, 179, 166, 0.22), transparent 70%),
    radial-gradient(900px 600px at 10% 90%, rgba(70, 90, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--navy-2), var(--navy-3)); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-block: 64px 96px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 700; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #19b3a6, #7cc4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--on-navy); font-size: 1.15rem; margin-top: 20px; max-width: 38ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { color: var(--on-navy-2); font-size: 0.9rem; margin-top: 14px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--on-navy); border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05); border-radius: 999px; padding: 4px 14px 4px 6px; margin-bottom: 22px; }
.kicker b { background: var(--teal-2); color: var(--navy-3); border-radius: 999px; padding: 1px 10px; font-weight: 700; font-size: 0.8rem; }

.studio { position: relative; min-height: 520px; }
.brief { position: absolute; z-index: 3; inset-inline-start: 0; inset-block-start: 0; width: min(360px, 64%); padding: 18px 18px 16px;
  border-radius: 18px; background: rgba(12, 26, 43, 0.82); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brief-label { font-size: 0.8rem; color: var(--on-navy-2); display: flex; align-items: center; gap: 8px; }
.brief-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 4px rgba(25, 179, 166, 0.2); }
.brief-text { margin-top: 8px; font-size: 0.98rem; line-height: 1.65; color: #fff; }
.brief-text::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--teal-2); vertical-align: -0.2em; margin-inline-start: 3px;
  animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.brief-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 0.78rem; color: var(--on-navy); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 2px 10px; }
.brief-go { font-size: 0.85rem; font-weight: 700; color: var(--navy-3); background: var(--teal-2); border-radius: 10px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.fan { position: absolute; inset: 0; perspective: 1400px; }
/* a stacked deck: the front cover low and central, two other decks peeking out behind it toward the end side */
.fan img { position: absolute; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12); transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.fan .f3 { inset-inline-end: 0; inset-block-start: 26px; width: 60%; transform: rotate(-6deg); z-index: 0; filter: brightness(0.82); }
.fan .f2 { inset-inline-end: 6%; inset-block-start: 96px; width: 64%; transform: rotate(3deg); z-index: 1; filter: brightness(0.9); }
.fan .f1 { inset-inline-end: 13%; inset-block-start: 212px; width: 76%; transform: rotate(-1.5deg); z-index: 2; }
.studio:hover .f3 { transform: rotate(-9deg) translate(-4%, -6%); }
.studio:hover .f2 { transform: rotate(5deg) translate(-2%, -3%); }
.studio:hover .f1 { transform: rotate(-0.5deg) translateY(-2%); }
html[dir="ltr"] .fan .f3 { transform: rotate(6deg); } html[dir="ltr"] .fan .f2 { transform: rotate(-3deg); } html[dir="ltr"] .fan .f1 { transform: rotate(1.5deg); }
.flow { position: absolute; z-index: 3; inset-inline-start: 46%; inset-block-start: 168px; width: 80px; height: 62px; opacity: 0.85; }
.flow path { fill: none; stroke: var(--teal-2); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
html[dir="rtl"] .flow { transform: scaleX(-1); }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 40px 64px; gap: 36px; }
  .studio { min-height: 0; }
  .brief { position: relative; width: 100%; inset: auto; }
  .fan { position: relative; inset: auto; height: 0; padding-bottom: 66%; margin-top: 18px; }
  .fan .f3 { inset-block-start: 0; } .fan .f2 { inset-block-start: 9%; } .fan .f1 { inset-block-start: 22%; }
  .flow { display: none; }
}

/* --- ribbon of real slides ------------------------------------------------------------------------------ */
.ribbon { background: var(--navy-3); padding-block: 26px 34px; overflow: hidden; position: relative; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; inset-block: 0; width: 120px; z-index: 1; pointer-events: none; }
.ribbon::before { inset-inline-start: 0; background: linear-gradient(90deg, transparent, var(--navy-3)); }   /* start edge = right in Arabic */
.ribbon::after { inset-inline-end: 0; background: linear-gradient(90deg, var(--navy-3), transparent); }
html[dir="ltr"] .ribbon::before { background: linear-gradient(90deg, var(--navy-3), transparent); }
html[dir="ltr"] .ribbon::after { background: linear-gradient(90deg, transparent, var(--navy-3)); }
.ribbon-cap { text-align: center; color: var(--on-navy-2); font-size: 0.9rem; margin-bottom: 16px; }
.ribbon-track { display: flex; gap: 18px; width: max-content; animation: ribbon-rtl 70s linear infinite; }
html[dir="ltr"] .ribbon-track { animation-name: ribbon-ltr; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track img { width: 320px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); }
@keyframes ribbon-rtl { to { transform: translateX(50%); } }
@keyframes ribbon-ltr { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon { overflow-x: auto; } .ribbon-track { animation: none; } .brief-text::after, .flow path { animation: none; }
}
@media (max-width: 600px) { .ribbon-track img { width: 230px; } }

section { padding-block: 92px; }
.head { display: grid; gap: 12px; max-width: 720px; margin-block-end: 44px; }
.head p { color: var(--muted); font-size: 1.05rem; }
.center { margin-inline: auto; text-align: center; justify-items: center; }

/* --- every request gets its own design ---------------------------------------------------------------- */
.cases { display: grid; gap: 34px; }
.case { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 28px; align-items: center;
  background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.case:nth-child(even) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); }
.case:nth-child(even) .case-brief { order: 2; }
.case-brief { display: grid; gap: 14px; align-content: start; padding: 6px; }
.case-tag { justify-self: start; font-size: 0.8rem; font-weight: 600; color: var(--teal); background: #e2f3f1; border-radius: 999px; padding: 2px 12px; }
.case-brief blockquote { margin: 0; font-size: 1rem; color: var(--ink); line-height: 1.75; border-inline-start: 3px solid var(--teal); padding-inline-start: 14px; }
.ident { display: grid; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.ident-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sw { display: inline-flex; gap: 6px; }
.sw i { width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, 0.08); display: block; }
.font-tag { font-weight: 600; color: var(--ink); }
.case-slides { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.case-slides img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(20, 40, 63, 0.12); }
.case-slides .big { grid-row: span 2; align-self: center; }
@media (max-width: 900px) {
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-brief { order: 0; }
}
@media (max-width: 560px) { .case-slides { grid-template-columns: 1fr; } .case-slides .big { grid-row: auto; } }

/* --- layouts bento ----------------------------------------------------------------------------------- */
.layouts { background: linear-gradient(180deg, #fff, var(--soft)); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; margin: 0; align-self: start; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 12px 30px rgba(20, 40, 63, 0.08); }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile figcaption { position: absolute; inset-inline-start: 12px; inset-block-end: 12px; font-size: 0.82rem; font-weight: 600; color: #fff;
  background: rgba(8, 19, 32, 0.78); border-radius: 999px; padding: 3px 12px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tile.w3 { grid-column: span 3; } .tile.w2 { grid-column: span 2; } .tile.w4 { grid-column: span 4; }
.layout-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; justify-content: center; }
.layout-list span { font-size: 0.86rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile.w3, .tile.w2, .tile.w4 { grid-column: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* --- editor ------------------------------------------------------------------------------------------ */
.editor { background: var(--navy-2); color: #fff; }
.editor .head p { color: var(--on-navy); }
.editor-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
.editor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.editor-list li { display: grid; gap: 4px; padding-inline-start: 22px; position: relative; }
.editor-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--teal-2); }
.editor-list b { font-family: var(--display); font-size: 1.05rem; }
.editor-list span { color: var(--on-navy-2); font-size: 0.95rem; }
.browser { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.1); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #eef1f3; direction: ltr; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d0d6db; display: block; }
.browser-bar span { margin-inline-start: 12px; font-size: 0.75rem; color: #6b7680; background: #fff; border-radius: 6px; padding: 2px 10px; }
@media (max-width: 900px) { .editor-in { grid-template-columns: 1fr; } }

/* --- steps, features ---------------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; background: var(--soft); border-radius: 18px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--teal);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.features { background: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.feature p { color: var(--muted); }
.feature .tag { justify-self: start; font-size: 0.78rem; font-weight: 600; color: var(--teal); background: #e2f3f1; border-radius: 999px; padding: 2px 10px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* --- pricing, faq, band, footer ------------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: grid; gap: 14px; align-content: start; }
.plan.main { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 20px 40px rgba(0, 133, 125, 0.1); }
.plan .price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; color: var(--muted); }
.plan .btn { justify-self: start; }
.soon { color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.faq { background: var(--soft); }
.qa { display: grid; gap: 12px; max-width: 820px; }
.qa details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.qa summary { cursor: pointer; font-weight: 600; }
.qa details p { color: var(--muted); margin-top: 10px; }
.band { background: radial-gradient(800px 300px at 80% 0%, rgba(25, 179, 166, 0.25), transparent 70%), var(--navy); color: #fff; padding-block: 70px; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.band p { color: var(--on-navy); margin-top: 8px; }
footer { background: var(--navy-3); color: var(--on-navy-2); font-size: 0.9rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 26px; }
footer a { color: var(--on-navy); text-decoration: none; }
footer img { height: 26px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ai.dipexer.com coming-soon page (site/ai/, served by its own nginx server block) */
.soon-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--navy-2); }
.soon-hero { flex: 1; display: grid; align-items: center; }
.soon-hero > .wrap { width: 100%; }   /* a grid item with auto inline margins would shrink to its content */
.soon-in { display: grid; gap: 18px; justify-items: start; max-width: 680px; padding-block: 64px 88px; }
.soon-in .lead { margin-top: 0; }
.soon-in .cta { margin-top: 8px; }
.badge { font-size: 0.85rem; font-weight: 600; color: var(--navy); background: var(--teal-2); border-radius: 999px; padding: 2px 12px; }
.soon-list { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; color: var(--on-navy); font-size: 1.05rem; }
.soon-list li::marker { color: var(--teal-2); }

/* showcase swatches:begin */
.sw-realestate i:nth-child(1) { background: #231F1B; }
.sw-realestate i:nth-child(2) { background: #BC8832; }
.sw-realestate i:nth-child(3) { background: #77846A; }
.sw-tourism i:nth-child(1) { background: #302433; }
.sw-tourism i:nth-child(2) { background: #BF833E; }
.sw-tourism i:nth-child(3) { background: #93A6CC; }
.sw-esports i:nth-child(1) { background: #20142E; }
.sw-esports i:nth-child(2) { background: #CBFF5E; }
.sw-esports i:nth-child(3) { background: #A994FF; }
.sw-clinic i:nth-child(1) { background: #193C34; }
.sw-clinic i:nth-child(2) { background: #4E9A75; }
.sw-clinic i:nth-child(3) { background: #CCA05C; }
.sw-coffee i:nth-child(1) { background: #2B1C17; }
.sw-coffee i:nth-child(2) { background: #D9653B; }
.sw-coffee i:nth-child(3) { background: #9BAB82; }
/* showcase swatches:end */
