/* saremipoor.ir — personal résumé site. Static, no build step. Dark "aurora" theme. */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-wght.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #05060a;
  --bg-2: #0a0c13;
  --card: rgba(255, 255, 255, .035);
  --card-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f3f5f9;
  --muted: #a3abbd;
  --dim: #6f778a;
  --violet: #8b6cff;
  --blue: #4f8cff;
  --cyan: #2ee6d6;
  --gold: #ffc35a;
  --tg: #2aabee;
  --grad: linear-gradient(100deg, #b49cff 0%, #6aa8ff 45%, #3ef0dc 100%);
  --radius: 22px;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px; line-height: 1.9; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.01em; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.12; letter-spacing: -.03em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(139, 108, 255, .45); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg .blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .32; will-change: transform; }
.bg .b1 { background: #5b3df5; top: -28vmax; inset-inline-end: -18vmax; animation: drift1 26s ease-in-out infinite alternate; }
.bg .b2 { background: #0e7bd6; top: 30vh; inset-inline-start: -30vmax; opacity: .22; animation: drift2 32s ease-in-out infinite alternate; }
.bg .b3 { background: #10b9a8; bottom: -35vmax; inset-inline-end: 10vw; opacity: .16; animation: drift1 38s ease-in-out infinite alternate-reverse; }
.bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg .noise { position: absolute; inset: -50%; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate(-8vw, 10vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(10vw, -6vh) scale(.92); } }

/* ---------- header ---------- */
.site-header { position: fixed; top: 14px; inset-inline: 0; z-index: 80; pointer-events: none; }
.nav-shell {
  pointer-events: auto; display: flex; align-items: center; gap: 14px;
  width: min(var(--wrap), 100% - 24px); margin-inline: auto; padding: 8px 8px 8px 14px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(10, 12, 19, .55); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
html[dir="rtl"] .nav-shell { padding: 8px 14px 8px 8px; }
.site-header.is-scrolled .nav-shell { background: rgba(10, 12, 19, .82); border-color: var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; border: 1px solid var(--line-2); }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 7px 13px; border-radius: 11px; transition: color .2s, background .2s; }
.nav a:hover, .nav a.is-active { color: var(--ink); background: var(--card-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 700;
}
.lang a, .lang span { padding: 5px 10px; border-radius: 9px; line-height: 1.3; color: var(--muted); }
.lang span { background: var(--card-2); color: var(--ink); }
.lang a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .brand span { font-size: 15px; }
}
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden;
  font-weight: 800; font-size: 16px; line-height: 1; padding: 16px 24px; border-radius: 15px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-tg { background: linear-gradient(135deg, #36b6f5, #1a8fd8); color: #fff; box-shadow: 0 12px 34px -10px rgba(42, 171, 238, .75), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-tg:hover { box-shadow: 0 16px 44px -10px rgba(42, 171, 238, .95), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-2px); }
.btn-tg::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--card-2); border-color: rgba(255,255,255,.28); transform: translateY(-2px); }
.btn-sm { padding: 10px 15px; font-size: 14px; border-radius: 12px; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-xl { padding: 20px 34px; font-size: 19px; border-radius: 18px; }
.btn-xl svg { width: 24px; height: 24px; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(8px);
}
.status i { width: 9px; height: 9px; border-radius: 50%; background: #3ee68a; box-shadow: 0 0 0 0 rgba(62,230,138,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(62,230,138,0); } 100% { box-shadow: 0 0 0 0 rgba(62,230,138,0); } }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.7rem); font-weight: 900; margin-top: 26px; line-height: 1.28; }
html[lang="en"] .hero h1 { line-height: 1.06; }
.hero h1 .hi { display: block; font-size: .5em; font-weight: 700; color: var(--muted); margin-bottom: 10px; letter-spacing: 0; }
.rotator { display: inline-block; position: relative; }
.hero h1 { font-size: clamp(2rem, 4.3vw, 3.55rem); }
.hero h1 .rotator { display: block; font-size: .8em; line-height: 1.36; min-height: 2.72em; margin-top: 4px; text-wrap: balance; }
html[lang="en"] .hero h1 .rotator { line-height: 1.12; min-height: 2.24em; }
.rotator .word { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .35s, transform .35s, filter .35s; }
.rotator .word.out { opacity: 0; transform: translateY(-.35em); filter: blur(6px); }
.rotator .word.pre { opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: none; }
.hero .lead { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); margin-top: 22px; max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 48px; }
.stat b { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; line-height: 1.1; }
.stat span { color: var(--dim); font-size: 14px; }

.portrait-wrap { position: relative; justify-self: center; width: min(400px, 100%); }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px 32px 32px; padding: 3px;
  background: conic-gradient(from var(--ang), #8b6cff, #4f8cff, #2ee6d6, #ffc35a, #8b6cff);
  animation: spin 7s linear infinite;
}
@keyframes spin { to { --ang: 360deg; } }
.portrait::before { content: ""; position: absolute; inset: 8%; z-index: -1; border-radius: inherit; background: inherit; filter: blur(48px); opacity: .55; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 218px 218px 30px 30px; background: var(--bg-2); }
.portrait .mono { width: 100%; height: 100%; border-radius: 218px 218px 30px 30px; background: var(--bg-2); display: grid; place-items: center; font-size: 120px; font-weight: 900; }
.chip-float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: 14px; font-weight: 700;
  background: rgba(14, 17, 27, .78); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.9); white-space: nowrap; animation: bob 6s ease-in-out infinite; animation-delay: var(--d, 0s);
  direction: ltr;
}
.chip-float .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c, var(--cyan)); box-shadow: 0 0 12px var(--c, var(--cyan)); }
.chip-float.c1 { top: 12%; inset-inline-start: -14%; --c: #ff6b6b; }
.chip-float.c2 { top: 40%; inset-inline-end: -16%; --c: #5fa8ff; --d: -2s; }
.chip-float.c3 { bottom: 20%; inset-inline-start: -18%; --c: #2ee6d6; --d: -4s; }
.chip-float.c4 { bottom: -3%; inset-inline-end: 4%; --c: #ffc35a; --d: -1s; direction: inherit; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line-2); }
.scroll-hint::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--muted); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 108px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .portrait-wrap { width: min(300px, 74%); order: -1; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 96px; }
  .hero-grid { gap: 48px; }
  .hero-cta .btn { flex: 1 1 0; }
  .hero-cta .btn-tg { flex-basis: 100%; }
  .stats { gap: 22px; justify-content: space-between; }
  .chip-float { font-size: 12.5px; padding: 7px 11px; }
  .chip-float.c1 { inset-inline-start: -10%; }
  .chip-float.c2 { inset-inline-end: -12%; }
  .chip-float.c3 { inset-inline-start: -12%; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; padding: 26px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marq 40s linear infinite; }
.marquee-track.rev { animation-direction: reverse; margin-top: 14px; animation-duration: 46s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 15px; color: #d7dce6; white-space: nowrap; }
.marquee li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { scroll-margin-top: 90px; }
.section { padding: 110px 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--cyan); }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; }
.sec-head h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 900; margin-top: 12px; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
@media (max-width: 600px) { .section { padding: 76px 0; } .sec-head { margin-bottom: 34px; } }

/* glass card + spotlight */
.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
  overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 108, 255, .16), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-2); }

/* ---------- about (bento) ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr 1.2fr; grid-template-areas: "bio bio now" "p1 p2 now"; gap: 16px; }
.bento .card { padding: 28px; }
.b-bio { grid-area: bio; }
.b-now { grid-area: now; display: flex; flex-direction: column; }
.bento > :nth-child(3) { grid-area: p1; }
.bento > :nth-child(4) { grid-area: p2; }
.b-bio h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; }
.b-bio p { color: var(--muted); margin-top: 14px; font-size: 1.04rem; }
.b-bio p strong { color: var(--ink); font-weight: 700; }
.b-now .label { font-size: 13px; font-weight: 800; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.b-now .label i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.b-now h3 { font-size: 1.3rem; font-weight: 900; margin-top: 12px; }
.b-now p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.b-now .mini-shots { display: flex; gap: 10px; margin-top: auto; padding-top: 20px; }
.b-now .mini-shots img { width: 33%; border-radius: 12px; border: 3px solid #12141c; box-shadow: 0 14px 30px -14px #000; }
.b-now .mini-shots img:nth-child(2) { transform: translateY(-10px); }
.b-p .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(139,108,255,.25), rgba(46,230,214,.15)); border: 1px solid var(--line-2); color: #cfc4ff; }
.b-p .ico svg { width: 22px; height: 22px; }
.b-p h3 { font-size: 1.1rem; font-weight: 800; margin-top: 16px; }
.b-p p { font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.8; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "bio bio" "now now" "p1 p2"; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; grid-template-areas: "bio" "now" "p1" "p2"; } .bento .card { padding: 22px; } }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.skill { padding: 26px; grid-column: span 2; }
.skill.wide { grid-column: span 3; }
.skill .top { display: flex; align-items: center; gap: 14px; }
.skill .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.skill .ico svg { width: 24px; height: 24px; }
.skill h3 { font-size: 1.12rem; font-weight: 800; }
.skill p { color: var(--muted); font-size: 15px; margin-top: 14px; line-height: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chips li { font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #dfe3ec; direction: ltr; unicode-bidi: isolate; }
.terminal { grid-column: 1 / -1; padding: 0; background: #07080d; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; direction: ltr; text-align: left; }
.terminal .tbar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.terminal .tbar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal .tbar i:nth-child(2) { background: #febc2e; } .terminal .tbar i:nth-child(3) { background: #28c840; }
.terminal .tbar span { margin-inline-start: auto; color: var(--dim); font-size: 12px; }
.terminal pre { margin: 0; padding: 18px 20px 22px; font: inherit; font-size: 13.5px; line-height: 1.9; color: #c9d1e0; white-space: pre-wrap; min-height: 290px; }
.terminal .p { color: #8b6cff; } .terminal .ok { color: #3ee68a; } .terminal .cm { color: var(--dim); }
.terminal .cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: #c9d1e0; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 1000px) { .skill, .skill.wide { grid-column: span 3; } }
@media (max-width: 620px) { .skill, .skill.wide { grid-column: 1 / -1; } }

/* ---------- work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 36px; }
.filters button {
  cursor: pointer; padding: 9px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 700; font-size: 14.5px; transition: all .2s;
}
.filters button:hover { color: var(--ink); border-color: var(--line-2); }
.filters button[aria-pressed="true"] { color: #0a0b10; background: var(--grad); border-color: transparent; }
.projects { display: grid; gap: 28px; }
.project {
  --c1: #4f8cff; --c2: #2ee6d6;
  display: grid; grid-template-columns: 1.05fr .95fr; border-radius: 30px; padding: 0;
  background:
    radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--c1) 20%, transparent), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, color-mix(in srgb, var(--c2) 12%, transparent), transparent 60%),
    rgba(255,255,255,.025);
}
html[dir="rtl"] .project { background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--c1) 20%, transparent), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--c2) 12%, transparent), transparent 60%),
    rgba(255,255,255,.025); }
.project.is-hidden { display: none; }
.project:nth-child(even) .p-media { order: 2; }
.p-body { padding: 40px; display: flex; flex-direction: column; min-width: 0; }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.p-num { font-size: 13px; font-weight: 900; color: var(--c1); letter-spacing: .08em; margin-inline-end: 6px; filter: brightness(1.35); }
.tag { font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: #d5dae4; background: rgba(255,255,255,.04); }
.tag.live { color: #3ee68a; border-color: rgba(62,230,138,.35); background: rgba(62,230,138,.08); }
.tag.soon { color: var(--gold); border-color: rgba(255,195,90,.35); background: rgba(255,195,90,.08); }
.p-body h3 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 900; margin-top: 18px; }
.p-role { font-size: 14px; font-weight: 700; margin-top: 6px; color: var(--c2); filter: brightness(1.25); }
.p-body > p.sum { color: var(--muted); margin-top: 12px; font-size: 1.02rem; }
.p-points { display: grid; gap: 10px; margin-top: 22px; }
.p-points li { position: relative; padding-inline-start: 28px; font-size: 15.5px; line-height: 1.75; color: #dfe3ec; }
.p-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 17px; height: 17px; border-radius: 6px; background: color-mix(in srgb, var(--c1) 30%, transparent); border: 1px solid color-mix(in srgb, var(--c1) 60%, transparent); }
.p-points li::after { content: ""; position: absolute; inset-inline-start: 5.5px; top: calc(.42em + 4px); width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.p-foot { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.p-foot .chips { margin-top: 0; }
.p-links { display: flex; flex-wrap: wrap; gap: 8px; }
.p-links:empty { display: none; }

.p-media { position: relative; min-width: 0; padding: 40px; display: grid; place-items: center; perspective: 1200px; }
.p-stage { position: relative; width: 100%; transition: transform .4s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.browser {
  border-radius: 14px; overflow: hidden; background: #0c0e15; border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.03);
}
.browser .bar { display: flex; align-items: center; gap: 6px; height: 28px; padding-inline: 12px; background: #141722; border-bottom: 1px solid var(--line); direction: ltr; }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f4f; }
.browser .bar span { margin-inline-start: 10px; flex: 1; max-width: 220px; height: 15px; border-radius: 5px; background: #1d2130; font-size: 10px; line-height: 15px; color: var(--dim); padding-inline: 8px; overflow: hidden; white-space: nowrap; }
.phone { border-radius: 28px; overflow: hidden; background: #000; border: 6px solid #15171f; box-shadow: 0 40px 70px -28px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.08); }
.m-browser .back { width: 72%; margin-inline-start: auto; opacity: .75; transform: translateZ(-40px); }
.m-browser .front { width: 82%; margin-top: -34%; position: relative; }
.m-browser .phone { position: absolute; width: 25%; inset-inline-end: -2%; bottom: -10%; border-width: 4px; border-radius: 18px; }
.m-phones { display: flex; justify-content: center; align-items: center; }
.m-phones .phone { width: 34%; flex: none; }
.m-phones .phone:nth-child(1) { transform: rotate(-7deg) translateY(18px); margin-inline-end: -8%; }
.m-phones .phone:nth-child(2) { position: relative; z-index: 2; width: 38%; }
.m-phones .phone:nth-child(3) { transform: rotate(7deg) translateY(18px); margin-inline-start: -8%; }
html[dir="rtl"] .m-phones .phone:nth-child(1) { transform: rotate(7deg) translateY(18px); }
html[dir="rtl"] .m-phones .phone:nth-child(3) { transform: rotate(-7deg) translateY(18px); }
.glow { position: absolute; inset: 15%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c1) 55%, transparent), transparent 70%); filter: blur(30px); }

/* telegram chat mock (uses the bot's real texts) */
.chat { width: min(330px, 92%); margin-inline: auto; border-radius: 34px; border: 7px solid #15171f; background: #0e1621; overflow: hidden; box-shadow: 0 40px 70px -28px rgba(0,0,0,.95); font-size: 13.5px; line-height: 1.7; direction: rtl; text-align: right; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #17212b; border-bottom: 1px solid #0b1118; }
.chat-head .av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #7a9a7e, #d07a52); display: grid; place-items: center; font-weight: 900; color: #fff; }
.chat-head b { display: block; font-size: 14px; line-height: 1.3; }
.chat-head small { color: #6d8299; font-size: 12px; }
.chat-body { padding: 14px 12px 16px; display: grid; gap: 8px; background: radial-gradient(circle at 30% 20%, #13202d, #0e1621 60%); }
.msg { max-width: 86%; padding: 8px 12px; border-radius: 14px; background: #182533; color: #e7edf3; justify-self: start; border-end-start-radius: 4px; }
.msg.me { justify-self: end; background: #2b5278; border-end-start-radius: 14px; border-end-end-radius: 4px; }
.kb { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; max-width: 86%; justify-self: start; width: 86%; }
.kb span { text-align: center; padding: 6px 8px; border-radius: 9px; background: rgba(43, 82, 120, .55); color: #e7edf3; font-size: 12.5px; }
.kb span.full { grid-column: 1 / -1; }
.chat .typing { justify-self: start; display: flex; gap: 4px; padding: 10px 14px; border-radius: 14px; background: #182533; }
.chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: #6d8299; animation: tdot 1.2s infinite; }
.chat .typing i:nth-child(2) { animation-delay: .2s; } .chat .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .4; transform: none; } }
.chat-note { text-align: center; font-size: 13px; color: var(--dim); margin-top: 16px; }

@media (max-width: 980px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .p-media { order: 0; }
  .p-media { padding: 30px 24px 10px; }
  .p-body { padding: 26px 26px 30px; }
}
@media (max-width: 520px) {
  .project { border-radius: 24px; }
  .p-media { padding: 26px 16px 6px; }
  .p-body { padding: 22px 20px 26px; }
  .phone { border-width: 4px; border-radius: 18px; }
  .m-browser .phone { border-width: 3px; border-radius: 12px; }
  .p-foot { flex-direction: column; align-items: stretch; }
}

/* ---------- services + process ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service { grid-column: span 2; padding: 28px; }
.service .num { font-size: 44px; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.service h3 { font-size: 1.15rem; font-weight: 800; margin-top: 16px; }
.service p { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.8; }
.service .ex { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: #cfc4ff; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } .service { grid-column: auto; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.process::before { content: ""; position: absolute; top: 27px; inset-inline: 12%; height: 2px; background: var(--line-2); }
.process::after { content: ""; position: absolute; top: 27px; inset-inline-start: 12%; height: 2px; width: 0; background: var(--grad); transition: width 1.6s cubic-bezier(.2,.7,.2,1); }
.process.in::after { width: 76%; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step .dot { position: relative; z-index: 1; width: 56px; height: 56px; margin-inline: auto; border-radius: 18px; display: grid; place-items: center; font-weight: 900; font-size: 20px; background: #0f121b; border: 1px solid var(--line-2); box-shadow: 0 0 0 6px var(--bg); }
.step h3 { font-size: 1.1rem; font-weight: 800; margin-top: 18px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.8; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 26px; }
  .process::before, .process::after { top: 28px; bottom: 28px; height: auto; width: 2px; inset-inline-start: 27px; inset-inline-end: auto; }
  .process::after { height: 0; transition: height 1.6s cubic-bezier(.2,.7,.2,1); }
  .process.in::after { width: 2px; height: calc(100% - 56px); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: start; padding: 0; }
  .step .dot { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 4px; }
}

/* ---------- contact ---------- */
.contact {
  position: relative; border-radius: 36px; padding: clamp(36px, 7vw, 84px) clamp(22px, 5vw, 64px); text-align: center; overflow: hidden; isolation: isolate;
  background: #0a0c13;
}
.contact::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang), #8b6cff, #4f8cff, #2ee6d6, #ffc35a, #8b6cff); animation: spin 8s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.contact::after { content: ""; position: absolute; z-index: -1; width: 70%; height: 120%; left: 15%; top: -60%; background: radial-gradient(closest-side, rgba(139,108,255,.35), transparent); filter: blur(20px); }
.contact .me { width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 28px; object-fit: cover; border: 2px solid var(--line-2); box-shadow: 0 20px 50px -18px rgba(139,108,255,.8); }
.contact h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; }
.contact > p { color: var(--muted); margin: 16px auto 0; max-width: 34em; font-size: 1.08rem; }
.contact .btn-xl { margin-top: 34px; }
.contact-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.phone-num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.handle { display: block; margin-top: 14px; color: var(--dim); font-size: 15px; }
.tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.tips li { font-size: 14px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.alt-contact { margin-top: 26px; font-size: 15px; color: var(--muted); }
.alt-contact a { color: var(--ink); font-weight: 700; border-bottom: 1px dashed var(--line-2); direction: ltr; unicode-bidi: isolate; }
.alt-contact a:hover { border-bottom-color: var(--cyan); }
@media (max-width: 560px) { .contact-btns { flex-direction: column; } .contact .btn-xl { width: 100%; padding: 18px 20px; font-size: 17px; } .contact { border-radius: 26px; } }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0 120px; color: var(--dim); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer-row a:hover { color: var(--ink); }
@media (min-width: 901px) { .site-footer { padding-bottom: 40px; } }

/* ---------- floating telegram (phones) ---------- */
.fab { position: fixed; inset-inline: 14px; bottom: 14px; z-index: 70; display: none; }
@media (max-width: 900px) {
  .fab { display: flex; transform: translateY(150%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .fab.is-visible { transform: none; }
}

/* ---------- draft bar (local preview only) ---------- */
.draft-banner { position: relative; z-index: 90; background: #3a2a07; color: #ffe2a6; font-size: 13.5px; line-height: 1.7; padding: 7px 0; text-align: center; }
.draft-banner + .site-header { top: 50px; }
.is-missing { outline: 2px dashed var(--gold); outline-offset: 3px; }

/* ---------- lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(3, 4, 8, .9); backdrop-filter: blur(6px); }
dialog.lightbox img { max-width: min(1280px, 94vw); max-height: 84vh; width: auto; border-radius: 14px; margin-inline: auto; box-shadow: 0 30px 80px -20px #000; }
dialog.lightbox .cap { color: #dfe3ec; text-align: center; font-size: 14px; margin-top: 12px; }
dialog.lightbox .close { position: fixed; top: 16px; inset-inline-end: 16px; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
