/* ============================================================
   Nexa AI Studio — styles
   ============================================================ */

:root {
  --bg:        #05060f;
  --bg-2:      #080a18;
  --surface:   rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);

  --text:      #eaf0ff;
  --muted:     #9aa6c9;
  --muted-2:   #6b7796;

  --cyan:      #22d3ee;
  --blue:      #4f7cff;
  --violet:    #a855f7;
  --pink:      #ec4899;

  --grad:      linear-gradient(115deg, #22d3ee 0%, #6d8bff 45%, #a855f7 100%);
  --grad-soft: linear-gradient(115deg, rgba(34,211,238,.16), rgba(168,85,247,.16));

  --radius:    18px;
  --radius-lg: 26px;
  --maxw:      1180px;

  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --glow-cyan: 0 0 40px -8px rgba(34, 211, 238, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Base ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(79, 124, 255, 0.18), transparent 60%),
    radial-gradient(1000px 600px at 10% 10%, rgba(168, 85, 247, 0.14), transparent 55%),
    linear-gradient(180deg, #05060f 0%, #06081a 50%, #04050d 100%);
  z-index: -5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Background canvases & overlays ---------- */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -4; pointer-events: none; }
#matrix { z-index: -4; opacity: 0.55; }
#neural { z-index: -3; opacity: .6; }

.grid-overlay {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 150, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 80%);
}

.glow { position: fixed; border-radius: 50%; filter: blur(90px); z-index: -2; pointer-events: none; opacity: .55; }
.glow--1 { width: 460px; height: 460px; background: rgba(34, 211, 238, 0.22); top: -120px; right: -80px; }
.glow--2 { width: 520px; height: 520px; background: rgba(168, 85, 247, 0.20); bottom: 5%; left: -160px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 200; box-shadow: var(--glow-cyan);
  transition: width .1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: .01em;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }

.btn--primary {
  background: var(--grad); color: #05060f;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .6), 0 0 0 0 rgba(168,85,247,.4);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(109, 139, 255, .8); }

.btn--ghost {
  background: var(--surface); color: var(--text); border-color: var(--border-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: inset 0 0 18px rgba(34,211,238,.12);
}
.brand__text { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: .12em; font-size: 1rem; }
.brand__accent { color: var(--cyan); margin: 0 1px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s ease; position: relative; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); transition: width .25s ease; border-radius: 2px;
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__cta { color: #05060f !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (copy + pixel studio panel) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 116px 0 60px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(72% 78% at 22% 42%, rgba(4,5,14,.55), transparent 72%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; width: 100%; }
.hero__scroll { position: relative; z-index: 1; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: "JetBrains Mono", monospace; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(8,11,24,.55); backdrop-filter: blur(8px); margin-bottom: 24px; }
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.7);} }

.hero__title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.025em; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__sub { max-width: 500px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); margin: 22px 0 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
.hero__tag { font-family: "JetBrains Mono", monospace; font-size: clamp(.66rem, 1.3vw, .78rem); letter-spacing: .04em; color: var(--muted-2); margin-top: 26px; }

/* pixel studio panel (small, on the right) */
.hero__visual { display: flex; justify-content: center; width: 100%; }
.studio { width: 100%; max-width: 430px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2); background: rgba(8,11,24,.82); box-shadow: var(--shadow), 0 0 70px -24px rgba(34,211,238,.55); animation: stage-in 1.2s cubic-bezier(.2,.7,.2,1) both; }
.studio__bar { display: flex; align-items: center; gap: 9px; padding: 9px 13px; background: rgba(255,255,255,.045); border-bottom: 1px solid var(--border); font-family: "JetBrains Mono", monospace; font-size: .72rem; letter-spacing: .02em; color: var(--muted); }
.studio__dot { width: 9px; height: 9px; border-radius: 50%; background: #28c840; box-shadow: 0 0 8px #28c840; }
.studio__status { margin-left: auto; color: var(--cyan); }
.studio__screen { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: radial-gradient(circle at 50% 56%, rgba(34,211,238,.12), transparent 70%), #070b18; }
.studio__fx, .studio__px { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio__px { image-rendering: pixelated; image-rendering: crisp-edges; }
@keyframes stage-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__scroll { margin-top: 46px; align-self: center; display: inline-flex; flex-direction: column; align-items: center; gap: 7px; color: var(--muted-2); font-size: .76rem; font-family: "JetBrains Mono", monospace; letter-spacing: .05em; }
.hero__scroll svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; background: rgba(255,255,255,.015); -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: 26px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee__track span { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee__track span:nth-child(2n) { color: var(--cyan); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 50px 0; }

.section__head { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); display: inline-block; margin-bottom: 16px; }
.section__title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

.card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s ease;
}
.card:hover { transform: translateY(-7px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan); margin-bottom: 20px;
  transition: color .3s ease, box-shadow .3s ease;
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { box-shadow: var(--glow-cyan); }
.card__icon--solid { background: var(--grad); color: #05060f; }

.card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.22rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

.card--cta { background: var(--grad-soft); border-color: var(--border-2); }
.card__link { display: inline-block; margin-top: 16px; color: var(--cyan); font-weight: 600; font-size: .95rem; transition: gap .2s; }
.card__link:hover { text-shadow: 0 0 16px rgba(34,211,238,.6); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat__num { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__suffix { -webkit-text-fill-color: initial; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ---------- Work / products ---------- */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.work__card {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transition: transform .35s ease, border-color .35s ease;
}
.work__card:hover { transform: translateY(-7px); border-color: var(--border-2); }
.work__art {
  height: 170px; display: grid; place-items: center; position: relative; overflow: hidden;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2.4rem; color: rgba(255,255,255,.92);
}
.work__art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 18px 18px; opacity: .5; }
.work__art--1 { background: linear-gradient(135deg, #0ea5b7, #6d28d9); }
.work__art--2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.work__art--3 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.work__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.work__card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.18rem; font-weight: 600; margin: 22px 24px 8px; }
.work__card p { color: var(--muted); font-size: .95rem; margin: 0 24px 16px; }
.work__link { display: inline-block; margin: 0 24px 24px; color: var(--cyan); font-weight: 600; font-size: .94rem; }
.work__link:hover { text-shadow: 0 0 16px rgba(34,211,238,.6); }
.work__all { text-align: center; margin-top: 44px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .35s ease, border-color .35s ease; }
.step:hover { transform: translateY(-6px); border-color: var(--border-2); }
.step__num { font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; opacity: .9; }
.step h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about__text, .about__panel { min-width: 0; }
.terminal { max-width: 100%; }
.about__text .section__title { text-align: left; }
.about__text > p { color: var(--muted); margin-bottom: 16px; font-size: 1.04rem; }
.about__text strong { color: var(--text); }
.about__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 26px; }
.about__list li { position: relative; padding-left: 28px; color: var(--text); font-size: .96rem; }
.about__list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 5px;
  background: var(--grad); box-shadow: var(--glow-cyan);
}

.terminal { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); background: rgba(4,6,16,.9); box-shadow: var(--shadow); }
.terminal__bar { display: flex; gap: 8px; padding: 14px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--border); }
.terminal__bar span { width: 12px; height: 12px; border-radius: 50%; background: #2a3354; }
.terminal__bar span:nth-child(1) { background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }
.terminal__body { padding: 24px; font-family: "JetBrains Mono", monospace; font-size: .92rem; line-height: 1.9; color: var(--text); overflow-x: auto; }
.c-key { color: #c084fc; } .c-fn { color: #22d3ee; } .c-str { color: #86efac; } .c-num { color: #fbbf24; } .c-com { color: var(--muted-2); }

/* ---------- CTA box ---------- */
.cta-box {
  position: relative; text-align: center; padding: 70px 40px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(34,211,238,.08), rgba(168,85,247,.08));
  border: 1px solid var(--border-2); overflow: hidden;
}
.cta-box__glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(109,139,255,.22), transparent 65%); top: -300px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.cta-box__title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px; }
.cta-box__lead { color: var(--muted); max-width: 540px; margin: 0 auto 34px; font-size: 1.06rem; }
.cta-box__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 30px; background: rgba(4,5,12,.6); position: relative; z-index: 1; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer__brand p { color: var(--muted); margin-top: 16px; max-width: 320px; font-size: .96rem; }
.footer__col h4 { font-family: "Space Grotesk", sans-serif; font-size: 1rem; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); margin-bottom: 10px; font-size: .95rem; transition: color .2s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; color: var(--muted-2); font-size: .88rem; flex-wrap: wrap; gap: 10px; }
.footer__made { font-family: "JetBrains Mono", monospace; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__copy { align-items: center; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .studio { max-width: 360px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; gap: 6px;
    background: rgba(7,9,20,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    padding: 18px 24px 26px; transform: translateY(-130%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
    align-items: stretch;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 12px 4px; font-size: 1rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { text-align: center; margin-top: 8px; }
  .section { padding: 80px 0; }
  .hero { padding: 108px 0 56px; }
  .hero__title { font-size: clamp(2rem, 9vw, 3rem); }
  .about__list { grid-template-columns: 1fr; }
  .terminal__body { font-size: .64rem; padding: 16px; line-height: 1.75; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr 1fr; padding: 26px 18px; }
  .cta-box { padding: 50px 22px; }
  .btn--lg { width: 100%; justify-content: center; }
  .hero__cta, .cta-box__btns { width: 100%; }
}

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

/* ---------- Products grid + detail modal ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.pcard { position: relative; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-7px); border-color: var(--border-2); box-shadow: 0 26px 50px -26px rgba(34,211,238,.45); outline: none; }
.pcard__art { position: relative; height: 158px; display: grid; place-items: center; overflow: hidden; }
.pcard__art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 18px 18px; opacity: .5; }
.pcard__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.pcard__art--1 { background: linear-gradient(135deg, #0ea5b7, #6d28d9); }
.pcard__art--2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.pcard__art--3 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.pcard__icon { position: relative; z-index: 2; color: #fff; opacity: .95; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.pcard__icon svg { width: 40px; height: 40px; }
.pcard__art img ~ .pcard__icon, .modal__media img ~ .pcard__icon { display: none; }
.pcard__body { padding: 20px 22px 22px; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pcard__body h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.14rem; font-weight: 600; }
.pcard__tag { font-family: "JetBrains Mono", monospace; font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--border-2); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pcard__body p { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
.pcard__more { color: var(--cyan); font-weight: 600; font-size: .9rem; }
.pcard__soon { position: absolute; top: 10px; right: 10px; z-index: 3; font-family: "JetBrains Mono", monospace; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: #05060f; font-weight: 600; background: var(--grad); padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 16px -4px rgba(34, 211, 238, 0.6); }

.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3,4,12,.72); backdrop-filter: blur(8px); animation: modal-fade .3s ease; }
.modal__panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(780px, 92vw); max-height: 88vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; background: #0a0e1c; border: 1px solid var(--border-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); animation: modal-pop .35s cubic-bezier(.2,.7,.2,1); }
.modal__media { position: relative; min-height: 220px; display: grid; place-items: center; overflow: hidden; }
.modal__media .pcard__icon--lg svg { width: 64px; height: 64px; }
.modal__body { padding: 32px 30px 34px; }
.modal__tag { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--border-2); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }
.modal__title { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.modal__desc { color: var(--muted); margin-bottom: 18px; }
.modal__features { display: grid; gap: 9px; margin-bottom: 26px; }
.modal__features li { position: relative; padding-left: 26px; color: var(--text); font-size: .95rem; }
.modal__features li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 4px; background: var(--grad); box-shadow: var(--glow-cyan); }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal__close { position: absolute; top: 12px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid var(--border-2); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.modal__close:hover { background: rgba(0,0,0,.7); transform: rotate(90deg); }
@keyframes modal-pop { from { opacity: 0; transform: translate(-50%,-46%) scale(.96); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 680px) {
  .modal__panel { grid-template-columns: 1fr; max-height: 90vh; }
  .modal__media { min-height: 150px; }
}

/* ---------- Showreel ---------- */
.reel2 { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: 50px; align-items: center; }
.reel2__title { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 16px; }
.reel2__lead { color: var(--muted); font-size: 1.06rem; margin-bottom: 26px; max-width: 460px; }
.reel2__video { display: flex; justify-content: center; }
.reel2__video video {
  width: 100%; max-width: 380px; max-height: 76vh; border-radius: var(--radius-lg);
  border: 1px solid var(--border-2); background: #000;
  box-shadow: var(--shadow), 0 0 80px -26px rgba(34, 211, 238, 0.5);
}
@media (max-width: 820px) {
  .reel2 { grid-template-columns: 1fr; gap: 30px; text-align: center; justify-items: center; }
  .reel2__lead { margin-left: auto; margin-right: auto; }
  .reel2__video video { max-width: 320px; }
}

.cta-box__email { display: inline-block; margin-top: 20px; font-family: "JetBrains Mono", monospace; font-size: .92rem; color: var(--cyan); position: relative; z-index: 1; }
.cta-box__email:hover { text-shadow: 0 0 16px rgba(34, 211, 238, 0.6); }

/* ---------- Reviews ---------- */
.reviews { margin-bottom: 40px; }
.reviews__summary { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.reviews__avg { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reviews__stars { color: #f5c518; letter-spacing: 2px; font-size: 1.15rem; }
.reviews__count { color: var(--muted); font-size: .95rem; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.rcard { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.rcard__stars { color: #f5c518; letter-spacing: 2px; margin-bottom: 12px; font-size: 1rem; }
.rcard__text { color: var(--text); font-size: 1rem; line-height: 1.6; margin-bottom: 16px; font-style: italic; }
.rcard__by { font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.rcard__by span { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; font-family: "Inter", sans-serif; margin-top: 2px; }
.reviews__empty { text-align: center; color: var(--muted); padding: 34px 20px; border: 1px dashed var(--border-2); border-radius: var(--radius); background: var(--surface); }

.review-form { max-width: 640px; margin: 0 auto; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-2); }
.review-form__title { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; font-weight: 600; text-align: center; margin-bottom: 20px; }
.review-form__row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.review-form input, .review-form textarea { width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; color: var(--text); font-family: inherit; font-size: .96rem; }
.review-form input { flex: 1 1 200px; }
.review-form input::placeholder, .review-form textarea::placeholder { color: var(--muted-2); }
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.review-form textarea { resize: vertical; margin-bottom: 16px; }
.rate { display: inline-flex; align-items: center; gap: 2px; }
.rate__star { background: none; border: none; cursor: pointer; font-size: 1.6rem; line-height: 1; color: #344063; transition: color .15s ease, transform .15s ease; padding: 0 1px; }
.rate__star:hover { transform: scale(1.15); }
.rate__star.on { color: #f5c518; }
.rate__val { margin-left: 8px; color: var(--muted); font-size: .9rem; }
.review-form .btn { width: 100%; justify-content: center; }
.review-form__note { text-align: center; color: var(--muted-2); font-size: .82rem; margin-top: 12px; }

/* ---------- Start-a-project popup ---------- */
.brief { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(560px, 92vw); max-height: 92vh; overflow: auto; background: #0a0e1c; border: 1px solid var(--border-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px 30px 30px; animation: modal-pop .35s cubic-bezier(.2,.7,.2,1); }
.brief__title { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.brief__sub { color: var(--muted); margin-bottom: 22px; font-size: .98rem; }
.brief__form { display: flex; flex-direction: column; gap: 14px; }
.brief__row { display: flex; gap: 14px; flex-wrap: wrap; }
.brief input, .brief select, .brief textarea { width: 100%; flex: 1 1 200px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; color: var(--text); font-family: inherit; font-size: .96rem; }
.brief select { cursor: pointer; }
.brief select option { background: #0a0e1c; color: var(--text); }
.brief input::placeholder, .brief textarea::placeholder { color: var(--muted-2); }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.brief textarea { resize: vertical; }
.brief .btn { width: 100%; justify-content: center; margin-top: 2px; }
.brief__note { text-align: center; color: var(--muted-2); font-size: .84rem; min-height: 1.1em; margin-top: 4px; }

/* floating "start a project" bubble */
.brief-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #05060f; display: grid; place-items: center;
  box-shadow: 0 14px 34px -8px rgba(34, 211, 238, 0.6);
  animation: fab-float 3s ease-in-out infinite;
  transition: box-shadow .25s ease, filter .25s ease;
}
.brief-fab:hover { filter: brightness(1.08); box-shadow: 0 18px 44px -8px rgba(109, 139, 255, 0.8); }
.brief-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); animation: fab-pulse 2.6s infinite; }
.brief-fab svg { position: relative; }
.brief-fab__label {
  position: absolute; right: 74px; white-space: nowrap;
  background: rgba(8, 11, 24, 0.94); border: 1px solid var(--border-2); color: var(--text);
  padding: 9px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  opacity: 0; transform: translateX(8px); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; box-shadow: var(--shadow);
}
.brief-fab:hover .brief-fab__label, .brief-fab:focus-visible .brief-fab__label { opacity: 1; transform: translateX(0); }
@keyframes fab-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.5); } 70% { box-shadow: 0 0 0 16px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
@media (max-width: 560px) { .brief-fab { width: 54px; height: 54px; right: 16px; bottom: 16px; } }

/* ---------- AI chat widget ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #05060f; display: grid; place-items: center;
  box-shadow: 0 14px 34px -8px rgba(34, 211, 238, 0.6);
  animation: fab-float 3s ease-in-out infinite;
  transition: box-shadow .25s ease, filter .25s ease;
}
.chat-fab:hover { filter: brightness(1.08); box-shadow: 0 18px 44px -8px rgba(109, 139, 255, 0.8); }
.chat-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); animation: fab-pulse 2.6s infinite; }
.chat-fab svg { position: relative; }
.chat-fab__label {
  position: absolute; right: 74px; white-space: nowrap;
  background: rgba(8, 11, 24, 0.94); border: 1px solid var(--border-2); color: var(--text);
  padding: 9px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  opacity: 0; transform: translateX(8px); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; box-shadow: var(--shadow);
}
.chat-fab:hover .chat-fab__label, .chat-fab:focus-visible .chat-fab__label { opacity: 1; transform: translateX(0); }
.chat-fab--hide { opacity: 0; pointer-events: none; animation: none; transform: scale(.6); }
.chatbox { position: fixed; right: 22px; bottom: 22px; z-index: 251; width: min(360px, calc(100vw - 44px)); height: min(70vh, 540px); display: none; flex-direction: column; background: #0a0e1c; border: 1px solid var(--border-2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow), 0 0 60px -20px rgba(34,211,238,.4); }
.chatbox.open { display: flex; animation: chat-in .28s cubic-bezier(.2,.7,.2,1); }
@keyframes chat-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.chatbox__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--border); }
.chatbox__title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .98rem; display: flex; align-items: center; gap: 8px; }
.chatbox__dot { width: 8px; height: 8px; border-radius: 50%; background: #28c840; box-shadow: 0 0 8px #28c840; }
.chatbox__close { background: none; border: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chatbox__close:hover { color: var(--text); }
.chatbox__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cmsg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.cmsg--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--text); }
.cmsg--user { align-self: flex-end; background: var(--grad); color: #05060f; border-bottom-right-radius: 4px; font-weight: 500; }
.cmsg--bot a { color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.cmsg--typing { display: flex; gap: 4px; align-items: center; }
.cmsg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.cmsg--typing span:nth-child(2) { animation-delay: .2s; }
.cmsg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chatbox__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: rgba(255,255,255,.02); }
.chatbox__form input { flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 999px; padding: 11px 16px; color: var(--text); font-family: inherit; font-size: .92rem; }
.chatbox__form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.chatbox__form button { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--grad); color: #05060f; cursor: pointer; display: grid; place-items: center; }
.chatbox__form button:hover { filter: brightness(1.08); }
.cchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.cchip { align-self: flex-start; background: var(--grad); color: #05060f; border: none; border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: .86rem; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(34,211,238,.5); }
.cchip:hover { filter: brightness(1.08); }
@media (max-width: 560px) {
  .chat-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .chatbox { left: 12px; right: 12px; bottom: 12px; width: auto; height: min(74vh, 520px); }
}

/* ---------- Why Nexa ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why__item { padding: 28px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; transition: transform .35s ease, border-color .35s ease; }
.why__item:hover { transform: translateY(-6px); border-color: var(--border-2); }
.why__icon { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--grad-soft); border: 1px solid var(--border); }
.why__item h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.why__item p { color: var(--muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .25s ease; }
.faq__item[open] { border-color: var(--border-2); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.04rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--cyan); font-size: 1.5rem; line-height: 1; transition: transform .25s ease; flex-shrink: 0; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 20px; margin: 0; color: var(--muted); line-height: 1.65; }
