/* =====================================================================
   Mash Mini IT — Theme v2.0  (clean rebuild)
   Modern · Fully responsive · Real dark / light
   Self-contained design system. No WordPress / WPBakery dependencies.
   ===================================================================== */

/* ---------------------------------------------------------------- Tokens */
:root {
  /* Brand */
  --primary:    #0a84ff;
  --primary-2:  #0066d6;
  --accent:     #ff5e3a;
  --accent-2:   #ff9500;
  --grad-primary: linear-gradient(135deg, #2b8fff 0%, #0066e6 100%);
  --grad-accent:  linear-gradient(135deg, #ff9500 0%, #ff4d4d 100%);
  --grad-hero:    radial-gradient(1100px 600px at 85% -10%, rgba(10,132,255,.20), transparent 60%),
                  radial-gradient(900px 500px at -10% 20%, rgba(255,94,58,.16), transparent 55%);

  /* Light surfaces */
  --bg:        #f4f7fc;
  --surface:   #ffffff;
  --surface-2: #eef3fb;
  --text:      #16203a;
  --text-soft: #3c4763;
  --muted:     #67738f;
  --border:    #e5ebf5;
  --header-bg: rgba(255,255,255,.82);
  --header-brd: rgba(20,40,80,.08);

  --shadow-sm: 0 2px 10px rgba(20,40,80,.06);
  --shadow-md: 0 14px 36px rgba(20,40,80,.10);
  --shadow-lg: 0 28px 64px rgba(20,40,80,.16);
  --ring:      0 0 0 4px rgba(10,132,255,.18);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --container: 1180px;
  --ease:      cubic-bezier(.22,1,.36,1);
  --t:         .3s var(--ease);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg:        #0b0f17;
  --surface:   #141a26;
  --surface-2: #1b2333;
  --text:      #e9eefb;
  --text-soft: #c3cce0;
  --muted:     #94a1bd;
  --border:    #28324a;
  --header-bg: rgba(11,15,23,.80);
  --header-brd: rgba(255,255,255,.08);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.4);
  --shadow-md: 0 16px 40px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
  --ring:      0 0 0 4px rgba(10,132,255,.30);
  --grad-hero: radial-gradient(1100px 600px at 85% -10%, rgba(10,132,255,.28), transparent 60%),
               radial-gradient(900px 500px at -10% 20%, rgba(255,94,58,.18), transparent 55%);
}

/* ------------------------------------------------------------- Base reset */
*, *::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.65;
  color: var(--text-soft);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color var(--t), color var(--t);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: clamp(1.2rem, .95rem + 1.1vw, 1.5rem); }
p  { margin: 0 0 1rem; }
a  { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul  { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--primary); color:#fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 5vw, 100px) 0; position: relative; }
.section--tint { background: var(--surface); }
.section--alt { background: var(--surface-2); }
.text-center { text-align: center; }
.grid { display: grid; gap: 26px; }
/* Grid/flex children may not shrink below content width by default,
   which pushes the page wider than small screens — allow shrinking. */
.grid > *, .split > *, .hero-inner > *, .contact-grid > *,
.footer-grid > *, .header-inner > * { min-width: 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section-head { max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* --------------------------------------------------------------- Buttons */
.btn {
  --b: var(--grad-primary);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  color: #fff; background: var(--b); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), filter var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); filter: brightness(1.06); color:#fff; }
.btn:active { transform: translateY(-1px); }
.btn--accent { --b: var(--grad-accent); }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); box-shadow: none;
}
.btn--ghost:hover { color: var(--primary); border-color: var(--primary); background: var(--surface); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
          backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--header-brd);
  transition: background-color var(--t), box-shadow var(--t), border-color var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 94px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--font-head); }
.brand img { height: 60px; width: auto; }
.brand b { color: var(--primary); }
.brand .brand-name { font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; line-height: 1; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--text-soft); font-family: var(--font-head); font-weight: 500; font-size: .96rem;
}
.main-nav a:hover, .main-nav .active > a { color: var(--primary); }
.main-nav .active > a { background: color-mix(in srgb, var(--primary) 10%, transparent); }

/* Dropdown */
.has-drop { position: relative; }
.has-drop > a::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .7;
}
.drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.has-drop:hover .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.drop a:hover { background: var(--surface-2); }

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

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: 0 0 auto; padding: 0;
  border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), color var(--t), background var(--t);
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-12deg); box-shadow: var(--shadow-md); color: var(--primary); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex: 0 0 auto;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform var(--t), opacity var(--t);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: rotate(-45deg) translateY(-2px); }

/* --------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); pointer-events: none; }
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px;
  align-items: center; padding: clamp(48px, 6vw, 96px) 0;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero-badges .b { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-weight: 600; font-family: var(--font-head); }
.hero-badges i { color: var(--primary); }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 28px; position: relative; z-index: 2;
}
.hero-card .logo-badge {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center;
  background: var(--grad-primary); box-shadow: var(--shadow-md); margin-bottom: 18px;
}
.hero-card .logo-badge img { height: 52px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 22px; }
.hero-stats .s { text-align: center; padding: 14px 8px; background: var(--surface-2); border-radius: 14px; }
.hero-stats .s b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--text); }
.hero-stats .s span { font-size: .78rem; color: var(--muted); }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 1; }
.blob--1 { width: 180px; height: 180px; background: var(--accent); top: -30px; right: -20px; }
.blob--2 { width: 150px; height: 150px; background: var(--primary); bottom: -30px; left: -30px; }

/* --------------------------------------------------------------- Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.card .ico {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; color: #fff; background: var(--grad-primary); margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.card:nth-child(2n) .ico { background: var(--grad-accent); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }

/* --------------------------------------------------------------- About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-visual {
  border-radius: var(--radius-lg); background: var(--grad-primary);
  min-height: 340px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.about-visual img { height: 120px; filter: drop-shadow(0 14px 26px rgba(0,0,0,.25)); }
.about-visual .ring { position: absolute; border: 2px dashed rgba(255,255,255,.35); border-radius: 50%; }
.about-visual .ring.r1 { inset: 30px; }
.about-visual .ring.r2 { inset: 70px; opacity: .6; }
.about-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  min-height: 340px;
}
.about-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s var(--ease);
}
.about-photo:hover img { transform: scale(1.04); }
.home-tech .about-photo {
  border-color: rgba(120,140,200,.25);
  box-shadow: 0 26px 64px rgba(0,0,0,.42), 0 0 0 1px rgba(34,211,238,.16);
}
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--text-soft); }
.check-list i { color: #25c26e; margin-top: 4px; }

/* --------------------------------------------------------------- Process steps */
.steps { counter-reset: step; }
.step .num {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff;
  background: var(--grad-primary); margin-bottom: 16px;
}
.step:nth-child(2) .num { background: var(--grad-accent); }
.step:nth-child(3) .num { background: linear-gradient(135deg,#25c26e,#0aa86b); }

/* --------------------------------------------------------------- Stats band */
.stats-band { background: var(--grad-primary); position: relative; overflow: hidden; }
.stats-band::after { content:""; position:absolute; inset:0; background: var(--grad-hero); opacity:.5; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem,1.4rem+2.6vw,3.4rem); color:#fff; }
.stat span { color: rgba(255,255,255,.9); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }

/* --------------------------------------------------------------- Team */
.team-card { text-align: center; padding: 0; overflow: hidden; }
.team-card .photo {
  aspect-ratio: 1/1; background: var(--surface-2); overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.team-card:hover .photo img { transform: scale(1.06); }
.team-card .body { padding: 22px; }
.team-card .name { margin: 0 0 2px; font-size: 1.2rem; }
.team-card .role { color: var(--primary); font-weight: 600; font-size: .9rem; font-family: var(--font-head); }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border);
  transition: transform var(--t), background var(--t), color var(--t);
}
.socials a:hover { transform: translateY(-3px); background: var(--primary); color: #fff; border-color: var(--primary); }

/* --------------------------------------------------------------- Project cards */
.project { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.project .cap { padding: 18px 20px; font-family: var(--font-head); font-weight: 600; color: var(--text); }

/* --------------------------------------------------------------- Pricing */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.price-card .tag { position: absolute; top: 18px; right: 18px; background: var(--grad-accent); color:#fff; font-size:.72rem; font-weight:700; padding: 5px 12px; border-radius: 999px; letter-spacing:.04em; }
.price-card .amount { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--text); margin: 6px 0 2px; }
.price-card .amount small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-card ul { margin: 18px 0 24px; }
.price-card li { display: flex; gap: 10px; padding: 8px 0; color: var(--text-soft); border-bottom: 1px dashed var(--border); }
.price-card li i { color: #25c26e; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* --------------------------------------------------------------- Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.info-card .ico { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; color:#fff; font-size: 20px; background: var(--grad-primary); }
.info-card:nth-child(2) .ico { background: var(--grad-accent); }
.info-card h4 { margin: 0 0 4px; font-size: 1.05rem; }
.info-card p, .info-card a { margin: 0; color: var(--muted); }
.info-card a:hover { color: var(--primary); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px,3vw,40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); font-family: var(--font-head); }
.input, .textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; font: inherit;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.input:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); background: var(--surface); }
.textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.alert--ok { background: rgba(37,194,110,.14); color: #1c9e58; border: 1px solid rgba(37,194,110,.3); }
.alert--err { background: rgba(255,77,77,.12); color: #e2453f; border: 1px solid rgba(255,77,77,.3); }
.map-wrap { margin-top: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.1); }
[data-theme="dark"] .map-wrap iframe { filter: grayscale(.3) invert(.9) hue-rotate(180deg); }

/* --------------------------------------------------------------- Page banner */
.page-banner { position: relative; background: var(--grad-primary); overflow: hidden; padding: clamp(46px,6vw,84px) 0; }
.page-banner::after { content:""; position:absolute; inset:0; background: var(--grad-hero); opacity:.6; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; margin: 0 0 8px; }
.page-banner .crumb { color: rgba(255,255,255,.85); font-family: var(--font-head); font-weight: 500; }
.page-banner .crumb a { color: #fff; }
.page-banner .crumb a:hover { color: var(--accent-2); }

/* --------------------------------------------------------------- CTA strip */
.cta { background: var(--surface); }
.cta-inner {
  background: var(--grad-primary); border-radius: var(--radius-lg); padding: clamp(36px,4vw,64px);
  text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-inner::after { content:""; position:absolute; inset:0; background: var(--grad-hero); opacity:.5; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { color:#fff; }
.cta-inner p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }
.cta-inner .btn--ghost { color:#fff; border-color: rgba(255,255,255,.6); }
.cta-inner .btn--ghost:hover { background: rgba(255,255,255,.14); border-color:#fff; }

/* --------------------------------------------------------------- Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 64px; }
[data-theme="dark"] .site-footer { background: #070b12; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 320px; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); transition: transform var(--t), background var(--t), color var(--t); }
.foot-social a:hover { transform: translateY(-3px); background: var(--primary); color: #fff; }
.footer-col h4 { font-size: 1.05rem; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--primary); }
.foot-contact li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--muted); }
.foot-contact i { color: var(--primary); margin-top: 4px; }
.foot-contact b { color: var(--text); font-family: var(--font-head); }
.footer-pay { margin-top: 16px; max-width: 240px; border-radius: 8px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; color: var(--muted); font-size: .9rem; }
.footer-bottom a { font-weight: 600; }

/* --------------------------------------------------------------- Reveal anim */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------- Scroll-top */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 46px; height: 46px;
  border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: var(--grad-primary);
  box-shadow: var(--shadow-md); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all var(--t);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { transform: translateY(-3px); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .about-visual { min-height: 260px; order: -1; }
  .about-photo { min-height: 240px; order: -1; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  /* Header: blur creates a containing block that traps the fixed nav
     drawer inside the 72px bar (Chrome) — use a solid bar on mobile. */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  /* Nav is out of flow on mobile, so push the actions to the right edge */
  .header-actions { margin-left: auto; }

  /* Lock page scroll while the drawer is open */
  body.nav-open { overflow: hidden; }

  /* Mobile nav drawer */
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); margin: 0;
    background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: 106px 18px 30px; transform: translateX(102%); transition: transform var(--t);
    overflow-y: auto;
  }
  .nav-open .main-nav { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 13px 16px; font-size: 1.02rem; }
  .has-drop > a::after { float: right; }
  .drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: var(--surface-2); padding: 4px 4px 4px 12px;
    max-height: 0; overflow: hidden; margin-top: 0; transition: max-height var(--t);
  }
  .has-drop.open .drop { max-height: 320px; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(5,8,15,.5); z-index: 999;
    opacity: 0; visibility: hidden; transition: opacity var(--t);
  }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .brand .brand-name { font-size: 1.05rem; }
  .brand img { height: 48px; }
  .header-inner { height: 80px; gap: 10px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { display: none; }   /* keep header tidy on phones */
  .theme-toggle { width: 38px; height: 38px; }
  .theme-toggle svg { width: 18px; height: 18px; }
  .nav-toggle { width: 40px; height: 40px; }
  .section { padding: 48px 0; }
  .map-wrap iframe { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   CLIENT REVIEWS SLIDER
   ===================================================================== */
.reviews { position: relative; }
.reviews-viewport { overflow: hidden; padding: 6px 2px 14px; }
.reviews-track { display: flex; gap: 24px; transition: transform .55s var(--ease); will-change: transform; }
.review-card {
  flex: 0 0 calc((100% - (var(--per, 3) - 1) * 24px) / var(--per, 3));
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
}
.review-card .stars { display: flex; gap: 3px; color: #ffb400; font-size: .9rem; margin-bottom: 14px; }
.review-text { color: var(--text-soft); font-size: 1rem; line-height: 1.75; margin: 0 0 22px; flex: 1 0 auto; }
.review-author { display: flex; align-items: center; gap: 13px; }
.review-author .avatar {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-family: var(--font-head);
  font-weight: 700; background: var(--grad-primary);
}
.review-card:nth-child(3n) .avatar { background: var(--grad-accent); }
.review-author b { display: block; color: var(--text); font-family: var(--font-head); font-size: .98rem; }
.review-author small { color: var(--muted); font-size: .82rem; }
.review-author small i { color: var(--primary); margin-right: 3px; }

.reviews-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.rev-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: grid; place-items: center;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
}
.rev-btn:hover { background: var(--grad-primary); color: #fff; border-color: transparent; transform: translateY(-2px); }
.reviews-dots { display: flex; align-items: center; gap: 8px; }
.reviews-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--border); cursor: pointer; transition: width var(--t), background var(--t); }
.reviews-dots button.active { width: 26px; border-radius: 6px; background: var(--primary); }

@media (max-width: 991px) { .reviews-track { --per: 2; } }
@media (max-width: 640px) { .reviews-track { --per: 1; } }

/* =====================================================================
   HOMEPAGE — TECH / DASHBOARD "PANEL" STYLE  (scoped to .home-tech)
   ===================================================================== */
.home-tech {
  --neon:   #22d3ee;
  --neon-2: #7c5cff;
}

/* ---- Dark techy hero (always dark, with grid + glow) ---- */
.home-tech .hero { background: #0a0e1a; }
.home-tech .hero::before {
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(34,211,238,.20), transparent 60%),
    radial-gradient(760px 420px at -8% 18%, rgba(124,92,255,.20), transparent 58%),
    radial-gradient(700px 500px at 60% 120%, rgba(10,132,255,.18), transparent 60%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px, 42px 42px;
}
.home-tech .hero h1,
.home-tech .hero h3 { color: #fff; }
.home-tech .hero p { color: #aab6d6; }
.home-tech .hero .eyebrow { color: var(--neon); text-shadow: 0 0 18px rgba(34,211,238,.5); }
.home-tech .hero .hero-badges .b { color: #d7def3; }
.home-tech .hero .hero-badges i { color: var(--neon); }
.home-tech .hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.home-tech .hero .btn--ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.home-tech .hero .blob { opacity: .35; }

/* ---- Dashboard panel visual ---- */
.tech-panel {
  position: relative; z-index: 2;
  background: linear-gradient(165deg, rgba(20,27,45,.96), rgba(12,16,28,.96));
  border: 1px solid rgba(120,140,200,.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 18px; color: #e7ecf6; overflow: hidden;
}
.tech-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(34,211,238,.10), transparent 70%);
}
.tp-head { display: flex; align-items: center; gap: 7px; padding: 4px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.tp-dot { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.tp-dot:nth-child(2) { background: #febc2e; }
.tp-dot:nth-child(3) { background: #28c840; }
.tp-title { margin-left: 8px; font-family: var(--font-head); font-size: .8rem; color: #9fb0d4; letter-spacing: .02em; }
.tp-live { margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--neon); }
.tp-live i { font-size: .5rem; margin-right: 4px; animation: tpBlink 1.6s ease-in-out infinite; }
@keyframes tpBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.tp-tiles { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 16px 0; }
.tp-tile {
  background: rgba(255,255,255,.04); border: 1px solid rgba(120,140,200,.16);
  border-radius: 14px; padding: 14px;
}
.tp-label { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #8493b8; margin-bottom: 6px; }
.tp-val { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff; line-height: 1; }
.tp-tile:nth-child(1) .tp-val { color: #34e7b0; }
.tp-tile:nth-child(2) .tp-val { color: var(--neon); }
.tp-tile:nth-child(3) .tp-val { color: #6aa8ff; }
.tp-tile:nth-child(4) .tp-val { color: #b39bff; }

.tp-chart { display: flex; align-items: flex-end; gap: 8px; height: 92px; padding: 12px 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(120,140,200,.14); border-radius: 14px; }
.tp-chart span {
  flex: 1; height: var(--h, 50%); border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--neon), rgba(10,132,255,.65));
  box-shadow: 0 0 14px rgba(34,211,238,.35);
  animation: tpRise .9s var(--ease) both;
}
.tp-chart span:nth-child(even) { background: linear-gradient(180deg, var(--neon-2), rgba(124,92,255,.55)); box-shadow: 0 0 14px rgba(124,92,255,.35); }
@keyframes tpRise { from { height: 6%; opacity: .2; } }

.tp-status { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: .82rem; color: #9fb0d4; }
.tp-status i { color: #34e7b0; }

/* ---- Panel-style cards across the homepage ---- */
.home-tech .card { position: relative; overflow: hidden; }
.home-tech .card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--neon), var(--neon-2));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.home-tech .card:hover::after { transform: scaleX(1); }
.home-tech .card:hover {
  border-color: color-mix(in srgb, var(--neon) 45%, var(--border));
  box-shadow: var(--shadow-md), 0 0 0 1px color-mix(in srgb, var(--neon) 30%, transparent);
}
.home-tech .card .ico { box-shadow: 0 10px 26px rgba(10,132,255,.40); }
.home-tech .review-card:hover { border-color: color-mix(in srgb, var(--neon) 40%, var(--border)); }

/* ---- Subtle grid texture on alt sections ---- */
.home-tech .section--alt { position: relative; }
.home-tech .section--alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.home-tech .section--alt > .container { position: relative; z-index: 1; }

/* ---- Stats band: add grid + glow in tech mode ---- */
.home-tech .stats-band { background: linear-gradient(135deg, #0b1228, #0a0e1a 60%, #10183a); }
.home-tech .stats-band::after {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(34,211,238,.20), transparent 60%),
    radial-gradient(600px 300px at 80% 100%, rgba(124,92,255,.20), transparent 60%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  opacity: 1;
}
.home-tech .stat b { text-shadow: 0 0 26px rgba(34,211,238,.45); }

@media (max-width: 480px) { .tp-tiles { grid-template-columns: 1fr 1fr; } .tp-val { font-size: 1.3rem; } }

/* ---- About Our Team image panel ---- */
.team-photo { position: relative; }
[data-parallax-float] { will-change: transform; transition: transform .18s linear; }
.team-photo img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 22px 40px rgba(20,40,80,.22));
  /* same idle float as the hero "mashmini · control panel" card */
  animation: floaty 6s ease-in-out infinite;
}
.home-tech .team-photo img {
  filter: drop-shadow(0 22px 46px rgba(0,0,0,.5)) drop-shadow(0 0 26px rgba(34,211,238,.20));
}
@media (max-width: 991px) { .team-photo { order: -1; } }

/* =====================================================================
   HOMEPAGE COOL ANIMATIONS  (scoped to .home-tech)
   transform/opacity only — GPU friendly. Disabled under reduced-motion.
   ===================================================================== */

/* ---- Hero entrance: hero blocks always visible, children stagger in ---- */
.home-tech .hero .reveal { opacity: 1; transform: none; }
@keyframes hpUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.home-tech .hero-copy > * { animation: hpUp .85s var(--ease) both; }
.home-tech .hero-copy > .eyebrow     { animation-delay: .05s; }
.home-tech .hero-copy > h1           { animation-delay: .16s; }
.home-tech .hero-copy > p            { animation-delay: .30s; }
.home-tech .hero-copy > .hero-cta    { animation-delay: .44s; }
.home-tech .hero-copy > .hero-badges { animation-delay: .58s; }

@keyframes hpPanel { from { opacity: 0; transform: translateY(34px) scale(.95); } to { opacity: 1; transform: none; } }
.home-tech .hero-visual { animation: hpPanel 1s var(--ease) .35s both; }

/* ---- Floating dashboard panel + drifting blobs ---- */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.home-tech .tech-panel { animation: floaty 6s ease-in-out infinite; }
.home-tech .tech-panel::before { animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 0%,100% { transform: translateX(-28%); } 50% { transform: translateX(28%); } }

@keyframes blobMove {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(16px,-20px) scale(1.06); }
  66%     { transform: translate(-12px,14px) scale(.95); }
}
.home-tech .hero .blob--1 { animation: blobMove 9s ease-in-out infinite; }
.home-tech .hero .blob--2 { animation: blobMove 12s ease-in-out infinite reverse; }

/* ---- Flowing gradient headline ---- */
@keyframes gradFlow { to { background-position: 200% center; } }
.home-tech .hero h1 .grad {
  background: linear-gradient(90deg, #ff9500, #ff4d4d, #7c5cff, #22d3ee, #ff9500);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradFlow 6s linear infinite;
}

/* ---- Drifting hero grid ---- */
@keyframes gridDrift {
  from { background-position: center, center, center, 0 0, 0 0; }
  to   { background-position: center, center, center, 42px 42px, 42px 42px; }
}
.home-tech .hero::before { animation: gridDrift 7s linear infinite; }

/* ---- Staggered reveal for card grids ---- */
.home-tech .grid > *:nth-child(1) { transition-delay: .04s; }
.home-tech .grid > *:nth-child(2) { transition-delay: .12s; }
.home-tech .grid > *:nth-child(3) { transition-delay: .20s; }
.home-tech .grid > *:nth-child(4) { transition-delay: .28s; }
.home-tech .grid > *:nth-child(5) { transition-delay: .36s; }
.home-tech .grid > *:nth-child(6) { transition-delay: .44s; }
.home-tech .grid > *:nth-child(7) { transition-delay: .52s; }
.home-tech .grid > *:nth-child(8) { transition-delay: .60s; }

/* ---- Icon motion on hover ---- */
.home-tech .card .ico { transition: transform .45s var(--ease), box-shadow .3s var(--ease); }
.home-tech .card:hover .ico { transform: translateY(-5px) rotate(-7deg) scale(1.1); }
.home-tech .step:hover .num { transform: translateY(-5px) scale(1.08); transition: transform .45s var(--ease); }
.home-tech .socials a:hover,
.home-tech .foot-social a:hover { animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: translateY(-3px) scale(1.18); } }

/* ---- Button shine sweep ---- */
.home-tech .btn { position: relative; overflow: hidden; }
.home-tech .btn::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.home-tech .btn:hover::after { left: 130%; }

/* ---- Animated underline under section titles ---- */
.home-tech .section-head h2 { position: relative; display: inline-block; }
.home-tech .section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; width: 0; height: 3px;
  border-radius: 3px; background: var(--grad-accent); transform: translateX(-50%);
  transition: width .7s var(--ease) .2s;
}
.home-tech .section-head.is-visible h2::after { width: 64px; }

/* ---- Animated bar chart breathing (subtle) ---- */
.home-tech .tp-chart span { animation: tpRise .9s var(--ease) both, barPulse 3.4s ease-in-out infinite; }
@keyframes barPulse { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.86); } }
.home-tech .tp-chart span { transform-origin: bottom; }

/* ---- Page banner (Team / Contact): entrance + tech grid drift ---- */
.home-tech .page-banner h1 { animation: hpUp .85s var(--ease) .05s both; }
.home-tech .page-banner .crumb { animation: hpUp .85s var(--ease) .22s both; }
.home-tech .page-banner { background: linear-gradient(135deg, #0b1228, #0a0e1a 60%, #10183a); }
@keyframes bannerDrift {
  from { background-position: center, center, 0 0, 0 0; }
  to   { background-position: center, center, 42px 42px, 42px 42px; }
}
.home-tech .page-banner::after {
  background:
    radial-gradient(700px 380px at 80% -10%, rgba(34,211,238,.25), transparent 60%),
    radial-gradient(600px 340px at -5% 30%, rgba(124,92,255,.22), transparent 58%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  opacity: 1;
  animation: bannerDrift 7s linear infinite;
}

/* ---- Scroll-top + toggle gentle bob already handled; reduce-motion guard ---- */
@media (prefers-reduced-motion: reduce) {
  .home-tech .hero-copy > *,
  .home-tech .hero-visual,
  .home-tech .tech-panel,
  .home-tech .tech-panel::before,
  .home-tech .hero .blob--1,
  .home-tech .hero .blob--2,
  .home-tech .hero h1 .grad,
  .home-tech .hero::before,
  .home-tech .tp-chart span { animation: none !important; }
  .home-tech .hero h1 .grad { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
