/* =========================================================
   ORBTASOFT — Design System
   Cinematic dark theme, vanilla CSS (no framework)
   ========================================================= */

:root {
  --color-bg: #05070d;
  --color-bg-elevated: #0a101d;
  --color-surface: #10182b;
  --color-card-from: #162c6d;
  --color-card-to: #0a101d;
  --color-foreground: #f4f6fb;
  --color-muted: #97a3c4;
  --color-accent: #3b82f6;
  --color-accent-strong: #60a5fa;
  --color-border: rgba(255, 255, 255, 0.08);
  --font-latin: 'Inter', 'Cairo', sans-serif;
  --font-arabic: 'Cairo', 'Inter', sans-serif;
  --container-w: 1240px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-foreground);
  font-family: var(--font-latin);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-rtl { font-family: var(--font-arabic); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

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

/* ---------- Film grain overlay ---------- */
.site-grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 200; opacity: 0.045; mix-blend-mode: overlay;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

.bg-grid {
  position: absolute; inset: 0;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(244,246,251,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,246,251,0.05) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 14px; font-weight: 700; font-size: 15px;
  border: none; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .4s var(--ease-out);
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: 14px; border-radius: 12px; }
.btn--primary {
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  color: #0f172a;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.1), 0 12px 24px -4px rgba(0,0,0,.3), inset 0 1px 1px #fff;
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 6px 12px -2px rgba(0,0,0,.15), 0 20px 32px -6px rgba(0,0,0,.4), inset 0 1px 1px #fff; }
.btn--secondary {
  background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 2px 4px rgba(0,0,0,.6), 0 12px 24px -4px rgba(0,0,0,.9), inset 0 1px 1px rgba(255,255,255,.15);
}
.btn--secondary:hover { transform: translateY(-3px); background: linear-gradient(180deg, #3f3f46 0%, #27272a 100%); }
.btn--outline {
  background: transparent; color: var(--color-foreground);
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1px var(--color-accent); color: var(--color-accent-strong); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding-block: 20px;
  transition: padding .3s var(--ease-out), background .3s var(--ease-out), backdrop-filter .3s var(--ease-out);
}
.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(5, 7, 13, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand__mark { display: inline-flex; width: 22px; height: 22px; color: var(--color-accent-strong); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { font-size: 18px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switcher { position: relative; }
.lang-switcher__trigger {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--color-border); background: transparent; color: var(--color-foreground);
  font-size: 13px; font-weight: 700; transition: border-color .25s ease, background .25s ease;
}
.lang-switcher__trigger:hover { border-color: var(--color-accent); background: rgba(59,130,246,.08); }
.lang-switcher__trigger svg { width: 15px; height: 15px; }
.lang-switcher__trigger svg:last-child { transition: transform .25s ease; }
.lang-switcher.is-open .lang-switcher__trigger svg:last-child { transform: rotate(180deg); }

.lang-switcher__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 140px; z-index: 60;
  background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: 14px; padding: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.lang-switcher.is-open .lang-switcher__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-switcher__menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--color-muted); }
.lang-switcher__menu a:hover { background: rgba(255,255,255,.06); color: var(--color-foreground); }
.lang-switcher__menu a.is-active { color: var(--color-accent-strong); }
.header-cta { display: none; }

/* Menu trigger button (always visible, opens the popout) */
.menu-trigger {
  display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--color-border);
  border-radius: 999px; padding: 9px 18px 9px 16px; color: var(--color-foreground); transition: border-color .25s ease, background .25s ease;
}
.menu-trigger:hover { border-color: var(--color-accent); background: rgba(59,130,246,.08); }
.menu-trigger__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.menu-trigger__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s ease, width .3s ease; }
.menu-trigger__bars span:last-child { width: 12px; margin-inline-start: auto; }
.menu-trigger__label { font-size: 13px; font-weight: 700; }
.menu-trigger[aria-expanded="true"] .menu-trigger__bars span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-trigger[aria-expanded="true"] .menu-trigger__bars span:last-child { width: 18px; transform: translateY(-3px) rotate(-45deg); }

@media (min-width: 981px) { .header-cta { display: inline-flex; } }

/* ---------- Popout menu (full-screen) ---------- */
.popout-menu {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
}
.popout-menu.is-open { visibility: visible; pointer-events: auto; }
.popout-menu__backdrop {
  position: absolute; inset: 0; background: rgba(4, 6, 12, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s ease;
}
.popout-menu.is-open .popout-menu__backdrop { opacity: 1; }

.popout-menu__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(94vw, 620px);
  background: linear-gradient(160deg, #0d1424 0%, #05070d 100%);
  border-inline-start: 1px solid var(--color-border);
  box-shadow: -40px 0 100px -20px rgba(0,0,0,.8);
  display: flex; flex-direction: column; padding: 28px clamp(24px, 5vw, 64px);
  transform: translateX(105%); transition: transform .55s var(--ease-out);
  overflow: hidden;
}
body.is-rtl .popout-menu__panel { transform: translateX(-105%); }
.popout-menu.is-open .popout-menu__panel { transform: translateX(0); }

.popout-menu__top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; margin-block-end: clamp(18px, 4vh, 36px); }
.menu-close {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); background: transparent;
  position: relative; color: var(--color-foreground); transition: border-color .25s ease, background .25s ease;
}
.menu-close:hover { border-color: var(--color-accent); background: rgba(59,130,246,.08); }
.menu-close span { position: absolute; top: 50%; inset-inline-start: 50%; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.popout-menu__nav {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding-inline-end: 10px; margin-inline-end: -10px;
  scrollbar-width: thin; scrollbar-color: rgba(96,165,250,.4) transparent;
}
.popout-menu__nav::-webkit-scrollbar { width: 6px; }
.popout-menu__nav::-webkit-scrollbar-track { background: transparent; }
.popout-menu__nav::-webkit-scrollbar-thumb { background: rgba(96,165,250,.35); border-radius: 999px; }
.popout-menu__nav::-webkit-scrollbar-thumb:hover { background: rgba(96,165,250,.6); }
.popout-menu__nav ul { display: flex; flex-direction: column; }
.popout-item { border-bottom: 1px solid var(--color-border); }
.popout-item a {
  display: flex; align-items: baseline; gap: 18px; padding-block: 14px; font-size: clamp(1.4rem, 3.6vw, 2.15rem);
  font-weight: 800; letter-spacing: -0.02em; color: var(--color-muted); transition: color .3s ease, gap .3s ease;
}
.popout-item a:hover, .popout-item a.is-active { color: var(--color-foreground); gap: 26px; }
.popout-item a:hover .popout-item__index, .popout-item a.is-active .popout-item__index { color: var(--color-accent-strong); }
.popout-item__index { font-size: .95rem; font-weight: 700; color: var(--color-border); font-family: monospace; }

.popout-menu__bottom {
  flex: 0 0 auto; margin-block-start: 20px; padding-block-start: 20px; border-block-start: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 16px;
}
.popout-cta { align-self: flex-start; }
.popout-account { display: flex; align-items: center; gap: 14px; font-size: .88rem; color: var(--color-muted); flex-wrap: wrap; }
.popout-account strong { color: var(--color-foreground); }
.popout-account a { color: var(--color-accent-strong); font-weight: 600; }
.popout-account a:hover { text-decoration: underline; }
.popout-account-link { font-size: .95rem; font-weight: 700; color: var(--color-foreground); align-self: flex-start; }
.popout-account-link:hover { color: var(--color-accent-strong); }

.welcome-toast {
  position: fixed; top: 90px; inset-inline: 0; margin-inline: auto; width: fit-content; z-index: 150;
  display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.4); color: #4ade80; font-weight: 600; font-size: .9rem;
  opacity: 0; transform: translateY(-12px); transition: opacity .4s ease, transform .4s ease;
}
.welcome-toast.is-visible { opacity: 1; transform: translateY(0); }

/* Staggered reveal for menu items — plain CSS, works even if GSAP fails to load */
.popout-item, .popout-menu__bottom > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.popout-menu.is-open .popout-item, .popout-menu.is-open .popout-menu__bottom > * { opacity: 1; transform: translateY(0); }
.popout-item:nth-child(1) { transition-delay: .05s; }
.popout-item:nth-child(2) { transition-delay: .1s; }
.popout-item:nth-child(3) { transition-delay: .15s; }
.popout-item:nth-child(4) { transition-delay: .2s; }
.popout-item:nth-child(5) { transition-delay: .25s; }
.popout-menu__bottom > *:nth-child(1) { transition-delay: .3s; }
.popout-menu__bottom > *:nth-child(2) { transition-delay: .35s; }

@media (max-width: 560px) {
  .popout-item a { font-size: 1.5rem; padding-block: 14px; }
  .popout-menu__panel { width: 100vw; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  overflow: hidden; padding-block: 140px 32px;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.8; }
.hero__inner {
  position: relative; z-index: 2; grid-row: 1; align-self: center;
  width: 100%; max-width: var(--container-w); margin-inline: auto; padding-inline: 24px;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--color-border); background: rgba(255,255,255,.03); color: var(--color-muted);
  font-size: 13px; font-weight: 600; margin-block-end: 28px;
}
.hero__eyebrow span.dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.text-track { color: var(--color-foreground); text-shadow: 0 10px 30px rgba(244,246,251,.15); }
.text-silver {
  background: linear-gradient(180deg, #ffffff 0%, rgba(244,246,251,.4) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px rgba(244,246,251,.12));
}

.hero__desc {
  max-width: 620px; margin: 28px auto 40px; color: var(--color-muted); font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.hero__scroll-cue {
  position: relative; grid-row: 2; z-index: 2; margin-inline: auto; width: fit-content;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--color-muted);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.hero__scroll-cue .stem { width: 1px; height: 36px; background: linear-gradient(var(--color-muted), transparent); }

/* ---------- Hero variant: Aurora ---------- */
.hero-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: .55; }
.hero-aurora__layer {
  position: absolute; inset: -50%; display: block;
  background: repeating-linear-gradient(100deg, #8b5cf6 10%, #3b82f6 15%, #ec4899 20%, #8b5cf6 25%, #3b82f6 30%);
  background-size: 300% 100%;
  filter: blur(80px);
  animation: hero-aurora-drift 22s linear infinite;
}
.hero-aurora__layer--2 {
  mix-blend-mode: difference; opacity: .5; filter: blur(60px);
  animation-duration: 16s; animation-direction: reverse;
}
@keyframes hero-aurora-drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero--aurora::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(5,7,13,.88) 100%);
}
.hero-title--stagger .hero-word { display: inline-block; will-change: transform, filter, opacity; }

/* ---------- Hero variant: Geometric shapes ---------- */
.hero-shapes { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-shape {
  position: absolute; display: block; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(90deg, rgba(96,165,250,.16), transparent 70%);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 32px rgba(255,255,255,.06);
  animation: hero-shape-float 12s ease-in-out infinite;
}
.hero-shape--1 { width: 460px; height: 120px; inset-inline-start: -8%; top: 16%; --rot: 12deg; background: linear-gradient(90deg, rgba(99,102,241,.18), transparent 70%); }
.hero-shape--2 { width: 380px; height: 100px; inset-inline-end: -4%; top: 68%; --rot: -15deg; background: linear-gradient(90deg, rgba(244,114,182,.16), transparent 70%); animation-delay: .6s; }
.hero-shape--3 { width: 240px; height: 70px; inset-inline-start: 8%; bottom: 8%; --rot: -8deg; background: linear-gradient(90deg, rgba(167,139,250,.16), transparent 70%); animation-delay: .3s; }
.hero-shape--4 { width: 160px; height: 50px; inset-inline-end: 18%; top: 12%; --rot: 20deg; background: linear-gradient(90deg, rgba(251,191,36,.16), transparent 70%); animation-delay: .8s; }
.hero-shape--5 { width: 130px; height: 36px; inset-inline-start: 24%; top: 6%; --rot: -25deg; background: linear-gradient(90deg, rgba(45,212,191,.16), transparent 70%); animation-delay: .45s; }
@keyframes hero-shape-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(16px) rotate(var(--rot, 0deg)); }
}
.hero--shapes::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(5,7,13,.6) 100%);
}
@media (max-width: 767px) {
  .hero-shape--1, .hero-shape--2 { width: 260px; height: 70px; }
  .hero-shape--3, .hero-shape--4, .hero-shape--5 { display: none; }
}

/* ---------- Logo cloud (Partners) ---------- */
.logo-cloud-section { padding-block: 50px; }
.logo-cloud-section__head { text-align: center; margin-block-end: 36px; }
.logo-cloud-section__kicker { display: block; font-size: 1rem; font-weight: 500; color: var(--color-muted); margin-block-end: 6px; }
.logo-cloud-section__title { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 900; letter-spacing: -0.02em; }

.logo-cloud {
  position: relative; margin-inline: auto; max-width: 900px; padding-block: 24px; overflow: hidden;
  direction: ltr;
}
.logo-cloud::before, .logo-cloud::after {
  content: ''; position: absolute; inset-inline: 0; height: 1px; background: var(--color-border);
}
.logo-cloud::before { top: 0; }
.logo-cloud::after { bottom: 0; }
@media (min-width: 768px) { .logo-cloud { border-inline: 1px solid var(--color-border); } }

.logo-track {
  display: flex; align-items: center; gap: 42px; width: max-content;
  animation: logo-marquee 32s linear infinite;
}
body.is-rtl .logo-track { animation-direction: reverse; }
.logo-track:hover { animation-play-state: paused; }
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-item { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; opacity: 0.75; transition: opacity .25s ease; }
.logo-item:hover { opacity: 1; }
.logo-item__mark { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.logo-wordmark {
  font-size: 1.15rem; letter-spacing: -0.01em; color: var(--color-foreground);
  white-space: nowrap; user-select: none;
}

.logo-cloud__blur { position: absolute; top: 0; height: 100%; width: 120px; pointer-events: none; z-index: 2; }
.logo-cloud__blur--left { left: 0; background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%); }
.logo-cloud__blur--right { right: 0; background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%); }
.logo-cloud__blur span {
  position: absolute; inset: 0; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.logo-cloud__blur--left span { mask-image: linear-gradient(to right, black 0%, transparent 85%); -webkit-mask-image: linear-gradient(to right, black 0%, transparent 85%); }
.logo-cloud__blur--right span { mask-image: linear-gradient(to left, black 0%, transparent 85%); -webkit-mask-image: linear-gradient(to left, black 0%, transparent 85%); }

/* ---------- Premium card (device showcase) ---------- */
.showcase { position: relative; padding-block: 60px 140px; }
.showcase__inner { display: flex; justify-content: center; }
.premium-card {
  position: relative; overflow: hidden; width: min(100%, 1100px); border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-card-from) 0%, var(--color-card-to) 100%);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), 0 20px 40px -20px rgba(0,0,0,.8), inset 0 1px 2px rgba(255,255,255,.2), inset 0 -2px 4px rgba(0,0,0,.8);
  border: 1px solid rgba(255,255,255,.04);
  padding: 56px 40px;
}
.premium-card__sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.08) 0%, transparent 40%);
  mix-blend-mode: screen;
}
.premium-card__grid { position: relative; z-index: 2; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .premium-card__grid { grid-template-columns: 1fr 1.1fr 1fr; gap: 32px; } }

.premium-card__brand { text-align: center; }
.premium-card__brand h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.8));
}
@media (min-width: 1024px) { .premium-card__brand { text-align: end; order: 3; } }

.premium-card__copy { order: 3; text-align: center; }
@media (min-width: 1024px) { .premium-card__copy { order: 1; text-align: start; } }
.premium-card__copy h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; margin-block-end: 16px; }
.premium-card__copy p { color: rgba(219, 234, 254, .7); font-size: 1rem; line-height: 1.7; }
.premium-card__copy .text-accent-strong { color: #fff; font-weight: 700; }

/* device mockup: code editor window */
.device { order: 2; position: relative; display: flex; justify-content: center; perspective: 1200px; padding-block: 48px; }
.device__frame {
  width: min(100%, 460px); border-radius: 18px; overflow: hidden; will-change: transform;
  background: #0d1424; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 80px -15px rgba(0,0,0,.9), 0 15px 25px -5px rgba(0,0,0,.7);
  direction: ltr;
}
.device__topbar { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 14px 16px; background: #10182b; border-bottom: 1px solid rgba(255,255,255,.06); }
.device__topbar span { width: 11px; height: 11px; border-radius: 50%; }
.device__topbar span:nth-child(1) { background: #ff5f56; }
.device__topbar span:nth-child(2) { background: #ffbd2e; }
.device__topbar span:nth-child(3) { background: #27c93f; }
.device__body {
  padding: 22px 20px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.9; min-height: 320px;
  direction: ltr; text-align: left; unicode-bidi: isolate;
}
.device__body .c1 { color: #ff79c6; }
.device__body .c2 { color: #8be9fd; }
.device__body .c3 { color: #50fa7b; }
.device__body .c4 { color: #f1fa8c; }
.device__body .c5 { color: #6272a4; }
.device__caret { display: inline-block; width: 7px; height: 15px; background: var(--color-accent); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.device__metric {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid rgba(255,255,255,.05); border-radius: 14px;
}
.device__metric .val { font-size: 1.6rem; font-weight: 800; color: #fff; }
.device__metric .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(219,234,254,.5); }

.floating-badge {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.01) 100%);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.8), inset 0 1px 1px rgba(255,255,255,.2);
  z-index: 6; isolation: isolate;
}
.floating-badge__icon {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(59,130,246,.2), rgba(23,37,84,.1)); border: 1px solid rgba(96,165,250,.3);
  color: var(--color-accent-strong); flex-shrink: 0;
}
.floating-badge__icon svg { width: 18px; height: 18px; }
.floating-badge__title { font-size: 13px; font-weight: 700; color: #fff; }
.floating-badge__sub { font-size: 11px; color: rgba(191,219,254,.5); }
.badge-tl { top: 0; inset-inline-start: 6%; transform: translateY(-40%); }
.badge-br { bottom: 0; inset-inline-end: 6%; transform: translateY(40%); }
@media (max-width: 1023px) { .badge-tl, .badge-br { display: none; } }

/* ---------- Section shell ---------- */
.section { padding-block: 110px; position: relative; }
.section--tight { padding-block: 80px; }
.section__head { text-align: center; max-width: 640px; margin-inline: auto; margin-block-end: 64px; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-accent-strong); margin-block-end: 14px;
}
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-block-end: 16px; }
.section__head p { color: var(--color-muted); font-size: 1.05rem; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-card {
  display: block; color: inherit; text-decoration: none;
  padding: 32px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border);
  transition: transform .35s var(--ease-out), border-color .35s ease, background .35s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(96,165,250,.3); background: #131c33; }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(59,130,246,.25), rgba(59,130,246,.05)); color: var(--color-accent-strong);
  margin-block-end: 20px;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-block-end: 10px; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-block-start: 14px; font-size: 13px; font-weight: 700;
  color: var(--color-accent-strong);
}
.service-detail__icon {
  width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(59,130,246,.25), rgba(59,130,246,.05)); color: var(--color-accent-strong);
  margin-block-end: 20px;
}
.service-card p { color: var(--color-muted); font-size: .95rem; line-height: 1.7; }

/* ---------- Hover slider (expertise) ---------- */
.hover-slider-section { background: var(--color-bg-elevated); }
.hover-slider { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hover-slider { grid-template-columns: 1fr 1fr; gap: 64px; } }

.hover-slider__list { display: flex; flex-direction: column; }
.hover-slider__item {
  display: flex; align-items: baseline; gap: 18px; padding-block: 16px; border-block-end: 1px solid var(--color-border);
  background: transparent; border-inline: none; border-block-start: none; text-align: start; cursor: pointer;
  font-family: inherit;
}
.hover-slider__item:first-child { border-block-start: 1px solid var(--color-border); }
.hover-slider__index { font-family: monospace; font-size: .85rem; font-weight: 700; color: var(--color-border); }
.hover-slider__item.is-active .hover-slider__index { color: var(--color-accent-strong); }

.hover-slider__label {
  position: relative; display: inline-block; font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800;
  letter-spacing: -0.02em; text-transform: uppercase; color: var(--color-muted);
}
.hover-slider__item.is-active .hover-slider__label { color: var(--color-foreground); }
.hover-slider__char { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.hover-slider__char-rest, .hover-slider__char-top {
  display: inline-block; transition: transform .35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-slider__char-rest { opacity: .35; }
.hover-slider__char-top { position: absolute; inset-inline-start: 0; top: 0; transform: translateY(110%); }
.hover-slider__item.is-active .hover-slider__char-rest { transform: translateY(-110%); }
.hover-slider__item.is-active .hover-slider__char-top { transform: translateY(0); }

.hover-slider__images {
  position: relative; aspect-ratio: 4/3.2; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border);
}
.hover-slider__image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  transition: clip-path .7s cubic-bezier(0.33, 1, 0.68, 1);
}
.hover-slider__image.is-active { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }

/* ---------- Stack strip ---------- */
.stack-strip { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.stack-track { display: flex; gap: 16px; width: max-content; }
.stack-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  border: 1px solid var(--color-border); background: var(--color-surface); font-weight: 700; font-size: .95rem;
  color: var(--color-muted); white-space: nowrap;
}
.stack-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }

/* ---------- Creative work gallery (horizontal scroll) ---------- */
.work-gallery { position: relative; }
.work-gallery__pin { position: relative; overflow: hidden; }
.work-gallery__track {
  display: flex; gap: 28px; width: max-content; padding-inline: max(24px, calc((100vw - var(--container-w)) / 2));
  will-change: transform;
}
.work-card {
  position: relative; flex: 0 0 auto; width: min(78vw, 460px); height: min(64vh, 520px);
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border);
  display: block; color: inherit; text-decoration: none;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.work-card:hover img { transform: scale(1.08) rotate(-1deg); }
.work-card__index {
  position: absolute; top: 20px; inset-inline-end: 24px; font-family: monospace; font-weight: 700; font-size: 13px;
  color: rgba(255,255,255,.55); z-index: 2;
}
.work-card__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
  background: linear-gradient(0deg, rgba(5,7,13,.95) 12%, rgba(5,7,13,.05) 75%);
}
.work-card__tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--color-accent-strong); margin-block-end: 8px; }
.work-card__title { font-size: 1.5rem; font-weight: 800; margin-block-end: 12px; }
.work-card__link { font-size: 13px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.work-card--cta {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: 40px;
  background: linear-gradient(145deg, var(--color-card-from) 0%, var(--color-card-to) 100%);
}
.work-card--cta h3 { font-size: 1.6rem; font-weight: 800; }
.work-card--cta p { color: rgba(219,234,254,.7); font-size: .95rem; }

.work-gallery__hint {
  display: flex; align-items: center; gap: 10px; color: var(--color-muted); font-size: 13px; font-weight: 600;
  margin-block-start: 28px;
}
.work-gallery__hint .arrow { width: 34px; height: 1px; background: var(--color-muted); position: relative; }
.work-gallery__hint .arrow::after {
  content: ''; position: absolute; inset-inline-end: 0; top: -3px; width: 7px; height: 7px;
  border-inline-end: 1px solid var(--color-muted); border-block-start: 1px solid var(--color-muted); transform: rotate(45deg);
}
body.is-rtl .work-gallery__hint .arrow::after { transform: rotate(-135deg); }

.work-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 32px; }
.work-filter__btn {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--color-border); background: transparent;
  color: var(--color-muted); font-size: .85rem; font-weight: 600; transition: all .2s ease;
}
.work-filter__btn:hover { border-color: var(--color-accent); color: var(--color-foreground); }
.work-filter__btn.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.work-card.is-filtered-out { display: none; }

@media (max-width: 899px) {
  .work-gallery__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 12px; }
  .work-card { scroll-snap-align: start; }
  .work-gallery__track::-webkit-scrollbar { height: 6px; }
}

.section__foot { text-align: center; margin-block-start: 48px; }

/* ---------- About / stats ---------- */
.about-grid { display: grid; gap: 60px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-block-end: 20px; letter-spacing: -0.02em; }
.about-copy p { color: var(--color-muted); font-size: 1.05rem; line-height: 1.8; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.stat-card {
  padding: 28px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border);
  text-align: center;
}
.stat-card .val {
  font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 900;
  background: linear-gradient(180deg, #fff, rgba(244,246,251,.5)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .lbl { color: var(--color-muted); font-size: .9rem; margin-block-start: 6px; }

/* ---------- CTA ---------- */
.cta-section { position: relative; padding-block: 40px 140px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center; padding: 80px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-card-from) 0%, var(--color-card-to) 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), inset 0 1px 2px rgba(255,255,255,.15);
}
.cta-card h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 800; margin-block-end: 18px; color: #fff; }
.cta-card p { color: rgba(219,234,254,.7); font-size: 1.05rem; max-width: 520px; margin: 0 auto 36px; }
.cta-card .hero__actions { justify-content: center; }

/* ---------- Circular testimonials ---------- */
.testimonials-grid { display: grid; gap: 56px; max-width: 1000px; margin-inline: auto; align-items: center; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

.testimonial-images { position: relative; height: 22rem; }
.testimonial-avatar {
  position: absolute; inset: 0; border-radius: 1.5rem; box-shadow: 0 20px 40px rgba(0,0,0,.5); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 4.5rem; font-weight: 800;
  color: rgba(255,255,255,.92); opacity: 0; pointer-events: none;
  transition: transform .8s cubic-bezier(.4,2,.3,1), opacity .8s cubic-bezier(.4,2,.3,1);
}
.testimonial-avatar.is-active { z-index: 3; opacity: 1; pointer-events: auto; transform: translateX(0) translateY(0) scale(1) rotateY(0deg); }
.testimonial-avatar.is-left { z-index: 2; opacity: 1; pointer-events: auto; transform: translateX(-56px) translateY(-22px) scale(.85) rotateY(15deg); }
.testimonial-avatar.is-right { z-index: 2; opacity: 1; pointer-events: auto; transform: translateX(56px) translateY(-22px) scale(.85) rotateY(-15deg); }

.testimonial-content { display: flex; flex-direction: column; }
.testimonial-name { font-weight: 700; font-size: 1.4rem; margin-block-end: 4px; }
.testimonial-role { color: var(--color-muted); margin-block-end: 28px; }
.testimonial-quote { line-height: 1.8; font-size: 1.05rem; color: var(--color-foreground); min-height: 5.5em; }
.testimonial-quote .word {
  display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(5px);
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.testimonial-quote.is-in .word { opacity: 1; filter: blur(0); transform: translateY(0); }

.testimonial-avatar__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.testimonial-arrows { display: flex; gap: 20px; padding-block-start: 32px; }
.testimonial-arrow {
  width: 2.7rem; height: 2.7rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-surface); color: var(--color-foreground); border: 1px solid var(--color-border);
  cursor: pointer; transition: background-color .3s ease, border-color .3s ease;
}
.testimonial-arrow:hover { background: var(--color-accent); border-color: var(--color-accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-info h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 800; margin-block-end: 16px; }
.contact-info p { color: var(--color-muted); font-size: 1.05rem; line-height: 1.8; margin-block-end: 32px; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-block-end: 18px; color: var(--color-muted); }
.contact-detail .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--color-surface); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; }

.contact-form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 36px; }
.form-row { margin-block-end: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: .85rem; font-weight: 600; color: var(--color-muted); }
.form-row input, .form-row textarea {
  background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: 12px; padding: 14px 16px;
  color: var(--color-foreground); font-family: inherit; font-size: .95rem; transition: border-color .25s ease, box-shadow .25s ease;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-status { margin-block-start: 16px; padding: 12px 16px; border-radius: 10px; font-size: .9rem; display: none; }
.form-status.is-success { display: block; background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.form-status.is-error { display: block; background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.contact-form button[type="submit"] { width: 100%; }

/* ---------- Team marquee ---------- */
.team-section { position: relative; }
.team-section__head { max-width: 640px; margin-inline: auto; text-align: center; margin-block-end: 56px; }
.team-section__icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-inline: auto; margin-block-end: 22px;
}
.team-section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; margin-block-end: 14px; }
.team-section__head p { color: var(--color-muted); }

.team-marquee { position: relative; overflow: hidden; direction: ltr; }
.team-marquee__fade { position: absolute; top: 0; height: 100%; width: 120px; z-index: 2; pointer-events: none; }
.team-marquee__fade--start { left: 0; background: linear-gradient(to right, var(--color-bg), transparent); }
.team-marquee__fade--end { right: 0; background: linear-gradient(to left, var(--color-bg), transparent); }
.team-marquee__track { display: flex; gap: 24px; width: max-content; animation: team-marquee 42s linear infinite; }
.team-marquee__track:hover { animation-play-state: paused; }
@keyframes team-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.team-card { flex: 0 0 auto; width: 220px; }
.team-card__avatar {
  position: relative; height: 260px; width: 100%; border-radius: 20px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(1); transition: filter .35s ease;
}
.team-card:hover .team-card__avatar { filter: grayscale(0); }
.team-card__initials { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.9); }
.team-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card__info {
  position: absolute; bottom: 8px; inset-inline: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(5,7,13,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.team-card__info h3 { font-size: .95rem; font-weight: 700; color: #fff; }
.team-card__info p { font-size: .8rem; color: rgba(226,232,240,.7); margin-block-start: 2px; }

.team-quote { max-width: 720px; margin: 80px auto 0; text-align: center; }
.team-quote__text { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; line-height: 1.7; margin-block-end: 32px; }
.team-quote__author { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.team-quote__avatar {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1.1rem;
}
.team-quote__author p:first-child { font-weight: 700; }
.team-quote__author p:last-child { color: var(--color-muted); font-size: .9rem; }

/* ---------- Newsletter (orbit signup) ---------- */
.newsletter-section { position: relative; overflow: hidden; padding-block: 120px; text-align: center; }
.newsletter-orbits {
  position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-block-start: 6%;
  pointer-events: none; z-index: 0;
}
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(96,165,250,.22); }
.orbit::before {
  content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px;
  border-radius: 50%; background: var(--color-accent-strong); box-shadow: 0 0 12px var(--color-accent-strong);
}
.orbit--1 { width: 260px; height: 260px; animation: orbit-spin-cw 34s linear infinite; }
.orbit--2 { width: 440px; height: 440px; border-color: rgba(96,165,250,.14); animation: orbit-spin-ccw 50s linear infinite; }
.orbit--3 { width: 620px; height: 620px; border-color: rgba(96,165,250,.08); animation: orbit-spin-cw 66s linear infinite; }
@keyframes orbit-spin-cw { to { transform: rotate(360deg); } }
@keyframes orbit-spin-ccw { to { transform: rotate(-360deg); } }
.orbit-core {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: var(--color-accent-strong);
  background: linear-gradient(160deg, var(--color-card-from), var(--color-card-to));
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 60px -10px rgba(59,130,246,.55);
}
.orbit-core svg { width: 28px; height: 28px; }

.newsletter-content { position: relative; z-index: 2; max-width: 560px; margin-inline: auto; }
.newsletter-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-block: 28px 14px; letter-spacing: -0.02em; }
.newsletter-content p { color: var(--color-muted); margin-block-end: 36px; }

.newsletter-form-wrap { position: relative; height: 64px; max-width: 460px; margin-inline: auto; }
.newsletter-form, .newsletter-success { position: absolute; inset: 0; display: flex; transition: opacity .4s ease, transform .4s ease; }
.newsletter-form { gap: 10px; }
.newsletter-form input {
  flex: 1; min-width: 0; height: 100%; padding-inline: 22px; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-surface); color: var(--color-foreground); font-size: .95rem; font-family: inherit;
}
.newsletter-form input:focus { outline: none; border-color: var(--color-accent); }
.newsletter-form button {
  height: 100%; padding-inline: 26px; border-radius: 999px; border: none; font-weight: 700; font-family: inherit;
  background: var(--color-accent); color: #fff; white-space: nowrap; transition: filter .2s ease, transform .2s ease;
}
.newsletter-form button:hover { filter: brightness(1.12); }
.newsletter-form button:active { transform: scale(.97); }
.newsletter-form button:disabled { opacity: .6; cursor: wait; }

.newsletter-success {
  align-items: center; justify-content: center; gap: 10px; border-radius: 999px; background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.4); color: #4ade80; font-weight: 700; opacity: 0; transform: scale(.95); pointer-events: none;
}
.newsletter-success__icon { display: inline-flex; }
.newsletter-success__icon svg { width: 18px; height: 18px; }
.newsletter-form-wrap.is-success .newsletter-form { opacity: 0; transform: scale(.95); pointer-events: none; }
.newsletter-form-wrap.is-success .newsletter-success { opacity: 1; transform: scale(1); pointer-events: auto; }

.confetti-canvas {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px;
  max-width: none; pointer-events: none; z-index: 5;
}

@media (max-width: 480px) {
  .newsletter-form-wrap { height: auto; }
  .newsletter-form { position: static; flex-direction: column; gap: 12px; }
  .newsletter-form input, .newsletter-form button { height: 54px; }
  .newsletter-success { position: static; height: 54px; }
  .newsletter-form-wrap.is-success .newsletter-form { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding-block: 64px 28px; background: var(--color-bg-elevated); }
.site-footer__grid {
  display: grid; gap: 40px; margin-block-end: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer__brand p { color: var(--color-muted); font-size: .9rem; margin-block-start: 10px; max-width: 280px; line-height: 1.6; }
.site-footer__col h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-foreground); margin-block-end: 18px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { color: var(--color-muted); font-size: .9rem; }
.site-footer__col a:hover { color: var(--color-accent-strong); }
.site-footer__social { display: flex; gap: 12px; align-items: center; margin-block-start: 20px; }
.site-footer__social a {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-muted); transition: color .2s ease, border-color .2s ease;
}
.site-footer__social a:hover { color: var(--color-accent-strong); border-color: rgba(96,165,250,.4); }
.site-footer__contact-item { display: flex; align-items: center; gap: 10px; color: var(--color-muted); font-size: .88rem; }
.site-footer__contact-item svg { flex-shrink: 0; color: var(--color-accent-strong); width: 18px; height: 18px; }
.site-footer__cta { align-self: flex-start; margin-block-start: 6px; }
.site-footer__bottom { border-top: 1px solid var(--color-border); padding-block-start: 24px; font-size: .82rem; color: var(--color-muted); text-align: center; }

/* ---------- Auth pages (login / register) ---------- */
.auth-page { display: flex; min-height: 100svh; }
.auth-page__form { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; padding: 140px 32px 40px; }
.auth-page__form-inner { width: 100%; max-width: 420px; }
.auth-page__form-inner h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; margin-block-end: 12px; }
.auth-page__form-inner > p { color: var(--color-muted); margin-block-end: 32px; }

.auth-page__hero { position: relative; flex: 1 1 50%; display: none; }
@media (min-width: 900px) { .auth-page__hero { display: block; } }
.auth-page__hero-bg {
  position: absolute; inset: 16px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--color-card-from) 0%, var(--color-card-to) 100%);
}
.auth-page__hero-brand {
  position: absolute; top: 40px; inset-inline-start: 40px; display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: #fff; font-size: 1.1rem;
}
.auth-testimonial-stack {
  position: absolute; bottom: 32px; inset-inline: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.auth-testimonial-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; width: 240px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
}
.auth-testimonial-card__avatar {
  position: relative; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #fff; overflow: hidden;
}
.auth-testimonial-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-testimonial-card p { font-size: .8rem; line-height: 1.5; }
.auth-testimonial-card .name { font-weight: 700; color: #fff; }
.auth-testimonial-card .role { color: rgba(219,234,254,.55); margin-block-end: 4px; }
.auth-testimonial-card .text { color: rgba(226,232,240,.8); }

.auth-field-row { position: relative; }
.auth-field-row .toggle-password {
  position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 14px; background: transparent; border: none;
  color: var(--color-muted); display: flex; padding: 4px;
}
.auth-field-row .toggle-password:hover { color: var(--color-foreground); }
.auth-field-row input { padding-inline-end: 44px; }

.auth-options { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; margin-block: 4px 24px; }
.auth-options label { display: flex; align-items: center; gap: 8px; color: var(--color-muted); cursor: pointer; }
.auth-options a { color: var(--color-accent-strong); }
.auth-options a:hover { text-decoration: underline; }

.auth-divider { position: relative; text-align: center; margin-block: 24px; }
.auth-divider::before { content: ''; position: absolute; top: 50%; inset-inline: 0; height: 1px; background: var(--color-border); }
.auth-divider span { position: relative; background: var(--color-bg); padding-inline: 14px; font-size: .82rem; color: var(--color-muted); }

.auth-footer-link { text-align: center; margin-block-start: 24px; color: var(--color-muted); font-size: .9rem; }
.auth-footer-link a { color: var(--color-accent-strong); font-weight: 600; }
.auth-footer-link a:hover { text-decoration: underline; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-block: 160px 80px; text-align: center; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
.page-hero p { color: var(--color-muted); max-width: 560px; margin: 20px auto 0; font-size: 1.05rem; }

/* ---------- 404 page ---------- */
.error-404 {
  min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 140px 32px 40px; position: relative; overflow: hidden;
}
.error-404__inner { position: relative; z-index: 1; max-width: 560px; }
.error-404__row { display: flex; align-items: center; justify-content: center; gap: 24px; margin-block-end: 40px; }
.error-404__digit { font-size: clamp(3.5rem, 10vw, 6rem); font-weight: 800; color: rgba(244,246,251,.8); user-select: none; }
.error-404__globe-wrap {
  position: relative; width: clamp(96px, 16vw, 140px); height: clamp(96px, 16vw, 140px);
  animation: error-404-float 5s ease-in-out infinite alternate;
}
@keyframes error-404-float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.globe-canvas-host { position: relative; width: 100%; height: 100%; }
.globe-canvas-host canvas {
  width: 100%; height: 100%; contain: layout paint size; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #3b5a9e, #0a1120 72%);
}

.error-404 h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; margin-block-end: 16px; }
.error-404 p { color: var(--color-muted); font-size: 1.05rem; margin-block-end: 40px; }

.error-404-fade { opacity: 0; transform: translateY(20px); animation: error-404-fade-up .9s ease-out forwards; }
@keyframes error-404-fade-up { to { opacity: 1; transform: translateY(0); } }
.error-404-fade:nth-of-type(1) { animation-delay: .05s; }
.error-404-fade:nth-of-type(2) { animation-delay: .2s; }
.error-404-fade:nth-of-type(3) { animation-delay: .35s; }
.error-404-fade:nth-of-type(4) { animation-delay: .5s; }

/* ---------- Reveal utility for GSAP ----------
   Visible by default; JS hides it via gsap.set() only once GSAP
   has actually loaded, so the page still works if the script fails. */

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: #1e2a47; border-radius: 10px; }

/* ---------- Blog ---------- */
.container--narrow { max-width: 760px; }

.blog-empty { text-align: center; color: var(--color-muted); padding-block: 40px; }

.blog-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.blog-card {
  display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border);
  transition: transform .35s var(--ease-out), border-color .35s ease, background .35s ease;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(96,165,250,.3); background: #131c33; }
.blog-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.blog-card:hover .blog-card__media img { transform: scale(1.06); }
.blog-card__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-muted); font-weight: 600; }
.blog-card__title { font-size: 1.2rem; font-weight: 800; line-height: 1.35; }
.blog-card__excerpt { color: var(--color-muted); font-size: .92rem; line-height: 1.65; flex: 1; }
.blog-card__link { font-size: 13px; font-weight: 700; color: var(--color-accent-strong); display: inline-flex; align-items: center; gap: 6px; }

.back-link {
  display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--color-muted); margin-block-end: 26px; transition: color .25s ease;
}
.back-link:hover { color: #fff; }
.back-link svg { width: 16px; height: 16px; }

.page-hero--blog, .page-hero--project { text-align: start; }
.page-hero--blog .container, .page-hero--project .container { max-width: 760px; }
.page-hero--blog p, .page-hero--project p { margin-inline: 0; }

.blog-post__meta {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--color-muted); font-weight: 600;
  margin-block-end: 18px; flex-wrap: wrap;
}

.blog-post__cover, .project-detail__cover {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); margin-block-end: 48px;
}
.blog-post__cover img, .project-detail__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.blog-post__content, .project-detail__content { display: flex; flex-direction: column; gap: 22px; }
.blog-post__content p, .project-detail__content p { color: rgba(226,232,240,.85); font-size: 1.05rem; line-height: 1.85; }
.project-detail__content h2 { font-size: 1.5rem; font-weight: 800; margin-block-end: 4px; }

/* Rich-text content from the blog's WYSIWYG editor (headings/lists/quotes/code, in addition to <p>) */
.blog-post__content h2 { font-size: 1.6rem; font-weight: 800; margin-block: 6px 0; }
.blog-post__content h3 { font-size: 1.3rem; font-weight: 700; margin-block: 4px 0; }
.blog-post__content ul, .blog-post__content ol { color: rgba(226,232,240,.85); font-size: 1.05rem; line-height: 1.85; padding-inline-start: 1.4em; }
.blog-post__content li { margin-block-end: 8px; }
.blog-post__content a { color: var(--color-accent-strong); text-decoration: underline; }
.blog-post__content strong { color: #fff; }
.blog-post__content blockquote {
  border-inline-start: 3px solid var(--color-accent); padding-inline-start: 20px; font-size: 1.1rem;
  font-style: italic; color: var(--color-foreground);
}
.blog-post__content img { max-width: 100%; border-radius: var(--radius-sm); }
.blog-post__content pre.ql-syntax {
  background: #0a0f1a !important; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 20px; font-size: .88rem; line-height: 1.7; overflow-x: auto; font-family: 'Courier New', monospace;
}

/* Web-category preview frame */
.project-preview-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.project-preview-frame__bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: #10182b; border-bottom: 1px solid rgba(255,255,255,.06); }
.project-preview-frame__bar span:not(.project-preview-frame__url) { width: 11px; height: 11px; border-radius: 50%; }
.project-preview-frame__bar span:nth-child(1) { background: #ff5f56; }
.project-preview-frame__bar span:nth-child(2) { background: #ffbd2e; }
.project-preview-frame__bar span:nth-child(3) { background: #27c93f; }
.project-preview-frame__url { margin-inline-start: 12px; font-size: 12px; color: var(--color-muted); font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.project-preview-frame__media { position: relative; }
.project-preview-frame__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.project-preview-frame__cta {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(5,7,13,0); opacity: 0; transition: opacity .3s ease, background .3s ease;
}
.project-preview-frame__media:hover .project-preview-frame__cta { opacity: 1; background: rgba(5,7,13,.55); }

/* UI/UX-category gallery */
.project-gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.project-gallery img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--color-border); display: block; }

/* Technology pills */
.project-tech-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.project-tech-pill { padding: 7px 16px; border-radius: 999px; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25); color: var(--color-accent-strong); font-size: .82rem; font-weight: 600; }

/* Performance metrics */
.project-metrics { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.project-metric-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 22px; text-align: center; }
.project-metric-card__value { font-size: 1.7rem; font-weight: 800; color: #fff; }
.project-metric-card__label { font-size: .8rem; color: var(--color-muted); margin-block-start: 8px; }

.project-detail__meta {
  display: flex; align-items: center; gap: 32px; margin-block-start: 26px; flex-wrap: wrap;
}
.project-detail__meta-item { display: flex; flex-direction: column; gap: 4px; }
.project-detail__meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); font-weight: 700; }
.project-detail__meta-value { font-size: 1.05rem; font-weight: 700; color: #fff; }

.post-nav-section { padding-block-start: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-block-start: 1px solid var(--color-border); padding-block-start: 40px; }
.post-nav__item {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius-md);
  border: 1px solid var(--color-border); background: var(--color-surface);
  transition: transform .3s var(--ease-out), border-color .3s ease;
}
.post-nav__item:hover { transform: translateY(-4px); border-color: rgba(96,165,250,.3); }
.post-nav__item--next { text-align: end; align-items: flex-end; }
.post-nav__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--color-accent-strong); }
.post-nav__label svg { width: 15px; height: 15px; }
.post-nav__title { font-size: 1rem; font-weight: 700; color: #fff; }

@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: start; align-items: flex-start; }
}

/* ---------- Client account dashboard ---------- */
.account-shell { padding-block: 160px 100px; min-height: 100vh; }
.account-shell__inner { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }

.account-sidebar {
  position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 24px;
}
.account-sidebar__user { display: flex; align-items: center; gap: 12px; }
.account-sidebar__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #3b82f6, #162c6d); color: #fff; font-weight: 800; font-size: .9rem;
}
.account-sidebar__name { font-weight: 700; font-size: .92rem; color: #fff; }
.account-sidebar__email { font-size: .78rem; color: var(--color-muted); word-break: break-all; }

.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: var(--color-muted); font-size: .9rem; font-weight: 600; transition: background .2s ease, color .2s ease;
  position: relative;
}
.account-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.account-nav a:hover { background: rgba(255,255,255,.03); color: var(--color-foreground); }
.account-nav a.is-active { background: rgba(59,130,246,.12); color: var(--color-accent-strong); }
.account-nav__badge {
  margin-inline-start: auto; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 800;
  border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding-inline: 5px;
}
.account-sidebar__logout {
  display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; color: var(--color-muted);
  border-top: 1px solid var(--color-border); padding-top: 18px; transition: color .2s ease;
}
.account-sidebar__logout:hover { color: #f87171; }
.account-sidebar__logout svg { width: 17px; height: 17px; }

.account-main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.account-page-head h1 { font-size: 1.7rem; font-weight: 800; margin-block-end: 8px; }
.account-page-head p { color: var(--color-muted); font-size: .95rem; }

.account-stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.account-stat-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 20px;
}
.account-stat-card__label { font-size: .78rem; color: var(--color-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.account-stat-card__value { font-size: 1.6rem; font-weight: 800; margin-block-start: 8px; color: #fff; }

.account-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px; }
.account-panel h2 { font-size: 1.1rem; font-weight: 700; margin-block-end: 18px; }
.account-empty { color: var(--color-muted); font-size: .92rem; padding-block: 20px; text-align: center; }

.project-card { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 22px; }
.project-card + .project-card { margin-block-start: 16px; }
.project-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block-end: 10px; }
.project-card__title { font-size: 1.05rem; font-weight: 700; color: #fff; }
.project-status { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.project-status--planning { background: rgba(148,163,184,.15); color: #cbd5e1; }
.project-status--in_progress { background: rgba(59,130,246,.15); color: #60a5fa; }
.project-status--review { background: rgba(251,191,36,.15); color: #fbbf24; }
.project-status--completed { background: rgba(34,197,94,.15); color: #4ade80; }
.project-status--on_hold { background: rgba(239,68,68,.15); color: #f87171; }
.project-card__desc { color: var(--color-muted); font-size: .9rem; line-height: 1.6; margin-block-end: 16px; }
.project-progress { display: flex; align-items: center; gap: 12px; margin-block-end: 16px; }
.project-progress__track { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.project-progress__fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa); border-radius: 999px; }
.project-progress__pct { font-size: .82rem; font-weight: 700; color: var(--color-accent-strong); min-width: 38px; text-align: end; }
.project-milestones { display: flex; flex-direction: column; gap: 8px; }
.project-milestone { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--color-muted); }
.project-milestone__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--color-border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.project-milestone.is-done { color: var(--color-foreground); }
.project-milestone.is-done .project-milestone__dot { background: #22c55e; border-color: #22c55e; color: #05070d; }
.project-milestone.is-done .project-milestone__dot svg { width: 10px; height: 10px; }
.project-card__meta { font-size: .78rem; color: var(--color-muted); margin-block-start: 10px; }

/* Chat */
.chat-window { display: flex; flex-direction: column; gap: 14px; max-height: 460px; overflow-y: auto; padding-inline-end: 6px; margin-block-end: 20px; }
.chat-bubble { max-width: 72%; padding: 12px 16px; border-radius: 16px; font-size: .9rem; line-height: 1.5; }
.chat-bubble--client { align-self: flex-end; background: linear-gradient(145deg, #3b82f6, #1d4ed8); color: #fff; border-end-end-radius: 4px; }
.chat-bubble--admin { align-self: flex-start; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-end-start-radius: 4px; }
.chat-bubble__meta { display: block; font-size: .68rem; opacity: .7; margin-block-start: 6px; }
.chat-form { display: flex; flex-direction: column; gap: 8px; position: relative; }
.chat-form__row { display: flex; gap: 12px; align-items: flex-end; }
.chat-form textarea {
  flex: 1; resize: none; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: 14px;
  padding: 12px 16px; color: var(--color-foreground); font-family: inherit; font-size: .9rem; min-height: 48px;
}

.chat-toolbar { display: flex; gap: 8px; }
.chat-toolbar button {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--color-border);
  background: var(--color-bg-elevated); color: var(--color-muted); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.chat-toolbar button svg { width: 17px; height: 17px; }
.chat-toolbar button:hover { color: #fff; border-color: var(--color-accent); }
.chat-toolbar button.is-recording { background: #ef4444; border-color: #ef4444; color: #fff; animation: chat-record-pulse 1.2s ease-in-out infinite; }
@keyframes chat-record-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.chat-attach-name { font-size: .76rem; color: var(--color-muted); padding-inline-start: 2px; }

.chat-emoji-panel {
  position: absolute; bottom: 100%; inset-inline-start: 0; margin-block-end: 8px; z-index: 10;
  display: none; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 12px; width: 288px;
  background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.chat-emoji-panel.is-open { display: grid; }
.chat-emoji-panel button { font-size: 18px; padding: 6px; border-radius: 8px; background: transparent; border: none; line-height: 1; }
.chat-emoji-panel button:hover { background: rgba(255,255,255,.08); }

.chat-attachment { display: block; margin-block-end: 10px; }
.chat-attachment--image img { max-width: 220px; border-radius: 10px; display: block; }
.chat-attachment--audio { width: 240px; max-width: 100%; }
.chat-attachment--file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: .82rem; color: inherit; }
.chat-attachment--file svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Wallet & invoices tables */
.account-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.account-table th { text-align: start; padding: 10px 14px; color: var(--color-muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--color-border); }
.account-table td { padding: 14px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.account-table tr:last-child td { border-bottom: none; }
.money-credit { color: #4ade80; font-weight: 700; }
.money-debit { color: #f87171; font-weight: 700; }
.invoice-status { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.invoice-status--draft { background: rgba(148,163,184,.15); color: #cbd5e1; }
.invoice-status--sent { background: rgba(59,130,246,.15); color: #60a5fa; }
.invoice-status--paid { background: rgba(34,197,94,.15); color: #4ade80; }
.invoice-status--overdue { background: rgba(239,68,68,.15); color: #f87171; }
.invoice-status--cancelled { background: rgba(148,163,184,.1); color: var(--color-muted); }

/* Invoice detail */
.invoice-detail__head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-block-end: 28px; }
.invoice-detail__totals { margin-inline-start: auto; width: fit-content; display: flex; flex-direction: column; gap: 8px; margin-block-start: 16px; }
.invoice-detail__totals div { display: flex; justify-content: space-between; gap: 40px; font-size: .92rem; color: var(--color-muted); }
.invoice-detail__totals .is-total { font-size: 1.1rem; font-weight: 800; color: #fff; border-top: 1px solid var(--color-border); padding-top: 8px; }

/* Notifications */
.notification-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.notification-item:last-child { border-bottom: none; }
.notification-item.is-unread .notification-item__title { color: #fff; }
.notification-item__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-strong); margin-block-start: 6px; flex-shrink: 0; }
.notification-item__title { font-weight: 700; font-size: .92rem; color: var(--color-muted); }
.notification-item__body { font-size: .85rem; color: var(--color-muted); margin-block-start: 4px; }
.notification-item__time { font-size: .74rem; color: var(--color-muted); opacity: .7; margin-block-start: 4px; }

@media (max-width: 900px) {
  .account-shell__inner { grid-template-columns: 1fr; }
  .account-sidebar { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .account-sidebar__user { flex: 1 1 auto; }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
  .account-sidebar__logout { border-top: none; padding-top: 0; }
}

/* ================= Tools section ================= */
.tools-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tool-card {
  display: block; color: inherit; text-decoration: none;
  padding: 32px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border);
  transition: transform .35s var(--ease-out), border-color .35s ease, background .35s ease;
}
.tool-card:hover { transform: translateY(-6px); border-color: rgba(96,165,250,.3); background: #131c33; }
.tool-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(59,130,246,.25), rgba(59,130,246,.05)); color: var(--color-accent-strong);
  margin-block-end: 20px;
}
.tool-card h3 { font-size: 1.15rem; font-weight: 700; margin-block-end: 10px; }
.tool-card p { color: var(--color-muted); font-size: .95rem; line-height: 1.7; }
.tool-card__link { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 14px; font-size: 13px; font-weight: 700; color: var(--color-accent-strong); }

.tool-form { display: flex; gap: 12px; flex-wrap: wrap; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; }
.tool-form input[type="text"], .tool-form input[type="url"] {
  flex: 1 1 260px; min-width: 0; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--color-foreground); font-size: .95rem; font-family: inherit;
}
.tool-form input[type="text"]:focus, .tool-form input[type="url"]:focus { outline: none; border-color: var(--color-accent); }
.tool-form .btn { flex: 0 0 auto; }

.tool-error { margin-block-start: 18px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; font-size: .9rem; }

.tool-result { margin-block-start: 36px; }
.tool-result__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-block-end: 24px; }
.tool-result__head h2 { font-size: 1.1rem; font-weight: 700; }
.tool-result__head a { word-break: break-all; color: var(--color-accent-strong); text-decoration: none; }
.tool-result__meta { color: var(--color-muted); font-size: .85rem; margin-block-start: 4px; }

.tool-score { display: flex; align-items: center; gap: 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px; margin-block-end: 28px; }
.tool-score__ring {
  width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.9rem; font-weight: 800; color: #fff; border: 4px solid var(--color-border);
}
.tool-score__ring--A, .tool-score__ring--B { border-color: #34d399; color: #34d399; }
.tool-score__ring--C, .tool-score__ring--D { border-color: #fbbf24; color: #fbbf24; }
.tool-score__ring--F { border-color: #f87171; color: #f87171; }
.tool-score__label { color: var(--color-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.tool-score__value { font-size: 1.6rem; font-weight: 800; }

.tool-stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-block-end: 28px; }
.tool-stat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 20px; }
.tool-stat-card__label { font-size: .78rem; color: var(--color-muted); margin-block-end: 8px; }
.tool-stat-card__value { font-size: 1.4rem; font-weight: 800; color: #fff; direction: ltr; text-align: start; }

.tool-checklist { display: flex; flex-direction: column; gap: 1px; background: var(--color-border); border-radius: var(--radius-sm); overflow: hidden; margin-block-end: 28px; }
.tool-check-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: var(--color-surface); }
.tool-check-item__dot { width: 11px; height: 11px; border-radius: 50%; margin-block-start: 5px; flex-shrink: 0; }
.tool-check-item--good .tool-check-item__dot { background: #34d399; }
.tool-check-item--warn .tool-check-item__dot { background: #fbbf24; }
.tool-check-item--bad .tool-check-item__dot { background: #f87171; }
.tool-check-item--na .tool-check-item__dot { background: var(--color-muted); }
.tool-check-item__label { font-weight: 700; font-size: .92rem; }
.tool-check-item__detail { color: var(--color-muted); font-size: .84rem; margin-block-start: 3px; word-break: break-word; }
.tool-check-item__status { margin-inline-start: auto; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; }
.tool-check-item--good .tool-check-item__status { background: rgba(52,211,153,.15); color: #34d399; }
.tool-check-item--warn .tool-check-item__status { background: rgba(251,191,36,.15); color: #fbbf24; }
.tool-check-item--bad .tool-check-item__status { background: rgba(248,113,113,.15); color: #f87171; }
.tool-check-item--na .tool-check-item__status { background: rgba(151,163,196,.15); color: var(--color-muted); }

.tool-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.tool-table th, .tool-table td { padding: 12px 16px; text-align: start; font-size: .88rem; border-block-end: 1px solid var(--color-border); }
.tool-table th { color: var(--color-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.tool-table tr:last-child td { border-block-end: none; }

.tool-section-title { font-size: 1rem; font-weight: 700; margin-block: 28px 14px; }
.tool-check-another { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 24px; font-size: .88rem; font-weight: 700; color: var(--color-accent-strong); text-decoration: none; }

.tool-cta-card {
  position: relative; overflow: hidden; text-align: center; padding: 48px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-card-from) 0%, var(--color-card-to) 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), inset 0 1px 2px rgba(255,255,255,.15);
}
.tool-cta-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-block-end: 12px; color: #fff; }
.tool-cta-card p { color: rgba(219,234,254,.7); font-size: .98rem; max-width: 480px; margin: 0 auto 24px; }

/* ---------- Keywords generator ---------- */
.kw-group { margin-block-end: 28px; }
.kw-group__head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 12px; }
.kw-group__head h3 { font-size: 1rem; font-weight: 700; }
.kw-group__copy-all { font-size: .78rem; font-weight: 700; color: var(--color-accent-strong); background: none; border: none; cursor: pointer; padding: 0; }
.kw-list { display: flex; flex-wrap: wrap; gap: 10px; }
.kw-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--color-surface); border: 1px solid var(--color-border); font-size: .86rem; color: var(--color-foreground);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.kw-chip:hover { border-color: rgba(96,165,250,.4); background: #131c33; }
.kw-chip__copy { color: var(--color-muted); font-size: .75rem; }
.kw-chip.is-copied { border-color: #34d399; color: #34d399; }
.kw-chip.is-copied .kw-chip__copy { color: #34d399; }
.kw-total { color: var(--color-muted); font-size: .88rem; margin-block-end: 24px; }

/* ---------- AI checker priority list ---------- */
.ai-priority-list { display: flex; flex-direction: column; gap: 1px; background: var(--color-border); border-radius: var(--radius-sm); overflow: hidden; margin-block-end: 28px; }
.ai-priority-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--color-surface); }
.ai-priority-item__badge {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #fff;
}
.ai-priority-item--bad .ai-priority-item__badge { background: #f87171; }
.ai-priority-item--warn .ai-priority-item__badge { background: #fbbf24; color: #1a1300; }
.ai-priority-item__cat { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-accent-strong); margin-block-end: 4px; }
.ai-priority-item__text { font-size: .92rem; line-height: 1.6; }
.ai-overall { display: flex; align-items: center; gap: 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px; margin-block-end: 28px; }

/* ================= Service detail: creative per-service visuals ================= */
.service-visual { margin-block-end: 40px; border-radius: var(--radius-md); overflow: hidden; }
.service-section-title { font-size: 1.4rem; font-weight: 800; margin-block: 40px 20px; }

.service-feature-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-block-end: 8px; }
.service-feature-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: .92rem; }
.service-feature-item svg { color: #34d399; flex-shrink: 0; }

.service-process-section { background: var(--color-bg-elevated); }
.service-process { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); counter-reset: step; }
.service-process__step { position: relative; padding: 24px 20px 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.service-process__num { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(145deg, rgba(59,130,246,.3), rgba(59,130,246,.05)); color: var(--color-accent-strong); font-weight: 800; font-size: .9rem; margin-block-end: 14px; }
.service-process__step h3 { font-size: 1rem; font-weight: 700; margin-block-end: 8px; }
.service-process__step p { font-size: .84rem; color: var(--color-muted); line-height: 1.6; }

/* ---- Web Development: code editor mockup ---- */
.sv-code { background: #0a101d; border: 1px solid var(--color-border); font-family: 'Courier New', monospace; }
.sv-code__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #10182b; border-bottom: 1px solid rgba(255,255,255,.06); }
.sv-code__dot { width: 11px; height: 11px; border-radius: 50%; }
.sv-code__dot--r { background: #f87171; } .sv-code__dot--y { background: #fbbf24; } .sv-code__dot--g { background: #34d399; }
.sv-code__filename { margin-inline-start: 10px; font-size: .78rem; color: var(--color-muted); }
.sv-code__body { padding: 24px; font-size: .92rem; line-height: 1.9; direction: ltr; text-align: start; overflow-x: auto; }
.sv-code__line { white-space: pre; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.sv-code.is-revealed .sv-code__line { opacity: 1; transform: translateY(0); }
.sv-code__line:nth-child(1) { transition-delay: .05s; } .sv-code__line:nth-child(2) { transition-delay: .15s; }
.sv-code__line:nth-child(3) { transition-delay: .25s; } .sv-code__line:nth-child(4) { transition-delay: .35s; }
.sv-code__line:nth-child(5) { transition-delay: .45s; } .sv-code__line:nth-child(6) { transition-delay: .55s; }
.sv-code__line:nth-child(7) { transition-delay: .65s; }
.sv-code__num { display: inline-block; width: 24px; color: #4b5876; user-select: none; }
.sv-code__kw { color: #c084fc; } .sv-code__fn { color: #60a5fa; } .sv-code__str { color: #34d399; } .sv-code__bool { color: #fbbf24; }
.sv-code__cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--color-accent-strong); margin-inline-start: 4px; vertical-align: text-bottom; animation: sv-blink 1s step-end infinite; }
@keyframes sv-blink { 50% { opacity: 0; } }

/* ---- Databases & Backend: schema visual ---- */
.sv-schema { position: relative; height: 260px; background: var(--color-surface); border: 1px solid var(--color-border); }
.sv-schema__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv-schema__link { fill: none; stroke: rgba(96,165,250,.4); stroke-width: 2; stroke-dasharray: 8 6; stroke-dashoffset: 0; animation: sv-dash 3s linear infinite; }
@keyframes sv-dash { to { stroke-dashoffset: -140; } }
.sv-schema__node {
  position: absolute; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--color-bg-elevated); border: 1px solid var(--color-border); color: var(--color-foreground); white-space: nowrap;
}
.sv-schema__node--main { background: linear-gradient(145deg, rgba(59,130,246,.35), rgba(59,130,246,.1)); border-color: rgba(96,165,250,.5); color: #fff; }

/* ---- Interactive 3D: three.js canvas ---- */
.sv-3d__canvas { height: 320px; background: radial-gradient(circle at 50% 40%, #10182b 0%, #05070d 100%); border: 1px solid var(--color-border); }

/* ---- UI/UX Design: design canvas mockup ---- */
.sv-design { background: var(--color-surface); border: 1px solid var(--color-border); padding: 24px; }
.sv-design__layers { display: flex; gap: 10px; margin-block-end: 18px; }
.sv-design__layer { font-size: .78rem; padding: 6px 14px; border-radius: 999px; background: var(--color-bg-elevated); color: var(--color-muted); border: 1px solid var(--color-border); }
.sv-design__layer.is-active { background: rgba(59,130,246,.15); color: var(--color-accent-strong); border-color: rgba(96,165,250,.4); }
.sv-design__canvas { position: relative; height: 180px; background: var(--color-bg-elevated); border-radius: var(--radius-sm); border: 1px dashed var(--color-border); overflow: hidden; }
.sv-design__block { position: absolute; border-radius: 6px; background: linear-gradient(90deg, rgba(96,165,250,.18), rgba(96,165,250,.06)); }
.sv-design__block--1 { top: 16px; left: 16px; width: 40%; height: 18px; }
.sv-design__block--2 { top: 50px; left: 16px; width: 65%; height: 14px; }
.sv-design__block--3 { top: 76px; left: 16px; width: 50%; height: 14px; }
.sv-design__cursor {
  position: absolute; width: 14px; height: 14px; border: 2px solid var(--color-accent-strong); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); animation: sv-cursor-move 6s ease-in-out infinite;
}
@keyframes sv-cursor-move {
  0%, 100% { top: 20px; left: 20%; } 25% { top: 55px; left: 60%; } 50% { top: 80px; left: 40%; } 75% { top: 110px; left: 70%; }
}
.sv-design__swatches { display: flex; gap: 10px; margin-block-start: 18px; }
.sv-design__swatches span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.1); }

/* ---- Business Applications: dashboard mockup ---- */
.sv-dashboard { background: var(--color-surface); border: 1px solid var(--color-border); padding: 28px; }
.sv-dash__kpis { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-block-end: 24px; }
.sv-dash__kpi { text-align: center; }
.sv-dash__kpi-value { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; }
.sv-dash__kpi-label { display: block; font-size: .74rem; color: var(--color-muted); margin-block-start: 4px; }
.sv-dash__chart { display: flex; align-items: flex-end; gap: 10px; height: 100px; }
.sv-dash__bar { flex: 1; height: 0; background: linear-gradient(180deg, var(--color-accent-strong), var(--color-accent)); border-radius: 4px 4px 0 0; transition: height 1.1s var(--ease-out); }
.sv-dashboard.is-revealed .sv-dash__bar { height: var(--h); }

/* ---- Maintenance & Support: uptime monitor ---- */
.sv-support { background: var(--color-surface); border: 1px solid var(--color-border); padding: 28px; }
.sv-support__status { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; margin-block-end: 18px; }
.sv-support__pulse { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: sv-pulse 2s ease-out infinite; }
@keyframes sv-pulse { to { box-shadow: 0 0 0 10px rgba(52,211,153,0); } }
.sv-support__wave { width: 100%; height: 80px; }
.sv-support__line { fill: none; stroke: var(--color-accent-strong); stroke-width: 2; stroke-dasharray: 6 4; animation: sv-dash 2.4s linear infinite; }
.sv-support__stats { display: flex; gap: 32px; margin-block-start: 18px; flex-wrap: wrap; }
.sv-support__stats strong { display: block; font-size: 1.2rem; font-weight: 800; color: #fff; }
.sv-support__stats span { font-size: .78rem; color: var(--color-muted); }

/* ================= Tool reports: branded header, tips, PDF export, print ================= */
.report-header {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; margin-block-end: 28px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.report-header__brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-weight: 800; color: var(--color-accent-strong); font-size: .95rem; }
.report-header__brand svg { width: 30px; height: 30px; }
.report-header__meta h1 { font-size: 1.15rem; font-weight: 700; margin-block-end: 4px; }
.report-header__url { font-size: .84rem; color: var(--color-muted); word-break: break-all; }
.report-header__date { font-size: .76rem; color: var(--color-muted); margin-block-start: 2px; }
@media (max-width: 560px) { .report-header { flex-direction: column; align-items: flex-start; } }

.tool-tips-list { display: flex; flex-direction: column; gap: 10px; margin-block-end: 28px; }
.tool-tip-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; font-size: .9rem; line-height: 1.6;
  background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.25); border-radius: var(--radius-sm);
}
.tool-tip-item svg { color: #fbbf24; flex-shrink: 0; margin-block-start: 2px; }

.tool-actions-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-block-start: 24px; }
.tool-pdf-btn { display: inline-flex; align-items: center; gap: 8px; }

@media print {
  .site-header, .popout-menu, .welcome-toast, .no-print, .bg-grid, .page-hero { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .tool-result { margin-block-start: 0 !important; }
  a { color: #1d4ed8 !important; }
  .site-footer { background: #fff !important; border-block-start: 1px solid #ccc !important; }
  .site-footer * { color: #333 !important; }
  .site-footer__social a { border-color: #ccc !important; }
  .report-header, .tool-score, .tool-stat-card, .tool-check-item, .tool-tip-item,
  .tool-table, .ai-priority-item, .ai-overall, .kw-group { background: #f4f6fb !important; color: #111 !important; border-color: #ccc !important; box-shadow: none !important; }
  .tool-check-item__detail, .tool-stat-card__label, .ai-priority-item__text { color: #333 !important; }
}
