/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --accent: #00ff9d;
  --accent-dark: #00cc7d;
  --bg: #000000;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;
  --bg-subtle: #060606;
  --text-primary: #f0f0f0;
  --text-secondary: #999999;
  --text-muted: #666666;
  --border: #1a1a1a;
  --border-light: #151515;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-rendering: optimizeSpeed;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(0, 255, 157, 0.25);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.accent-italic {
  font-style: italic;
  color: var(--accent);
  font-family: "Georgia", "Times New Roman", serif;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-logo-svg {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* Scroll progress bar */
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
  transition: width 0.05s linear;
  z-index: 10;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--black) !important;
  border-radius: 100px;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--white);
  transform: translateY(-1px);
}

/* Mobile nav */
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}

.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 24px;
}

.nav-mobile-menu.active {
  display: block;
}

.nav-mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 157, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--accent);
  cursor: pointer;
  width: 100%;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  z-index: -1;
  transition: transform 0.4s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.btn-submit:hover {
  color: var(--black);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
  transform: translateY(-2px);
}

.btn-submit:hover::before {
  transform: scaleX(1);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Hero background canvas */
#hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Hero ambient glow */
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle,
      rgba(0, 255, 157, 0.15) 0%,
      rgba(0, 255, 157, 0.05) 40%,
      transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(0, 255, 157, 0.08) 0%,
      rgba(0, 255, 157, 0.02) 40%,
      transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero right side visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.hero-dashboard {
  position: relative;
  width: 100%;
  max-width: 480px;
}

/* Dashboard card */
.dash-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 255, 157, 0.3),
      transparent);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dash-header .dash-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  background: rgba(0, 255, 157, 0.1);
  color: var(--accent);
  border-radius: 100px;
  border: 1px solid rgba(0, 255, 157, 0.15);
}

/* Chart area in dashboard */
.dash-chart {
  height: 160px;
  position: relative;
  margin-bottom: 24px;
}

.dash-chart svg {
  width: 100%;
  height: 100%;
}

/* Stats row */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dash-stat {
  text-align: center;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.dash-stat-value.accent {
  color: var(--accent);
}

.dash-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Floating elements */
.float-card {
  position: absolute;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(10px);
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
}

.float-card-1 {
  top: -20px;
  right: -150px;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 40px;
  left: -110px;
  animation-delay: -3s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.float-card .float-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.float-card .float-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.float-card .float-value.green {
  color: var(--accent);
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Split layout */
.problem-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left column — narrative copy */
.problem-text h2 {
  margin-bottom: 20px;
}

.problem-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.problem-lead em {
  color: var(--text-primary);
  font-style: italic;
}

.problem-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.problem-point {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.problem-point-accent {
  width: 3px;
  min-height: 100%;
  background: var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 4px;
}

.problem-point h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.problem-point p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Right column — Broken Engine dashboard */
.problem-visual {
  position: relative;
}

.broken-engine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.be-module {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.be-module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 68, 68, 0.3),
      transparent);
}

.be-module-wide {
  grid-column: 1 / -1;
}

.be-module-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.be-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.be-dot-red {
  background: #ff4444;
  box-shadow: 0 0 6px rgba(255, 68, 68, 0.5);
  animation: dotBlink 2s ease-in-out infinite;
}

.be-dot-orange {
  background: #ff8c00;
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.5);
  animation: dotBlink 2.5s ease-in-out infinite;
}

@keyframes dotBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.be-module-title {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Funnel module */
.be-funnel-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.funnel-svg {
  width: 100%;
  max-width: 180px;
  height: auto;
}

/* Lead animations */
.lead-enter {
  animation: leadPulse 2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.lead-lost {
  animation: leadFade 2.5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes leadPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(3px);
  }
}

@keyframes leadFade {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.9;
  }
}

/* Crack lines animation */
.crack-line {
  animation: crackPulse 3s ease-in-out infinite;
}

@keyframes crackPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* Alerts */
.be-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
}

.be-alert-red {
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.15);
}

.be-alert-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.be-alert-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: #ff4444;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
  animation: dotBlink 1.5s ease-in-out infinite;
}

.be-alert-value {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.be-alert-value strong {
  color: #ff4444;
}

/* Time module */
.be-time-visual {
  display: flex;
  align-items: center;
  gap: 14px;
}

.be-clock {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.clock-svg {
  width: 100%;
  height: 100%;
}

/* Clock hand rotation */
.clock-hand-m {
  transform-origin: 40px 40px;
  animation: spinMinute 4s linear infinite;
}

.clock-hand-h {
  transform-origin: 40px 40px;
  animation: spinHour 12s linear infinite;
}

@keyframes spinMinute {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinHour {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.clock-arc {
  animation: arcSpin 3s linear infinite;
  transform-origin: 40px 40px;
}

@keyframes arcSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Orbiting task icons */
.task-orbit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: orbitSpin 8s linear infinite;
}

.task-icon {
  position: absolute;
  font-size: 0.7rem;
  animation: none;
}

.task-icon[style*="--i:0"] {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.task-icon[style*="--i:1"] {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.task-icon[style*="--i:2"] {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.task-icon[style*="--i:3"] {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes orbitSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Time stats bars */
.be-time-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.be-time-bar-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.be-time-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 3px;
}

.be-time-bar-fill {
  height: 100%;
  width: var(--fill, 0%);
  border-radius: 3px;
  transition: width 1.5s ease-out;
}

.be-bar-red {
  background: linear-gradient(90deg, #ff8c00, #ff4444);
}

.be-bar-crit {
  background: #ff4444;
}

.be-time-bar-val {
  font-size: 0.65rem;
  font-weight: 700;
}

.be-val-red {
  color: #ff8c00;
}

.be-val-crit {
  color: #ff4444;
}

/* Blinking CRITICAL label */
.blink {
  animation: blinkText 1s step-end infinite;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  padding: 1px 4px;
  background: rgba(255, 68, 68, 0.15);
  border-radius: 3px;
  margin-left: 4px;
}

@keyframes blinkText {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Scale module */
.be-scale-visual {
  margin-bottom: 10px;
}

.scale-svg {
  width: 100%;
  height: auto;
}

/* Pulsing red nodes */
.node-pulse {
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {

  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(255, 68, 68, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.6));
  }
}

/* New node blink */
.new-node-blink {
  animation: newNodeBlink 1.5s ease-in-out infinite;
}

@keyframes newNodeBlink {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* ===== LITERAL UI DASHBOARD ===== */
.broken-ui {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.ui-card {
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(0, 255, 157, 0.12);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(0, 255, 157, 0.06);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.ui-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 255, 157, 0.3),
      transparent);
}

.ui-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 157, 0.25);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 157, 0.05);
}

.ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0, 255, 157, 0.08);
  padding-bottom: 10px;
}

.ui-dots {
  display: flex;
  gap: 6px;
}

.ui-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 255, 157, 0.25);
}

.ui-dots span:first-child {
  background: rgba(0, 255, 157, 0.5);
}

.ui-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* CRM Widget */
.ui-crm {
  z-index: 3;
}

.ui-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 255, 157, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.ui-list-item:hover {
  background: rgba(0, 255, 157, 0.05);
}

.ui-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.ui-avatar-red {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

.ui-content {
  flex: 1;
}

.ui-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.ui-name {
  font-weight: 600;
  color: var(--text-primary);
}

.ui-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.ui-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.ui-badge-yellow {
  background: rgba(255, 140, 0, 0.15);
  color: #ff8c00;
}

.ui-badge-red {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
}

.ui-alert-floating {
  position: absolute;
  bottom: 10px;
  right: -20px;
  background: rgba(20, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: start;
  gap: 10px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(255, 68, 68, 0.08);
  animation: floatAlert 3s ease-in-out infinite;
  z-index: 4;
}

@keyframes floatAlert {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.ui-alert-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff4444;
  margin-bottom: 2px;
}

.ui-alert-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.text-red {
  color: #ff4444;
  font-weight: 700;
}

/* Manual Work Widget */
.ui-manual {
  z-index: 2;
  transform: translateX(20px);
  margin-top: -10px;
}

.ui-icon {
  font-size: 1rem;
}

.ui-body-center {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ui-progress-label {
  font-size: 0.75rem;
  color: var(--text-primary);
}

.ui-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.ui-progress-fill {
  height: 100%;
  background: #ff4444;
  position: relative;
}

.error-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0.2) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.2) 75%,
      transparent 75%,
      transparent);
  background-size: 10px 10px;
}

.ui-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ui-btn-fake {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
  position: relative;
  cursor: not-allowed;
}

.ui-cursor {
  position: absolute;
  bottom: -10px;
  right: 20px;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: cursorHover 2s infinite alternate;
}

@keyframes cursorHover {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-5px, -5px);
  }
}

.ui-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2a1515;
  border: 1px solid #ff4444;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  width: 80%;
}

.ui-toast-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff4444;
}

.ui-toast-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Capacity Chart Widget */
.ui-chart-card {
  z-index: 1;
  margin-top: -10px;
}

.ui-status-pill {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ui-status-pill.red {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.15);
  animation: dotBlink 2s ease-in-out infinite;
}

.crash-chart-svg {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

.crash-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawCrash 3s ease-out forwards;
}

@keyframes drawCrash {
  to {
    stroke-dashoffset: 0;
  }
}

.ui-chart-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.7rem;
  color: #ff4444;
  font-weight: 600;
}

.ui-dot-red {
  width: 6px;
  height: 6px;
  background: #ff4444;
  border-radius: 50%;
  animation: dotBlink 1s infinite;
}

.problem-bottom {
  text-align: center;
  margin-top: 48px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.problem-bottom span {
  color: var(--accent);
}

/* ===== SERVICES (Benefits) ===== */
.services-section {
  border-bottom: 1px solid var(--border);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  padding: 56px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left,
      rgba(0, 255, 157, 0.08),
      transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 255, 157, 0.25);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 157, 0.05);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(0, 255, 157, 0.15);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.3);
}

.service-card h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  line-height: 1.3;
}

.service-card ul {
  margin-top: auto;
}

.service-card ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 6px 0 6px 28px;
  position: relative;
  line-height: 1.6;
}

.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 32px;
  }
}

/* ===== TIMELINE ===== */
.timeline-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline {
  position: relative;
  max-width: 640px;
  margin: 60px auto 0;
  padding-left: 60px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 0;
  height: var(--tl-bg-height, 100%);
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-line-fill {
  position: absolute;
  left: 23px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height 0.1s linear;
  z-index: 0;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.timeline-step {
  position: relative;
  padding-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -60px;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 3;
  transition: all 0.4s ease;
}

.timeline-step.visible .timeline-dot {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
}

.timeline-step h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.timeline-step ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.6;
}

.timeline-step ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ===== WHO IS IT FOR ===== */
.profiles-section {
  border-bottom: 1px solid var(--border);
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.profile-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.profile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
}

.profile-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.profile-card .profile-who {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.profile-card .profile-problem {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.profile-card .profile-problem strong {
  color: var(--white);
  font-weight: 600;
}

.profile-card .profile-solution {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.profile-card .profile-solution strong {
  color: var(--accent);
  font-weight: 600;
}

/* ===== TECHNOLOGIES SECTION ===== */
.tech-section {
  padding: 100px 0 80px;
  background: #000000;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.tech-section .text-center p.section-subtitle {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 12px;
}

.tech-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 20px auto 50px;
  text-align: center;
  line-height: 1.7;
  font-weight: 400;
}

/* Unified Marquee */
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 60px 0;
  background: #000000;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 3;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #000000, transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, #000000, transparent);
}

.marquee-content {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: marquee-scroll 30s linear infinite;
  align-items: center;
  will-change: transform;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.tech-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.tech-card svg {
  height: 40px;
  /* Standardized height for all logos */
  width: auto;
  max-width: 200px;
  display: block;
}

.tech-card:hover {
  transform: scale(1.05);
}

/* ===== ABOUT ME ===== */
.about-section {
  padding: 100px 0;
}

.about-card {
  display: flex;
  align-items: center;
  gap: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.about-photo-wrapper {
  flex-shrink: 0;
  position: relative;
}

.about-photo-circle {
  width: 250px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow:
    0 0 20px rgba(0, 255, 157, 0.15),
    0 0 60px rgba(0, 255, 157, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.about-photo-circle .about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 1%;
  border-radius: 50%;
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 12px;
  line-height: 1.8;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.about-tag {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-subtle);
}

@media (max-width: 768px) {
  .about-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 30px;
  }

  .about-tags {
    justify-content: center;
  }

  .about-photo-circle {
    width: 180px;
    height: 180px;
  }
}

/* ===== FAQ ===== */
.faq-section {
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 700px;
  margin: 60px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  font-family: inherit;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding-bottom: 24px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}

.cta-calendly {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.cta-calendly h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.cta-calendly p {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.cta-calendly .btn-primary {
  width: 100%;
  justify-content: center;
}

.cta-form {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.cta-form h3 {
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.1);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-svg {
  height: 26px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-privacy-link {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  margin-top: 4px;
  display: inline-block;
}

.footer-privacy-link:hover {
  color: var(--accent);
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-center a {
  color: var(--text-muted);
  transition:
    color 0.2s,
    transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-center a:hover {
  color: var(--accent);
  border-color: rgba(0, 255, 157, 0.2);
  transform: translateY(-2px);
}

.footer-right {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== AMBIENT GRADIENTS & BACKGROUNDS ===== */
@keyframes ambientDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -20px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 15px) scale(0.95);
  }

  75% {
    transform: translate(15px, 25px) scale(1.03);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes ambientDrift2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-25px, 20px) scale(1.08);
  }

  66% {
    transform: translate(20px, -15px) scale(0.96);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Zigzag section - top-right glow */
/* Render optimization: skip offscreen sections */
.zigzag-section,
.profiles-section,
.portfolio-section,
.timeline-section,
.tech-section,
.about-section,
.faq-section,
.booking-contact {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.zigzag-section {
  overflow: hidden;
}

.zigzag-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -250px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle,
      rgba(0, 255, 157, 0.14) 0%,
      rgba(0, 255, 157, 0.06) 35%,
      transparent 65%);
  pointer-events: none;
  animation: ambientDrift 20s ease-in-out infinite;
}

.zigzag-section::after {
  content: "";
  position: absolute;
  bottom: 50px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle,
      rgba(0, 255, 157, 0.1) 0%,
      rgba(0, 255, 157, 0.03) 40%,
      transparent 60%);
  pointer-events: none;
  animation: ambientDrift2 25s ease-in-out infinite;
}

/* Portfolio section - center glow */
.portfolio-section {
  overflow: hidden;
}

.portfolio-section::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 800px;
  background: radial-gradient(ellipse,
      rgba(0, 255, 157, 0.12) 0%,
      rgba(0, 255, 157, 0.04) 40%,
      transparent 65%);
  pointer-events: none;
  animation: ambientDrift 30s ease-in-out infinite;
}

/* Timeline section - left glow */
.timeline-section {
  overflow: hidden;
}

.timeline-section::after {
  content: "";
  position: absolute;
  top: 10%;
  left: -200px;
  width: 700px;
  height: 900px;
  background: radial-gradient(circle,
      rgba(0, 255, 157, 0.13) 0%,
      rgba(0, 255, 157, 0.04) 40%,
      transparent 60%);
  pointer-events: none;
  animation: ambientDrift2 22s ease-in-out infinite;
}

/* FAQ section - right glow */
.faq-section {
  overflow: hidden;
}

.faq-section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle,
      rgba(0, 255, 157, 0.12) 0%,
      rgba(0, 255, 157, 0.04) 40%,
      transparent 60%);
  pointer-events: none;
  animation: ambientDrift 18s ease-in-out infinite;
}

/* Contact/booking section - dual glows */
.booking-contact {
  overflow: hidden;
}

.booking-contact::before {
  content: "";
  position: absolute;
  top: -150px;
  left: -150px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle,
      rgba(0, 255, 157, 0.12) 0%,
      rgba(0, 255, 157, 0.04) 40%,
      transparent 60%);
  pointer-events: none;
  animation: ambientDrift2 24s ease-in-out infinite;
  z-index: 0;
}

.calendar-container {
  min-height: 600px;
  padding-top: 20px;
}

.booking-contact::after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle,
      rgba(0, 255, 157, 0.1) 0%,
      rgba(0, 255, 157, 0.03) 40%,
      transparent 60%);
  pointer-events: none;
  animation: ambientDrift 28s ease-in-out infinite;
  z-index: 0;
}

/* Profiles/Dla kogo section - bottom-left glow */
.profiles-section {
  overflow: hidden;
}

.profiles-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle,
      rgba(0, 255, 157, 0.12) 0%,
      rgba(0, 255, 157, 0.04) 40%,
      transparent 60%);
  pointer-events: none;
  animation: ambientDrift 26s ease-in-out infinite;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===== RESPONSIVE ===== */

/* --- TABLET (max 1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  }

  .services-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .checklist-grid {
    gap: 16px;
  }

  .checklist-item {
    padding: 22px;
  }

  .zigzag-row {
    gap: 40px;
    margin-bottom: 80px;
  }

  .zigzag-header {
    margin-bottom: 50px;
  }

  .zigzag-header h2 {
    font-size: 2rem;
  }

  .zigzag-text h3 {
    font-size: 1.5rem;
  }
}

/* --- MOBILE (max 768px) --- */
@media (max-width: 768px) {
  #hero-bg-canvas {
    display: none;
  }

  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-btn {
    display: block;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  /* Hero background glow - reduce on mobile */
  .hero::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
  }

  .hero::after {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
  }

  /* Zigzag mobile */
  .zigzag-section {
    padding: 60px 0;
  }

  .zigzag-header {
    margin-bottom: 40px;
  }

  .zigzag-header h2 {
    font-size: 1.6rem;
  }

  .zigzag-header p {
    font-size: 0.95rem;
  }

  .zigzag-row {
    margin-bottom: 50px;
  }

  .zigzag-text h3 {
    font-size: 1.3rem;
  }

  .zigzag-text p {
    font-size: 0.95rem;
  }

  .zigzag-visual {
    height: auto;
    min-height: 280px;
  }

  .ui-card {
    padding: 14px;
  }

  .ui-task-name {
    font-size: 0.72rem;
  }

  .ui-task-time-lost {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .ui-task-emoji {
    font-size: 1rem;
  }

  .ui-time-total {
    padding: 10px 12px;
  }

  .ui-time-total-value {
    font-size: 1.1rem;
  }

  .ui-order-name {
    font-size: 0.7rem;
  }

  .ui-order-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
  }

  .ui-ceiling-line span {
    font-size: 0.5rem;
    padding: 2px 8px;
  }

  /* Checklist (Dla kogo) mobile */
  .checklist-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .checklist-item {
    padding: 20px;
    gap: 14px;
  }

  .checklist-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .checklist-icon svg {
    width: 18px;
    height: 18px;
  }

  .checklist-content h3 {
    font-size: 0.95rem;
  }

  .checklist-content p {
    font-size: 0.82rem;
  }

  .checklist-cta {
    margin-top: 40px;
  }

  .checklist-cta p {
    font-size: 0.95rem;
  }

  /* Portfolio mobile */
  .portfolio-card {
    padding: 24px 20px;
  }

  .portfolio-card h3 {
    font-size: 1.1rem;
  }

  .portfolio-desc {
    font-size: 0.85rem;
  }

  .portfolio-flow {
    padding: 12px 16px;
  }

  .portfolio-flow-step {
    font-size: 0.7rem;
  }

  /* Timeline mobile */
  .timeline {
    padding-left: 50px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-line-fill {
    left: 18px;
  }

  .timeline-dot {
    left: -50px;
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .timeline-step h3 {
    font-size: 1rem;
  }

  .timeline-step ul li {
    font-size: 0.82rem;
  }

  /* Tech section mobile */
  .tech-description {
    font-size: 0.9rem;
    margin: 16px auto 30px;
  }

  .tech-logo-item {
    padding: 10px 20px;
  }

  .tech-logo-item span {
    font-size: 1rem;
  }

  .marquee-wrapper {
    padding: 30px 0;
  }

  /* FAQ mobile */
  .faq-question {
    font-size: 0.92rem;
    padding: 18px 0;
  }

  .faq-answer-inner {
    font-size: 0.85rem;
  }

  /* Contact mobile */
  .booking-contact {
    padding: 60px 0;
  }

  .calendar-container {
    min-height: 500px;
  }

  .contact-form-wrapper {
    margin-top: 50px;
  }

  .glass-form-container {
    padding: 24px;
  }

  .glass-form-container .form-row {
    grid-template-columns: 1fr;
  }

  .btn-submit-neon {
    font-size: 0.9rem;
    padding: 15px;
  }

  .form-header p {
    font-size: 1rem;
  }

  /* Footer mobile */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-left {
    flex-direction: column;
    gap: 4px;
  }

  .footer-right {
    text-align: center;
  }

  .footer-center {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Section subtitles */
  .section-subtitle {
    font-size: 0.95rem;
  }

  .problem-grid,
  .profiles-grid {
    grid-template-columns: 1fr;
  }
}

/* --- SMALL MOBILE (max 480px) --- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.88rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .zigzag-header h2 {
    font-size: 1.35rem;
  }

  .zigzag-text h3 {
    font-size: 1.15rem;
  }

  .zigzag-text p {
    font-size: 0.88rem;
  }

  .nav-logo-svg {
    height: 26px;
  }

  .nav-logo-img {
    height: 30px;
  }

  .nav-inner {
    height: 60px;
  }

  .nav-mobile-menu {
    top: 60px;
  }

  .checklist-item {
    padding: 16px;
    gap: 12px;
  }

  .checklist-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
  }

  .checklist-icon svg {
    width: 16px;
    height: 16px;
  }

  .portfolio-flow-step span:last-child {
    font-size: 0.65rem;
  }

  .ui-alert-floating {
    display: none;
  }
}

.text-center {
  text-align: center;
}

/* ===== ZIGZAG SECTION ===== */
.zigzag-section {
  background: #000000;
  padding: 100px 0;
  margin-top: -1px;
  /* Avoid gap */
}

.zigzag-header {
  text-align: center;
  margin-bottom: 80px;
}

.zigzag-header h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 24px;
}

.zigzag-header p {
  color: #9ca3af;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

.zigzag-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.zigzag-row:last-child {
  margin-bottom: 0;
}

.zigzag-reverse {
  flex-direction: row-reverse;
}

.zigzag-visual,
.zigzag-text {
  flex: 1;
}

.zigzag-text h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.zigzag-text p {
  color: #9ca3af;
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {

  .zigzag-row,
  .zigzag-reverse {
    flex-direction: column;
    gap: 40px;
  }

  .zigzag-visual {
    height: auto;
    min-height: 300px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }

  .problem-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== ZIGZAG REVISIONS ===== */
.zigzag-visual {
  height: 340px;
  display: flex;
  flex-direction: column;
}

.zigzag-visual .ui-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Ensure content stays inside but allows controlled overflow if needed */
  overflow: hidden;
}

.zigzag-visual .ui-content,
.zigzag-visual .ui-body-center,
.zigzag-visual .ui-chart-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Fix overlaps and positioning */
.ui-manual .ui-toast {
  top: auto;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.ui-crm .ui-alert-floating {
  bottom: 15px;
  right: 15px;
  z-index: 10;
  max-width: 90%;
}

/* ===== GRAPHIC REDESIGNS ===== */
.ui-time-comparison .ui-header {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.time-block {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.6rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
}

.ui-timeline-chaos .time-block {
  position: absolute;
  height: 20px;
}

.tb-red {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
  color: #ffdada;
}

.tb-green {
  background: rgba(0, 255, 157, 0.2);
  border-color: #00ff9d;
  color: #ccffeb;
  text-transform: uppercase;
  font-weight: 600;
  width: 100%;
}

/* ===== SECTION 8: BOOKING & CONTACT ===== */
.booking-contact {
  padding: 100px 0;
  background: #000000;
}

.booking-wrapper {
  margin-top: 50px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.calendar-container {
  min-height: 700px;
  width: 100%;
}

.contact-form-wrapper {
  margin-top: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header p {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 500;
}

.glass-form-container {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Subtle glow behind the form - removed green tint */
.glass-form-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.03),
      transparent);
  border-radius: 26px;
  z-index: -1;
}

.glass-form-container .form-group {
  margin-bottom: 25px;
}

.glass-form-container label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
}

.glass-form-container input,
.glass-form-container textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.glass-form-container input::placeholder,
.glass-form-container textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.glass-form-container input:hover,
.glass-form-container textarea:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.glass-form-container input:focus,
.glass-form-container textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.15);
}

.glass-form-container .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-submit-neon {
  width: 100%;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn-submit-neon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  z-index: -1;
  transition: transform 0.4s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.btn-submit-neon:hover {
  transform: translateY(-2px);
  color: #000;
  box-shadow: 0 10px 25px rgba(0, 255, 157, 0.4);
}

.btn-submit-neon:hover::before {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .glass-form-container {
    padding: 25px;
  }

  .glass-form-container .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== TASK DRAIN WIDGET (Zigzag Row 2) ===== */
.ui-task-drain {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

.ui-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ui-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 68, 68, 0.04);
  border: 1px solid rgba(255, 68, 68, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ui-task-item:hover {
  background: rgba(255, 68, 68, 0.08);
  border-color: rgba(255, 68, 68, 0.15);
}

.ui-task-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ui-task-info {
  flex: 1;
  min-width: 0;
}

.ui-task-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-task-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.ui-task-time-lost {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ff4444;
  flex-shrink: 0;
  padding: 4px 10px;
  background: rgba(255, 68, 68, 0.1);
  border-radius: 6px;
}

.ui-time-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(255, 68, 68, 0.06);
  border: 1px solid rgba(255, 68, 68, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.05);
}

.ui-time-total-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ui-time-total-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ff4444;
}

/* ===== CEILING/QUEUE WIDGET (Zigzag Row 3) ===== */
.ui-ceiling-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ui-ceiling-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ui-order-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.ui-order-done {
  background: rgba(0, 255, 157, 0.03);
  border: 1px solid rgba(0, 255, 157, 0.06);
}

.ui-order-waiting {
  background: rgba(255, 140, 0, 0.05);
  border: 1px solid rgba(255, 140, 0, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ui-order-lost {
  background: rgba(255, 68, 68, 0.04);
  border: 1px solid rgba(255, 68, 68, 0.08);
  opacity: 0.65;
}

.ui-order-id {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(0, 255, 157, 0.4);
  font-family: "Courier New", monospace;
  min-width: 36px;
}

.ui-order-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.78rem;
}

.ui-order-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.ui-order-badge.done {
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
}

.ui-order-badge.waiting {
  background: rgba(255, 140, 0, 0.15);
  color: #ff8c00;
  animation: dotBlink 2s ease-in-out infinite;
}

.ui-order-badge.lost {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
}

.ui-ceiling-line {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  gap: 8px;
}

.ui-ceiling-line::before,
.ui-ceiling-line::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4444, transparent);
}

.ui-ceiling-line span {
  font-size: 0.55rem;
  font-weight: 700;
  color: #ff4444;
  padding: 2px 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: dotBlink 1.5s ease-in-out infinite;
}

.ui-ceiling-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 68, 68, 0.04);
  border: 1px solid rgba(255, 68, 68, 0.1);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== TECH TEXT LOGOS (Marquee) ===== */
.tech-logo-item {
  flex-shrink: 0;
  padding: 14px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tech-logo-item span {
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.tech-logo-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.tech-logo-item:hover span {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== CHECKLIST GRID (Dla Kogo Redesign) ===== */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
}

.checklist-item {
  display: flex;
  gap: 18px;
  padding: 28px 28px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  align-items: flex-start;
}

.checklist-item:hover {
  border-color: rgba(0, 255, 157, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.checklist-check,
.checklist-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.checklist-item:hover .checklist-icon {
  background: rgba(0, 255, 157, 0.15);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
  transform: scale(1.05);
}

.checklist-content h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.checklist-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checklist-cta {
  text-align: center;
  margin-top: 60px;
}

.checklist-cta p {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.portfolio-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 255, 157, 0.3),
      transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 157, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.portfolio-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-icon {
  background: rgba(0, 255, 157, 0.15);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
  transform: scale(1.05);
}

.portfolio-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 12px;
  background: rgba(0, 255, 157, 0.08);
  color: var(--accent);
  border-radius: 100px;
  border: 1px solid rgba(0, 255, 157, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--white);
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.portfolio-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.portfolio-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 8px 0;
}

.flow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 255, 157, 0.4);
}

.portfolio-flow-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .portfolio-card {
    padding: 28px 24px;
  }
}