/* =========================================================
   ESERVE INFOTECH — Global Stylesheet
   Modern minimal agency aesthetic, dark-first with light mode.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Colors — dark mode primary */
  --bg: #0A0A0F;
  --bg-elev: #111118;
  --bg-elev-2: #16161F;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #F5F5F7;
  --text-muted: #A0A0B0;
  --text-dim: #6E6E80;

  --primary: #7C5CFF;          /* Indigo violet */
  --primary-glow: #9D85FF;
  --accent: #22D3A6;           /* Mint green */
  --accent-glow: #5BE9C2;
  --warn: #F59E0B;
  --danger: #EF4444;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #7C5CFF 0%, #22D3A6 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 166, 0.12));
  --grad-radial: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.25), transparent 60%);

  /* Type */
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale (8pt) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --d-fast: 180ms;
  --d-base: 280ms;
  --d-slow: 520ms;

  /* Layout */
  --container: 1200px;
  --nav-h: 72px;
}

/* ---------- LIGHT MODE OVERRIDES ---------- */
[data-theme="light"] {
  --bg: #FAFAFB;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #F4F4F7;
  --surface: rgba(0, 0, 0, 0.03);
  --surface-strong: rgba(0, 0, 0, 0.05);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #0E0E14;
  --text-muted: #4A4A58;
  --text-dim: #6E6E80;
  --shadow-sm: 0 4px 16px rgba(20, 20, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 20, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 20, 40, 0.14);
}

/* ---------- BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background ambience */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(700px 400px at 100% 10%, rgba(34, 211, 166, 0.12), transparent 60%);
  z-index: 0;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(124, 92, 255, 0.10), transparent 60%),
    radial-gradient(700px 400px at 100% 10%, rgba(34, 211, 166, 0.08), transparent 60%);
}

main, nav, footer, section { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: color var(--d-fast) var(--ease); }
a:hover { color: var(--primary-glow); }

img, svg { max-width: 100%; display: block; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 var(--s-4); color: var(--text-muted); }

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

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--d-base) var(--ease), border-color var(--d-base) var(--ease);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  border-bottom-color: var(--border);
}
[data-theme="light"] .navbar { background: rgba(255, 255, 255, 0.65); }
[data-theme="light"] .navbar.scrolled { background: rgba(255, 255, 255, 0.92); }

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  height: 44px;
}
.logo svg { height: 38px; width: auto; color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active {
  color: var(--text);
  background: var(--surface-strong);
}

/* Dropdown for services */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  padding: var(--s-3);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-fast) var(--ease), transform var(--d-fast) var(--ease), visibility 0s linear var(--d-fast);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text-muted);
}
.dropdown a:hover { background: var(--surface); color: var(--text); }
.dropdown .ic {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  color: var(--primary-glow);
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: all var(--d-fast) var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-pill);
  transition: all var(--d-base) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(124, 92, 255, 0.5);
  color: #fff;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--primary-glow);
  color: var(--text);
}
.btn .arrow {
  width: 16px; height: 16px;
  transition: transform var(--d-fast) var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 span.line {
   display: block; 
  font-size: clamp(2rem, 4vw, 3rem);
  }
.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: var(--s-6);
}
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-7); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  max-width: 520px;
}
.hero-stats .stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--text);
  display: block;
  letter-spacing: -0.02em;
}
.hero-stats .stat span { font-size: 13px; color: var(--text-muted); }

/* Hero visual orb */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin: 0 auto;
}
.hero-visual .orb {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--grad-primary);
  filter: blur(60px);
  opacity: 0.55;
  animation: pulse 6s ease-in-out infinite;
}
.hero-visual .ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}
.hero-visual .ring::before,
.hero-visual .ring::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.hero-visual .ring::before { top: -7px; left: 50%; transform: translateX(-50%); }
.hero-visual .ring::after { bottom: -7px; left: 50%; transform: translateX(-50%); background: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.hero-visual .ring.r2 { inset: 12%; animation-duration: 22s; animation-direction: reverse; }
.hero-visual .ring.r3 { inset: 24%; animation-duration: 18s; }
.hero-visual .core {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg), inset 0 0 30px rgba(124, 92, 255, 0.2);
}
.hero-visual .core svg { width: 40%; color: var(--text); }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.06); opacity: .7; } }
@keyframes rotate { to { transform: rotate(360deg); } }

/* Trusted by strip */
.marquee {
  margin-top: var(--s-8);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-elev);
}
.marquee-track {
  display: flex;
  gap: 60px;
  padding: var(--s-5) 0;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track span::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- CARDS / GRID ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid.g-2 { grid-template-columns: 1fr; }
.grid.g-3 { grid-template-columns: 1fr; }
.grid.g-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid.g-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.g-3 { grid-template-columns: repeat(2, 1fr); }
  .grid.g-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid.g-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.g-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  transition: all var(--d-base) var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity var(--d-base) var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card .icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--primary-glow);
  margin-bottom: var(--s-4);
  transition: transform var(--d-base) var(--ease);
}
.card:hover .icon { transform: scale(1.05) rotate(-3deg); }
.card .icon svg { width: 26px; height: 26px; }

.card h3 { color: var(--text); margin-bottom: var(--s-2); }
.card p { font-size: 15px; color: var(--text-muted); margin-bottom: var(--s-4); }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.card .more svg { width: 14px; height: 14px; transition: transform var(--d-fast) var(--ease); }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- PAGE HEADER ---------- */
.page-head {
  padding: calc(var(--nav-h) + 80px) 0 60px;
  text-align: center;
  position: relative;
}
.page-head .crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-3);
}
.page-head .crumbs a:hover { color: var(--accent); }
.page-head h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.page-head p { 
  max-width: 865px !important;
  text-align: justify !important;
  margin: var(--s-4) auto 0;
  color: var(--text-muted); 
}

/* ---------- PROCESS / STEPS ---------- */
.steps {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
}
.step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: var(--s-3);
  display: block;
}
.step h3 { margin-bottom: var(--s-2); color: var(--text); }
.step p { font-size: 14px; }

/* ---------- TESTIMONIALS ---------- */
.testimonial {
  padding: var(--s-7);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 8px; left: 24px;
  font-family: serif;
  font-size: 120px;
  line-height: 1;
  color: var(--primary);
  opacity: 0.18;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: var(--s-5);
  position: relative;
}
.testimonial .who {
  display: flex; align-items: center; gap: var(--s-3);
}
.testimonial .who .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.testimonial .who strong { color: var(--text); display: block; font-size: 14px; }
.testimonial .who span { color: var(--text-dim); font-size: 13px; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  position: relative;
  padding: clamp(48px, 8vw, 96px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(1000px 400px at 0% 0%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(34, 211, 166, 0.25), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--border-strong);
  text-align: center;
  overflow: hidden;
}
.cta-banner h2 { max-width: 720px; margin: 0 auto var(--s-4); }
.cta-banner p { max-width: 560px; margin: 0 auto var(--s-6); }
.cta-actions { display: inline-flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-8);
}
.foot-grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
  margin-bottom: var(--s-7);
}
@media (min-width: 768px) {
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.foot-brand p { max-width: 320px; font-size: 14px; }
.foot-brand .socials { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.foot-brand .socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.foot-brand .socials a:hover { color: var(--text); border-color: var(--primary); background: var(--surface); }
.foot-brand .socials svg { width: 16px; height: 16px; }

.foot-col h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-4);
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--text-muted); }
.foot-col a:hover { color: var(--text); }

.foot-base {
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- ABOUT / VALUES ---------- */
.value-grid { display: grid; gap: var(--s-5); }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.value .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: var(--s-3);
}

.about-grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-img {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.4), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(34, 211, 166, 0.4), transparent 55%),
    var(--bg-elev-2);
  display: grid; place-items: center;
}
.about-img svg { width: 50%; opacity: 0.95; color: var(--text); }
.about-img .badge {
  position: absolute;
  bottom: 24px; left: 24px;
  padding: 12px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- TEAM ---------- */
.team-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.tm {
  text-align: center;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.tm .ph {
  width: 96px; height: 96px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
}
.tm strong { display: block; color: var(--text); margin-bottom: 4px; }
.tm span { font-size: 13px; color: var(--text-muted); }

/* ---------- PORTFOLIO ---------- */
.filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-7);
}
.filters button {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--d-fast) var(--ease);
}
.filters button.active {
  background: var(--grad-primary);
  color: #fff;
}
.filters button:not(.active):hover { background: var(--surface); color: var(--text); }

.portfolio-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.proj {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: all var(--d-base) var(--ease);
  cursor: pointer;
}
.proj:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.proj .thumb {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.proj .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
}
.proj .meta {
  padding: var(--s-5);
}
.proj .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.proj h3 { font-size: 1.15rem; margin-bottom: 4px; color: var(--text); }
.proj .meta p { font-size: 13px; margin: 0; color: var(--text-muted); }

/* Procedurally generated thumbnails */
.thumb-1 { background: linear-gradient(135deg, #7C5CFF, #4F46E5); }
.thumb-2 { background: linear-gradient(135deg, #22D3A6, #0EA5E9); }
.thumb-3 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.thumb-4 { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.thumb-5 { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.thumb-6 { background: linear-gradient(135deg, #10B981, #059669); }
.thumb-art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }

.contact-info { display: grid; gap: var(--s-4); }
.info-card {
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}
.info-card .icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--grad-soft);
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.info-card h4 { color: var(--text); margin-bottom: 4px; }
.info-card p { margin: 0; font-size: 14px; }

.form {
  padding: var(--s-7);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  display: grid;
  gap: var(--s-4);
}
.form .row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form .row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  transition: all var(--d-fast) var(--ease);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}
.field .err { color: var(--danger); font-size: 12px; min-height: 14px; }

.form-success {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(34, 211, 166, 0.10);
  border: 1px solid rgba(34, 211, 166, 0.4);
  color: var(--accent);
  font-size: 14px;
  display: none;
}
.form-success.show { display: block; }

/* ---------- SERVICE DETAIL ---------- */
.svc-hero {
  padding: calc(var(--nav-h) + 60px) 0 40px;
  text-align: center;
  position: relative;
}
.svc-hero .icon-lg {
  width: 84px; height: 84px;
  margin: 0 auto var(--s-5);
  border-radius: var(--r-lg);
  background: var(--grad-primary);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.svc-hero .icon-lg svg { width: 40px; height: 40px; }

.feat-list {
  display: grid;
  gap: var(--s-4);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) { .feat-list { grid-template-columns: repeat(2, 1fr); } }
.feat-list li {
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.feat-list .check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}
.feat-list .check svg { width: 14px; height: 14px; }
.feat-list strong { display: block; color: var(--text); margin-bottom: 4px; }
.feat-list p { margin: 0; font-size: 14px; }

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
}
.pill {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-3); max-width: 820px; margin: 0 auto; }
.faq details {
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  transition: border-color var(--d-fast) var(--ease);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform var(--d-fast) var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: var(--s-3) 0 0; font-size: 14px; }

/* ---------- ANIMATIONS — REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }
.reveal.delay-5 { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track,
  .hero-visual .ring,
  .hero-visual .orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- MOBILE NAV ---------- */
@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--s-5);
    gap: var(--s-2);
    transform: translateX(100%);
    transition: transform var(--d-base) var(--ease);
    border-top: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; font-size: 16px; border-radius: var(--r-md); }
  .nav-links .has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: var(--bg-elev);
    margin-top: var(--s-2);
  }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
}

/* ---------- UTILITIES ---------- */
.center { text-align: center; }
.mt-7 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* =========================================================
   ENHANCEMENTS — illustrations, motion, mockups
   ========================================================= */

/* ---------- SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 200;
  transition: width 80ms linear;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
  pointer-events: none;
}

/* ---------- BACKGROUND GRID + FLOATING SHAPES ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
}

.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-shapes .blob {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.bg-shapes .b1 { background: #7C5CFF; top: -120px; left: -120px; animation: float1 18s ease-in-out infinite; }
.bg-shapes .b2 { background: #22D3A6; bottom: -160px; right: -100px; animation: float2 22s ease-in-out infinite; opacity: 0.4; }
.bg-shapes .b3 { background: #EC4899; top: 40%; left: 60%; width: 320px; height: 320px; animation: float3 26s ease-in-out infinite; opacity: 0.25; }
[data-theme="light"] .bg-shapes .blob { opacity: 0.3; }
[data-theme="light"] .bg-shapes .b3 { opacity: 0.18; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px, 60px) scale(1.1); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-100px, -80px) scale(1.15); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-140px, 100px) scale(0.9); } }

/* ---------- SPOTLIGHT (cursor-tracked glow on cards) ---------- */
.spotlight {
  position: relative;
  isolation: isolate;
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(124, 92, 255, 0.18),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 320ms var(--ease);
  z-index: 0;
}
.spotlight:hover::after { opacity: 1; }

/* ---------- TILT CARD ---------- */
.tilt {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 220ms var(--ease);
}

/* ---------- HERO MOCKUP (rich animated dashboard) ---------- */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 5 / 4;
  perspective: 1400px;
}
.hero-mockup .floating { position: absolute; transition: transform 220ms var(--ease); }

/* Browser window */
.browser {
  position: absolute;
  inset: 8% 4% 12% 4%;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(124, 92, 255, 0.18);
  overflow: hidden;
  transform: rotate(-2deg);
  animation: floatY 6s ease-in-out infinite;
}
.browser .bar {
  height: 28px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.browser .bar i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  display: inline-block;
}
.browser .bar i:nth-child(1) { background: #FF5F57; }
.browser .bar i:nth-child(2) { background: #FEBC2E; }
.browser .bar i:nth-child(3) { background: #28C840; }
.browser .bar .url {
  flex: 1;
  height: 18px;
  margin-left: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 10px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
}
.browser .body { padding: 18px; height: calc(100% - 28px); }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 100%;
}
.dash-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.dash-card .lbl { font-size: 9px; font-family: var(--font-mono); color: var(--text-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.dash-card .val { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--text); margin-top: 2px; }
.dash-card .delta { font-size: 10px; color: var(--accent); font-weight: 600; }

/* Animated chart bars */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
  margin-top: 8px;
}
.chart-bars span {
  flex: 1;
  background: var(--grad-primary);
  border-radius: 2px;
  height: 0;
  animation: growBar 1.4s var(--ease) forwards;
}
.chart-bars span:nth-child(1) { animation-delay: 0.1s; --h: 50%; }
.chart-bars span:nth-child(2) { animation-delay: 0.2s; --h: 75%; }
.chart-bars span:nth-child(3) { animation-delay: 0.3s; --h: 40%; }
.chart-bars span:nth-child(4) { animation-delay: 0.4s; --h: 90%; }
.chart-bars span:nth-child(5) { animation-delay: 0.5s; --h: 65%; }
.chart-bars span:nth-child(6) { animation-delay: 0.6s; --h: 100%; }
@keyframes growBar { from { height: 0; } to { height: var(--h); } }

/* SVG line chart */
.chart-line { width: 100%; height: 56px; margin-top: 6px; }
.chart-line path.area { fill: url(#chartGrad); opacity: 0.2; }
.chart-line path.stroke {
  fill: none;
  stroke: url(#chartStroke);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2s var(--ease) forwards 0.4s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.dash-pie {
  width: 64px; height: 64px;
  border-radius: 50%;
  background:
    conic-gradient(#7C5CFF 0% 35%, #22D3A6 35% 60%, #EC4899 60% 80%, #F59E0B 80% 100%);
  margin: 8px auto 0;
  position: relative;
  animation: spinIn 1.6s var(--ease) forwards;
  transform: rotate(-90deg) scale(0.5);
  opacity: 0;
}
.dash-pie::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--bg-elev-2);
}
@keyframes spinIn { to { transform: rotate(0) scale(1); opacity: 1; } }

/* Floating mini cards */
.float-card {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  z-index: 2;
}
.float-card .ic-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.float-card .ic-circle svg { width: 14px; height: 14px; }
.float-card .meta-row { line-height: 1.2; }
.float-card .meta-row strong { display: block; font-size: 12px; color: var(--text); }
.float-card .meta-row span { font-size: 10px; color: var(--text-dim); }

.float-card.fc-1 {
  top: 4%; left: -4%;
  animation: floatY 5.2s ease-in-out infinite, fadeUp 700ms var(--ease) 200ms backwards;
}
.float-card.fc-2 {
  bottom: 6%; right: -2%;
  animation: floatY 7s ease-in-out infinite reverse, fadeUp 700ms var(--ease) 400ms backwards;
}
.float-card.fc-3 {
  top: 50%; right: -8%;
  animation: floatY 6s ease-in-out infinite, fadeUp 700ms var(--ease) 600ms backwards;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Glow ring behind mockup */
.hero-mockup::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: var(--grad-primary);
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}

/* ---------- BROWSER-FRAME PORTFOLIO MOCKUPS ---------- */
.proj .thumb {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.mockup-frame {
  position: absolute;
  inset: 14% 10% 6% 10%;
  border-radius: 10px;
  background: rgba(20, 20, 30, 0.94);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 400ms var(--ease);
}
.proj:hover .mockup-frame { transform: translateY(-6px); }
.mockup-frame .topbar {
  height: 18px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mockup-frame .topbar i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.mockup-frame .topbar i:nth-child(1) { background: #FF5F57; }
.mockup-frame .topbar i:nth-child(2) { background: #FEBC2E; }
.mockup-frame .topbar i:nth-child(3) { background: #28C840; }
.mockup-frame .canvas {
  height: calc(100% - 18px);
  padding: 10px;
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
}
.mock-row {
  height: 8px;
  border-radius: 3px;
  background: rgba(255,255,255,0.18);
}
.mock-row.w70 { width: 70%; }
.mock-row.w50 { width: 50%; }
.mock-row.w90 { width: 90%; }
.mock-row.accent { background: linear-gradient(90deg, #7C5CFF, #22D3A6); height: 14px; width: 40%; border-radius: 4px; }
.mock-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock-tile {
  aspect-ratio: 4/3;
  border-radius: 6px;
  background: rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
}
.mock-tile.g1 { background: linear-gradient(135deg, #7C5CFF, #4F46E5); }
.mock-tile.g2 { background: linear-gradient(135deg, #22D3A6, #0EA5E9); }
.mock-tile.g3 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.mock-bars { display: flex; gap: 3px; align-items: flex-end; height: 30px; padding-top: 4px; }
.mock-bars span {
  flex: 1;
  background: linear-gradient(180deg, #22D3A6, #7C5CFF);
  border-radius: 2px;
}

/* Phone mockup */
.mockup-phone {
  position: absolute;
  inset: 8% 30% 6% 30%;
  border-radius: 18px;
  background: rgba(20, 20, 30, 0.94);
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform 400ms var(--ease);
}
.proj:hover .mockup-phone { transform: translateY(-6px) rotate(-1deg); }
.mockup-phone .notch {
  width: 30%; height: 8px;
  background: #000;
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
}
.mockup-phone .canvas { padding: 8px; display: grid; gap: 4px; }

/* Code window */
.mockup-code .canvas {
  background: #0B0B12;
  font-size: 9px;
  color: #22D3A6;
  padding: 8px 10px;
  line-height: 1.6;
}
.mockup-code .canvas span { display: block; }
.mockup-code .kw { color: #C792EA; }
.mockup-code .str { color: #FFCB6B; }
.mockup-code .com { color: #6E6E80; }

/* Hide the old thumb-art when mockup is present */
.proj .thumb .thumb-art { z-index: 1; opacity: 0; }

/* ---------- ABOUT ILLUSTRATION ---------- */
.illu-stack {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  display: grid;
  place-items: center;
  padding: 40px;
}
.illu-stack svg { width: 100%; height: auto; max-width: 360px; }
.illu-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.4), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(34, 211, 166, 0.4), transparent 55%);
}
.illu-stack > * { position: relative; z-index: 1; }
.illu-stack .badge {
  position: absolute;
  bottom: 24px; left: 24px;
  padding: 12px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  z-index: 2;
}

/* About illustration — theme-aware fills */
.illu-bg-card { fill: rgba(255,255,255,0.06); stroke: rgba(255,255,255,0.18); }
.illu-front-card { fill: rgba(20,20,30,0.92); stroke: rgba(124,92,255,0.5); }
.illu-row { fill: rgba(255,255,255,0.20); }
.illu-row-strong { fill: rgba(255,255,255,0.7); }
.illu-tray { fill: rgba(255,255,255,0.05); }
.illu-label { fill: rgba(255,255,255,0.65); }
.illu-stat { fill: #fff; }

[data-theme="light"] .illu-bg-card { fill: rgba(255,255,255,0.85); stroke: rgba(20,20,40,0.10); }
[data-theme="light"] .illu-front-card { fill: #FFFFFF; stroke: rgba(124,92,255,0.45); }
[data-theme="light"] .illu-row { fill: rgba(20,20,40,0.18); }
[data-theme="light"] .illu-row-strong { fill: rgba(20,20,40,0.85); }
[data-theme="light"] .illu-tray { fill: rgba(20,20,40,0.06); }
[data-theme="light"] .illu-label { fill: rgba(20,20,40,0.55); }
[data-theme="light"] .illu-stat { fill: #0E0E14; }

/* SVG draw on view */
.draw-path {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
}
.in .draw-path { animation: drawIn 1.6s var(--ease) forwards; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* ---------- MAGNETIC CTA ---------- */
.btn-primary { will-change: transform; }

/* ---------- MARQUEE LOGOS (replaces text) ---------- */
.marquee-track .logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--d-base) var(--ease);
}
.marquee-track .logo-chip svg { width: 20px; height: 20px; color: var(--accent); }
.marquee-track .logo-chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }

/* ---------- SECTION DIVIDER ---------- */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0 auto;
  max-width: 600px;
  position: relative;
}
.divider-glow::before {
  content: "";
  position: absolute;
  top: -2px; left: 50%;
  width: 60px; height: 5px;
  border-radius: 5px;
  background: var(--grad-primary);
  filter: blur(8px);
  transform: translateX(-50%);
  opacity: 0.7;
}

/* ---------- REVEAL VARIANTS ---------- */
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal-left.in,
.reveal-right.in,
.reveal-scale.in { opacity: 1; transform: none; }


/* ===================================
   ABOUT PAGE PREMIUM (EXACT REF)
   =================================== */
.about-premium-page .about-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 120px;
  background: linear-gradient(90deg, rgba(125,95,255,0.12) 0%, rgba(0,194,168,0.10) 100%);
}

.about-premium-page .about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 20, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 40, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.about-premium-page .container {
  width: 100%;
  max-width: var(--container);
  margin: auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

.about-premium-page .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.about-premium-page .hero-left span.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 25px;
  font-weight: 600;
}

.about-premium-page .hero-left h1 {
  font-size: 75px;
  line-height: 0.95;
  letter-spacing: -5px;
  font-weight: 900;
  margin-bottom: 35px;
  color: #111;
}

.about-premium-page .hero-left h1 strong {
  display: block;
  background: linear-gradient(90deg, #7b61ff 0%, #00c2a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-premium-page .hero-left p {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 40px;
}

.about-premium-page .hero-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.about-premium-page .primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: 100px;
  background: linear-gradient(90deg, #7b61ff, #00c2a8);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 15px 40px rgba(123,97,255,0.25);
  transition: 0.3s ease;
}

.about-premium-page .primary-btn:hover {
  transform: translateY(-4px);
}

.about-premium-page .secondary-btn {
  display: inline-flex;
  align-items: center;
  padding: 18px 30px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  color: #111 !important;
  font-weight: 600;
}

.about-premium-page .hero-right {
  position: relative;
}

.about-premium-page .hero-image {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.10);
  background: #eee;
  min-height: 400px;
}

.about-premium-page .hero-image img {
  width: 100%;
  height: 760px;
  object-fit: cover;
  display: block;
}

.about-premium-page .floating-card {
  position: absolute;
  left: -40px;
  bottom: 40px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 26px;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.about-premium-page .floating-card small {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  color: #777;
  margin-bottom: 15px;
  font-weight: 700;
}

.about-premium-page .floating-card h3 {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 15px;
  font-weight: 800;
  color: #111;
}

.about-premium-page .floating-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

/* Story Section */
.about-premium-page .story-section {
  position: relative;
  padding: 140px 0;
  background: #f7f7f8;
  overflow: visible; /* Fix: overflow: hidden breaks sticky scroll */
}

.about-premium-page .story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* CSS-only reveal fallback */
@keyframes fadeInUpPremium {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-premium-page .reveal {
  opacity: 0;
  animation: fadeInUpPremium 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.about-premium-page .delay-1 { animation-delay: 0.1s; }
.about-premium-page .delay-2 { animation-delay: 0.2s; }
.about-premium-page .delay-3 { animation-delay: 0.3s; }

@media (min-width: 1101px) {
  .about-premium-page .story-left {
    position: sticky;
    top: 120px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 80px;
    z-index: 10;
  }
}

.about-premium-page .story-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 28px;
}

.about-premium-page .story-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, #7b61ff, #00c2a8);
}

.about-premium-page .story-label span {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #666;
}

.about-premium-page .story-left h2 {
  font-size: 65px;
  line-height: 0.95;
  letter-spacing: -4px;
  font-weight: 900;
  margin-bottom: 35px;
  color: #111;
}

.about-premium-page .story-left h2 strong {
  display: block;
  background: linear-gradient(90deg, #7b61ff, #00c2a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-premium-page .story-left p {
  font-size: 18px;
  line-height: 1.9;
  color: #555;
  max-width: 600px;
}

.about-premium-page .story-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 80px;
}

.about-premium-page .story-card {
  position: relative;
  background: #fff;
  border-radius: 32px;
  padding: 45px;
  overflow: hidden;
  transition: 0.35s ease;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.about-premium-page .story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.about-premium-page .story-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  top: -80px;
  right: -80px;
  background: linear-gradient(90deg, rgba(123,97,255,0.08), rgba(0,194,168,0.08));
}

.about-premium-page .story-card span {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #7b61ff;
  margin-bottom: 18px;
}

.about-premium-page .story-card h3 {
  position: relative;
  z-index: 2;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  color: #111;
}

.about-premium-page .story-card p {
  position: relative;
  z-index: 2;
  font-size: 16px;
  line-height: 1.9;
  color: #555;
}

.about-premium-page .gradient-card {
  background: linear-gradient(135deg, #7b61ff 0%, #00c2a8 100%);
  color: #fff;
}

.about-premium-page .gradient-card span,
.about-premium-page .gradient-card p,
.about-premium-page .gradient-card h3 {
  color: #fff;
}

/* Responsive Overrides */
@media(max-width:1100px){
  .about-premium-page .hero-grid, .about-premium-page .story-grid { grid-template-columns: 1fr; }
  .about-premium-page .hero-left h1 { font-size: 68px; }
  .about-premium-page .story-left { position: relative; height: auto; padding-right: 0; margin-bottom: 70px; }
  .about-premium-page .story-left h2 { font-size: 58px; }
  .about-premium-page .hero-image img { height: 600px; }
}

@media(max-width:768px){
  .about-premium-page .about-hero { padding: 100px 0 90px; }
  .about-premium-page .hero-left h1 { font-size: 50px; letter-spacing: -2px; }
  .about-premium-page .story-left h2 { font-size: 44px; letter-spacing: -2px; }
  .about-premium-page .hero-image img { height: 500px; }
  .about-premium-page .floating-card { position: relative; left: auto; bottom: auto; margin-top: 20px; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
  .bg-shapes .blob { animation: none; }
  .browser, .float-card, .chart-bars span, .chart-line path.stroke, .dash-pie { animation: none !important; }
  .hero-mockup .floating { transition: none; }
}
