/* =========================================================================
   MindSpark — Premium Design System
   Author: (generated) — vanilla CSS, no framework.
   Structure: tokens → base → layout → components → sections → utilities
   ========================================================================= */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* brand */
  --brand-1: #ee785b;   /* coral */
  --brand-2: #f2916f;   /* warm coral */
  --brand-3: #f6ad8e;   /* light peach */
  --brand-4: #ee785b;   /* coral */
  --grad-brand: linear-gradient(120deg, #e85a3e 0%, #ee785b 50%, #f4a081 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(238,120,91,.18), rgba(246,173,142,.12));
  --grad-text: linear-gradient(100deg, #f8b89c, #f2916f 45%, #ee785b);

  /* radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  /* spacing scale */
  --space-section: clamp(64px, 7.5vw, 116px);

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;

  /* fonts */
  --font-sans: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;

  --container: 1200px;
}

/* Dark theme (default) */
:root, :root[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-2: #101013;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #141419;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(246, 173, 142, 0.20);
  --text: #f4f2ec;
  --text-2: #b3ad9e;
  --text-3: #7c776b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 20px 45px -20px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 90px -30px rgba(0,0,0,.85);
  --glow: 0 0 80px -20px rgba(238,120,91,.5);
  --nav-bg: rgba(10, 10, 12, 0.65);
  --on-brand: #ffffff;
  color-scheme: dark;
}

/* Light theme */
:root[data-theme="light"] {
  --bg: #faf9f5;
  --bg-2: #f2efe6;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: #ffffff;
  --surface-solid: #ffffff;
  --border: rgba(60, 50, 20, 0.10);
  --border-strong: rgba(60, 50, 20, 0.18);
  --text: #1a160d;
  --text-2: #5a5240;
  --text-3: #8a8270;
  --shadow-sm: 0 1px 2px rgba(40,34,10,.06);
  --shadow-md: 0 20px 45px -22px rgba(60,50,20,.24);
  --shadow-lg: 0 40px 90px -34px rgba(60,50,20,.30);
  --glow: 0 0 80px -18px rgba(238,120,91,.30);
  --nav-bg: rgba(250, 249, 245, 0.72);
  /* deeper coral so accents read on white */
  --brand-1: #d1543a;
  --brand-2: #d95a3c;
  --brand-3: #c74f36;
  color-scheme: light;
}

/* ------------------------------------------------------------------ Reset */
*, *::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: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(238,120,91,.35); color: #fff; }

/* Ambient background layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 12% 4%, rgba(238,120,91,.20), transparent 60%),
    radial-gradient(50% 45% at 92% 8%, rgba(246,173,142,.15), transparent 60%),
    radial-gradient(45% 45% at 50% 100%, rgba(240,150,120,.10), transparent 60%);
  pointer-events: none;
}
:root[data-theme="light"] body::before { opacity: .6; }

/* Fine grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .35;
  pointer-events: none;
}

/* ------------------------------------------------------------ Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { color: var(--text-2); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .gradient-text {
  background: linear-gradient(100deg, #d1543a, #e0694a 45%, #c74f36);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------ Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 68px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { margin-top: 16px; font-size: 1.075rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2);
  padding: 7px 14px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(12px);
  margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-3); box-shadow: 0 0 12px 2px var(--brand-3); }

.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: var(--r-full);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--grad-brand);
  color: var(--on-brand);
  box-shadow: 0 10px 30px -8px rgba(238,120,91,.5);
  position: relative;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(238,120,91,.75); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand-1); background: var(--surface-2); }

.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------ Cards */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s, background .4s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(242,145,111,.14), transparent 45%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 14px; margin-bottom: 20px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border);
  color: var(--brand-3);
}
:root[data-theme="light"] .card-icon { color: var(--brand-1); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: var(--r-lg);
}

/* ------------------------------------------------------------ Navbar */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .45s var(--ease);
}
.nav.hide { transform: translateY(-140%); }

/* floating glass pill */
.nav-wrap { max-width: var(--container); margin-inline: auto; padding: 14px 24px 0; transition: padding .35s var(--ease); }
.nav-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 66px; padding: 0 12px 0 20px; border-radius: var(--r-full);
  background: var(--nav-bg); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transition: box-shadow .35s, border-color .35s, background .35s;
}
.nav.scrolled .nav-wrap { padding-top: 8px; }
.nav.scrolled .nav-pill { box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

/* utility top bar (email / phone / whatsapp) */
.topbar { font-size: .8rem; transition: opacity .3s var(--ease), max-height .35s var(--ease), visibility .3s; max-height: 48px; }
.nav.scrolled .topbar { opacity: 0; visibility: hidden; max-height: 0; overflow: hidden; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 42px; padding-top: 6px; }
.tb-right { display: flex; gap: 26px; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-weight: 500; transition: color .25s; }
.tb-item:hover { color: var(--text); }
.tb-item svg { width: 15px; height: 15px; color: var(--brand-1); }
.tb-wa svg { color: #25d366; }
@media (max-width: 960px) { .topbar { display: none; } .nav-wrap { padding-top: 12px; } }
@media (max-width: 560px) { .nav-cta { display: none; } .nav-pill { height: 60px; } }

.brand-logo { display: block; border-radius: 10px; box-shadow: 0 6px 18px -4px rgba(238,120,91,.5); }
.mm-contact { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text-2) !important; }
.mm-contact svg { width: 18px; height: 18px; color: var(--brand-1); }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.15rem; font-family: var(--font-display); letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-brand); color: var(--on-brand); box-shadow: 0 6px 18px -4px rgba(238,120,91,.55);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand span b { font-weight: 800; }
.brand small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-link {
  padding: 9px 14px; border-radius: var(--r-full); font-size: .92rem; font-weight: 500; color: var(--text-2);
  transition: color .25s, background .25s; display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); }
.nav-link .chev { width: 15px; height: 15px; transition: transform .3s; }
.has-mega:hover .chev { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform .3s, border-color .3s, background .3s;
}
.theme-toggle:hover { transform: rotate(-15deg) scale(1.05); border-color: var(--brand-1); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(760px, 88vw);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
:root[data-theme="dark"] .mega { background: #141419; }
.has-mega:hover .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-item { display: flex; gap: 13px; padding: 12px; border-radius: var(--r-md); transition: background .25s; }
.mega-item:hover { background: var(--surface); }
.mega-item .mi-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--grad-brand-soft); border: 1px solid var(--border); color: var(--brand-3); }
:root[data-theme="light"] .mega-item .mi-ic { color: var(--brand-1); }
.mega-item .mi-ic svg { width: 19px; height: 19px; }
.mega-item h5 { font-size: .9rem; font-weight: 600; color: var(--text); }
.mega-item p { font-size: .78rem; margin-top: 2px; }

/* mobile nav */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu {
  position: fixed; inset: 86px 0 0; z-index: 99;
  background: var(--bg); padding: 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { padding: 15px 16px; border-radius: var(--r-md); font-size: 1.05rem; font-weight: 500; border: 1px solid transparent; }
.mobile-menu a:hover { background: var(--surface); border-color: var(--border); }
.mobile-menu .btn { margin-top: 12px; }

/* ------------------------------------------------------------ Hero */
.hero { padding-top: 178px; padding-bottom: 90px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero-visual { position: relative; }
.hero .lead { font-size: 1.18rem; max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-badges .hb { }
.hero-badges .hb b { font-family: var(--font-display); font-size: 1.7rem; display: block; }
.hero-badges .hb span { font-size: .82rem; color: var(--text-3); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* floating blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .5; animation: float 14s ease-in-out infinite; }
.blob.b1 { width: 380px; height: 380px; background: var(--brand-1); top: -80px; left: -60px; }
.blob.b2 { width: 300px; height: 300px; background: var(--brand-3); bottom: -60px; right: 10%; animation-delay: -5s; }
@keyframes float { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(30px,-30px) scale(1.08);} }

/* Dashboard mockup */
.mockup {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg), var(--glow);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-11deg) rotateX(5deg);
  transition: transform .6s var(--ease);
}
:root[data-theme="dark"] .mockup { background: linear-gradient(160deg, #15151b, #0e0e12); }
.hero-grid:hover .mockup { transform: perspective(1600px) rotateY(-6deg) rotateX(3deg); }
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.mockup-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.mockup-bar i:nth-child(1){ background:#ff5f57;} .mockup-bar i:nth-child(2){ background:#febc2e;} .mockup-bar i:nth-child(3){ background:#28c840;}
.mockup-bar .url { margin-left: 10px; font-size: .72rem; color: var(--text-3); padding: 4px 12px; background: var(--surface); border-radius: var(--r-full); }
.mockup-body { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-stat { grid-column: span 1; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.mk-stat .lbl { font-size: .7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.mk-stat .val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-top: 6px; }
.mk-stat .val small { font-size: .72rem; color: #22c55e; font-weight: 600; margin-left: 6px; }
.mk-chart { grid-column: span 2; height: 150px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); padding: 16px; position: relative; overflow: hidden; }
.mk-chart .bars { display: flex; align-items: flex-end; gap: 9px; height: 100%; }
.mk-chart .bars span { flex: 1; border-radius: 5px 5px 0 0; background: var(--grad-brand); opacity: .85; animation: grow 1.4s var(--ease) backwards; }
@keyframes grow { from { height: 0 !important; opacity: 0; } }

.float-card {
  position: absolute; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; animation: bob 6s ease-in-out infinite;
}
:root[data-theme="dark"] .float-card { background: #16161c; }
.float-card .fc-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-brand-soft); color: var(--brand-3); }
.float-card .fc-ic svg { width: 17px; height: 17px; }
.float-card.fc1 { top: 6%; right: -1%; }
.float-card.fc2 { bottom: 12%; left: -3%; animation-delay: -3s; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

/* ------------------------------------------------------------ Marquee / logos */
.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: 60px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .logo { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--text-3); white-space: nowrap; display: flex; align-items: center; gap: 9px; transition: color .3s; }
.marquee-track .logo:hover { color: var(--text); }
.marquee-track .logo svg { width: 24px; height: 24px; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* Stat strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 30px 18px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--text-2); font-size: .92rem; margin-top: 6px; }

/* ------------------------------------------------------------ Feature list (why us) */
.feature-row { display: flex; gap: 15px; align-items: flex-start; padding: 18px; border-radius: var(--r-md); transition: background .3s; }
.feature-row:hover { background: var(--surface); }
.feature-row .fr-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand-soft); border: 1px solid var(--border); color: var(--brand-3); }
:root[data-theme="light"] .feature-row .fr-ic { color: var(--brand-1); }
.feature-row .fr-ic svg { width: 22px; height: 22px; }
.feature-row h4 { font-size: 1.02rem; margin-bottom: 3px; }
.feature-row p { font-size: .88rem; }

/* ------------------------------------------------------------ Timeline / process */
.timeline { position: relative; display: grid; gap: 4px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--brand-1), var(--brand-3)); opacity: .4; }
.tl-step { display: flex; gap: 22px; padding: 18px 0; position: relative; }
.tl-num { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; background: var(--surface-solid); border: 1px solid var(--border-strong); color: var(--text); position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.tl-step:hover .tl-num { background: var(--grad-brand); color: var(--on-brand); border-color: transparent; }
.tl-body { padding-top: 6px; }
.tl-body h4 { font-size: 1.15rem; }
.tl-body p { font-size: .92rem; margin-top: 5px; max-width: 560px; }
.tl-step .tag { font-size: .72rem; color: var(--brand-3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ------------------------------------------------------------ Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-solid);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
  min-height: 300px; display: flex; flex-direction: column;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.case-visual { height: 172px; position: relative; overflow: hidden; display: grid; place-items: center; }
.case-visual .glow-mesh { position: absolute; inset: 0; opacity: .9; }
.case-visual .tag-chip { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .72rem; font-weight: 600; padding: 5px 11px; border-radius: var(--r-full); background: rgba(0,0,0,.35); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.case-visual .mini-ui { z-index: 1; width: 76%; border-radius: 12px 12px 0 0; border: 1px solid rgba(255,255,255,.18); border-bottom: none; background: rgba(10,12,24,.55); backdrop-filter: blur(8px); padding: 12px; align-self: flex-end; margin-bottom: -1px; }
.case-visual .mini-ui .row { height: 8px; border-radius: 4px; background: rgba(255,255,255,.22); margin-bottom: 7px; }
.case-visual .mini-ui .row.short { width: 55%; }
.case-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { font-size: 1.2rem; }
.case-body p { font-size: .9rem; margin-top: 8px; flex: 1; }
.case-meta { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chip { font-size: .74rem; padding: 5px 11px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.case-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--brand-3); transition: gap .3s; }
:root[data-theme="light"] .case-link { color: var(--brand-1); }
.case:hover .case-link { gap: 11px; }

/* ------------------------------------------------------------ Tech stack */
/* --- logo tile (shared by marquee + grid) --- */
.logo-tile {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(10px); white-space: nowrap;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s;
}
.logo-tile:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); background: var(--surface-2); }
.logo-tile .lt-ic {
  width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: rgba(10,12,22,.05); border: 1px solid var(--border);
}
:root[data-theme="dark"] .logo-tile .lt-ic { background: rgba(255,255,255,.06); }
.logo-tile .lt-ic img { width: 24px; height: 24px; object-fit: contain; display: block; }
.logo-tile .lt-svg { display: grid; place-items: center; }
.logo-tile .lt-svg svg { width: 23px; height: 23px; }
.logo-tile .lt-name { font-weight: 600; font-size: .93rem; }

/* --- homepage marquee rows --- */
#techMarquee { display: grid; gap: 16px; }
.marquee-track.logos { gap: 16px; animation-duration: 46s; }
.marquee-track.logos.rev { animation-direction: reverse; }
.marquee:hover .marquee-track.logos { animation-play-state: paused; }

/* --- technologies page: category card holding a logo grid --- */
.tech-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; backdrop-filter: blur(14px);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.tech-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.tech-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.tech-card-head .tc-ic {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand-soft); border: 1px solid var(--border); color: var(--brand-3);
}
:root[data-theme="light"] .tech-card-head .tc-ic { color: var(--brand-1); }
.tech-card-head .tc-ic svg { width: 23px; height: 23px; }
.tech-card-head h4 { font-size: 1.15rem; letter-spacing: -.01em; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logo-grid .logo-tile { padding: 11px 14px; }

/* --- legacy pills (used for hero chips) --- */
.tech-cat h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: 16px; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px;
  border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: .9rem; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.tech-pill:hover { transform: translateY(-3px); border-color: var(--brand-1); box-shadow: var(--shadow-md); }
.tech-pill .td { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-brand); }

/* ------------------------------------------------------------ Industries */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind {
  padding: 26px 22px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); transition: transform .35s, border-color .35s, background .35s;
  display: flex; flex-direction: column; gap: 14px;
}
.ind:hover { transform: translateY(-5px); border-color: var(--brand-1); background: var(--surface-2); }
.ind .ind-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand-soft); color: var(--brand-3); border: 1px solid var(--border); }
:root[data-theme="light"] .ind .ind-ic { color: var(--brand-1); }
.ind .ind-ic svg { width: 23px; height: 23px; }
.ind h4 { font-size: 1.05rem; }

/* ------------------------------------------------------------ Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(14px); transition: transform .4s, box-shadow .4s; }
.testi:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testi .stars { display: flex; gap: 3px; color: #fbbf24; margin-bottom: 16px; }
.testi .stars svg { width: 17px; height: 17px; }
.testi blockquote { font-size: 1rem; color: var(--text); line-height: 1.65; }
.testi .who { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.testi .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad-brand); font-family: var(--font-display); }
.testi .who b { display: block; font-size: .92rem; }
.testi .who span { font-size: .8rem; color: var(--text-3); }

/* ------------------------------------------------------------ Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price {
  display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface); position: relative; backdrop-filter: blur(14px);
  transition: transform .4s, box-shadow .4s, border-color .4s;
}
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price.featured { border-color: var(--brand-1); background: var(--surface-2); box-shadow: var(--glow); }
.price.featured::before { content: "Most Popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: var(--r-full); background: var(--grad-brand); color: #fff; }
.price h3 { font-size: 1.25rem; }
.price .desc { font-size: .86rem; margin-top: 6px; min-height: 40px; }
.price .amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; margin: 18px 0 4px; }
.price .amount small { font-size: .85rem; color: var(--text-3); font-weight: 500; }
.price ul { display: grid; gap: 12px; margin: 22px 0 26px; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.price li svg { width: 18px; height: 18px; flex: none; color: var(--brand-3); margin-top: 1px; }
:root[data-theme="light"] .price li svg { color: var(--brand-1); }
.price .btn { margin-top: auto; }

/* ------------------------------------------------------------ FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color .3s, background .3s; }
.faq-item.open { border-color: var(--border-strong); background: var(--surface-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.03rem; text-align: left; }
.faq-q .pm { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border); transition: transform .3s, background .3s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--grad-brand); color: var(--on-brand); border-color: transparent; }
.faq-q .pm svg { width: 16px; height: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 24px 22px; font-size: .95rem; }

/* ------------------------------------------------------------ Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.ci-row { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, transform .3s; }
.ci-row:hover { border-color: var(--brand-1); transform: translateX(4px); }
.ci-row .ci-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand-soft); color: var(--brand-3); border: 1px solid var(--border); }
:root[data-theme="light"] .ci-row .ci-ic { color: var(--brand-1); }
.ci-row .ci-ic svg { width: 22px; height: 22px; }
.ci-row span { font-size: .78rem; color: var(--text-3); display: block; }
.ci-row b { font-size: .98rem; font-weight: 600; }

.form { display: grid; gap: 16px; padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(14px); }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  padding: 13px 15px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
}
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field select, :root[data-theme="dark"] .field textarea { background: rgba(255,255,255,.03); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(238,120,91,.18); }
.field textarea { resize: vertical; min-height: 120px; }
.field.row2 { grid-template-columns: 1fr 1fr; display: grid; gap: 16px; }
.form-note { font-size: .78rem; color: var(--text-3); }
.form-success { display: none; padding: 14px 16px; border-radius: var(--r-md); background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #22c55e; font-size: .9rem; font-weight: 600; }
.form-success.show { display: block; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 22px; filter: grayscale(.2) contrast(1.05); }
:root[data-theme="dark"] .map-embed iframe { filter: invert(.92) hue-rotate(180deg) contrast(.9); }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ------------------------------------------------------------ CTA band */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(44px, 6vw, 76px); text-align: center; border: 1px solid var(--border-strong); background: var(--surface-solid); }
:root[data-theme="dark"] .cta-band { background: linear-gradient(150deg, #16161c, #0e0e12); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(238,120,91,.35), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; }

/* ------------------------------------------------------------ Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 70px; }
.footer-top { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 40px; padding-bottom: 50px; }
.footer-brand p { font-size: .92rem; margin: 18px 0 22px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: transform .3s, color .3s, border-color .3s; }
.footer-social a:hover { transform: translateY(-3px); color: var(--text); border-color: var(--brand-1); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 18px; }
.footer-col a { display: block; padding: 6px 0; font-size: .92rem; color: var(--text-2); transition: color .25s, padding-left .25s; }
.footer-col a:hover { color: var(--text); padding-left: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-3); flex-wrap: wrap; }
.footer-bottom .fb-links { display: flex; gap: 20px; }

/* ------------------------------------------------------------ Floating buttons */
.fab-whatsapp {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -6px rgba(37,211,102,.6);
  transition: transform .3s; animation: pulse 2.6s infinite;
}
.fab-whatsapp:hover { transform: scale(1.1); }
.fab-whatsapp svg { width: 30px; height: 30px; }
@keyframes pulse { 0%{ box-shadow: 0 12px 30px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 12px 30px -6px rgba(37,211,102,.6), 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 12px 30px -6px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0);} }

.back-top {
  position: fixed; bottom: 26px; right: 96px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface-solid); color: var(--text);
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
:root[data-theme="dark"] .back-top { background: #16161c; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { border-color: var(--brand-1); }
.back-top svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ Loader */
.loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--bg); transition: opacity .6s var(--ease), visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader .l-mark { width: 60px; height: 60px; border-radius: 16px; background: var(--grad-brand); display: grid; place-items: center; animation: loaderPulse 1.2s var(--ease) infinite; box-shadow: var(--glow); }
.loader .l-mark svg { width: 32px; height: 32px; color: var(--on-brand); }
@keyframes loaderPulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(.85); } }

/* ------------------------------------------------------------ Page hero (inner pages) */
.page-hero { padding-top: 168px; padding-bottom: 60px; text-align: center; position: relative; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.12rem; }
.breadcrumb { display: inline-flex; gap: 8px; font-size: .84rem; color: var(--text-3); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--text); }

/* ------------------------------------------------------------ Blog / cards misc */
.post { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-solid); transition: transform .4s, box-shadow .4s; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post .post-img { height: 180px; position: relative; }
.post .post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post .post-body .meta { font-size: .78rem; color: var(--text-3); margin-bottom: 10px; display: flex; gap: 10px; }
.post .post-body h3 { font-size: 1.15rem; }
.post .post-body p { font-size: .9rem; margin-top: 8px; flex: 1; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; } .reveal.d6 { transition-delay: .48s; }

/* utility */
.text-center { text-align: center; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:40px}
.mesh-a{background:linear-gradient(135deg,#ee785b,#f6ad8e);} .mesh-b{background:linear-gradient(135deg,#e85a3e,#f2916f);}
.mesh-c{background:linear-gradient(135deg,#f4a081,#f8c4a8);} .mesh-d{background:linear-gradient(135deg,#d94f36,#f2916f);}
.mesh-e{background:linear-gradient(135deg,#ee785b,#f4a081);} .mesh-f{background:linear-gradient(135deg,#e05038,#f6ad8e);}
.hidden-until-load{visibility:hidden}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .hero { padding-top: 128px; }
  .page-hero { padding-top: 124px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 30px; }
  .mockup { transform: none; }
  .hero-grid:hover .mockup { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .portfolio-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .container { padding-inline: 18px; }
  .hero { padding-top: 118px; }
  .portfolio-grid, .testi-grid, .pricing-grid, .ind-grid, .g-2, .g-3, .g-4, .stats-strip { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .back-top { right: 90px; }
  .hero-badges { gap: 18px; }
}
