/* DIMA Digital Studio — dimadstudio.com */
:root {
  --violet: #7B5CFF; --blue: #3E8EFF; --cyan: #14B2FF;
  --ink: #0B1020; --ink-2: #121a33; --ink-3: #18223f;
  --line: rgba(255, 255, 255, .1); --slate: #99A7C8; --text: #dfe6f7; --white: #fff;
  --wa: #25D366;
  --grad: linear-gradient(135deg, #7B5CFF 0%, #3E8EFF 55%, #14B2FF 100%);
  --r: 22px; --wrap: 1160px;
  --ff: 'Cairo', 'Poppins', system-ui, 'Segoe UI', Tahoma, sans-serif;
}
html[lang="en"] { --ff: 'Poppins', 'Cairo', system-ui, 'Segoe UI', sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ff); background: var(--ink); color: var(--text); line-height: 1.75; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 32, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.lockup { display: flex; align-items: center; gap: 10px; direction: ltr; flex: none; }
.lockup svg { width: 40px; height: 40px; flex: none; }
.lockup b { display: block; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 21px; line-height: 1; letter-spacing: .02em; color: #fff; }
.lockup span { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 8.5px; letter-spacing: .32em; color: var(--slate); margin-top: 5px; line-height: 1; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 15.5px; color: #c9d3ec; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; font-family: 'Poppins', 'Cairo', sans-serif; }
.lang:hover { background: rgba(255, 255, 255, .08); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 999px; font-weight: 800; font-size: 16.5px; line-height: 1.3; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(62, 142, 255, .35); }
.btn.ghost { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.btn.wa { background: var(--wa); color: #06270f; box-shadow: 0 10px 30px rgba(37, 211, 102, .28); }
.btn.sm { padding: 9px 18px; font-size: 15px; }

/* ---------- sections ---------- */
section { padding: 84px 0; position: relative; overflow: hidden; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: #dfe6f7; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
h1, h2, h3 { color: #fff; line-height: 1.3; font-weight: 900; }
h2 { font-size: clamp(28px, 4.2vw, 42px); margin-top: 16px; }
.lead { color: #b9c4e0; font-size: 18.5px; max-width: 660px; margin-top: 12px; }
.head { margin-bottom: 40px; }
.sub-h { font-size: 23px; font-weight: 800; margin: 56px 0 20px; display: flex; align-items: center; gap: 12px; }
.sub-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .42; pointer-events: none; z-index: 0; }
.glow.v { background: var(--violet); }
.glow.c { background: var(--cyan); }
section > .wrap { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero { padding: 70px 0 60px; overflow: hidden; }
.hero .grid-bg { position: absolute; inset: 0; opacity: .06; pointer-events: none; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin-top: 20px; letter-spacing: -.01em; }
.hero .lead { font-size: 19.5px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: #dfe6f7; }
.phones { position: relative; height: 560px; direction: ltr; }
.phone { position: absolute; width: 250px; aspect-ratio: 9 / 18.6; border-radius: 40px; padding: 10px; background: #05070f; box-shadow: 0 0 0 2px #2a3352, 0 40px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(62, 142, 255, .22); }
.phone .screen { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #fff; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phones .p1 { left: 8%; top: 28px; transform: rotate(-6deg); }
.phones .p2 { right: 6%; top: 0; transform: rotate(5deg); z-index: 2; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.stat { background: rgba(255, 255, 255, .045); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.stat b { display: block; font-family: 'Poppins', 'Cairo', sans-serif; font-size: 34px; font-weight: 800; line-height: 1.15; }
.stat span { color: var(--slate); font-size: 15px; font-weight: 600; }

/* ---------- cards ---------- */
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { padding: 26px 22px; transition: transform .25s, border-color .25s; }
.service:hover { transform: translateY(-4px); border-color: rgba(123, 92, 255, .55); }
.ico { width: 52px; height: 52px; border-radius: 15px; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 21px; font-weight: 800; }
.service p { color: #b9c4e0; font-size: 15.5px; margin-top: 8px; }
.service ul { list-style: none; margin-top: 14px; display: grid; gap: 6px; }
.service li { font-size: 14.5px; color: #dfe6f7; padding-inline-start: 20px; position: relative; }
.service li::before { content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---------- apps ---------- */
#apps { background: linear-gradient(180deg, transparent, rgba(18, 26, 51, .55) 12%, rgba(18, 26, 51, .55) 88%, transparent); }
.store-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.store-app { display: grid; grid-template-columns: 124px 1fr; gap: 22px; padding: 22px; align-items: center; overflow: hidden; }
.store-app .shot { border-radius: 20px; padding: 5px; background: #05070f; box-shadow: 0 0 0 2px #2a3352, 0 20px 40px rgba(0, 0, 0, .45); aspect-ratio: 9 / 17.5; }
.store-app .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 15px; }
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(62, 142, 255, .16); color: #9cc6ff; border: 1px solid rgba(62, 142, 255, .3); }
.store-app h3 { font-size: 23px; margin-top: 10px; }
.store-app p { color: #b9c4e0; font-size: 15.5px; margin-top: 6px; }
.ticks { list-style: none; margin-top: 12px; display: grid; gap: 5px; }
.ticks li { font-size: 15px; padding-inline-start: 26px; position: relative; color: #dfe6f7; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: .42em; width: 17px; height: 17px; border-radius: 50%; background: var(--grad) center / cover; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.4 14.2l-4-4 1.5-1.5 2.5 2.5 5.3-5.3 1.5 1.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.4 14.2l-4-4 1.5-1.5 2.5 2.5 5.3-5.3 1.5 1.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.stack { margin-top: 14px; font-size: 13.5px; color: var(--slate); font-family: 'Poppins', 'Cairo', sans-serif; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-weight: 700; font-size: 15px; color: #c9d3ec; transition: background .2s, color .2s; }
.filters button:hover { background: rgba(255, 255, 255, .1); }
.filters button[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.filters small { opacity: .75; font-weight: 600; margin-inline-start: 4px; font-family: 'Poppins', sans-serif; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.app { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.app:hover { transform: translateY(-4px); border-color: rgba(123, 92, 255, .55); }
.app[hidden] { display: none; }
.app .pic { display: block; aspect-ratio: 1 / 1; background: #0d142b; overflow: hidden; }
.app .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app .body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.app .tag { font-size: 11px; padding: 1px 8px; }
.app h3 { font-size: 16px; font-weight: 800; }
.app h3 small { display: block; font-size: 12px; font-weight: 600; color: var(--slate); }
.app p { font-size: 12.8px; line-height: 1.55; color: #b9c4e0; flex: 1; }
.app .row { display: flex; gap: 6px; margin-top: 6px; }
.app .row a { flex: 1; text-align: center; padding: 6px 3px; border-radius: 10px; font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.app .row a.go { background: var(--grad); color: #fff; }
.app .row a.dl { background: rgba(255, 255, 255, .09); color: #fff; border: 1px solid var(--line); }
.app .row a:hover { filter: brightness(1.12); }
.note { margin-top: 22px; color: var(--slate); font-size: 14.5px; }
.note a { color: #9cc6ff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- work ---------- */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; }
.site { overflow: hidden; display: block; transition: transform .25s, border-color .25s; }
.site:hover { transform: translateY(-4px); border-color: rgba(123, 92, 255, .55); }
.browser { background: #0d142b; border-bottom: 1px solid var(--line); }
.browser .bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; direction: ltr; }
.browser .bar i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #2a3352; }
.browser .bar span { margin-left: 6px; font-family: 'Poppins', sans-serif; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--slate); background: rgba(255, 255, 255, .06); padding: 2px 12px; border-radius: 999px; }
.browser img { width: 100%; aspect-ratio: 960 / 563; object-fit: cover; object-position: top; }
.site .body { padding: 12px 14px 14px; }
.site h3 { font-size: 16.5px; font-weight: 800; margin-top: 6px; }
.site p { color: #b9c4e0; font-size: 13.5px; line-height: 1.6; margin-top: 2px; }
.site .tag { font-size: 11.5px; padding: 2px 9px; }
#work .sub-h { font-size: 19px; margin: 40px 0 16px; }
#work .lead { font-size: 15.5px; }
.templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.video { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.reels { display: flex; gap: 12px; direction: ltr; }
.reels img { width: 78px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 11px; border: 1px solid var(--line); box-shadow: 0 10px 22px rgba(0, 0, 0, .4); }
.reels img:nth-child(2) { margin-top: 14px; }
.video h3, .ads h3 { font-size: 17.5px; font-weight: 800; }
.video p, .ads p { color: #b9c4e0; font-size: 14px; line-height: 1.65; margin-top: 4px; }
.ads { padding: 16px 18px; }
.ads .ico { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pills span { padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; font-family: 'Poppins', 'Cairo', sans-serif; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.about p { margin-top: 14px; color: #c3cce4; }
.steps { display: grid; gap: 12px; counter-reset: s; list-style: none; }
.steps li { counter-increment: s; padding: 18px 20px; display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.5; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 18.5px; font-weight: 800; }
.steps p { margin: 2px 0 0; font-size: 15px; color: #b9c4e0; }

/* ---------- contact ---------- */
.contact-box { padding: 48px 32px; text-align: center; background: linear-gradient(135deg, rgba(123, 92, 255, .22), rgba(20, 178, 255, .16)), var(--ink-2); overflow: hidden; position: relative; }
.contact-box h2 { margin-top: 0; }
.contact-box .lead { margin-inline: auto; }
.contact-box .cta { justify-content: center; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.socials a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-weight: 700; font-size: 15px; font-family: 'Poppins', 'Cairo', sans-serif; transition: background .2s, transform .2s; }
.socials a:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 40px; margin-top: 30px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: #c9d3ec; font-weight: 600; }
footer nav a:hover { color: #fff; }
footer small { color: var(--slate); font-size: 14px; width: 100%; }

.fab { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .4); transition: transform .2s; }
.fab:hover { transform: scale(1.07); }
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- motion ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .app, .site, .service { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .store-apps { grid-template-columns: 1fr; }
  .sites, .templates { grid-template-columns: repeat(3, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 500px; max-width: 520px; width: 100%; margin-inline: auto; }
  .phone { width: 225px; }
  .about { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; background: #0e1530; border-bottom: 1px solid var(--line); padding: 10px 20px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 12px; font-size: 17px; }
  .menu-btn { display: grid; }
  .top-actions { margin-inline-start: auto; }
  .top .btn { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  section { padding: 60px 0; }
  .hero { padding: 44px 0 40px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .stat b { font-size: 28px; }
  .services { grid-template-columns: 1fr; }
  .sites, .templates { grid-template-columns: 1fr 1fr; gap: 10px; }
  .site p { display: none; }
  .store-app { grid-template-columns: 92px 1fr; gap: 16px; padding: 16px; align-items: start; }
  .store-app h3 { font-size: 20px; }
  .phones { height: 400px; }
  .phone { width: 178px; border-radius: 30px; padding: 7px; }
  .phone .screen { border-radius: 24px; }
  .phones .p1 { left: 2%; }
  .phones .p2 { right: 2%; }
  .video { grid-template-columns: 1fr; }
  .reels { justify-content: center; }
  .contact-box { padding: 38px 20px; }
  .cta .btn { flex: 1 1 100%; }
  .app-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lockup b { font-size: 19px; }
}
@media (min-width: 520px) and (max-width: 640px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); }
}
