/* ═══════════════════════════════════════
   KINGTOS DEV — Design System & Variables
   ═══════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --c-bg: #06060e;
  --c-bg2: #0c0c1d;
  --c-surface: rgba(15, 15, 35, 0.7);
  --c-border: rgba(108, 99, 255, 0.15);
  --c-border-hover: rgba(108, 99, 255, 0.4);
  --c-text: #e2e2f0;
  --c-text-dim: rgba(200, 200, 230, 0.6);
  --c-primary: #6c63ff;
  --c-primary-light: #8b83ff;
  --c-accent: #00d4ff;
  --c-accent2: #00ffb2;
  --c-gradient: linear-gradient(135deg, #6c63ff, #00d4ff);
  --c-gradient2: linear-gradient(135deg, #00d4ff, #00ffb2);
  --font-main: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-glow:
    0 0 30px rgba(108, 99, 255, 0.15), 0 0 60px rgba(0, 212, 255, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(108, 99, 255, 0.3);
  color: #fff;
}

/* ═══ Canvas & Ambient ═══ */
#gridCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb--1 {
  width: 600px;
  height: 600px;
  background: var(--c-primary);
  top: -200px;
  left: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.ambient-orb--2 {
  width: 500px;
  height: 500px;
  background: var(--c-accent);
  bottom: -150px;
  right: -100px;
  animation: orbFloat2 25s ease-in-out infinite;
}

@media (max-width: 768px) {
  .ambient-orb {
    animation: none !important;
    display: none; /* Hide orbs on mobile to boost performance */
  }
}

.ambient-orb--3 {
  width: 400px;
  height: 400px;
  background: #a855f7;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {

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

  50% {
    transform: translate(80px, 60px);
  }
}

@keyframes orbFloat2 {

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

  50% {
    transform: translate(-60px, -80px);
  }
}

@keyframes orbFloat3 {

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

  50% {
    transform: translate(-40%, -60%) scale(1.2);
  }
}

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 6, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  padding: 10px 0;
}

.navbar__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  z-index: 10;
  pointer-events: auto; /* Ensure clickable */
}

.navbar__logo-icon svg {
  width: 36px;
  height: 36px;
  transition: var(--transition);
}

.navbar__logo:hover .navbar__logo-icon svg {
  filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.6));
  transform: rotate(30deg);
}

.navbar__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar__logo-king {
  color: var(--c-text);
}

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

.navbar__links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.navbar__link {
  position: relative;
  color: var(--c-text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  overflow: hidden;
}

.navbar__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-gradient);
  opacity: 0;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar__link:hover,
.navbar__link--active {
  color: #fff;
}

.navbar__link:hover::before,
.navbar__link--active::before {
  opacity: 0.1;
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--c-gradient);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: var(--transition);
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 50%;
}

/* ═══ BUTTONS ═══ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: var(--transition);
  isolation: isolate;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn--primary {
  background: var(--c-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn__glow {
  position: absolute;
  inset: -2px;
  background: var(--c-gradient);
  border-radius: inherit;
  z-index: -2;
  opacity: 0;
  filter: blur(15px);
  transition: var(--transition);
}

.btn--primary:hover .btn__glow {
  opacity: 0.6;
}

.btn__shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.15),
      transparent);
  z-index: 1;
  transition: none;
}

.btn--primary:hover .btn__shimmer {
  animation: shimmer 0.8s ease forwards;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

.btn__icon {
  display: flex;
  transition: var(--transition-spring);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

.btn--outline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  border-color: var(--c-primary);
  color: #fff;
  background: rgba(108, 99, 255, 0.08);
  transform: translateY(-2px);
}

.btn__border-anim {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.btn--outline:hover .btn__border-anim {
  opacity: 1;
  background: conic-gradient(from var(--border-angle, 0deg),
      transparent 60%,
      var(--c-primary) 80%,
      var(--c-accent) 100%);
  animation: borderSpin 3s linear infinite;
  padding: 1px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes borderSpin {
  to {
    --border-angle: 360deg;
  }
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.btn--nav {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  height: 100vh;
  max-height: 1080px;
  display: flex;
  align-items: center;
  z-index: 1;
  padding: 40px 0 0;
}

.hero__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

/* Hero Left */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  font-size: 0.8rem;
  color: var(--c-text-dim);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent2);
  box-shadow: 0 0 10px var(--c-accent2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero__title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-word {
  display: inline-block;
  opacity: 0;
  animation: titleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__title-word[data-delay="0"] {
  animation-delay: 0.4s;
}

.hero__title-word[data-delay="1"] {
  animation-delay: 0.55s;
}

.hero__title-word[data-delay="2"] {
  animation-delay: 0.7s;
}

.hero__title-word[data-delay="3"] {
  animation-delay: 0.85s;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title-word--gradient {
  background: var(--c-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero__title-word--accent {
  color: var(--c-accent);
  -webkit-text-fill-color: var(--c-accent);
}

.hero__subtitle {
  font-size: 1.12rem;
  color: var(--c-text-dim);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.9s;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 1.1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tech badges */
.hero__tech {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 1.3s;
}

.hero__tech-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-dim);
  margin-bottom: 12px;
  display: block;
}

.hero__tech-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero__tech-badge {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid var(--c-border);
  color: var(--c-text-dim);
  cursor: default;
  transition: var(--transition);
}

.hero__tech-badge:hover {
  border-color: var(--c-primary);
  color: var(--c-primary-light);
  background: rgba(108, 99, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.15);
}

/* Hero Right — Visual */
.hero__right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  perspective: 1000px;
}

.hero__visual {
  position: relative;
  width: 100%;
  height: 500px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Floating cards */
.hero__card {
  position: absolute;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  cursor: default;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.hero__card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-glow);
}

.hero__card--code {
  top: -20px;
  left: -40px;
  width: 340px;
  background: rgba(10, 10, 30, 0.85);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: rotate(-1deg);
  animation:
    cardFloat1 0.8s ease forwards,
    cardHover1 6s ease-in-out infinite;
  animation-delay: 0.6s, 1.4s;
}

@keyframes cardFloat1 {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(-2deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-1deg);
  }
}

@keyframes cardHover1 {

  0%,
  100% {
    transform: rotate(-1deg) translateY(0);
  }

  50% {
    transform: rotate(-1deg) translateY(-10px);
  }
}

.hero__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

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

.hero__card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__card-dots span:nth-child(1) {
  background: #ff5f57;
}

.hero__card-dots span:nth-child(2) {
  background: #ffbd2e;
}

.hero__card-dots span:nth-child(3) {
  background: #28ca41;
}

.hero__card-filename {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-text-dim);
}

.hero__card-code {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #a0a0c0;
  overflow: hidden;
}

.code-keyword {
  color: #c792ea;
}

.code-var {
  color: #82aaff;
}

.code-prop {
  color: #f78c6c;
}

.code-string {
  color: #c3e88d;
}

.code-number {
  color: #f78c6c;
}

.hero__card--terminal {
  bottom: -10px;
  right: -30px;
  width: 320px;
  background: rgba(5, 5, 15, 0.9);
  padding: 0;
  opacity: 0;
  animation:
    cardFloat3 0.8s ease forwards,
    cardHover3 8s ease-in-out infinite;
  animation-delay: 1.2s, 2s;
}

.hero__card-terminal-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term-prompt {
  color: var(--c-primary);
  font-weight: 700;
  margin-right: 8px;
}

.term-success {
  color: var(--c-accent2);
}

.term-info {
  color: var(--c-accent);
}

.hero__card--flow {
  top: 30px;
  right: -30px;
  background: rgba(10, 10, 30, 0.8);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation:
    cardFloat2 0.8s ease forwards,
    cardHover2 7s ease-in-out infinite;
  animation-delay: 0.9s, 1.7s;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--c-text-dim);
  font-weight: 600;
}

.flow-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.flow-line {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg,
      rgba(108, 99, 255, 0.2),
      rgba(0, 212, 255, 0.2));
  position: relative;
  top: -8px;
}

.flow-step--active .flow-icon {
  background: var(--c-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.flow-step--active span {
  color: #fff;
}

.hero__card--metrics {
  bottom: 70px;
  left: -40px;
  background: rgba(10, 10, 30, 0.8);
  padding: 16px;
  width: 240px;
  opacity: 0;
  animation:
    cardFloat4 0.8s ease forwards,
    cardHover4 6.5s ease-in-out infinite;
  animation-delay: 1s, 1.8s;
}

.metrics-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.metrics-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.7rem;
}

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

.metrics-label {
  color: var(--c-text-dim);
  width: 65px;
}

.metrics-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.metrics-fill {
  height: 100%;
  background: var(--c-accent2);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--c-accent2);
}

.metrics-score {
  color: var(--c-accent2);
  font-weight: 700;
  width: 25px;
  text-align: right;
}

.hero__card--badge {
  top: 150px;
  left: 60px;
  background: rgba(10, 10, 30, 0.85);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 50px;
  opacity: 0;
  animation:
    cardFloat5 0.8s ease forwards,
    cardHover5 5.5s ease-in-out infinite;
  animation-delay: 1.3s, 2.1s;
  z-index: 10;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.badge-status {
  font-size: 0.65rem;
  color: var(--c-accent);
}

@keyframes cardFloat2 {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardHover2 {

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

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

@keyframes cardFloat3 {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardHover3 {

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

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

@keyframes cardFloat4 {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cardHover4 {

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

  50% {
    transform: translateX(0) translateY(-10px);
  }
}

@keyframes cardFloat5 {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cardHover5 {

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

  50% {
    transform: scale(1) translateY(-6px);
  }
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Orbit rings */
.hero__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero__orbit-ring {
  position: absolute;
  border: 1px solid rgba(108, 99, 255, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero__orbit-ring--1 {
  width: 200px;
  height: 200px;
  animation: orbitSpin 15s linear infinite;
}

.hero__orbit-ring--2 {
  width: 320px;
  height: 320px;
  animation: orbitSpin 22s linear infinite reverse;
}

.hero__orbit-ring--3 {
  width: 440px;
  height: 440px;
  animation: orbitSpin 30s linear infinite;
}

@keyframes orbitSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero__orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 12px var(--c-primary);
  transform: translateX(-50%);
}

/* Center hexagon */
.hero__center-element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  z-index: -1;
}

.hero__center-hexagon {
  width: 160px;
  height: 160px;
  animation: hexSpin 25s linear infinite;
  position: relative;
}

.hero__center-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--c-primary);
  border-radius: 50%;
  filter: blur(15px);
  opacity: 0.6;
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.9;
  }
}

@keyframes hexSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1.8s;
  cursor: pointer;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s ease;
  z-index: 10;
  pointer-events: auto;
}

.hero__scroll.is-scrolled {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(-30px) !important;
  pointer-events: none;
}

.hero__scroll:hover {
  transform: translateX(-50%) translateY(-3px);
}

.hero__scroll-indicator {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.hero__scroll-indicator::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      transparent,
      var(--c-primary),
      transparent);
  animation: scrollLineAnim 2.5s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@keyframes scrollLineAnim {
  0% {
    transform: translateY(-100%);
  }

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

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--c-text-dim);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.hero__scroll:hover .hero__scroll-text {
  color: #fff;
  opacity: 1;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 3100;
  position: relative;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══ RESPONSIVE ═══ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding-top: 80px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 80px 0 40px;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__tech-list {
    justify-content: center;
  }

  .hero__right {
    min-height: 340px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero__visual {
    height: 340px;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  /* Navbar mobile menu */
  .navbar.scrolled {
    background: #06060e; /* Solid background on mobile for speed */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--c-border);
    padding: 10px 0;
  }

  .navbar__links {
    display: none;
    position: fixed;
    inset: 0;
    background: #06060e; /* Solid background on mobile for speed */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 3001;
    padding: 80px 20px 40px;
  }

  .navbar__links.active {
    display: flex;
  }

  /* Prevent body scroll when menu open */
  body.menu-open {
    overflow: hidden;
  }

  .navbar__link {
    font-size: 1.5rem;
    padding: 12px 24px;
  }

  .navbar__hamburger {
    display: flex;
  }

  .btn--nav {
    display: none;
  }

  /* Hero section */
  .hero {
    height: auto;
    min-height: 100svh;
    padding: 100px 0 60px;
  }

  .hero__container {
    padding: 0 20px;
    gap: 40px;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Hide floating cards on small screens */
  .hero__right {
    display: none;
  }

  /* Disable interactive canvas on mobile (performance) */
  #gridCanvas {
    display: none !important;
  }

  .cookie-banner {
    padding: 24px 0;
    background: #06060e;
    z-index: 10000;
  }

  .cookie-banner.bp-visible {
    transform: translateY(0);
    display: block;
  }

  .cookie-banner__content {
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ═══ SERVICES HERO SECTION ═══ */
.services-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 0 0 20px;
  z-index: 2;
  overflow: hidden;
}





.services-hero__container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.services-hero__header {
  text-align: right;
  max-width: 650px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.services-hero__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.services-hero__title-accent {
  background: var(--c-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-hero__subtitle {
  font-size: 1rem;
  color: var(--c-text-dim);
  line-height: 1.5;
}

.services-hero__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-panel {
  position: relative;
  background: rgba(15, 15, 35, 0.4);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  cursor: crosshair;
}

.service-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.02));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.service-panel:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(108, 99, 255, 0.1);
}

.service-panel__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center,
      rgba(108, 99, 255, 0.2) 0%,
      transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.service-panel:hover .service-panel__glow {
  opacity: 1;
}

.service-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-panel__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(108, 99, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(108, 99, 255, 0.15);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.service-panel:hover .service-panel__icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
  background: rgba(108, 99, 255, 0.1);
}

.service-panel__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.25;
}

.service-panel__desc {
  font-size: 1.05rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}

.service-panel__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-panel__tech span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.service-panel:hover .service-panel__tech span {
  border-color: rgba(108, 99, 255, 0.3);
  background: rgba(108, 99, 255, 0.1);
}

/* ═══ PORTFOLIO HERO SECTION ═══ */
.portfolio-hero {
  position: relative;
  padding: 40px 0 120px 0;
  z-index: 2;
  overflow: hidden;
}

.portfolio-hero__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 100px auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-hero__title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.portfolio-hero__subtitle {
  font-size: 1.2rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  max-width: 750px;
}

.portfolio-hero__projects {
  display: flex;
  flex-direction: column;
  gap: 160px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Single Project Showcase */
.project-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.project-showcase--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.project-showcase--reverse .project-showcase__content {
  order: 2;
}

.project-showcase--reverse .project-showcase__visual {
  order: 1;
}

.project-showcase__content {
  position: relative;
  z-index: 2;
}

.project-showcase__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-accent);
  margin-bottom: 24px;
  padding: 8px 20px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 50px;
}

.project-showcase__title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.project-showcase__desc {
  font-size: 1.15rem;
  color: var(--c-text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Button */
.portfolio__card-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  margin-top: 32px;
}

.portfolio__card-btn svg {
  transition: transform 0.4s ease;
}

.portfolio__card-btn:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4);
}

.portfolio__card-btn:hover svg {
  transform: translate(4px, -4px);
}

/* Visual Side */
.project-showcase__visual {
  position: relative;
  perspective: 1500px;
}

.project-showcase__visual-inner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  aspect-ratio: 16/10;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
  background: rgba(15, 15, 30, 0.5);
}

.project-showcase__visual-inner:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(108, 99, 255, 0.3);
}

.project-showcase--reverse .project-showcase__visual-inner:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
}

.project-showcase__glow {
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at center, rgba(108, 99, 255, 0.2) 0%, transparent 50%);
  top: -25%;
  left: -25%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.project-showcase__visual-inner:hover .project-showcase__glow {
  opacity: 1;
}

.project-showcase__visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  position: relative;
  z-index: 2;
  transition: object-position 9s cubic-bezier(0.1, 0.1, 0.2, 1);
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;
}

.project-showcase__visual-inner:hover img {
  object-position: bottom;
}

@media (max-width: 768px) {
  .services-hero__header {
    text-align: center;
    align-self: center;
    align-items: center;
  }

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

  .services-hero {
    padding: 60px 0;
  }

  /* Portfolio Responsive */
  .portfolio-hero {
    padding: 80px 0;
  }

  .portfolio-hero__header {
    margin-bottom: 80px;
    text-align: center;
    margin: 0 auto 60px auto;
    align-items: center;
  }

  .portfolio-hero__projects {
    gap: 80px;
    padding: 0 20px;
  }

  .project-showcase,
  .project-showcase--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-showcase__content,
  .project-showcase--reverse .project-showcase__content {
    order: 2;
  }

  .project-showcase__visual,
  .project-showcase--reverse .project-showcase__visual {
    order: 1;
  }

  .project-showcase__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .services-hero__title {
    font-size: 2rem;
  }

  .portfolio-hero__title {
    font-size: 2rem;
  }

  .project-showcase__title {
    font-size: 1.8rem;
  }

  .navbar__container {
    padding: 0 16px;
  }

  .contact-section__container {
    padding: 0 16px;
  }
}

/* ══════════════════════════════════════════════
   CONTACT SECTION (MULTI-STEP WIZARD)
   ══════════════════════════════════════════════ */
.contact-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  z-index: 2;
  overflow: hidden;
}

.contact-section__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* Zmniejszono z 24px */
}

.contact-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-section__title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-section__desc {
  font-size: 1.1rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  max-width: 450px;
  margin-bottom: 40px;
}

.contact-section__direct {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-direct-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-direct-item:hover {
  color: #00d4ff;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* WIZARD CARD */
.contact-wizard {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: rgba(15, 15, 35, 0.4);
  border-radius: 24px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.contact-wizard__glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--c-primary);
  filter: blur(120px);
  opacity: 0.15;
  border-radius: 50%;
  pointer-events: none;
}

/* PROGRESS BAR */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.wizard-progress__step {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-dim);
  transition: color 0.3s ease;
}

.wizard-progress__step.active {
  color: #fff;
}

.wizard-progress__line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 16px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.wizard-progress__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--c-gradient);
  transition: width 0.4s ease;
}

/* STEPS */
.wizard-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.wizard-step.active {
  display: block;
}

.wizard-step__title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 24px;
}

/* OPTIONS GRID (STEP 1) */
.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.wizard-option {
  cursor: pointer;
}

.wizard-option input {
  display: none;
}

.wizard-option__card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.wizard-option__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.wizard-option__card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.wizard-option__card p {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  line-height: 1.4;
}

.wizard-option:hover .wizard-option__card {
  background: rgba(255, 255, 255, 0.06);
}

.wizard-option input:checked+.wizard-option__card {
  background: rgba(108, 99, 255, 0.1);
  border-color: var(--c-primary);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
}

/* TAGS (STEP 2) */
.wizard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.wizard-tag {
  cursor: pointer;
}

.wizard-tag input {
  display: none;
}

.wizard-tag span {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--c-text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}

.wizard-tag:hover span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.wizard-tag input:checked+span {
  background: rgba(108, 99, 255, 0.1);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}

/* BUDGET SLIDER */
.wizard-step__subtitle {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}

.wizard-budget {
  margin-bottom: 32px;
}

.budget-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  margin-bottom: 16px;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00d4ff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.budget-labels {
  display: flex;
  justify-content: space-between;
  color: var(--c-text-dim);
  font-size: 0.85rem;
}

/* INPUTS (STEP 3) */
.wizard-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.input-group textarea {
  resize: vertical;
}

.input-group label {
  position: absolute;
  left: 20px;
  top: 16px;
  color: var(--c-text-dim);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--c-primary);
  background: rgba(255, 255, 255, 0.06);
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group textarea:focus+label,
.input-group textarea:not(:placeholder-shown)+label {
  top: -10px;
  left: 16px;
  font-size: 0.8rem;
  background: #0d0d21;
  /* Match background to hide border line */
  padding: 0 4px;
  color: var(--c-primary);
}

/* ACTIONS */
.wizard-actions {
  display: flex;
  justify-content: flex-end;
}

.wizard-actions--split {
  justify-content: space-between;
}

.wizard-btn {
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wizard-btn svg {
  transition: transform 0.3s ease;
}

.wizard-btn--next:hover svg {
  transform: translateX(4px);
}

.wizard-btn--prev:hover svg {
  transform: translateX(-4px);
}

.wizard-option__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.1);
  border-radius: 12px;
  color: var(--c-primary);
}

.wizard-btn--next,
.wizard-btn--submit {
  background: var(--c-gradient);
  color: #fff;
}

.wizard-btn--next:hover,
.wizard-btn--submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.wizard-btn--prev {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-btn--prev:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* MEDIA QUERIES */
/* ── Contact responsive ── */
@media (max-width: 1024px) {
  .contact-section__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-section {
    padding: 120px 0 80px 0;
    height: auto;
  }
}

@media (max-width: 768px) {
  .contact-section__header {
    margin-bottom: 24px;
    width: 100%;
    text-align: center;
  }

  .contact-section__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    text-align: center;
    width: 100%;
  }

  .contact-wizard {
    padding: 32px 20px;
    border-radius: 20px;
    width: 100%;
  }

  .wizard-options-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wizard-option__card {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .wizard-option__icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .wizard-option__card p {
    display: block; /* Show description again if there is space */
    font-size: 0.8rem;
  }

  .wizard-btn {
    padding: 16px 32px; /* Taller buttons */
    font-size: 1rem;
    border-radius: 14px;
    width: 100%;
    justify-content: center;
  }

  .wizard-actions {
    flex-direction: column;
    gap: 12px;
  }

  .wizard-step__title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
  }

  .input-group label {
    font-size: 1rem;
  }
}

.founder-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.founder-email, .founder-phone {
  display: inline-block;
  color: var(--c-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: var(--transition);
}

.founder-email:hover, .founder-phone:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--c-primary);
}



/* ══════════════════════════════════════════════
   FOOTER (PARALLAX REVEAL)
   ══════════════════════════════════════════════ */
.site-footer {
  position: relative;
  background: rgba(6, 6, 14, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 100px;
  overflow: hidden;
  z-index: 5;
}

.site-footer__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  box-shadow: 0 0 30px var(--c-primary);
  opacity: 0.5;
}

.site-footer__container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  margin-bottom: 80px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Footer Logo Sync */
.site-footer .navbar__logo-crown {
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.site-footer .navbar__logo-tost {
  color: var(--c-primary);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.site-footer .navbar__logo-icon {
  width: 32px;
  height: 32px;
}

.site-footer__desc {
  color: var(--c-text-dim);
  line-height: 1.7;
  font-size: 1.05rem;
}

.site-footer__socials {
  display: flex;
  gap: 16px;
}

.site-footer__socials a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--c-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer__socials a:hover {
  background: rgba(108, 99, 255, 0.1);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

.site-footer__nav {
  display: flex;
  gap: 60px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav-col h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-nav-col a,
.footer-location {
  color: var(--c-text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-nav-col a:hover {
  color: #fff;
}

.site-footer__cta-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-footer__cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box__content h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
}

.cta-box__content p {
  color: var(--c-text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.cta-box__btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--c-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-box__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-text-dim);
  font-size: 0.9rem;
}

.author-tag {
  color: #fff;
  font-weight: 500;
}

.site-footer__legal {
  display: flex;
  gap: 32px;
}

.site-footer__legal a {
  color: var(--c-text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer__legal a:hover {
  color: #fff;
}

/* Scroll Animation (Parallax Reveal) */
@supports (animation-timeline: view()) {
  .site-footer {
    animation: footerReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 60%;
  }

  @keyframes footerReveal {
    from {
      transform: translateY(30%);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

@media (max-width: 1100px) {
  .site-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__cta-box {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer__cta-box {
    grid-column: span 1;
  }

  .site-footer__nav {
    flex-direction: column;
    gap: 40px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════
   ABOUT PAGE (O NAS) - BLUEPRINT DNA v2.0
   ══════════════════════════════════════════════ */
.bp-body {
  background: #06060e;
  color: #fff;
  overflow-x: hidden;
}

.bp-main {
  position: relative;
  z-index: 2;
}

/* Scanner Line Effect */
.bp-scanner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  box-shadow: 0 0 15px var(--c-primary);
  z-index: 100;
  opacity: 0.3;
  pointer-events: none;
  animation: scanLoop 6s linear infinite;
  will-change: top;
}

@keyframes scanLoop {
  0% {
    top: -5%;
  }

  100% {
    top: 105%;
  }
}

.bp-section {
  min-height: 100vh;
  padding: 120px 32px;
  display: flex;
  align-items: center;
  position: relative;
  contain: paint;
}

.bp-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.bp-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-primary);
  letter-spacing: 4px;
  margin-bottom: 24px;
  opacity: 0.7;
}

.bp-huge-text {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 60px;
}

/* Manifesto Grid */
.bp-manifesto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 40px;
}

.bp-manifesto__block h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.bp-manifesto__block p {
  color: var(--c-text-dim);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* DNA Container (Founders) */
.dna-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
  position: relative;
}

.dna-founder {
  flex: 1;
  max-width: 450px;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dna-info {
  text-align: center;
  width: 100%;
}

.dna-photo-box {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(45deg, var(--c-primary), transparent);
  position: relative;
  overflow: hidden;
  margin: 0 auto 30px auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  will-change: transform;
}

.dna-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(100%) contrast(1.1);
  transition: all 0.5s ease;
}

.dna-founder:hover {
  transform: translateY(-15px);
}

.dna-founder:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.05);
}

.dna-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.mono-tag {
  font-family: var(--font-mono);
  color: var(--c-primary);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 20px;
}

.dna-info p {
  color: var(--c-text-dim);
  line-height: 1.6;
}

/* VS Divider */
.dna-divider {
  position: relative;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dna-divider__line {
  width: 2px;
  flex-grow: 1;
  background: linear-gradient(to bottom, transparent, var(--c-primary), transparent);
  opacity: 0.3;
}

.dna-divider__orb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 20px var(--c-primary);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  animation: orbPulse 2s ease-in-out infinite;
}

@keyframes orbPulse {

  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-50%) scale(1.5);
    opacity: 1;
  }
}

/* Operational Stats */
.logic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.logic-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s ease;
}

.logic-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--c-primary);
  transform: scale(1.02);
}

.logic-num {
  font-size: 5rem;
  font-weight: 900;
  display: block;
  color: #fff;
  margin-bottom: 15px;
  font-family: var(--font-mono);
}

.logic-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-text-dim);
  letter-spacing: 2px;
}

@media (max-width: 900px) {
  .bp-manifesto__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dna-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dna-founder {
    max-width: 360px;
    width: 100%;
  }

  .dna-photo-box {
    max-width: 260px;
  }

  .dna-divider {
    height: 60px;
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }

  .dna-divider__line {
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--c-primary), transparent);
  }

  .dna-divider__orb {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .logic-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════
   COOKIE CONSENT V2 - COMPLIANCE & UI
   ══════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(6, 6, 14, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.bp-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-banner__content h3 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

.cookie-banner__content p {
  font-size: 0.9rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal.bp-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal__content {
  background: #0b0b18;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal.bp-visible .cookie-modal__content {
  transform: scale(1);
}

.cookie-modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal__header h3 {
  font-size: 1.2rem;
  margin: 0;
}

.btn-close {
  background: none;
  border: none;
  color: var(--c-text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.btn-close:hover {
  color: #fff;
}

.cookie-modal__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.cookie-option__info h4 {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 5px 0;
}

.cookie-option__info p {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  margin: 0;
  line-height: 1.4;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  -webkit-appearance: none;
  appearance: none;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 24px;
}

.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: var(--c-primary);
}

.toggle-switch input:focus + .slider {
  box-shadow: 0 0 1px var(--c-primary);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal__footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

/* Trigger Button */
.cookie-trigger {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: var(--c-text-dim);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  transition: all 0.3s ease;
}

.cookie-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: scale(1.05);
}

/* Button variants for cookies */
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--text {
  background: transparent;
  border: none;
  color: var(--c-text-dim);
  text-decoration: underline;
  padding: 0 10px;
}

.btn--text:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .cookie-banner__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-banner__text {
    flex: 1;
    margin-right: 40px;
  }
}

/* ── O-nas DNA section responsive ── */
@media (max-width: 768px) {
  .bp-founders-interactive {
    height: auto;
    padding: 100px 0 60px;
    min-height: auto;
  }

  .bp-section {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .dna-container {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 32px;
  }

  .dna-founder {
    max-width: 300px;
    width: 100%;
    align-items: center;
  }

  .dna-photo-box {
    width: 220px;
    height: 220px;
    max-width: 220px;
    margin: 0 auto 20px auto;
  }

  .dna-info h3,
  .dna-info h2 {
    text-align: center;
  }

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

  .dna-info p {
    text-align: center;
  }

  .dna-divider {
    height: 50px;
    width: 80%;
    flex-direction: row;
    justify-content: center;
  }

  .dna-divider__line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--c-primary), transparent);
  }

  .dna-divider__orb {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .bp-hero-header {
    padding: 0 20px;
    text-align: center;
  }

  .bp-container {
    padding: 0 20px;
  }

  .bp-title-compact {
    text-align: center;
  }

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

  /* Services grid on mobile */
  .services-hero__container {
    padding: 0 16px;
  }

  /* Footer responsive */
  .site-footer__main {
    flex-direction: column;
    gap: 40px;
  }

  .site-footer__nav {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .site-footer__legal {
    justify-content: center;
  }

  /* Cookie trigger moves up on mobile to not overlap footer */
  .cookie-trigger {
    bottom: 80px;
  }

  /* Portfolio section on mobile */
  .portfolio-hero__header {
    padding: 0 20px;
  }
}