/* ==========================================================================
   NEXA DIGITAL AGENCY — Premium dark-blue design system
   ========================================================================== */

:root {
  --bg: #050b18;
  --bg-2: #071021;
  --bg-3: #0a1528;
  --panel: #0c1a33;
  --panel-2: #0f2142;
  --panel-3: #122850;
  --line: rgba(96, 165, 250, 0.14);
  --line-strong: rgba(96, 165, 250, 0.32);
  --txt: #edf3ff;
  --txt-2: #cfdcf4;
  --muted: #93a6c9;
  --muted-2: #6f82a8;
  --accent: #2f7bff;
  --accent-2: #00d4ff;
  --accent-3: #7aa8ff;
  --grad: linear-gradient(120deg, #2f7bff 0%, #00d4ff 100%);
  --grad-soft: linear-gradient(120deg, rgba(47,123,255,.18), rgba(0,212,255,.14));
  --ok: #2dd4a7;
  --warn: #fbbf24;
  --err: #ff5f7a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --glow: 0 0 0 1px rgba(47,123,255,.25), 0 18px 50px -16px rgba(47,123,255,.45);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-3); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: #c9dcff; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-weight: 700; line-height: 1.16; color: var(--txt); letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

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

::selection { background: rgba(47,123,255,.35); color: #fff; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #16325e; border-radius: 20px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #1e4382; }

/* ---------- Layout utilities ---------- */
.container { width: min(var(--maxw), calc(100% - 40px)); margin-inline: auto; }
.section { position: relative; padding: clamp(70px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 64px); text-align: center; position: relative; z-index: 2; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.22);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.section-title .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-sub { color: var(--muted); font-size: clamp(.98rem, 1.6vw, 1.08rem); max-width: 640px; margin-inline: auto; }
.section-head.left .section-sub { margin-inline: 0; }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Background FX ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(64,140,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64,140,255,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 10%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(31,94,255,.5), transparent 65%); top: -140px; left: -120px; animation: blobDrift 22s ease-in-out infinite alternate; }
.blob-2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(0,212,255,.34), transparent 65%); top: 30%; right: -160px; animation: blobDrift 27s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(64,80,255,.3), transparent 65%); bottom: -140px; left: 32%; animation: blobDrift 31s ease-in-out infinite alternate; }
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,123,255,.16), transparent 60%);
  pointer-events: none; z-index: -1; transform: translate(-50%, -50%);
  display: none; mix-blend-mode: screen;
}
@keyframes blobDrift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(60px, -50px, 0) scale(1.18); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-shine: rgba(255,255,255,.28);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 13px; font-size: .98rem; font-weight: 650;
  letter-spacing: .01em; line-height: 1; border: 1px solid transparent; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap; cursor: pointer; isolation: isolate;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  color: #fff; background: var(--grad); border-color: rgba(120,180,255,.45);
  box-shadow: 0 10px 30px -8px rgba(47,123,255,.55), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 42px -10px rgba(47,123,255,.75), 0 0 24px rgba(0,212,255,.35); border-color: rgba(160,205,255,.7); color: #fff; }
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, var(--btn-shine), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease); z-index: 1;
}
.btn-primary:hover::before { left: 130%; }

.btn-ghost {
  color: var(--txt); border-color: var(--line-strong); background: rgba(13,27,52,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 0 22px rgba(0,212,255,.28); background: rgba(0,212,255,.06); }

.btn-white { background: #fff; color: #0a1428; border-color: #fff; }
.btn-white:hover { background: #e8f0ff; box-shadow: 0 14px 34px -10px rgba(255,255,255,.5); transform: translateY(-2px); color: #0a1428; }

.btn-sm { padding: 10px 18px; font-size: .86rem; border-radius: 10px; }
.btn-block { width: 100%; }

.btn .ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.5);
  transform: scale(0); animation: rippleAnim .6s ease-out forwards; pointer-events: none; z-index: -1;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h); transition: background .35s var(--ease), box-shadow .35s var(--ease), height .3s var(--ease); }
.nav.scrolled { background: rgba(6,13,29,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); height: 66px; }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--txt); font-weight: 750; font-size: 1.16rem; letter-spacing: -.01em; }
.brand:hover { color: var(--txt); }
.brand .brand-logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--line-strong); overflow: hidden; }
.brand .brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand .brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--txt-2); font-weight: 550; font-size: .95rem; padding: 9px 15px; border-radius: 9px; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(13,27,52,.6); border: 1px solid var(--line-strong);
  color: var(--txt); position: relative; z-index: 1002;
}
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: all .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1001;
  background: linear-gradient(160deg, rgba(6,12,26,.98), rgba(9,18,40,.98));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 24px 28px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  color: var(--txt); font-size: 1.65rem; font-weight: 700; padding: 15px 6px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); transform: translateY(14px); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease), color .25s;
}
.mobile-menu.open a { transform: none; opacity: 1; }
.mobile-menu a:hover { color: var(--accent-2); }
.mobile-menu a small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.mobile-menu .btn { margin-top: 26px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(0,212,255,.07); border: 1px solid rgba(0,212,255,.25);
  color: var(--accent-2); font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px;
  animation: fadeUp .8s .1s var(--ease) both;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); letter-spacing: -.025em; margin-bottom: 22px; animation: fadeUp .8s .2s var(--ease) both; }
.hero h1 .grad { background: linear-gradient(115deg, #4d8dff 0%, #00d4ff 55%, #7ad4ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.22rem); max-width: 560px; margin-bottom: 34px; animation: fadeUp .8s .32s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 42px; animation: fadeUp .8s .44s var(--ease) both; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; animation: fadeUp .8s .55s var(--ease) both; }
.hero-meta-item { display: flex; align-items: center; gap: 12px; }
.hero-meta-item .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--accent-2); }
.hero-meta-item b { display: block; color: var(--txt); font-size: .95rem; }
.hero-meta-item small { color: var(--muted); font-size: .8rem; }

.hero-visual { position: relative; min-height: 480px; animation: fadeUp 1s .35s var(--ease) both; }
@keyframes floatY { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(8px); } }
.hv-card {
  position: absolute; border-radius: 16px; overflow: hidden;
  background: linear-gradient(165deg, rgba(18,34,66,.9), rgba(10,20,42,.92));
  border: 1px solid var(--line-strong); box-shadow: var(--glow);
}
.hv-card .hv-top { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.hv-card .hv-top i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.hv-card img { width: 100%; height: 100%; object-fit: cover; }
.hv-main { width: min(430px, 92%); height: 300px; top: 18px; left: 0; animation: floatY 7s ease-in-out infinite; z-index: 3; }
.hv-code { width: min(360px, 76%); right: -8px; top: 70px; height: 200px; z-index: 2; background: #081226; animation: floatY 8.5s .8s ease-in-out infinite; padding: 14px 18px; font: .8rem/1.55 "Consolas", monospace; color: #7fd1ff; }
.hv-stats { width: min(300px, 68%); left: -22px; bottom: 6px; height: 132px; z-index: 4; padding: 18px; animation: floatY 7.5s .4s ease-in-out infinite; }
.hv-stats .row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; }
.hv-stats .bar { width: 34px; border-radius: 5px 5px 0 0; background: var(--grad); box-shadow: 0 0 14px rgba(47,123,255,.5); animation: barGrow 1.4s var(--ease) both; }
.hv-stats .lbl { font-size: .74rem; color: var(--muted); }
.hv-rings { position: absolute; width: 240px; height: 240px; right: -40px; top: -40px; z-index: 1; animation: spinSlow 40s linear infinite; }
.hv-rings svg { width: 100%; height: 100%; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--muted-2); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.hero-scroll .wheel { width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; position: relative; }
.hero-scroll .wheel::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; border-radius: 4px; background: var(--accent-2); transform: translateX(-50%); animation: wheelDrop 1.8s infinite; }
@keyframes wheelDrop { 0% { opacity: 0; top: 6px; } 30% { opacity: 1; } 100% { opacity: 0; top: 22px; } }
@keyframes barGrow { from { height: 0; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ---------- Marquee / trust ---------- */
.trust { border-block: 1px solid var(--line); background: rgba(7,14,30,.5); padding: 30px 0; }
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 54px; width: max-content; animation: marquee 30s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 650; font-size: .95rem; letter-spacing: .03em; white-space: nowrap; }
.marquee-item svg { color: var(--accent-2); opacity: .8; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cards (shared) ---------- */
.card {
  position: relative; border-radius: var(--radius); padding: 30px;
  background: linear-gradient(165deg, rgba(16,30,60,.72), rgba(9,17,36,.86));
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(600px 200px at var(--mx, 50%) 0%, rgba(47,123,255,.14), transparent 60%);
  transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--glow); background: linear-gradient(165deg, rgba(19,36,70,.9), rgba(10,20,42,.95)); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--accent-2); margin-bottom: 18px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 22px rgba(0,212,255,.35); }
.card-icon.icon-lg { width: 72px; height: 72px; border-radius: 18px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; z-index: 2; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .96rem; }
.service-card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--accent-2); font-weight: 650; font-size: .92rem; }
.service-card .more svg { transition: transform .3s var(--ease); }
.service-card:hover .more svg { transform: translateX(5px); }
.service-card .num { position: absolute; top: 22px; right: 24px; font-size: .8rem; font-weight: 800; color: rgba(140,175,255,.28); letter-spacing: .1em; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; z-index: 2; }
.why-card .card-icon { width: 50px; height: 50px; border-radius: 13px; margin-bottom: 14px; }
.why-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.why-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; position: relative; z-index: 2; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(12,24,48,.55); color: var(--txt-2); font-size: .9rem; font-weight: 600;
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }
.filter-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 24px -8px rgba(47,123,255,.6); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; z-index: 2; }
.portfolio-card { cursor: pointer; padding: 0; }
.portfolio-card .thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.portfolio-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.portfolio-card:hover .thumb img { transform: scale(1.07); }
.portfolio-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6,12,26,.75)); }
.portfolio-card .cat { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 13px; border-radius: 999px; background: rgba(6,13,29,.66); border: 1px solid var(--line-strong); color: var(--accent-2); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px); }
.portfolio-card .body { padding: 22px 24px 24px; }
.portfolio-card h3 { font-size: 1.13rem; margin-bottom: 8px; }
.portfolio-card p { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.portfolio-card .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.portfolio-card .tags span { font-size: .72rem; color: var(--muted-2); padding: 4px 10px; border-radius: 7px; background: rgba(96,165,250,.07); border: 1px solid var(--line); }
.portfolio-card .arrow { position: absolute; right: 20px; bottom: 22px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--accent-2); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.portfolio-card:hover .arrow { transform: translateX(5px); box-shadow: 0 0 16px rgba(0,212,255,.4); }

.pf-item { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.pf-item.hide { opacity: 0; transform: scale(.86); position: absolute; visibility: hidden; }
.pf-item.show { animation: pfIn .55s var(--ease) both; }
@keyframes pfIn { from { opacity: 0; transform: translateY(24px) scale(.95); } to { opacity: 1; transform: none; } }

/* ---------- Stats ---------- */
.stats-band { position: relative; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(8,16,34,.9), rgba(10,20,42,.7)); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; padding: 38px 0; }
.stat { text-align: center; position: relative; z-index: 2; }
.stat .ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--accent-2); }
.stat .value { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
.stat .value .suffix { color: var(--accent-2); }
.stat .label { color: var(--muted); font-size: .86rem; margin-top: 4px; }

/* ---------- Who we are ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.about-frame { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--glow); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(47,123,255,.12), transparent 55%); }
.about-float {
  position: absolute; padding: 14px 18px; border-radius: 14px;
  background: rgba(10,20,42,.9); border: 1px solid var(--line-strong); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; animation: floatY 6s ease-in-out infinite;
}
.about-float .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-2); }
.about-float b { display: block; font-size: .9rem; }
.about-float small { color: var(--muted); font-size: .74rem; }
.about-float.f1 { top: 30px; right: -24px; }
.about-float.f2 { bottom: 40px; left: -28px; animation-delay: 1.2s; }
.about-copy p { color: var(--muted); }
.pill-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0 30px; }
.pill-list li { display: flex; align-items: center; gap: 10px; color: var(--txt-2); font-size: .94rem; font-weight: 550; }
.pill-list li svg { color: var(--ok); width: 18px; height: 18px; flex: none; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; z-index: 2; }
.process-card { text-align: center; padding: 32px 22px; }
.process-card .step { font-size: 2.4rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .85; margin-bottom: 16px; display: block; }
.process-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Expertise ---------- */
.expertise-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; z-index: 2; }
.expertise-card { padding: 24px 18px; text-align: center; }
.expertise-card .card-icon { margin: 0 auto 12px; width: 54px; height: 54px; }
.expertise-card h3 { font-size: .98rem; margin-bottom: 4px; }
.expertise-card small { color: var(--muted); font-size: .78rem; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 2; }
.testi-card { padding: 30px; }
.testi-card .stars { display: flex; gap: 3px; color: #fbbf24; margin-bottom: 16px; }
.testi-card .stars svg { width: 17px; height: 17px; }
.testi-card .review { color: var(--txt-2); font-size: .97rem; margin-bottom: 22px; }
.testi-card .who { display: flex; align-items: center; gap: 13px; }
.testi-card .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-strong); }
.testi-card .who b { display: block; font-size: .95rem; }
.testi-card .who small { color: var(--muted); font-size: .8rem; }
.testi-card .who .pos { color: var(--accent-2); font-size: .78rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; z-index: 2; }
.team-card { padding: 34px 28px; text-align: center; }
.team-card .photo { width: 116px; height: 116px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; border: 3px solid transparent; background: var(--grad); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 0 26px rgba(47,123,255,.35); position: relative; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.team-card:hover .photo img { transform: scale(1.08); }
.team-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.team-card .role { color: var(--accent-2); font-size: .88rem; font-weight: 600; margin-bottom: 12px; display: block; }
.team-card p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.team-card .skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 18px; }
.team-card .skills span { font-size: .74rem; color: var(--muted-2); padding: 4px 10px; border-radius: 7px; background: rgba(96,165,250,.07); border: 1px solid var(--line); }
.team-card .btn { display: inline-flex; }

/* ---------- Founder ---------- */
.founder-wrap { position: relative; z-index: 2; }
.founder-card { display: grid; grid-template-columns: .82fr 1.18fr; gap: 0; padding: 0; overflow: hidden; }
.founder-photo { position: relative; min-height: 400px; }
.founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(10,20,42,.35)); }
.founder-body { padding: clamp(28px, 4vw, 52px); }
.founder-body h3 { font-size: 1.5rem; }
.founder-body .role { color: var(--accent-2); font-weight: 600; font-size: .95rem; }
.founder-body p { color: var(--muted); }
.founder-social { display: flex; gap: 10px; margin-top: 22px; }
.founder-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--txt-2); transition: all .3s var(--ease); }
.founder-social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px -6px rgba(47,123,255,.5); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; z-index: 2; }
.blog-card .thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-card .thumb .date { position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 9px; background: rgba(6,13,29,.7); border: 1px solid var(--line-strong); color: var(--accent-2); font-size: .76rem; backdrop-filter: blur(6px); }
.blog-card h3 { font-size: 1.08rem; margin: 0 0 10px; line-height: 1.4; }
.blog-card h3 a { color: var(--txt); }
.blog-card h3 a:hover { color: var(--accent-2); }
.blog-card p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.blog-meta { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: .8rem; }
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(130deg, rgba(12,26,56,.9), rgba(10,18,40,.95)); text-align: center; }
.cta-band .orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.cta-band .orb-1 { width: 340px; height: 340px; background: rgba(47,123,255,.4); top: -120px; left: 50%; transform: translateX(-50%); }
.cta-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; }
.cta-inner p { color: var(--muted); font-size: 1.05rem; margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; position: relative; z-index: 2; }
.contact-info .c-item { display: flex; gap: 16px; padding: 20px; border-radius: 14px; background: rgba(12,24,48,.55); border: 1px solid var(--line); margin-bottom: 16px; transition: border-color .3s; }
.contact-info .c-item:hover { border-color: var(--line-strong); }
.contact-info .c-item .ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--accent-2); }
.contact-info .c-item b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.contact-info .c-item a, .contact-info .c-item span { color: var(--txt-2); font-size: 1rem; }

.form-card { padding: clamp(26px, 3.5vw, 42px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .86rem; font-weight: 600; color: var(--txt-2); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(7,14,30,.7); border: 1px solid var(--line-strong); color: var(--txt);
  font-size: .96rem; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent-2); background: rgba(9,18,40,.9);
  box-shadow: 0 0 0 4px rgba(0,212,255,.12);
}
.form-select option { background: #0a1428; color: var(--txt); }
.form-textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: .78rem; color: var(--muted-2); margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(5,10,24,.9); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer .brand { margin-bottom: 16px; }
.footer p { color: var(--muted); font-size: .92rem; }
.footer h4 { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--txt-2); margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--muted); font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; transition: color .25s, transform .25s; }
.footer-links a:hover { color: var(--accent-2); transform: translateX(3px); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: .92rem; align-items: flex-start; }
.footer-contact svg { color: var(--accent-2); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer-bottom p { margin: 0; color: var(--muted-2); font-size: .84rem; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(13,27,52,.8); border: 1px solid var(--line-strong); color: var(--muted); transition: all .3s var(--ease); }
.social-links a:hover { color: #fff; background: var(--grad); transform: translateY(-3px); box-shadow: 0 8px 18px -6px rgba(47,123,255,.55); }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; }
.wa-float a {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float a:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 40px -8px rgba(37,211,102,.75); color: #fff; }
.wa-float .ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPing 2.2s ease-out infinite; }
@keyframes waPing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scale { opacity: 0; transform: scale(.9); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal-left.in, .reveal-right.in, .reveal-scale.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Page header (subpages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 54px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.page-hero .breadcrumb { color: var(--muted); font-size: .86rem; margin-bottom: 14px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--accent-2); }
.page-hero .breadcrumb i { opacity: .5; }

/* ---------- Detail pages ---------- */
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; position: relative; z-index: 2; }
.detail-main .hero-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--glow); margin-bottom: 26px; }
.gallery-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-row .g-item { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.gallery-row img { transition: transform .5s var(--ease); }
.gallery-row .g-item:hover img { transform: scale(1.04); }
.detail-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.info-box { padding: 24px; margin-bottom: 18px; }
.info-box h4 { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.info-box .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.info-box .row:last-child { border-bottom: 0; }
.info-box .row b { color: var(--txt-2); font-weight: 600; }
.info-box .row span { color: var(--muted); text-align: right; }
.results-box { padding: 22px; border: 1px solid rgba(45,212,167,.3); background: rgba(45,212,167,.06); border-radius: 14px; }
.results-box h4 { color: var(--ok); font-size: .92rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.blog-article { max-width: 780px; margin: 0 auto; }
.blog-article .cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); margin-bottom: 30px; }
.blog-article .body-copy { color: var(--txt-2); font-size: 1.04rem; }
.blog-article .body-copy h2, .blog-article .body-copy h3 { color: var(--txt); margin-top: 1.6em; }
.blog-article .body-copy p { margin-bottom: 1.2em; }
.blog-article .body-copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 15px 20px; border-radius: 13px; background: rgba(12,24,48,.96); border: 1px solid var(--line-strong);
  color: var(--txt); font-size: .92rem; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); animation: toastIn .4s var(--ease); max-width: 360px;
}
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.toast .ic { flex: none; }
.toast.success .ic { color: var(--ok); }
.toast.error .ic { color: var(--err); }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }

/* ---------- Modal / lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px; background: rgba(3,7,16,.82); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal img { max-width: 92vw; max-height: 88vh; border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 12px; background: rgba(12,24,48,.8); border: 1px solid var(--line-strong); color: var(--txt); display: grid; place-items: center; font-size: 1.2rem; }

/* ---------- Misc ---------- */
.divider-glow { height: 1px; border: 0; background: linear-gradient(90deg, transparent, rgba(0,212,255,.4), transparent); margin: 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 11px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); color: var(--txt-2); background: rgba(12,24,48,.6); font-size: .92rem; transition: all .3s; }
.pagination a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .expertise-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { min-height: 460px; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero { padding-top: calc(var(--nav-h) + 30px); text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-meta { justify-content: center; }
  .hero-cta { justify-content: center; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 80px; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-photo { min-height: 300px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 28px); }
  .services-grid, .portfolio-grid, .blog-grid, .why-grid, .testi-grid, .expertise-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .hv-code { display: none; }
  .hv-stats { left: 0; bottom: 0; }
  .about-float.f1 { right: 0; }
  .about-float.f2 { left: 0; }
  .section { padding: 64px 0; }
  .btn { padding: 14px 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .cursor-glow { display: none !important; }
  .hv-card { animation: none !important; }
  .blob { animation: none !important; }
}