/* =====================================================
   BA² — Business Atlas Automation
   Design System | Cosmic × BA² Palette
   ===================================================== */

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

/* ---- Tokens ---- */
:root {
  --bg:        #07070F;
  --bg-1:      #0D0D1F;
  --bg-card:   #131328;
  --bg-hover:  #1A1A38;

  --purple:       #8B5CF6;
  --purple-light: #C4B5FD;
  --purple-dark:  #7C3AED;
  --purple-dim:   rgba(139,92,246,0.12);
  --purple-border: rgba(139,92,246,0.2);

  --orange:       #F97A4C;
  --orange-dark:  #EA580C;

  --t1: #F0EEF8;
  --t2: #A09DC0;
  --t3: #5E5B7A;

  --grad-purple: linear-gradient(135deg,#7C3AED 0%,#A78BFA 100%);
  --grad-orange: linear-gradient(135deg,#EA580C 0%,#F97A4C 100%);
  --glow-p: 0 0 40px rgba(139,92,246,0.22);
  --glow-o: 0 0 40px rgba(249,122,76,0.22);

  --f-display: 'Audiowide', sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 28px;
  --ease: 0.24s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto !important; }
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  font-family: var(--f-body);
  background: var(--bg); color: var(--t1);
  line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img,svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--f-body); color: inherit; }
ul,ol { list-style: none; }
input,textarea,select { font-family: var(--f-body); }

/* ---- Skip Link ---- */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--purple); color: #fff;
  padding: 8px 16px; border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: 14px; font-weight: 600; z-index: 9999;
  transition: top var(--ease);
}
.skip-link:focus { top: 0; }

/* ---- Layout ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---- Typography ---- */
h1,h2,h3 { font-family: var(--f-display); text-wrap: balance; }
.section-title {
  font-size: clamp(28px,5vw,44px); font-weight: 400;
  line-height: 1.15; letter-spacing: -0.3px;
}
.section-sub { font-size: 17px; color: var(--t2); margin-top: 14px; max-width: 560px; line-height: 1.75; }
.grad-purple {
  background: var(--grad-purple);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.grad-orange {
  background: var(--grad-orange);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---- Tag ---- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple-dim); border: 1px solid var(--purple-border);
  color: var(--purple-light); font-size: 11px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-lg);
  font-size: 15px; font-weight: 600;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  cursor: pointer; touch-action: manipulation; white-space: nowrap; font-family: var(--f-body);
}
.btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.btn-primary { background: var(--grad-purple); color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,0.5); }
.btn-accent  { background: var(--grad-orange);  color: #fff; box-shadow: 0 4px 20px rgba(249,122,76,0.3); }
.btn-accent:hover  { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(249,122,76,0.5); }
.btn-ghost {
  border: 1px solid var(--purple-border); color: var(--purple-light);
  transition: background var(--ease), border-color var(--ease);
}
.btn-ghost:hover { background: rgba(139,92,246,0.1); border-color: var(--purple); }
.btn-tg  { background: #229ED9; color: #fff; box-shadow: 0 4px 20px rgba(34,158,217,0.3); }
.btn-tg:hover  { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(34,158,217,0.5); }
.btn-wa  { background: #25D366; color: #fff; box-shadow: 0 4px 20px rgba(37,211,102,0.3); }
.btn-wa:hover  { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }
.btn-lg  { padding: 16px 32px; font-size: 16px; border-radius: var(--r-xl); }
.btn-sm  { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background var(--ease), box-shadow var(--ease);
}
.header.scrolled {
  background: rgba(7,7,15,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(139,92,246,0.1);
}
.header-inner {
  display: flex; align-items: center; height: 72px; gap: 8px;
}
.logo-link { display: flex; align-items: center; margin-right: 20px; flex-shrink: 0; }
.logo-link img { height: 38px; width: auto; mix-blend-mode: lighten; }
.logo-link:focus-visible { outline: 2px solid var(--purple); border-radius: var(--r-sm); outline-offset: 3px; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a {
  padding: 8px 13px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--t2);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--t1); background: rgba(255,255,255,0.05); }
.nav a.active { color: var(--t1); }
.nav a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Language toggle */
.lang-toggle {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md); overflow: hidden;
}
.lang-btn {
  padding: 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--t3); transition: color var(--ease), background var(--ease);
}
.lang-btn:hover { color: var(--t1); }
.lang-btn.active { background: rgba(139,92,246,0.2); color: var(--purple-light); }
.lang-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }

/* Header icon buttons */
.header-icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--t2); background: rgba(255,255,255,0.03);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.header-icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--t1); border-color: rgba(255,255,255,0.15); }
.header-icon-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.header-cta { margin-left: 4px; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 10px 8px; border-radius: var(--r-md); margin-left: 4px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--t1); border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.burger:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   MOBILE MENU
   ===================================================== */
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 72px; z-index: 190;
  background: rgba(7,7,15,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  flex-direction: column; padding: 28px 24px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.open { display: flex; }
.mobile-menu .mob-nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu .mob-nav a {
  padding: 14px 16px; border-radius: var(--r-md);
  font-size: 16px; font-weight: 500; color: var(--t2);
  transition: color var(--ease), background var(--ease);
}
.mobile-menu .mob-nav a:hover { color: var(--t1); background: rgba(255,255,255,0.05); }
.mobile-menu .mob-nav a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.mob-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mob-socials { display: flex; gap: 10px; margin-top: 16px; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(124,58,237,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(249,122,76,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 5% 90%, rgba(139,92,246,0.06) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 0%, transparent 100%);
}

/* Particle canvas */
#particles-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Floating orbs */
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.hero-orb-1 {
  width: 420px; height: 420px; top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  animation: orbFloat1 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px; height: 300px; bottom: -60px; right: -60px;
  background: radial-gradient(circle, rgba(249,122,76,0.12) 0%, transparent 70%);
  animation: orbFloat2 18s ease-in-out infinite;
}
.hero-orb-3 {
  width: 200px; height: 200px; top: 40%; left: 60%;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  animation: orbFloat3 11s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,30px) scale(1.05); }
  66%      { transform: translate(-20px,50px) scale(0.97); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-30px,-40px) scale(1.08); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(20px,-25px); }
}

/* Typing cursor */
#hero-typed {
  display: inline-block;
  border-right: 2.5px solid var(--purple);
  padding-right: 3px;
  animation: blink 0.85s step-end infinite;
  font-style: normal;
  background: var(--grad-orange);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
@keyframes blink { 0%,100% { border-color: var(--purple); } 50% { border-color: transparent; } }

/* Glow pulse on purple elements */
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 20px rgba(139,92,246,0.2); }
  50%      { box-shadow: 0 0 40px rgba(139,92,246,0.45), 0 0 80px rgba(139,92,246,0.15); }
}
.btn-accent { animation: glowPulse 3s ease-in-out infinite; }
.btn-accent:hover { animation: none; }

/* Reveal animation for hero content */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: heroReveal 0.7s ease both; }
.hero-title   { animation: heroReveal 0.7s 0.15s ease both; }
.hero-sub     { animation: heroReveal 0.7s 0.28s ease both; }
.hero-actions { animation: heroReveal 0.7s 0.40s ease both; }
.hero-trust   { animation: heroReveal 0.7s 0.52s ease both; }

/* Hero layout */
.hero-layout {
  position: relative; z-index: 1;
  padding: 80px 0;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  text-align: center;
}
.hero-eyebrow { margin-bottom: 28px; }
.hero-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(30px,4.5vw,54px);
  line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 24px; text-wrap: balance;
}
.hero-sub {
  font-size: clamp(16px,2.5vw,20px); color: var(--t2);
  margin: 0 auto 40px; line-height: 1.75; max-width: 600px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; align-items: center; gap: 24px; justify-content: center; flex-wrap: wrap; }

/* Hero cube — direct child of <section class="hero">, always sits just right of centered text */
.hero-visual {
  position: absolute;
  /* text is max-width:720px centered → right edge = 50% + 360px.
     cube left edge = 50% + 380px (20px gap) → right offset = 50% - 580px */
  right: calc(50% - 580px);
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  pointer-events: none; z-index: 0;
}
.hero-cube-wrap {
  position: relative;
  width: 200px; height: 200px;
}
.hero-cube-wrap::before {
  content: '';
  position: absolute; inset: -35%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.28) 0%, transparent 70%);
  animation: cube-halo 5s ease-in-out infinite;
}
.hero-cube {
  width: 100%; height: 100%;
  position: relative; z-index: 1;
  animation: cube-float-sway 5s ease-in-out infinite;
}
@keyframes cube-float-sway {
  0%   { transform: translateY(0px)   rotate(0deg);  filter: drop-shadow(0 12px 28px rgba(139,92,246,0.45)); }
  25%  { transform: translateY(-14px) rotate(5deg);  filter: drop-shadow(0 22px 44px rgba(139,92,246,0.65)); }
  50%  { transform: translateY(-20px) rotate(0deg);  filter: drop-shadow(0 28px 56px rgba(139,92,246,0.72)); }
  75%  { transform: translateY(-14px) rotate(-5deg); filter: drop-shadow(0 22px 44px rgba(139,92,246,0.65)); }
  100% { transform: translateY(0px)   rotate(0deg);  filter: drop-shadow(0 12px 28px rgba(139,92,246,0.45)); }
}
@keyframes cube-halo {
  0%,100% { transform: scale(1);    opacity: 0.6; }
  50%     { transform: scale(1.18); opacity: 1; }
}
@media (max-width: 1300px) { .hero-visual { width: 160px; } }
@media (max-width: 1160px) { .hero-visual { display: none; } }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t3); font-weight: 500; }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); flex-shrink: 0; box-shadow: 0 0 8px rgba(139,92,246,0.6); }

/* =====================================================
   STATS
   ===================================================== */
.stats-section { background: var(--bg-1); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid rgba(139,92,246,0.1);
  border-radius: var(--r-xl); overflow: hidden;
}
.stat-item {
  padding: 44px 24px; text-align: center;
  background: var(--bg-card);
  border-right: 1px solid rgba(139,92,246,0.07);
  transition: background var(--ease);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-hover); }
.stat-num {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(36px,5vw,52px);
  background: var(--grad-purple);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--t2); font-weight: 500; line-height: 1.4; }

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 56px; }
.step-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl); padding: 36px 28px; position: relative;
  transition: border-color var(--ease), transform var(--ease);
}
.step-card:hover { border-color: var(--purple-border); transform: translateY(-3px); }
.step-num {
  font-family: var(--f-display); font-size: 52px; font-weight: 400;
  background: var(--grad-purple);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 20px; opacity: 0.35;
}
.step-card h3 { font-size: 16px; font-weight: 400; margin-bottom: 10px; line-height: 1.45; }
.step-card p { font-size: 14px; color: var(--t2); line-height: 1.7; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-section { background: var(--bg-1); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 56px;
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl); padding: 32px;
  transition: border-color var(--ease); position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), transparent);
}
.testimonial-card:hover { border-color: var(--purple-border); }
.quote-mark {
  font-family: Georgia, serif; font-size: 56px; line-height: 1;
  color: var(--purple); opacity: 0.25; margin-bottom: -8px; display: block;
}
.testimonial-text { font-size: 15px; line-height: 1.8; color: var(--t1); margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-purple);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff; overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.author-role { font-size: 12px; color: var(--t3); }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-section {
  position: relative; overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid rgba(139,92,246,0.1);
  border-bottom: 1px solid rgba(139,92,246,0.1);
}
.cta-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(124,58,237,0.09) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 1; text-align: center; }
.cta-content h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(24px,4vw,40px); margin-bottom: 12px; line-height: 1.3; text-wrap: balance;
}
.cta-content p { font-size: 17px; color: var(--t2); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   CASES PAGE
   ===================================================== */
.case-featured {
  background: var(--bg-card); border: 1px solid var(--purple-border);
  border-radius: var(--r-2xl); overflow: hidden; margin-bottom: 32px;
}
.case-featured-inner { display: grid; grid-template-columns: 1fr 1fr; }
.case-featured-content { padding: 48px; }
.case-featured-image {
  background: #000; position: relative; overflow: hidden;
  min-height: 420px; display: flex; align-items: center; justify-content: center;
}
.case-featured-image img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.65;
}
.case-featured-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-card) 0%, transparent 35%);
}
.case-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.case-featured-content h2 {
  font-family: var(--f-display); font-size: clamp(20px,3vw,28px); font-weight: 400;
  margin-bottom: 12px; line-height: 1.3;
}
.case-featured-content p.case-desc { font-size: 15px; color: var(--t2); line-height: 1.75; margin-bottom: 28px; }
.case-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 32px; }
.case-metric {
  background: rgba(139,92,246,0.07); border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--r-lg); padding: 16px 12px;
}
.case-metric-num {
  font-family: var(--f-display); font-size: 22px; font-weight: 400;
  background: var(--grad-purple);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 5px; font-variant-numeric: tabular-nums;
}
.case-metric-label { font-size: 10px; color: var(--t3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; line-height: 1.4; }

/* Workflow frame */
.workflow-frame {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
}
.workflow-frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wf-dot { width: 10px; height: 10px; border-radius: 50%; }
.wf-dot.red { background: #FF5F57; }
.wf-dot.yellow { background: #FEBC2E; }
.wf-dot.green { background: #28C840; }
.wf-title { font-size: 11px; color: var(--t3); font-family: var(--f-display); margin-left: 6px; letter-spacing: 0.3px; }
.workflow-frame img { width: 100%; display: block; opacity: 0.8; }

.cases-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.case-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl); padding: 32px;
  transition: border-color var(--ease), transform var(--ease);
}
.case-card:hover { border-color: var(--purple-border); transform: translateY(-3px); }
.case-card-icon {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  background: var(--purple-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.case-card h3 { font-family: var(--f-display); font-size: 15px; font-weight: 400; margin-bottom: 8px; line-height: 1.4; }
.case-card p { font-size: 14px; color: var(--t2); line-height: 1.65; margin-bottom: 18px; }
.case-result {
  font-size: 12px; font-weight: 700; color: var(--purple-light);
  background: var(--purple-dim); border: 1px solid rgba(139,92,246,0.2);
  padding: 5px 12px; border-radius: 100px; display: inline-block;
}

/* =====================================================
   SERVICES PAGE — FUNNEL
   ===================================================== */
.funnel { min-height: 320px; position: relative; }
.funnel-step { transition: opacity 0.35s ease, transform 0.35s ease; }
.funnel-step.hidden {
  opacity: 0; transform: translateY(12px);
  pointer-events: none; position: absolute; top: 0; left: 0; right: 0;
}
.funnel-step.visible { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }

.type-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.type-card {
  flex: 1; min-width: 240px; max-width: 340px;
  background: var(--bg-card); border: 1px solid var(--purple-border);
  border-radius: var(--r-2xl); padding: 40px 32px;
  text-align: center; cursor: pointer; touch-action: manipulation; width: 100%;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  position: relative; overflow: hidden;
}
.type-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-purple); opacity: 0; transition: opacity var(--ease);
}
.type-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: var(--glow-p); }
.type-card:hover::before { opacity: 0.05; }
.type-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.type-label {
  font-family: var(--f-display); font-size: 36px; font-weight: 400;
  background: var(--grad-purple);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.type-desc { font-size: 14px; color: var(--t2); line-height: 1.6; position: relative; z-index: 1; }
.type-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--purple-light);
  opacity: 0; transition: opacity var(--ease); position: relative; z-index: 1;
}
.type-card:hover .type-arrow { opacity: 1; }

.funnel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.back-btn {
  display: flex; align-items: center; gap: 6px;
  color: var(--t2); font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
  touch-action: manipulation;
}
.back-btn:hover { color: var(--t1); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
.back-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.funnel-heading { font-family: var(--f-display); font-size: 18px; font-weight: 400; }

.niche-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 14px;
}
.niche-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl); padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  cursor: pointer; touch-action: manipulation; width: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  opacity: 0; transform: translateY(16px);
  animation: nicheFadeIn 0.35s ease forwards;
}
.niche-card:hover {
  border-color: var(--purple-border);
  transform: translateY(-4px);
  background: var(--bg-hover);
  box-shadow: 0 8px 32px rgba(124,58,237,0.15);
}
.niche-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
@keyframes nicheFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.niche-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--purple-light); flex-shrink: 0;
}
.niche-title { font-size: 13px; font-weight: 700; color: var(--t1); line-height: 1.3; }
.niche-desc { font-size: 11px; color: var(--t3); margin-top: 4px; line-height: 1.4; }

.service-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 14px; margin-bottom: 36px; }
.service-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl); padding: 24px 20px;
  transition: border-color var(--ease), transform var(--ease);
}
.service-card:hover { border-color: var(--purple-border); transform: translateY(-2px); }
.service-icon {
  width: 44px; height: 44px; border-radius: var(--r-lg);
  background: var(--purple-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.service-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.service-card p { font-size: 13px; color: var(--t2); line-height: 1.65; }
.funnel-cta { text-align: center; }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(124,58,237,0.14) 0%, transparent 60%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 660px; }
.page-hero h1 {
  font-family: var(--f-display); font-size: clamp(30px,5vw,52px); font-weight: 400;
  line-height: 1.2; margin-bottom: 16px; text-wrap: balance;
}
.page-hero p { font-size: 18px; color: var(--t2); line-height: 1.75; max-width: 520px; }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px; }
.value-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl); padding: 28px;
  transition: border-color var(--ease), transform var(--ease);
}
.value-card:hover { border-color: var(--purple-border); transform: translateY(-3px); }
.value-icon { font-size: 30px; margin-bottom: 14px; }
.value-card h3 { font-family: var(--f-display); font-size: 13px; font-weight: 400; margin-bottom: 8px; line-height: 1.45; }
.value-card p { font-size: 14px; color: var(--t2); line-height: 1.65; }

.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 56px; }
.team-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl); padding: 28px 20px;
  text-align: center; transition: border-color var(--ease), transform var(--ease);
}
.team-card:hover { border-color: var(--purple-border); transform: translateY(-3px); }
.team-photo {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 16px; overflow: hidden;
  border: 2px solid rgba(139,92,246,0.25);
  background: var(--bg-hover);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--t2); margin-bottom: 4px; line-height: 1.4; }
.team-exp { font-size: 12px; color: var(--t3); }

.tech-stack { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.tech-tag {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg); padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--t2);
  transition: border-color var(--ease), color var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.tech-tag:hover { border-color: var(--purple-border); color: var(--t1); }
.tech-tag .tech-logo { flex-shrink: 0; display: block; }
.tech-tag .tech-logo.logo-invert { filter: brightness(0) invert(1); opacity: 0.75; }

/* Tools marquee */
.tools-marquee {
  overflow: hidden;
  margin-top: 48px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.tools-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: tools-scroll 28s linear infinite;
}
.tools-track:hover { animation-play-state: paused; }
@keyframes tools-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tool-tile {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg); padding: 18px 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; height: 68px;
  transition: border-color var(--ease), transform var(--ease);
}
.tool-tile:hover { border-color: var(--purple-border); transform: translateY(-2px); }
.tool-tile-logo { height: 28px; width: auto; max-width: 80px; object-fit: contain; }
.tool-tile-logo.logo-invert { filter: brightness(0) invert(1); opacity: 0.75; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; margin-top: 56px; }
.contact-info h2 { font-family: var(--f-display); font-size: 22px; font-weight: 400; margin-bottom: 12px; line-height: 1.4; }
.contact-info p.contact-sub { font-size: 15px; color: var(--t2); line-height: 1.75; margin-bottom: 28px; }

.contact-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl); padding: 14px 18px;
  transition: border-color var(--ease), background var(--ease);
}
.contact-link:hover { border-color: var(--purple-border); background: var(--bg-hover); }
.contact-link:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.contact-link-icon {
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--purple-dim); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-link-label { display: block; font-size: 10px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 2px; }
.contact-link-value { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.process-step { display: flex; gap: 16px; align-items: flex-start; position: relative; padding-bottom: 20px; }
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px;
  background: rgba(139,92,246,0.18);
}
.process-step:last-child::before { display: none; }
.process-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--purple-dim); border: 1px solid rgba(139,92,246,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--purple-light);
  position: relative; z-index: 1;
}
.process-text { padding-top: 4px; }
.process-text strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.process-text span { font-size: 13px; color: var(--t2); }

.contact-form-box {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-2xl); padding: 40px;
}
.contact-form-box h3 { font-family: var(--f-display); font-size: 18px; font-weight: 400; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-group label { font-size: 11px; font-weight: 700; color: var(--t2); text-transform: uppercase; letter-spacing: 0.6px; }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg); padding: 13px 16px;
  font-size: 14px; color: var(--t1);
  transition: border-color var(--ease), background var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--purple); background: rgba(139,92,246,0.05); }
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--t3); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; cursor: pointer; }
.form-error { font-size: 12px; color: #F87171; min-height: 16px; }
.form-note { font-size: 12px; color: var(--t3); text-align: center; margin-top: 12px; }

/* =====================================================
   POPUP MODAL
   ===================================================== */
.popup-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}
.popup-overlay.open { opacity: 1; visibility: visible; }
.popup-box {
  background: var(--bg-card); border: 1px solid var(--purple-border);
  border-radius: var(--r-2xl); padding: 40px;
  width: 100%; max-width: 480px; position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), var(--glow-p);
  transform: translateY(16px) scale(0.97); transition: transform var(--ease);
  max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
}
.popup-overlay.open .popup-box { transform: translateY(0) scale(1); }
.popup-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--t2); transition: background var(--ease), color var(--ease);
}
.popup-close:hover { background: rgba(255,255,255,0.12); color: var(--t1); }
.popup-close:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.popup-header { margin-bottom: 24px; }
.popup-header h3 { font-family: var(--f-display); font-size: 20px; font-weight: 400; margin-bottom: 6px; }
.popup-header p { font-size: 14px; color: var(--t2); }
.popup-form .form-group { margin-bottom: 14px; }
.popup-alt {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.popup-alt a {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--t3); font-weight: 500;
  transition: color var(--ease);
}
.popup-alt a:hover { color: var(--t1); }
.popup-alt a:focus-visible { outline: 2px solid var(--purple); border-radius: 4px; }
.popup-success { text-align: center; padding: 20px 0; }
.popup-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 24px; color: #4ADE80;
}
.popup-success h3 { font-family: var(--f-display); font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.popup-success p { font-size: 14px; color: var(--t2); }

/* =====================================================
   FLOATING BUTTONS
   ===================================================== */
.float-btns {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform var(--ease), box-shadow var(--ease);
  touch-action: manipulation; position: relative;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.float-tg { background: #229ED9; }
.float-wa { background: #25D366; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-1); border-top: 1px solid rgba(255,255,255,0.05);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--t2); margin-top: 16px; line-height: 1.7; max-width: 260px; }
.footer-logo { height: 36px; width: auto; mix-blend-mode: lighten; }
.footer-socials { display: flex; gap: 8px; margin-top: 20px; }
.social-btn {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--t2); transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.social-btn:hover { background: rgba(139,92,246,0.15); color: var(--purple-light); border-color: var(--purple-border); }
.social-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.footer-col h4 { font-size: 10px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--t2); padding: 5px 0; transition: color var(--ease); }
.footer-col a:hover { color: var(--t1); }
.footer-col a:focus-visible { outline: 2px solid var(--purple); border-radius: 2px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px; color: var(--t3);
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }

/* =====================================================
   UTILITIES
   ===================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section-alt { background: var(--bg-1); }
.tag-orange {
  background: rgba(249,122,76,0.1); border-color: rgba(249,122,76,0.25);
  color: var(--orange);
}

/* =====================================================
   CASE TAG (inline)
   ===================================================== */
.case-tag {
  display: inline-flex; align-items: center;
  background: var(--purple-dim); border: 1px solid var(--purple-border);
  color: var(--purple-light); font-size: 10px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
}

/* =====================================================
   CASE FEATURED — new layout
   ===================================================== */
.case-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--r-2xl);
  padding: 52px;
  position: relative; overflow: hidden;
}
.case-featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), rgba(249,122,76,0.3), transparent);
}
.case-featured-info { padding: 0; }
.case-featured-info h2 {
  font-family: var(--f-display); font-size: clamp(20px,3vw,28px); font-weight: 400;
  margin: 16px 0 14px; line-height: 1.3;
}
.case-featured-info > p {
  font-size: 15px; color: var(--t2); line-height: 1.75; margin-bottom: 24px;
}
.case-featured-visual { display: flex; flex-direction: column; gap: 20px; }
.case-metrics {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 12px;
}
.metric-item {
  background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--r-lg); padding: 18px 14px;
  transition: border-color var(--ease), background var(--ease);
}
.metric-item:hover { border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.1); }
.metric-num {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(22px,3vw,30px);
  background: var(--grad-purple);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums;
}
.metric-label { font-size: 11px; color: var(--t3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; line-height: 1.4; }
.wf-red   { background: #FF5F57; }
.wf-yellow { background: #FEBC2E; }
.wf-green { background: #28C840; }
.workflow-frame {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #060612;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.workflow-frame-img img { width: 100%; display: block; opacity: 0.9; }
.workflow-frame-body { background: #060612; }
.workflow-frame-body svg { display: block; width: 100%; height: auto; }

/* Case card visualization bar */
.case-card-viz {
  display: flex; align-items: center; gap: 6px;
  background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.12);
  border-radius: var(--r-md); padding: 8px 12px; margin-bottom: 14px;
}
.case-card-viz-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden;
}
.case-card-viz-fill {
  height: 100%; border-radius: 2px;
  background: var(--grad-purple);
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}
.case-card.in-view .case-card-viz-fill { width: var(--bar-width, 60%); }

/* =====================================================
   CASE CARDS (grid)
   ===================================================== */
.case-card-header { margin-bottom: 12px; }
.case-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.case-card h3 { font-family: var(--f-display); font-size: 15px; font-weight: 400; margin-bottom: 10px; line-height: 1.4; }
.case-card p { font-size: 14px; color: var(--t2); line-height: 1.65; margin-bottom: 18px; }
.case-card-results { display: flex; gap: 20px; margin-bottom: 18px; }
.result-item { display: flex; flex-direction: column; gap: 2px; }
.result-val {
  font-family: var(--f-display); font-size: 22px; font-weight: 400;
  background: var(--grad-purple);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.result-label { font-size: 11px; color: var(--t3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.case-tech { display: flex; gap: 6px; flex-wrap: wrap; }

/* =====================================================
   SOLUTIONS GRID (services page)
   ===================================================== */
/* Two-service cards */
.services-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.svc-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  padding: 40px 36px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.svc-card:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.svc-accent {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.svc-accent--purple { background: linear-gradient(90deg, #7C3AED 0%, #A78BFA 60%, transparent 100%); }
.svc-accent--orange { background: linear-gradient(90deg, #EA580C 0%, #F97A4C 60%, transparent 100%); }
.svc-num {
  position: absolute; top: 16px; right: 24px;
  font-family: var(--f-display); font-size: 88px; line-height: 1;
  color: rgba(255,255,255,0.03);
  pointer-events: none; user-select: none;
}
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.svc-icon--purple { background: rgba(124,58,237,0.15); color: var(--purple-light); }
.svc-icon--orange { background: rgba(249,122,76,0.12); color: #F97A4C; }
.svc-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(22px, 2.8vw, 28px); line-height: 1.15;
  margin-bottom: 16px;
}
.svc-desc {
  font-size: 15px; color: var(--t2);
  line-height: 1.8; margin-bottom: 28px;
}
.svc-features {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 32px;
}
.svc-features li {
  font-size: 13px; color: var(--t2);
  display: flex; align-items: center; gap: 8px;
}
.svc-features li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(139,92,246,0.55); flex-shrink: 0;
}
.svc-stats {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0; margin-bottom: 28px;
}
.svc-stat { flex: 1; text-align: center; padding: 0 8px; border-right: 1px solid rgba(255,255,255,0.06); }
.svc-stat:last-child { border-right: none; }
.svc-stat-val {
  display: block;
  font-family: var(--f-display); font-size: 24px; font-weight: 400;
  line-height: 1.2; margin-bottom: 4px;
}
.svc-stat-label {
  display: block; font-size: 11px;
  color: var(--t3); line-height: 1.5;
}
.svc-cta { width: 100%; justify-content: center; }

/* Funnel improvements */
.funnel-section { background: var(--bg-1); }
.funnel-prompt {
  font-family: var(--f-display); font-size: clamp(18px,3vw,26px); font-weight: 400;
  margin-bottom: 36px; color: var(--t1); text-align: center;
}
.funnel-breadcrumb { margin-bottom: 20px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--t2); font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
  touch-action: manipulation;
}
.btn-back:hover { color: var(--t1); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
.btn-back:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.funnel-cta { text-align: center; margin-top: 48px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.06); }
.funnel-cta p { font-size: 16px; color: var(--t2); margin-bottom: 20px; }
.funnel-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.type-icon {
  width: 52px; height: 52px; border-radius: var(--r-xl);
  background: var(--purple-dim); border: 1px solid var(--purple-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: var(--purple-light);
  position: relative; z-index: 1;
}
.type-name {
  font-family: var(--f-display); font-size: 30px; font-weight: 400;
  background: var(--grad-purple);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px; position: relative; z-index: 1;
}
.type-desc { font-size: 13px; color: var(--t2); line-height: 1.5; position: relative; z-index: 1; }

/* =====================================================
   MISSION (about page)
   ===================================================== */
.mission-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.mission-text .tag { margin-bottom: 20px; }
.mission-text h2 {
  font-family: var(--f-display); font-size: clamp(24px,4vw,38px); font-weight: 400;
  line-height: 1.2; margin-bottom: 20px; text-wrap: balance;
}
.mission-text p { font-size: 16px; color: var(--t2); line-height: 1.8; margin-bottom: 14px; }
.mission-visual img {
  width: 100%; border-radius: var(--r-2xl);
  border: 1px solid rgba(255,255,255,0.08); opacity: 0.9;
}

/* =====================================================
   VALUE ICON (override for SVG)
   ===================================================== */
.value-icon {
  width: 52px; height: 52px;
  background: var(--purple-dim); border: 1px solid var(--purple-border);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-light); margin-bottom: 18px;
}

/* =====================================================
   TEAM MEMBER (about page)
   ===================================================== */
.team-member {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl); padding: 28px 20px;
  text-align: center; transition: border-color var(--ease), transform var(--ease);
}
.team-member:hover { border-color: var(--purple-border); transform: translateY(-3px); }
.team-photo-wrap {
  width: 100px; height: 100px; border-radius: 50%;
  margin: 0 auto 16px; overflow: hidden;
  border: 2px solid rgba(139,92,246,0.3);
  background: var(--bg-hover);
}
.team-photo-wrap .team-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block; border-radius: 50%;
}
.team-info { display: flex; flex-direction: column; gap: 4px; }
.team-name { font-size: 15px; font-weight: 700; }
.team-role { font-size: 12px; color: var(--t2); font-weight: 500; }
.team-bio { font-size: 12px; color: var(--t3); line-height: 1.65; margin-top: 8px; }

/* =====================================================
   TECH STACK GRID (about page)
   ===================================================== */
.stack-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 56px;
}
.stack-category {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-xl); padding: 24px;
  transition: border-color var(--ease);
}
.stack-category:hover { border-color: var(--purple-border); }
.stack-category h3 {
  font-size: 11px; font-weight: 700; color: var(--t3);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px;
}
.stack-items { display: flex; gap: 8px; flex-wrap: wrap; }
.stack-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-hover); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-md); padding: 5px 12px;
  font-size: 12px; font-weight: 600; color: var(--t2);
  transition: border-color var(--ease), color var(--ease);
}
.stack-item:hover { border-color: var(--purple-border); color: var(--t1); }
.stack-item img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }

/* =====================================================
   CONTACT IMPROVEMENTS
   ===================================================== */
.contact-links { display: flex; flex-direction: column; gap: 8px; }
.contact-links h2 {
  font-family: var(--f-display); font-size: clamp(18px,3vw,26px); font-weight: 400;
  margin-bottom: 20px; line-height: 1.3;
}
.contact-link-tg  .contact-link-icon { background: rgba(34,158,217,0.12); border: 1px solid rgba(34,158,217,0.2); color: #229ED9; }
.contact-link-wa  .contact-link-icon { background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.2); color: #25D366; }
.contact-link-phone .contact-link-icon { background: var(--purple-dim); border: 1px solid var(--purple-border); color: var(--purple-light); }
.contact-link-email .contact-link-icon { background: rgba(249,122,76,0.1); border: 1px solid rgba(249,122,76,0.2); color: var(--orange); }
.contact-link-li  .contact-link-icon { background: rgba(10,102,194,0.15); border: 1px solid rgba(10,102,194,0.3); color: #0A66C2; }
.contact-link-info { flex: 1; min-width: 0; }
.contact-link-arrow { color: var(--t3); flex-shrink: 0; margin-left: auto; }
.contact-hours {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--t3); margin-top: 8px; padding: 10px 0;
}

/* Contact form wrapper */
.contact-form-wrap {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-2xl); padding: 40px;
}
.contact-form-wrap h2 {
  font-family: var(--f-display); font-size: 20px; font-weight: 400; margin-bottom: 28px;
}
.contact-form { display: flex; flex-direction: column; }
.form-success {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #4ADE80; font-weight: 600;
  background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2);
  border-radius: var(--r-md); padding: 14px 18px; margin-top: 12px;
}
.form-success[hidden] { display: none; }

/* Process improvements */
.process-steps { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; margin-top: 56px; }
.process-step {
  display: flex; gap: 16px; align-items: flex-start;
  position: relative; padding: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}
.process-step::before { display: none; }
.process-step:nth-child(odd) { border-right: none; }
.process-step:nth-child(1),
.process-step:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.05); }
.process-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--purple-dim); border: 1px solid rgba(139,92,246,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 14px; font-weight: 400;
  color: var(--purple-light); position: relative; z-index: 1;
}
.process-content { padding-top: 4px; }
.process-content h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.process-content p { font-size: 13px; color: var(--t2); line-height: 1.65; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .case-featured { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .case-featured-inner { grid-template-columns: 1fr; }
  .case-featured-image { min-height: 280px; }
  .case-featured-image::after { background: linear-gradient(0deg, var(--bg-card) 0%, transparent 40%); }
  .mission-block { grid-template-columns: 1fr; gap: 36px; }
  .mission-visual { order: -1; }
  .mission-visual img { max-height: 300px; object-fit: contain; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid .stat-item:nth-child(2) { border-right: none; }
  .stats-grid .stat-item:nth-child(3) { border-right: 1px solid rgba(139,92,246,0.07); }
  .solutions-grid { grid-template-columns: 1fr; }
  .services-duo { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2,1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .process-step:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.05); }
  .process-step:nth-child(1),
  .process-step:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.05); }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-layout { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .type-cards { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .case-metrics { grid-template-columns: 1fr 1fr; }
  .contact-form-box { padding: 24px 20px; }
  .contact-form-wrap { padding: 24px 20px; }
  .popup-box { padding: 28px 20px; }
  .float-btns { bottom: 20px; right: 16px; }
  .stats-grid .stat-item:nth-child(3) { border-right: none; }
  .header-icon-btn { display: none; }
  .stack-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; border: 1px solid rgba(255,255,255,0.05); border-radius: var(--r-xl); overflow: hidden; }
  .process-step { border: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .process-step:last-child { border-bottom: none; }
  .process-step:nth-child(odd) { border-right: none; }
  .case-card-results { flex-wrap: wrap; gap: 14px; }
  .funnel-cta-btns { flex-direction: column; align-items: center; }
}
