/* =====================================================================
   THEGRADLEW TECHNOLOGIES — style.css
   Premium dark-theme marketing site. Organised as:
   1. Design tokens (variables)   2. Reset & base   3. Utilities
   4. Background FX   5. Loader & cursor   6. Navbar   7. Buttons
   8. Sections (hero → footer)   9. Micro-interactions   10. Responsive
   ===================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --primary: #4F46E5;
  --secondary: #7C3AED;
  --accent: #00E5FF;
  --bg: #050816;
  --bg-2: #0a0f24;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-dim: #9aa3b8;
  --text-mute: #6b7391;

  --grad: linear-gradient(120deg, var(--primary), var(--secondary), var(--accent));
  --grad-soft: linear-gradient(120deg, #6366f1, #a78bfa, #22d3ee);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px -8px rgba(79, 70, 229, 0.45);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Plus Jakarta Sans", "Poppins", var(--font-body);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body.no-scroll { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

::selection { background: var(--secondary); color: #fff; }

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

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 10px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. UTILITIES ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(70px, 10vw, 130px); z-index: 2; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% auto;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }

.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 229, 255, 0.06);
  margin-bottom: 18px;
}

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.section-title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.section-desc { color: var(--text-dim); font-size: clamp(1rem, 2vw, 1.15rem); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card); backdrop-filter: blur(10px);
  font-size: 0.85rem; color: var(--text-dim); margin-bottom: 26px;
}
.pill a { color: var(--accent); font-weight: 600; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }

/* Scroll reveal base state */
[data-reveal] { opacity: 0; transform: translateY(38px); filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- 4. BACKGROUND FX ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; will-change: transform;
}
.blob--1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--primary), transparent 70%); top: -120px; left: -100px; animation: float1 18s ease-in-out infinite; }
.blob--2 { width: 460px; height: 460px; background: radial-gradient(circle, var(--secondary), transparent 70%); top: 30%; right: -140px; animation: float2 22s ease-in-out infinite; }
.blob--3 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent), transparent 70%); bottom: -120px; left: 40%; opacity: 0.35; animation: float3 26s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(120px, 80px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-100px, 60px) scale(1.15); } }
@keyframes float3 { 50% { transform: translate(60px, -90px) scale(0.9); } }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.noise {
  position: absolute; inset: 0; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 5. LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner { position: relative; display: grid; place-items: center; text-align: center; }
.loader__glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 65%); filter: blur(30px); animation: pulse 2.4s ease-in-out infinite; }
.loader__logo { position: relative; margin-bottom: 24px; animation: loaderFloat 2.4s ease-in-out infinite; }
@keyframes loaderFloat { 50% { transform: translateY(-8px); } }
.loader__stroke { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 2s var(--ease) forwards infinite alternate; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__brand { font-family: var(--font-head); font-weight: 800; letter-spacing: 0.35em; font-size: 0.95rem; margin-bottom: 22px; }
.loader__brand span { color: var(--accent); }
.loader__bar { width: 220px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--grad); background-size: 200%; border-radius: 999px; transition: width 0.25s ease; }
.loader__percent { margin-top: 14px; font-size: 0.8rem; color: var(--text-mute); font-variant-numeric: tabular-nums; }

/* ---------- 5b. CUSTOM CURSOR ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 999; transform: translate(-50%, -50%); mix-blend-mode: difference; }
.cursor { width: 8px; height: 8px; background: #fff; transition: transform 0.1s ease; }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(255, 255, 255, 0.6); transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, background 0.25s; }
.cursor-ring.grow { width: 64px; height: 64px; background: rgba(255, 255, 255, 0.1); border-color: transparent; }
.cursor-ring.click { transform: translate(-50%, -50%) scale(0.8); }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring, .spotlight { display: none !important; } }

/* Cursor spotlight */
.spotlight {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, 0.09), transparent 70%);
  transition: background 0.1s linear;
}

/* ---------- 5c. SCROLL PROGRESS ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--grad); background-size: 200%; z-index: 120; box-shadow: 0 0 12px var(--accent); }

/* ---------- 6. NAVBAR ---------- */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 100; display: flex; align-items: center; transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 8, 22, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; }
.nav__logo-text { font-size: 1.15rem; letter-spacing: -0.02em; }
.nav__logo-text b { color: var(--accent); font-weight: 800; }
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link { position: relative; padding: 8px 14px; color: var(--text-dim); font-weight: 500; font-size: 0.95rem; border-radius: 10px; transition: color 0.25s; }
.nav__link:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); border-radius: 2px; }
.nav__link:hover { color: #fff; }
.nav__link:hover:not(.btn)::after { transform: scaleX(1); }
.nav__link--mobile-cta { display: none; }
.nav__cta { display: inline-flex; }

.hamburger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); position: relative; }
.hamburger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 25px; }
.hamburger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- 7. BUTTONS ---------- */
.btn {
  --btn-bg: var(--card);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  font-family: var(--font-head); white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s; overflow: hidden;
  will-change: transform;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--grad); background-size: 180%; color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(124, 58, 237, 0.7); background-position: 100%; }
.btn--ghost { background: var(--card); border: 1px solid var(--border-strong); color: #fff; backdrop-filter: blur(10px); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 0 24px -6px rgba(0, 229, 255, 0.5); }
/* ripple */
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.4); transform: translate(-50%, -50%) scale(0); animation: ripple 0.6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ---------- 8. HERO ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 40px); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; width: 100%; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; margin-bottom: 24px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-dim); max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 54px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats b { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.hero__stats span { font-size: 0.8rem; color: var(--text-mute); }

/* Hero visual */
.hero__visual { position: relative; }
.dashboard { padding: 20px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.dashboard::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: linear-gradient(140deg, rgba(124, 58, 237, 0.6), transparent 40%, transparent 60%, rgba(0, 229, 255, 0.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dashboard__head { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.dashboard__head .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.dashboard__head .dot:nth-child(1) { background: #ff5f57; }
.dashboard__head .dot:nth-child(2) { background: #febc2e; }
.dashboard__head .dot:nth-child(3) { background: #28c840; }
.dashboard__title { margin-left: auto; font-size: 0.82rem; color: var(--text-mute); }
.dashboard__kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.kpi { padding: 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.kpi__label { font-size: 0.75rem; color: var(--text-mute); }
.kpi__val { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.kpi__trend { font-size: 0.75rem; }
.kpi__trend.up { color: #34d399; }
.dashboard__chart svg { width: 100%; height: 110px; }
.chart-line { stroke-dasharray: 700; stroke-dashoffset: 700; }
.dashboard.animate .chart-line { animation: draw 2s var(--ease) forwards; }
.dashboard__bars { display: flex; align-items: flex-end; gap: 10px; height: 70px; margin-top: 16px; }
.dashboard__bars span { flex: 1; height: var(--h); background: var(--grad); border-radius: 6px 6px 0 0; opacity: 0.85; transform-origin: bottom; transform: scaleY(0); }
.dashboard.animate .dashboard__bars span { animation: barGrow 0.8s var(--ease) forwards; }
.dashboard__bars span:nth-child(1) { animation-delay: 0.1s; } .dashboard__bars span:nth-child(2) { animation-delay: 0.18s; } .dashboard__bars span:nth-child(3) { animation-delay: 0.26s; } .dashboard__bars span:nth-child(4) { animation-delay: 0.34s; } .dashboard__bars span:nth-child(5) { animation-delay: 0.42s; } .dashboard__bars span:nth-child(6) { animation-delay: 0.5s; } .dashboard__bars span:nth-child(7) { animation-delay: 0.58s; }
@keyframes barGrow { to { transform: scaleY(1); } }

.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; box-shadow: var(--shadow-soft); z-index: 3; }
.float-card b { font-family: var(--font-head); font-size: 1.1rem; display: block; }
.float-card small { color: var(--text-mute); font-size: 0.72rem; }
.float-card__icon { font-size: 1.4rem; }
.float-card--1 { top: -26px; right: -10px; animation: bob 5s ease-in-out infinite; }
.float-card--2 { bottom: -26px; left: -20px; animation: bob 6s ease-in-out infinite 0.5s; }
@keyframes bob { 50% { transform: translateY(-14px); } }

.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 20px; display: grid; place-items: start center; padding-top: 8px; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 2px; background: var(--accent); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- TRUST MARQUEE ---------- */
.trust { padding-block: 40px; position: relative; z-index: 2; }
.trust__label { text-align: center; color: var(--text-mute); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item { display: grid; place-items: center; min-width: 170px; padding: 18px 30px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--text-dim); letter-spacing: 0.02em; }

/* ---------- ABOUT ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.about__timeline { position: relative; padding-left: 30px; }
.about__timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary), var(--accent)); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 14px var(--accent); }
.tl-year { display: inline-block; font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.tl-item h3 { font-size: 1.3rem; margin-bottom: 6px; }
.tl-item p { color: var(--text-dim); }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card { padding: 26px; text-align: center; transition: transform 0.4s var(--ease), border-color 0.4s; }
.stat-card b { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.stat-card span { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- SERVICES ---------- */
.services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.svc {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
  cursor: default;
}
.svc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(180px circle at var(--px, 50%) var(--py, 0%), rgba(124, 58, 237, 0.16), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.svc:hover { transform: translateY(-6px); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.07); }
.svc:hover::before { opacity: 1; }
.svc__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); margin-bottom: 16px; transition: transform 0.4s var(--ease); }
.svc:hover .svc__icon { transform: scale(1.1) rotate(-6deg); }
.svc h3 { font-size: 1.1rem; margin-bottom: 6px; position: relative; }
.svc p { color: var(--text-dim); font-size: 0.9rem; position: relative; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.4s, margin 0.4s; }
.svc:hover p { max-height: 100px; opacity: 1; margin-top: 4px; }

/* ---------- PROCESS ---------- */
.process__line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.process__step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); transition: transform 0.4s var(--ease), border-color 0.4s; }
.process__step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.process__num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; display: block; margin-bottom: 8px; }
.process__step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.process__step p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- WHY ---------- */
.why__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.why__card { padding: 26px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.why__card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.why__icon { font-size: 2rem; margin-bottom: 14px; display: inline-block; transition: transform 0.4s var(--ease); }
.why__card:hover .why__icon { transform: translateY(-6px) scale(1.15); }
.why__card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.why__card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- PORTFOLIO ---------- */
.work__filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); font-weight: 600; font-size: 0.9rem; font-family: var(--font-head); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.filter:hover { color: #fff; border-color: var(--border-strong); }
.filter.is-active { color: #fff; background: var(--grad); border-color: transparent; }
.work__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.work__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); transition: transform 0.5s var(--ease), opacity 0.4s; }
.work__item.hide { display: none; }
.work__thumb { position: absolute; inset: 0; background: var(--wg); transition: transform 0.6s var(--ease); display: grid; place-items: center; }
.work__thumb::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 26px 26px; opacity: 0.5; }
.work__thumb span { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: rgba(255, 255, 255, 0.9); z-index: 1; }
.work__item:hover .work__thumb { transform: scale(1.08); }
.work__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(to top, rgba(5, 8, 22, 0.92), transparent 65%); opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s var(--ease); z-index: 2; }
.work__item:hover .work__overlay { opacity: 1; transform: none; }
.work__overlay small { color: var(--accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.work__overlay h3 { font-size: 1.2rem; margin-top: 4px; }

/* ---------- CASE STUDIES ---------- */
.cases__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.case { padding: 28px; transition: transform 0.4s var(--ease), border-color 0.4s; }
.case:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.case__tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); margin-bottom: 14px; }
.case h3 { font-size: 1.3rem; margin-bottom: 14px; }
.case__row { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 6px; }
.case__row b { color: #fff; }
.case__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.case__metrics b { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.case__metrics span { font-size: 0.72rem; color: var(--text-mute); }

/* ---------- METRICS / RINGS ---------- */
.metrics__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.metric { padding: 30px; text-align: center; transition: transform 0.4s var(--ease), border-color 0.4s; }
.metric:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.ring { position: relative; width: 140px; height: 140px; margin: 0 auto 18px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__bg { stroke: rgba(255, 255, 255, 0.08); }
.ring__fg { stroke: url(#loaderGrad); stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.4s var(--ease); }
.ring__val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.metric h3 { font-size: 1.05rem; color: var(--text-dim); font-weight: 600; }

/* ---------- TESTIMONIALS ---------- */
.testi__viewport { overflow: hidden; padding-block: 10px; }
.testi__track { display: flex; gap: 22px; transition: transform 0.6s var(--ease); padding-inline: var(--gutter); }
.tcard { flex: 0 0 clamp(300px, 42%, 460px); padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(14px); }
.tcard__stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 14px; }
.tcard__text { font-size: 1.05rem; line-height: 1.65; margin-bottom: 22px; }
.tcard__author { display: flex; align-items: center; gap: 14px; }
.tcard__avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: #fff; background: var(--grad); }
.tcard__name { font-weight: 700; font-family: var(--font-head); }
.tcard__role { color: var(--text-mute); font-size: 0.85rem; }
.testi__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.testi__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); font-size: 1.5rem; color: #fff; display: grid; place-items: center; transition: background 0.3s, border-color 0.3s, transform 0.3s; }
.testi__btn:hover { background: var(--grad); border-color: transparent; transform: scale(1.08); }
.testi__dots { display: flex; gap: 8px; }
.testi__dots button { width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); transition: width 0.3s, background 0.3s; }
.testi__dots button.active { width: 26px; background: var(--grad); }

/* ---------- PRICING ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.plan { padding: 34px 28px; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), border-color 0.4s; position: relative; }
.plan:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.plan--popular { border-color: transparent; background: rgba(124, 58, 237, 0.08); }
.plan--popular::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: var(--grad); background-size: 200%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: gradShift 5s linear infinite; pointer-events: none; }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; font-family: var(--font-head); white-space: nowrap; }
.plan__name { font-size: 1.3rem; margin-bottom: 12px; }
.plan__price { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.plan__price span { font-size: 1.4rem; vertical-align: super; color: var(--text-dim); }
.plan__price small { font-size: 1rem; font-weight: 500; color: var(--text-mute); }
.plan__desc { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 22px; }
.plan__list { display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan__list li { position: relative; padding-left: 28px; color: var(--text-dim); font-size: 0.92rem; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 229, 255, 0.12); color: var(--accent); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; transition: border-color 0.3s; }
.faq__item.open { border-color: var(--border-strong); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-align: left; }
.faq__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: var(--accent); border-radius: 2px; transition: transform 0.3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.open .faq__icon::after { transform: rotate(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { padding: 0 24px 22px; color: var(--text-dim); }

/* ---------- BLOG ---------- */
.blog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.post { overflow: hidden; padding: 0; transition: transform 0.4s var(--ease), border-color 0.4s; }
.post:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.post__img { aspect-ratio: 16/9; background: var(--g); position: relative; display: grid; place-items: start; overflow: hidden; }
.post__img span { margin: 16px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(0, 0, 0, 0.3); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px); z-index: 1; }
.post__img::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 24px 24px; transition: transform 0.6s var(--ease); }
.post:hover .post__img::after { transform: scale(1.1); }
.post__body { padding: 22px; }
.post__meta { font-size: 0.78rem; color: var(--text-mute); }
.post__body h3 { font-size: 1.15rem; margin: 8px 0 14px; }

.link-underline { position: relative; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- CTA ---------- */
.cta__box { position: relative; text-align: center; padding: clamp(50px, 8vw, 90px) clamp(24px, 5vw, 60px); overflow: hidden; border: 1px solid var(--border-strong); background: linear-gradient(140deg, rgba(79, 70, 229, 0.14), rgba(0, 229, 255, 0.08)); }
.cta__glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 65%); top: -200px; left: 50%; transform: translateX(-50%); filter: blur(40px); }
.cta__box h2 { position: relative; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.cta__box p { position: relative; color: var(--text-dim); font-size: 1.15rem; margin-bottom: 32px; }
.cta__box .btn { position: relative; }

/* ---------- CONTACT ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact__list { display: grid; gap: 14px; margin: 28px 0; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); font-size: 1.1rem; }
.contact__list a { color: var(--text-dim); transition: color 0.3s; }
.contact__list a:hover { color: var(--accent); }
.contact__map { height: 180px; display: grid; place-items: center; overflow: hidden; position: relative; background-image: linear-gradient(rgba(124,58,237,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,0.08) 1px, transparent 1px); background-size: 34px 34px; }
.contact__map-pin { color: var(--text-dim); font-size: 0.9rem; text-align: center; padding: 0 20px; }

.contact__form { padding: 32px; display: grid; gap: 22px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 18px 16px 8px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); color: #fff; font-size: 0.98rem; transition: border-color 0.3s, background 0.3s; resize: vertical; }
.field textarea { min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.05); }
.field label { position: absolute; left: 16px; top: 15px; color: var(--text-mute); pointer-events: none; transition: transform 0.25s var(--ease), color 0.25s, font-size 0.25s; transform-origin: left; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.78); color: var(--accent); }
.field__error { display: block; color: #f87171; font-size: 0.78rem; margin-top: 6px; min-height: 0; opacity: 0; transition: opacity 0.3s; }
.field.invalid input, .field.invalid textarea { border-color: #f87171; }
.field.invalid .field__error { opacity: 1; }
.contact__success { text-align: center; color: #34d399; font-weight: 600; }

/* ---------- FOOTER ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--border); padding-top: clamp(50px, 7vw, 80px); background: linear-gradient(to bottom, transparent, rgba(10, 15, 36, 0.6)); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { color: var(--text-dim); font-size: 0.92rem; margin: 16px 0; max-width: 300px; }
.footer__parent { display: inline-flex; gap: 4px; color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.footer__col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-dim); padding: 6px 0; transition: color 0.3s, transform 0.3s; }
.footer__col a:hover { color: #fff; transform: translateX(4px); }
.footer__icons { display: flex; gap: 10px; flex-wrap: wrap; }
.social { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text-dim); transition: color 0.3s, border-color 0.3s, transform 0.3s, background 0.3s; }
.social:hover { color: #fff; border-color: transparent; background: var(--grad); transform: translateY(-3px); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: 0.85rem; }

/* ---------- FLOATING ACTION BUTTONS ---------- */
.fab { position: fixed; right: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-soft); transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s; }
.fab--wa { bottom: 24px; background: #25d366; color: #fff; }
.fab--wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: fabPing 2s ease-out infinite; }
@keyframes fabPing { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }
.fab--wa:hover { transform: scale(1.1); }
.fab--top { bottom: 92px; background: var(--card); border: 1px solid var(--border-strong); color: #fff; backdrop-filter: blur(10px); opacity: 0; visibility: hidden; }
.fab--top.show { opacity: 1; visibility: visible; }
.fab--top:hover { transform: translateY(-3px); background: var(--grad); border-color: transparent; }

/* ---------- 9. MICRO-INTERACTIONS: TILT ---------- */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* Skeleton shimmer (used before injected content renders) */
.skeleton { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.04); border-radius: var(--radius); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- 10. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin-inline: auto; order: -1; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .process__line { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 66px; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch;
    gap: 8px; padding: 22px var(--gutter) 30px;
    background: rgba(5, 8, 22, 0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform 0.45s var(--ease); pointer-events: none;
  }
  .nav__menu.open { transform: translateY(0); pointer-events: auto; }
  .nav__link { padding: 14px 16px; font-size: 1.05rem; }
  .nav__link--mobile-cta { display: flex; margin-top: 8px; }
  .nav__cta { display: none; }
  .hamburger { display: block; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about__cards { grid-template-columns: 1fr 1fr; }
  .testi__track { padding-inline: var(--gutter); }
  .tcard { flex: 0 0 88%; }
  .float-card { display: none; }
  body.has-cursor { cursor: auto; }
}

@media (max-width: 520px) {
  :root { --gutter: 18px; }
  .process__line { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__actions .btn { flex: 1; }
  .case__metrics { grid-template-columns: 1fr; gap: 8px; text-align: left; }
  .fab { width: 50px; height: 50px; }
}
