/* ============================================================================
   WATERMVP2DOM — ONE CLEAN CSS (NO CONFLICTS)
   Nowoczesny, premium dark UI + sekcje: hero, case studies, dashboard,
   personalization, methodology, for-whom, scope, real-case, final-cta, footer.
   ============================================================================ */

/* =========================
   THEME TOKENS (ONE :root)
   ========================= */

:root{
  /* Brand */
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --primary-light: #3385ff;

  --accent: #67d2ff;
  --accent2:#7cffd8;
  --success:#00d084;
  --danger:#ff3b3b;

  /* Backgrounds */
  --bg0:#070b1a;
  --bg1:#0a1230;
  --bg:#0a0e27;
  --bg-secondary:#111633;
  --bg-tertiary:#16213e;

  /* Text */
  --text:#eaf0ff;
  --text-secondary: rgba(234,240,255,.72);
  --text-muted: rgba(234,240,255,.55);

  /* Lines / glass */
  --line: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.12);
  --glass: rgba(15,25,55,.52);

  /* Layout */
  --container: 1120px;
  --radius: 22px;

  /* Spacing */
  --sp-xs: .5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2rem;
  --sp-xl: 3rem;
  --sp-2xl: 4rem;
  --sp-3xl: 6rem;

  /* Typography */
  --font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Motion */
  --transition: 220ms ease;
  --transition-fast: 150ms ease;

  /* Shadows */
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow-sm: 0 10px 30px rgba(0,0,0,.30);

  color-scheme: dark;
}

[data-theme="light"]{
  --bg0:#f7f9ff;
  --bg1:#eef3ff;
  --bg:#ffffff;
  --bg-secondary:#f2f6ff;
  --bg-tertiary:#e9f0ff;

  --text:#0a1020;
  --text-secondary: rgba(10,16,32,.72);
  --text-muted: rgba(10,16,32,.55);

  --line: rgba(10,16,32,.12);
  --border: rgba(10,16,32,.14);
  --glass: rgba(255,255,255,.62);

  --shadow: 0 16px 50px rgba(20,40,90,.18);

  color-scheme: light;
}

/* =========================
   RESET / BASE
   ========================= */

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body{
  min-height:100%;
  font-family: var(--font-family);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(103,210,255,.18), transparent 60%),
    radial-gradient(900px 600px at 100% 20%, rgba(124,255,216,.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img, video, canvas, svg{ max-width:100%; height:auto; }
main, section{ width:100%; }

a{ color: inherit; text-decoration:none; }
a:hover{ opacity:.92; }

p{ color: var(--text-secondary); line-height:1.7; margin: 0; }

h1,h2,h3,h4,h5,h6{
  color: var(--text);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.sr-only{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* =========================
   LAYOUT
   ========================= */

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

section{
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
}

@media (max-width: 640px) {
  section { padding: 3rem 0; }
}

.glass{
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

/* =========================
   BACKGROUND FX
   ========================= */

.bg{ position:fixed; inset:0; pointer-events:none; z-index:-1; }
.orb{ position:absolute; filter: blur(50px); opacity:.75; mix-blend-mode: screen; animation: float 14s ease-in-out infinite; }
.orb-1{ width:520px; height:520px; left:-120px; top:80px; background: radial-gradient(circle at 30% 30%, rgba(103,210,255,.85), transparent 60%); }
.orb-2{ width:560px; height:560px; right:-160px; top:120px; background: radial-gradient(circle at 40% 40%, rgba(124,255,216,.75), transparent 62%); animation-delay:-5s; }
.orb-3{ width:620px; height:620px; left:20%; bottom:-260px; background: radial-gradient(circle at 50% 50%, rgba(160,120,255,.55), transparent 62%); animation-delay:-9s; }

.gridlines{
  position:absolute; inset:-2px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity:.18;
  mask-image: radial-gradient(circle at 50% 20%, black 30%, transparent 70%);
}

.noise{
  position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity:.10;
}

/* =========================
   TOPBAR
   ========================= */

.topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(10, 16, 40, 0.85), rgba(10, 16, 40, 0.45));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 200ms ease;
}

.topbar[data-scrolled="true"] {
  background: linear-gradient(180deg, rgba(10, 16, 40, 0.95), rgba(10, 16, 40, 0.65));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .topbar{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.5));
}

[data-theme="light"] .topbar[data-scrolled="true"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.75));
}

.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{ display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:-.02em; }
.logo-link{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: transform 200ms ease, filter 200ms ease;
  cursor: pointer;
}
.logo-link:hover{
  transform: scale(1.05) rotate(-2deg);
  filter: brightness(1.2);
}
.logo-link.spinning{
  animation: logoSpin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.logo-link.glow{
  animation: logoGlow 0.6s ease-out;
}
.logo{
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 20px rgba(0, 102, 255, 0.3));
  transition: filter 200ms ease;
}
.logo-link:hover .logo{
  filter: drop-shadow(0 12px 30px rgba(0, 102, 255, 0.5));
}

.nav{ display:flex; gap:18px; opacity:.9; flex-wrap:wrap; }
.nav a{ padding:10px 10px; border-radius: 14px; transition: background var(--transition), opacity var(--transition); }
.nav a:hover{ background: rgba(255,255,255,.06); }

.topbar-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

.chip{
  display:flex; align-items:center; gap:10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
}
.chip-dot{
  width:10px; height:10px; border-radius:50%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(103,210,255,.45);
}

/* =========================
   BUTTONS
   ========================= */

.btn,
.cta-button,
.cta-button-dark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 13px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 800;
  cursor:pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
  position:relative;
  overflow:hidden;
  user-select:none;
  white-space:nowrap;
  font-size: 0.95rem;
}

.btn:hover,
.cta-button:hover,
.cta-button-dark:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.btn:active,
.cta-button:active,
.cta-button-dark:active{ transform: translateY(0); }

.btn-primary,
.cta-button{
  border: 1px solid rgba(103,210,255,.4);
  background: linear-gradient(135deg, rgba(103,210,255,.24), rgba(124,255,216,.14));
  box-shadow: 0 20px 60px rgba(103,210,255,.18);
}

.btn-primary:hover,
.cta-button:hover {
  box-shadow: 0 24px 60px rgba(103,210,255,.28), 0 0 30px rgba(103,210,255,.2);
  border-color: rgba(103,210,255,.6);
}

.cta-button-dark{
  background: rgba(255,255,255,.92);
  color: #0a1020;
  border-color: rgba(255,255,255,.8);
  box-shadow: 0 10px 30px rgba(255,255,255,.15);
}

.btn-shine{
  position:absolute; inset:-2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
  transform: translateX(-120%);
  transition: transform 700ms ease;
}
.btn:hover .btn-shine,
.cta-button:hover .btn-shine,
.cta-button-dark:hover .btn-shine{ transform: translateX(120%); }

.btn:active {
  transform: scale(0.98) translateY(2px);
}

.cta-button:active {
  transform: scale(0.98) translateY(2px);
}

/* =========================
   HERO
   ========================= */

.hero{ padding: 6rem 0 3rem; }
.hero-inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items:center;
}
@media (max-width: 980px){ .hero-inner{ grid-template-columns: 1fr; } }

.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  margin-bottom: 16px;
}
.badge-dot{
  width:10px; height:10px; border-radius:50%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(103,210,255,.45);
}

.hero h1{
  margin:0;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  animation: slideInDown 0.8s ease-out forwards;
  opacity: 0;
}

.accent{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.lead{
  margin-top: 14px;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 64ch;
  animation: slideInDown 0.9s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-cta{ 
  display:flex; 
  gap:12px; 
  margin-top: 18px; 
  flex-wrap:wrap;
  animation: slideInDown 1s ease-out 0.3s forwards;
  opacity: 0;
}

.kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 640px){ .kpis{ grid-template-columns: 1fr; } }

.kpi{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 20px 18px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.kpi::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.kpi::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(103,210,255,.08), rgba(124,255,216,.04));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  border-radius: 18px;
}
.kpi:hover{
  border-color: var(--accent);
  background: rgba(103,210,255,.12);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(103,210,255,.2);
}
.kpi:hover::before{
  transform: scaleX(1);
}
.kpi:hover::after {
  opacity: 1;
}
.kpi-top{ display:flex; gap:10px; align-items:center; color: var(--text-secondary); font-weight:800; font-size:.92rem; }
.kpi-value{ font-size: 2.2rem; font-weight: 900; margin-top: 8px; letter-spacing:-.03em; color: var(--accent); }

.hero-panel .panel{ border-radius: var(--radius); overflow:hidden; }
.panel-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.dots{ display:flex; gap:6px; }
.dots span{ width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,.14); }
.panel-title{ font-weight: 900; letter-spacing:-.02em; opacity:.92; }
.panel-chip{
  font-size:.82rem; font-weight:900;
  padding: 6px 10px; border-radius: 999px;
  border:1px solid rgba(103,210,255,.25);
  background: rgba(103,210,255,.10);
}
.panel-body{ padding: 14px 16px 16px; }

.mini-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mini-card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 14px;
  animation: slideUp 600ms ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.mini-card:nth-child(1) { animation-delay: 100ms; }
.mini-card:nth-child(2) { animation-delay: 200ms; }
.mini-card:nth-child(3) { animation-delay: 300ms; }
.mini-card:nth-child(4) { animation-delay: 400ms; }
.mini-card:hover{
  border-color: rgba(103,210,255,.6);
  background: rgba(103,210,255,.12);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(103,210,255,.15);
}
.mini-label{ color: var(--text-secondary); font-weight:800; font-size:.9rem; }
.mini-value{ font-size: 1.7rem; font-weight: 900; margin-top: 6px; letter-spacing:-.02em; }
.mini-foot{ color: var(--text-secondary); margin-top: 4px; font-size:.9rem; }
.good{ color: rgba(124,255,216,.95); font-weight:900; }

.spark{ 
  margin-top: 12px; 
  border:1px solid var(--line); 
  border-radius: 16px; 
  padding: 12px; 
  background: rgba(255,255,255,.03);
  animation: slideUp 600ms ease-out 500ms forwards;
  opacity: 0;
  transform: translateY(20px);
}
.spark-head{ display:flex; justify-content:space-between; color: var(--text-secondary); font-weight:800; }
.sparkline{ display:flex; gap:8px; align-items:flex-end; height: 64px; margin-top: 10px; }
.sparkline span{
  flex:1;
  background: linear-gradient(180deg, rgba(103,210,255,.55), rgba(124,255,216,.18));
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.08);
  animation: sparkPulse 1.5s ease-in-out infinite;
}
.sparkline span:nth-child(1) { animation-delay: 0ms; }
.sparkline span:nth-child(2) { animation-delay: 100ms; }
.sparkline span:nth-child(3) { animation-delay: 200ms; }
.sparkline span:nth-child(4) { animation-delay: 300ms; }
.sparkline span:nth-child(5) { animation-delay: 400ms; }
.sparkline span:nth-child(6) { animation-delay: 500ms; }
.sparkline span:nth-child(7) { animation-delay: 600ms; }
.sparkline span:nth-child(8) { animation-delay: 700ms; }

.log{ 
  margin-top: 12px; 
  border:1px solid var(--line); 
  border-radius: 16px; 
  padding: 10px 12px; 
  background: rgba(255,255,255,.03);
  animation: slideUp 600ms ease-out 600ms forwards;
  opacity: 0;
  transform: translateY(20px);
}
.log-row{ 
  display:flex; 
  gap:10px; 
  align-items:center; 
  padding: 6px 0; 
  color: var(--text-secondary); 
  font-weight:800;
  animation: fadeIn 400ms ease-out forwards;
  opacity: 0;
}
.log-row:nth-child(1) { animation-delay: 700ms; }
.log-row:nth-child(2) { animation-delay: 800ms; }
.log-row:nth-child(3) { animation-delay: 900ms; }
.dot{ width:10px; height:10px; border-radius:50%; display:inline-block; }
.dot.ok{ 
  background: rgba(124,255,216,.85); 
  box-shadow: 0 0 18px rgba(124,255,216,.25);
  animation: dotPulse 2s ease-in-out infinite;
}
.dot.warn{ 
  background: rgba(255,210,120,.75); 
  box-shadow: 0 0 18px rgba(255,210,120,.2);
  animation: dotPulseWarn 2s ease-in-out infinite;
}

/* =========================
   ANIMATIONS
   ========================= */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sparkPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(124, 255, 216, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(124, 255, 216, 0.8);
  }
}

@keyframes dotPulseWarn {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 210, 120, 0.3);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 210, 120, 0.6);
  }
}

@keyframes logoSpin {
  0% {
    transform: rotateX(0) rotateY(0);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg);
  }
  100% {
    transform: rotateX(0) rotateY(0);
  }
}

@keyframes logoGlow {
  0% {
    box-shadow: 0 0 0 rgba(0, 102, 255, 0.8);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 102, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 102, 255, 0.8);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0%, 100% { background-position: -1000px 0; }
  50% { background-position: 1000px 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(103, 210, 255, 0.3); }
  50% { box-shadow: 0 0 30px rgba(103, 210, 255, 0.6); }
}

/* =========================
   CASE STUDIES
   ========================= */

.case-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 24px;
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(103,210,255,.06), rgba(124,255,216,.03));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.case-card:hover {
  border-color: rgba(103,210,255,.6);
  background: rgba(103,210,255,.14);
  transform: translateY(-12px);
  box-shadow: 0 28px 80px rgba(103,210,255,.25);
}

.case-card:hover::before {
  opacity: 1;
}

.case-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.case-number {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(103,210,255,.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  background: rgba(103,210,255,.08);
  color: var(--accent);
  flex-shrink: 0;
}

.case-card:hover .case-number {
  border-color: rgba(103,210,255,.8);
  background: rgba(103,210,255,.16);
  box-shadow: 0 0 20px rgba(103,210,255,.3);
}

.case-header h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

.case-subtitle {
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 20px;
}

.case-section {
  margin-bottom: 18px;
}

.case-section h4 {
  font-size: 0.95rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 10px;
  opacity: 0.95;
}

.case-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-section li {
  color: var(--text-secondary);
  padding: 6px 0 6px 26px;
  position: relative;
  line-height: 1.6;
}

.case-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.case-cta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* =========================
   STACK SECTION
   ========================= */

.stack {
  padding: 5rem 0;
  position: relative;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.stack-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.stack-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(103,210,255,.08), rgba(124,255,216,.04));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: 20px;
}

.stack-card:hover {
  border-color: rgba(103,210,255,.6);
  background: rgba(103,210,255,.14);
  transform: translateY(-12px);
  box-shadow: 0 24px 60px rgba(103,210,255,.25);
}

.stack-card:hover::before {
  opacity: 1;
}

.stack-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: inline-block;
}

.stack-category {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.stack-list {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.stack-card:nth-child(1) { animation-delay: 0.05s; }
.stack-card:nth-child(2) { animation-delay: 0.1s; }
.stack-card:nth-child(3) { animation-delay: 0.15s; }
.stack-card:nth-child(4) { animation-delay: 0.2s; }
.stack-card:nth-child(5) { animation-delay: 0.25s; }
.stack-card:nth-child(6) { animation-delay: 0.3s; }

/* =========================
   PROCESS SECTION
   ========================= */

.process {
  padding: 5rem 0;
  position: relative;
}

.process-timeline {
  margin-top: 56px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-step:nth-child(1) { animation-delay: 0.1s; }
.timeline-step:nth-child(3) { animation-delay: 0.2s; }
.timeline-step:nth-child(5) { animation-delay: 0.3s; }
.timeline-step:nth-child(7) { animation-delay: 0.4s; }

.timeline-number {
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  background: rgba(103,210,255,.12);
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 8px 24px rgba(103,210,255,.15);
  transition: all 0.4s ease;
}

.timeline-number::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  opacity: 0;
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
  }
}

.timeline-content {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.timeline-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(103,210,255,.06), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.timeline-step:hover .timeline-content {
  border-color: rgba(103,210,255,.5);
  background: rgba(103,210,255,.1);
  transform: translateX(12px);
  box-shadow: 0 16px 40px rgba(103,210,255,.2);
}

.timeline-step:hover .timeline-content::before {
  opacity: 1;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.timeline-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 18px 0;
}

.timeline-outcome {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.95rem;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(103,210,255,.08);
  border-left: 3px solid var(--accent);
}

.outcome-label {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.outcome-text {
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-divider {
  height: 40px;
  position: relative;
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.timeline-divider::before {
  content: '';
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--line) 0%, transparent 50%, var(--line) 100%);
  animation: fadeIn 0.6s ease-out 0.15s backwards;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }

  .timeline-step {
    grid-template-columns: 70px 1fr;
    gap: 20px;
    margin-bottom: 36px;
  }

  .timeline-number {
    width: 70px;
    height: 70px;
    font-size: 1.4rem;
  }

  .timeline-content {
    padding: 20px 16px;
  }

  .timeline-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .stack {
    padding: 4rem 0;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .process {
    padding: 4rem 0;
  }

  .timeline-step {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .timeline-number {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .timeline-content {
    padding: 18px 14px;
  }

  .timeline-title {
    font-size: 1rem;
  }

  .timeline-description {
    font-size: 0.95rem;
  }
}



.case-card,
.kpi,
.section-title,
.btn,
.hero h1,
.lead {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.2s; }
.case-card:nth-child(3) { animation-delay: 0.3s; }
.case-card:nth-child(4) { animation-delay: 0.4s; }

.kpi:nth-child(1) { animation-delay: 0.2s; }
.kpi:nth-child(2) { animation-delay: 0.3s; }
.kpi:nth-child(3) { animation-delay: 0.4s; }

/* =========================
   SCROLL-TRIGGERED ANIMATIONS
   ========================= */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
   ========================= */


@media (max-width: 768px){
  section{ padding: 4rem 0; }
  .nav{ gap:10px; }
  .hero{ padding: 5rem 0 2rem; }
  .hero-inner { gap: 24px; }
}

@media (max-width: 640px){
  .hero h1{ font-size: 2.1rem; }
  .hero-inner { gap: 20px; }
  .hero-cta { gap: 10px; }
  .kpis { gap: 14px; margin-top: 20px; }
}

/* =========================
   ACCESSIBILITY
   ========================= */

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   FORMS
   ========================= */

.lead-form{
  display:grid;
  gap: 14px;
  margin: 18px 0;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.form-group label{
  font-size: .92rem;
  font-weight: 600;
  color: rgba(234,240,255,.92);
}

.form-group input,
.form-group select,
.form-group textarea{
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.15);
  color: rgba(10,14,39,.95);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder{
  color: rgba(10,14,39,.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none;
  border-color: rgba(103,210,255,.8);
  background: rgba(255,255,255,.2);
  color: rgba(10,14,39,.95);
}

.form-status{
  padding: 12px;
  border-radius: 8px;
  font-size: .95rem;
  text-align:center;
  min-height: 20px;
  color: rgba(0,208,132,.92);
}

.form-status.error{
  color: rgba(255,100,100,.92);
}

/* =========================
   BUTTONS & UTILITIES
   ========================= */

/* =========================
   CTA / CONTACT SECTION
   ========================= */

.cta-section {
  padding: 5rem 0;
  position: relative;
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.cta-card {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: rgba(10,14,30,.55);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(103,210,255,.06), rgba(124,255,216,.03));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 28px;
}

.cta-card:hover {
  border-color: rgba(103,210,255,.4);
  box-shadow: 0 32px 100px rgba(103,210,255,.15);
  background: rgba(10,14,30,.65);
}

.cta-card:hover::before {
  opacity: 1;
}

.cta-header {
  text-align: center;
  margin-bottom: 36px;
}

.cta-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px 0;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.cta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 36px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(103,210,255,.08);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.chip:hover {
  border-color: rgba(103,210,255,.4);
  background: rgba(103,210,255,.15);
  transform: translateY(-2px);
}

.chip-icon {
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 36px 0;
}

.btn-cta {
  background: linear-gradient(135deg, rgba(103,210,255,.28), rgba(124,255,216,.16)) !important;
  border: 1px solid rgba(103,210,255,.4) !important;
  box-shadow: 0 20px 50px rgba(103,210,255,.18) !important;
  padding: 14px 22px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

.btn-cta:hover {
  box-shadow: 0 28px 70px rgba(103,210,255,.28) !important;
  border-color: rgba(103,210,255,.6) !important;
  transform: translateY(-2px) !important;
}

.btn-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.btn-secondary {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: var(--text) !important;
  padding: 12px 18px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

.btn-secondary:hover {
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.2) !important;
  transform: translateY(-1px) !important;
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.btn-icon {
  font-size: 1.1rem;
  margin-right: 4px;
}

.cta-footnote {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  background: rgba(0, 208, 132, 0.95);
  color: white;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 208, 132, 0.3);
  animation: slideUp 0.3s ease-out;
  z-index: 1000;
  pointer-events: none;
}

/* =========================
   FOOTER
   ========================= */

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,14,30,0), rgba(10,14,30,0.4));
  padding: 48px 0 32px;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-section {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.footer-section:nth-of-type(1) { animation-delay: 0.1s; }
.footer-section:nth-of-type(2) { animation-delay: 0.2s; }
.footer-section:nth-of-type(3) { animation-delay: 0.3s; }

.footer-brand {
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 12px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px 0;
  opacity: 0.9;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-bottom-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.to-top-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.to-top-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
  color: var(--text);
}

.to-top-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* =========================
   RESPONSIVE FOOTER
   ========================= */

@media (max-width: 768px) {
  .cta-section {
    padding: 4rem 0;
  }

  .cta-card {
    padding: 28px;
    border-radius: 20px;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn-cta,
  .btn-secondary {
    width: 100% !important;
    padding: 12px 16px !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    gap: 16px;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-link {
    display: block;
  }

  .footer-link:hover {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .cta-section {
    padding: 3rem 0;
  }

  .cta-card {
    padding: 20px;
  }

  .cta-title {
    font-size: 1.4rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .cta-chips {
    gap: 10px;
    margin: 24px 0;
  }

  .chip {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }

  .cta-footnote {
    font-size: 0.85rem;
  }

  .footer {
    padding: 32px 0 24px;
  }

  .footer-content {
    margin-bottom: 20px;
  }



