/* ============================================================
   Sahiyar — single page site
   ============================================================ */

:root {
  --bg:        #070a12;
  --bg-alt:    #0b0f1a;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);

  --text:      #eef1f8;
  --muted:     #9aa4bd;

  --brand:     #7c5cff;
  --brand-2:   #22d3ee;
  --brand-soft: rgba(124, 92, 255, 0.16);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1160px;
  --shadow:    0 24px 60px rgba(0, 0, 0, 0.45);
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.65rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.14rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- ambient background ---------- */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.glow-a { width: 620px; height: 620px; background: #6d4bff; top: -220px; left: -140px; }
.glow-b { width: 520px; height: 520px; background: #0e7490; top: 32%; right: -180px; opacity: .4; }
.glow-c { width: 460px; height: 460px; background: #a21caf; bottom: -180px; left: 28%; opacity: .28; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .93rem; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  font-family: inherit;
}
.btn-lg { padding: .92rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #080d18;
  box-shadow: 0 10px 30px rgba(124, 92, 255, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(124, 92, 255, .45); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(7, 10, 18, .82); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: inline-flex; }
.brand-text { font-size: 1.22rem; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav > a { font-size: .93rem; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav > a:hover, .nav > a.active { color: var(--text); }
.nav .nav-cta { color: #080d18; }

.nav-toggle {
  display: none; width: 44px; height: 40px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #c3b5ff; background: var(--brand-soft); border: 1px solid rgba(124, 92, 255, .28);
  padding: .38rem .8rem; border-radius: 999px; margin: 0 0 1.1rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); }

.grad {
  background: linear-gradient(100deg, #a78bfa, #22d3ee 65%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 56ch; margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 2.4rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; list-style: none; padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.hero-stats strong::after { content: "+"; color: var(--brand-2); }
.hero-stats span { font-size: .84rem; color: var(--muted); }

/* phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(290px, 76vw); aspect-ratio: 9 / 18.6;
  background: linear-gradient(160deg, #1b2136, #0d1120);
  border: 1px solid var(--border-2); border-radius: 40px; padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(124, 92, 255, .18) inset;
  animation: float 6s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; background: #05070d; border-radius: 999px; }
.phone-screen {
  height: 100%; border-radius: 30px; background: radial-gradient(120% 80% at 50% 0%, rgba(124,92,255,.14) 0%, transparent 60%), linear-gradient(180deg, #131a2c, #0a0e19);
  padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.ps-top { display: flex; align-items: center; gap: 10px; }
.ps-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex: none; }
.ps-lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ps-lines i { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); }
.ps-lines i:first-child { width: 62%; }
.ps-lines i:last-child { width: 40%; background: var(--surface); }

.ps-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.ps-chart .bars { display: flex; align-items: flex-end; gap: 8px; height: 82px; }
.ps-chart .bars i {
  flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  opacity: .85; animation: grow 1.6s var(--ease) both;
}
.ps-chart .bars i:nth-child(2) { animation-delay: .1s } .ps-chart .bars i:nth-child(3) { animation-delay: .2s }
.ps-chart .bars i:nth-child(4) { animation-delay: .3s } .ps-chart .bars i:nth-child(5) { animation-delay: .4s }
.ps-chart .bars i:nth-child(6) { animation-delay: .5s }

.ps-row { display: flex; gap: 10px; }
.ps-pill { flex: 1; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.ps-pill.w60 { flex: .6 } .ps-pill.w80 { flex: .8 } .ps-pill.w40 { flex: .4 }
.ps-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 4px 4px; border-top: 1px solid var(--border); }
.ps-tabbar i { width: 22px; height: 6px; border-radius: 4px; background: var(--surface-2); }
.ps-tabbar i:first-child { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  background: rgba(16, 21, 36, .92); border: 1px solid var(--border-2);
  border-radius: 14px; padding: .7rem .9rem; box-shadow: var(--shadow);
  backdrop-filter: blur(8px); animation: float 7s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .86rem; }
.float-card small { color: var(--muted); font-size: .72rem; }
.fc-icon {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-2); font-size: .9rem;
}
.fc-1 { top: 14%; left: -6%; animation-delay: .6s; }
.fc-2 { bottom: 12%; right: -8%; animation-delay: 1.4s; }

@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes grow { from { height: 0; opacity: 0 } }

/* ---------- marquee ---------- */
.marquee-wrap { padding: 1.4rem 0 2.6rem; border-block: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.marquee { overflow: hidden; -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: 3rem; width: max-content; animation: scroll 34s linear infinite; padding-top: 1.2rem; }
.marquee-track span { font-size: 1.02rem; font-weight: 700; color: rgba(255, 255, 255, .38); white-space: nowrap; letter-spacing: -.01em; }
@keyframes scroll { to { transform: translateX(-50%) } }

/* ---------- sections ---------- */
.section { padding: clamp(3.8rem, 8vw, 6.5rem) 0; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto clamp(2.2rem, 4vw, 3.4rem); text-align: center; }
.section-sub { margin: 0; }

.grid { display: grid; gap: 1.15rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* service cards */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  transition: transform .35s var(--ease), border-color .3s, background .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, .16), transparent 70%);
  transition: opacity .35s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .93rem; margin-bottom: 1rem; }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(124, 92, 255, .22), rgba(34, 211, 238, .14));
  border: 1px solid rgba(124, 92, 255, .28); color: #c4b5fd; margin-bottom: 1.1rem;
}
.card-icon svg { width: 23px; height: 23px; stroke-linecap: round; stroke-linejoin: round; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-size: .74rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: .22rem .62rem;
}

/* work cards */
.work-grid { gap: 1.15rem; }
.work-card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem 1.6rem 1.6rem; background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s;
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .4); }
.work-num {
  display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: .5rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.work-card p { font-size: .94rem; margin: 0; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; counter-reset: s; }
.step { position: relative; padding: 1.6rem 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step-badge {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #080d18;
  font-weight: 800; margin-bottom: .9rem;
}
.step p { font-size: .92rem; margin: 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-copy h2 { margin-bottom: 1rem; }
.about-copy .btn { margin-top: .6rem; }
.why-list { display: grid; gap: .9rem; }
.why { border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: 1.05rem 1.2rem; background: var(--surface); }
.why h3 { font-size: 1rem; margin-bottom: .25rem; }
.why p { font-size: .9rem; margin: 0; }

/* contact */
.contact-panel {
  text-align: center; max-width: 780px; margin-inline: auto;
  background: linear-gradient(150deg, rgba(124, 92, 255, .12), rgba(34, 211, 238, .06) 60%, transparent);
  border: 1px solid var(--border-2); border-radius: 26px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
.ci {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: #c4b5fd;
}
.ci svg { width: 19px; height: 19px; stroke-linecap: round; stroke-linejoin: round; }

.contact-lead { max-width: 56ch; margin-inline: auto; }

.email-cta {
  display: inline-flex; align-items: center; gap: .9rem; margin: 1.8rem 0 .4rem;
  padding: .95rem 1.6rem .95rem 1.1rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s;
}
.email-cta > span:last-child { text-align: left; }
.email-cta strong { display: block; word-break: break-word; font-size: 1.06rem; letter-spacing: -.01em; }
.email-cta small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.email-cta:hover {
  transform: translateY(-2px); border-color: rgba(124, 92, 255, .5);
  background: rgba(124, 92, 255, .14); box-shadow: 0 16px 38px rgba(124, 92, 255, .22);
}
.email-cta .ci { background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #080d18; border-color: transparent; }


/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(255, 255, 255, .015); padding-top: 3.2rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 2.4rem; padding-bottom: 2.4rem; }
.footer-brand p { font-size: .9rem; margin: .9rem 0 0; max-width: 34ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.footer-links h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: .8rem; }
.footer-links a { display: block; font-size: .9rem; color: var(--muted); padding: .2rem 0; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid var(--border); padding-block: 1.2rem;
}
.footer-bottom p { font-size: .84rem; margin: 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .hero-stats { justify-content: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-visual { margin-top: 1rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: stretch; gap: .2rem;
    background: rgba(7, 10, 18, .97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 1rem 24px 1.6rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a { padding: .75rem 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { margin-top: .9rem; border-bottom: none; justify-content: center; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .email-cta { width: 100%; padding-inline: 1rem; }
  .email-cta strong { font-size: .96rem; }
  .hero-stats { gap: 1.6rem; }
  .hero-stats strong { font-size: 1.6rem; }
  .float-card { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
