/* ==========================================================================
   Invexa Solutions — Design System
   ========================================================================== */

:root {
  color-scheme: dark light;

  /* Surfaces */
  --bg: #06070d;
  --bg-alt: #0a0c16;
  --surface: #0f111c;
  --surface-2: #141826;
  --surface-hover: #191d2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text-1: #f5f6fb;
  --text-2: #a6acc2;
  --text-3: #6c7288;

  /* Brand (identical in both themes) */
  --accent-1: #6366f1;
  --accent-2: #22d3ee;
  --accent-3: #a855f7;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(34, 211, 238, 0.15));
  --glow: 0 0 0 1px rgba(99, 102, 241, 0.25), 0 8px 40px rgba(99, 102, 241, 0.25);

  /* Theme-sensitive decorative tokens */
  --grid-line: rgba(255, 255, 255, 0.035);
  --line-fill: rgba(255, 255, 255, 0.08);
  --noise-opacity: 0.035;
  --orb-opacity-a: 0.28;
  --orb-opacity-b: 0.5;
  --scrollbar-track: var(--bg);
  --scrollbar-thumb: #22242f;
  --scrollbar-thumb-hover: #2c2f3d;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 50px 120px -25px rgba(0, 0, 0, 0.65);
  --glass-bg: rgba(6, 7, 13, 0.78);
  --glass-bg-soft: rgba(10, 11, 20, 0.7);
  --eyebrow-color: #c7c9ff;
  --accent-text: var(--accent-2);

  /* Type */
  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --nav-h: 78px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Automatic light theme (follows OS / browser preference) ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fc;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f0f1f8;
    --surface-hover: #e9ebf6;
    --border: rgba(15, 17, 28, 0.09);
    --border-strong: rgba(15, 17, 28, 0.16);

    --text-1: #12141f;
    --text-2: #4a4f63;
    --text-3: #7d8298;

    --grid-line: rgba(15, 17, 28, 0.05);
    --line-fill: rgba(15, 17, 28, 0.08);
    --noise-opacity: 0.02;
    --orb-opacity-a: 0.12;
    --orb-opacity-b: 0.2;
    --scrollbar-thumb: #d7dae6;
    --scrollbar-thumb-hover: #c1c5da;
    --shadow-soft: 0 20px 50px rgba(15, 17, 28, 0.1);
    --shadow-strong: 0 40px 100px -25px rgba(15, 17, 28, 0.16);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-bg-soft: rgba(255, 255, 255, 0.75);
    --eyebrow-color: #4f46e5;
    --accent-text: #0e7490;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-2); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

/* ---------- Background texture ---------- */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--gradient);
  color: #05060a;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-strong);
  color: var(--text-1);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Eyebrow / pill tags ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--gradient-soft);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--eyebrow-color);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; }
.section-head.align-left { margin: 0 0 56px; text-align: left; }

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

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }
.reveal-delay-3.in-view { transition-delay: 0.3s; }
.reveal-delay-4.in-view { transition-delay: 0.4s; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--text-1); z-index: 1100; }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; color: #05060a;
  box-shadow: 0 4px 18px rgba(99,102,241,0.45);
  flex-shrink: 0;
}
.logo-mark svg { width: 19px; height: 19px; }
.preloader-mark svg { width: 28px; height: 28px; }
.logo span { color: var(--text-2); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gradient);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text-1); }

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

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  align-items: center; justify-content: center;
  z-index: 1100;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text-1);
  position: relative; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-links {
    position: fixed; inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.45s var(--ease), opacity 0.4s var(--ease);
    z-index: 1050;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { font-size: 1.5rem; }
  .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 96px);
  padding-bottom: 100px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { font-size: 1.2rem; max-width: 620px; margin: 0 auto 40px; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 72px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-stats .stat { background: var(--glass-bg-soft); backdrop-filter: blur(6px); padding: 28px 14px; text-align: center; }
.hero-stats .stat .num { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
.hero-stats .stat .lbl { font-size: 0.82rem; color: var(--text-3); margin-top: 4px; }
@media (max-width: 700px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Page Hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 90px);
  padding-bottom: 90px;
  text-align: center;
  overflow: hidden;
}
.page-hero .breadcrumb { color: var(--text-3); font-size: 0.9rem; margin-bottom: 18px; position: relative; z-index: 2; }
.page-hero .breadcrumb span { color: var(--accent-text); }
.page-hero .breadcrumb a { color: var(--text-3); transition: color 0.25s var(--ease); }
.page-hero .breadcrumb a:hover { color: var(--text-1); }
.page-hero h1 { position: relative; z-index: 2; margin-bottom: 18px; }
.page-hero p { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* ==========================================================================
   Logo strip
   ========================================================================== */
.logo-strip { padding: 50px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-strip .label { text-align: center; color: var(--text-3); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 34px; }
.logo-strip .row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 50px; }
.logo-strip .row span,
.logo-strip .marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--text-3); opacity: 0.6; transition: opacity 0.3s; white-space: nowrap; }
.logo-strip .row span:hover,
.logo-strip .marquee-track span:hover { opacity: 1; color: var(--text-1); }

/* ==========================================================================
   Cards — Services
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(99,102,241,0.14), transparent 60%);
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(99,102,241,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--accent-2); }

.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.96rem; margin-bottom: 18px; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--accent-text); }
.card .card-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

.feature-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.feature-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; stroke: var(--accent-2); }

/* ---------- Process / Numbered steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 980px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { position: relative; padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.process-step .step-num {
  font-family: var(--font-head); font-weight: 700; font-size: 2.4rem;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.55; margin-bottom: 14px; display: block;
}
.process-step h4 { margin-bottom: 10px; }
.process-step p { font-size: 0.9rem; }

/* ---------- Why / feature rows ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }
.why-list { display: flex; flex-direction: column; gap: 26px; }
.why-item { display: flex; gap: 18px; }
.why-item .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gradient-soft); border: 1px solid rgba(99,102,241,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-item .icon svg { width: 22px; height: 22px; stroke: var(--accent-2); }
.why-item h4 { margin-bottom: 6px; }
.why-item p { font-size: 0.94rem; }

.visual-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-alt));
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.visual-panel .ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(99,102,241,0.25);
}
.visual-panel .core {
  width: 92px; height: 92px; border-radius: 26px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(99,102,241,0.5);
  position: relative; z-index: 2;
  animation: floaty 5s ease-in-out infinite;
}
.visual-panel .core svg { width: 42px; height: 42px; stroke: #05060a; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.visual-panel .ring.r1 { width: 200px; height: 200px; animation: spin-slow 18s linear infinite; }
.visual-panel .ring.r2 { width: 280px; height: 280px; border-style: dashed; animation: spin-slow 30s linear infinite reverse; }
.visual-panel .ring.r3 { width: 360px; height: 360px; animation: spin-slow 44s linear infinite; }

/* ---------- Stats band ---------- */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-band .grid-4 { gap: 0; }
.stats-band .stat { text-align: center; padding: 50px 20px; border-right: 1px solid var(--border); }
.stats-band .grid-4 > :last-child { border-right: none; }
.stats-band .num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
.stats-band .lbl { color: var(--text-3); font-size: 0.9rem; margin-top: 6px; }
@media (max-width: 640px) { .stats-band .stat { border-right: none; border-bottom: 1px solid var(--border); } }

/* ---------- Testimonials ---------- */
.testimonial-card { padding: 36px; }
.testimonial-card .quote-mark { font-family: var(--font-head); font-size: 3rem; color: var(--accent-1); opacity: 0.5; line-height: 1; margin-bottom: 10px; }
.testimonial-card p.quote { color: var(--text-1); font-size: 1.02rem; margin-bottom: 26px; }
.testimonial-card .person { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #05060a; flex-shrink: 0; }
.person .name { font-weight: 600; font-size: 0.95rem; }
.person .role { font-size: 0.82rem; color: var(--text-3); }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 32px 24px; }
.team-card .avatar { width: 84px; height: 84px; margin: 0 auto 18px; font-size: 1.6rem; }
.team-card h4 { margin-bottom: 4px; }
.team-card .role { color: var(--accent-text); font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }
.team-card p { font-size: 0.88rem; }

/* ---------- Values ---------- */
.value-card { padding: 30px; }

/* ---------- Timeline (About) ---------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 44px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item .dot { position: absolute; left: 12px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--border); }
.timeline-item .year { color: var(--accent-text); font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; display: block; }
.timeline-item h4 { margin-bottom: 8px; }
.timeline-item p { font-size: 0.94rem; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.filter-btn {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.02); color: var(--text-2); font-size: 0.87rem; font-weight: 600;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--text-1); }
.filter-btn.active { background: var(--gradient); color: #05060a; border-color: transparent; }

.project-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.project-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.project-thumb { height: 210px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,7,13,0.7)); }
.project-thumb svg { width: 54px; height: 54px; stroke: rgba(255,255,255,0.9); opacity: 0.85; position: relative; z-index: 2; }
.project-body { padding: 26px; }
.project-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.project-body h3 { margin-bottom: 10px; font-size: 1.2rem; }
.project-body p { font-size: 0.9rem; margin-bottom: 18px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.75rem; padding: 5px 12px; border-radius: 100px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-3); }

/* ---------- FAQ / Accordion ---------- */
.accordion { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.acc-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.acc-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; cursor: pointer; }
.acc-head h4 { font-size: 1rem; font-weight: 600; }
.acc-head .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.acc-head .plus::before, .acc-head .plus::after { content: ""; position: absolute; background: var(--text-2); top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.acc-head .plus::before { width: 14px; height: 2px; }
.acc-head .plus::after { width: 2px; height: 14px; }
.acc-item.open .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.acc-body-inner { padding: 0 26px 24px; font-size: 0.93rem; color: var(--text-2); }
.acc-item.open .acc-body { max-height: 260px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(34,211,238,0.12));
  border: 1px solid rgba(99,102,241,0.28);
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 520px; margin: 0 auto 34px; font-size: 1.05rem; }
.cta-band .hero-cta { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
.field ::placeholder { color: var(--text-3); }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: flex-start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info-card { padding: 34px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-soft); border: 1px solid rgba(99,102,241,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item .icon svg { width: 20px; height: 20px; stroke: var(--accent-2); }
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.9rem; }
.social-row { display: flex; gap: 10px; margin-top: 30px; }
.social-row a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease); }
.social-row a:hover { background: var(--gradient); border-color: transparent; color: #05060a; }
.social-row a svg { width: 17px; height: 17px; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.92rem; font-weight: 500; }
.alert-success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.35); color: #86efac; }
.alert-error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); color: #fca5a5; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { border-top: 1px solid var(--border); padding: 80px 0 30px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin: 18px 0 22px; font-size: 0.92rem; max-width: 300px; }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-1); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--text-2); transition: color 0.25s; }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-3); flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Scrollbar & selection
   ========================================================================== */
::selection { background: var(--accent-1); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed; right: 26px; bottom: 232px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(99,102,241,0.4);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.35s var(--ease);
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; stroke: #05060a; }

/* ==========================================================================
   PREMIUM LAYER — preloader, custom cursor, progress bar, noise, mockup
   ========================================================================== */

/* Anchor offset so fixed nav never covers a jumped-to section */
section[id] { scroll-margin-top: 100px; }

/* ---------- Noise / grain texture ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #05060a;
  animation: preload-pulse 1.1s ease-in-out infinite;
}
.preloader-bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--gradient); animation: preload-slide 1.1s ease-in-out infinite; }
@keyframes preload-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(99,102,241,0.5); } 50% { transform: scale(1.12); box-shadow: 0 0 55px rgba(99,102,241,0.85); } }
@keyframes preload-slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient);
  z-index: 1200;
  box-shadow: 0 0 10px rgba(99,102,241,0.6);
}

/* ---------- Custom cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%; pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent-2); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(99, 102, 241, 0.55);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cursor-ring.grow { width: 60px; height: 60px; background: rgba(99, 102, 241, 0.1); border-color: var(--accent-1); }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button, body.has-custom-cursor .filter-btn {
  cursor: none;
}

/* ---------- Orb breathing motion ---------- */
.glow-orb { animation: orb-breathe 8s ease-in-out infinite alternate; }
@keyframes orb-breathe { from { opacity: var(--orb-opacity-a); filter: blur(100px); } to { opacity: var(--orb-opacity-b); filter: blur(135px); } }

/* ---------- Split-text reveal ---------- */
.split-word { display: inline-block; opacity: 0; transform: translateY(120%) rotate(4deg); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.split-word.in-view { opacity: 1; transform: translateY(0) rotate(0deg); }
.split-line { display: inline-block; overflow: hidden; vertical-align: top; }

/* ---------- Marquee (logo strip) ---------- */
.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; align-items: center; gap: 64px; width: max-content; animation: marquee-scroll 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero visual: browser / dashboard mockup ---------- */
.hero-visual { position: relative; max-width: 940px; margin: 70px auto 0; z-index: 2; }
.browser-frame {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(255,255,255,0.02);
  overflow: hidden;
  animation: floaty 6.5s ease-in-out infinite;
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-bar .dot.red { background: #ff5f56; }
.browser-bar .dot.yellow { background: #ffbd2e; }
.browser-bar .dot.green { background: #27c93f; }
.browser-url { margin-left: 14px; font-size: 0.76rem; color: var(--text-3); background: rgba(255,255,255,0.045); padding: 5px 16px; border-radius: 7px; }
.browser-body { display: flex; min-height: 300px; }
.mockup-sidebar { width: 168px; flex-shrink: 0; border-right: 1px solid var(--border); padding: 24px 18px; display: flex; flex-direction: column; gap: 16px; background: rgba(255,255,255,0.015); }
.ms-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--gradient); margin-bottom: 8px; }
.ms-line { height: 8px; border-radius: 4px; background: var(--line-fill); }
.ms-line.active { background: linear-gradient(90deg, rgba(99,102,241,0.5), rgba(34,211,238,0.5)); }
.ms-line.w60 { width: 62%; } .ms-line.w40 { width: 42%; } .ms-line.w50 { width: 52%; } .ms-line.w45 { width: 46%; }
.mockup-main { flex: 1; padding: 28px 32px; min-width: 0; }
.mockup-stats-row { display: flex; gap: 16px; margin-bottom: 24px; }
.mockup-stat { flex: 1; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.mockup-stat .ms-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.mockup-stat.up .ms-num { color: #4ade80; }
.mockup-stat .ms-lbl { font-size: 0.72rem; color: var(--text-3); margin-top: 2px; display: block; }
.mockup-chart { position: relative; height: 140px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; }
.mockup-chart svg { position: absolute; inset: 16px 18px; width: calc(100% - 36px); height: calc(100% - 32px); }
.mockup-chart .chart-fill { position: absolute; inset: 16px 18px; width: calc(100% - 36px); height: calc(100% - 32px); opacity: 0.15; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 9px;
  padding: 13px 18px; border-radius: 13px;
  background: var(--glass-bg-soft);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  font-size: 0.82rem; font-weight: 600;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  z-index: 3;
}
.float-card svg { width: 16px; height: 16px; flex-shrink: 0; }
.float-card.fc1 { top: -22px; right: -18px; color: #4ade80; animation: floaty 5s ease-in-out infinite; }
.float-card.fc1 svg { stroke: #4ade80; }
.float-card.fc2 { bottom: 26px; left: -28px; color: #22d3ee; animation: floaty 5.6s ease-in-out infinite reverse; }
.float-card.fc2 svg { stroke: #22d3ee; }

@media (max-width: 760px) {
  .browser-body { flex-direction: column; }
  .mockup-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); }
  .ms-logo { display: none; }
  .float-card { display: none; }
  .mockup-stats-row { flex-wrap: wrap; }
}

/* ---------- 3D tilt (JS driven, class toggled on mousemove) ---------- */
.card { will-change: transform; }
.tilt-active { transition: none !important; }

/* ---------- Pricing / packages ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.price-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.price-card.featured { border-color: rgba(99,102,241,0.55); background: linear-gradient(180deg, rgba(99,102,241,0.1), var(--surface-2)); transform: scale(1.03); box-shadow: 0 25px 70px rgba(99,102,241,0.25); }
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #05060a; font-size: 0.75rem; font-weight: 700;
  padding: 6px 18px; border-radius: 100px; white-space: nowrap;
}
.price-card h3 { margin-bottom: 8px; }
.price-card .price-desc { font-size: 0.88rem; margin-bottom: 22px; min-height: 40px; }
.price-card .price-amount { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.price-card .price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--text-3); }
.price-card .price-note { font-size: 0.8rem; color: var(--text-3); margin-bottom: 26px; }
.price-card .feature-list { margin-bottom: 30px; flex: 1; }
.price-card .btn { margin-top: auto; }

/* ---------- Floating action buttons (WhatsApp / Call / Email) ---------- */
.float-actions {
  position: fixed; right: 26px; bottom: 26px;
  display: flex; flex-direction: column; gap: 14px;
  z-index: 900;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.float-btn:hover { transform: scale(1.08) translateY(-2px); }
.float-btn svg { width: 24px; height: 24px; }

.float-btn.wa { background: #25d366; animation: wa-pulse 2.4s ease-in-out infinite; }
.float-btn.wa svg { stroke: #05060a; fill: #05060a; }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4); } 50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.12); } }

.float-btn.call { background: var(--gradient); }
.float-btn.call svg { stroke: #05060a; fill: none; }

.float-btn.mail { background: var(--surface-2); border: 1px solid var(--border-strong); }
.float-btn.mail svg { stroke: var(--text-1); fill: none; }

@media (max-width: 640px) {
  .float-actions { right: 16px; bottom: 16px; gap: 10px; }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 21px; height: 21px; }
  .back-to-top { right: 16px; bottom: 190px; width: 42px; height: 42px; }
}

/* ---------- Metric badge (portfolio results) ---------- */
.result-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.35);
  color: #86efac; font-size: 0.78rem; font-weight: 700;
  margin-bottom: 14px;
}
.result-badge svg { width: 13px; height: 13px; }

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
