:root {
  /* Colors */
  --bg-color: #07080A;
  --elevated-bg: #0D0F13;
  --text-primary: #F5F7FA;
  --text-secondary: #C7CDD6;
  --border-color: rgba(255, 255, 255, 0.10);
  --accent-silver: #BFC6CF;
  --accent-steel: #7D8796;
  --primary-color: #BFC6CF;
  --glow: rgba(140, 190, 255, 0.14);

  /* Typography */
  --font-family: 'Poppins', sans-serif;

  --text-base: 16px;
  --text-base-lh: 1.65;
  --text-sm: 14px;
  --text-sm-lh: 1.55;

  --h1-size-desktop: 36px;
  --h1-size-mobile: 30px;
  --h1-lh: 1.25;
  --h1-ls: -0.02em;

  --h2-size-desktop: 32px;
  --h2-size-mobile: 26px;
  --h2-lh: 1.15;
  --h2-ls: -0.01em;

  --h3-size-desktop: 22px;
  --h3-size-mobile: 20px;
  --h3-lh: 1.25;
  --h3-ls: 0em;

  /* Layout */
  --container-max-width: 1120px;
  --content-max-width: 720px;
  --header-height: 72px;
  --section-padding-desktop: 96px;
  --section-padding-mobile: 64px;
  --radius: 18px;

  /* 8px Rhythm variables */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

section {
  position: relative;
  overflow: hidden;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: var(--text-base-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-weight: 400;
}

/* Background system: Grid fades down the page */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 120vh;
  /* Only visible in top portion, fades out naturally if we use a mask */
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

strong {
  font-weight: 600;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

h1 {
  font-size: var(--h1-size-desktop);
  line-height: var(--h1-lh);
  letter-spacing: var(--h1-ls);
}

h2 {
  font-size: var(--h2-size-desktop);
  line-height: var(--h2-lh);
  letter-spacing: var(--h2-ls);
}

h3 {
  font-size: var(--h3-size-desktop);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
}

p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  max-width: var(--content-max-width);
}

.text-sm {
  font-size: var(--text-sm);
  line-height: var(--text-sm-lh);
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

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

.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.mb-8 {
  margin-bottom: var(--space-1);
}

.mb-16 {
  margin-bottom: var(--space-2);
}

.mb-24 {
  margin-bottom: var(--space-3);
}

.mb-32 {
  margin-bottom: var(--space-4);
}

.mb-40 {
  margin-bottom: var(--space-5);
}

.mb-48 {
  margin-bottom: var(--space-6);
}

.mb-64 {
  margin-bottom: var(--space-8);
}

.mt-32 {
  margin-top: var(--space-4);
}

.mt-48 {
  margin-top: var(--space-6);
}

/* Constrain content width specifically */
.content-constrained {
  max-width: var(--content-max-width);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1.2;
  text-align: center;
}

.btn-primary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-silver);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: var(--bg-color);
  transform: translateY(-2px);
  border-color: var(--text-primary);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-silver);
  border: 1px solid transparent;
}

.btn-secondary:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.text-link {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  transition: var(--transition-fast);
}

.text-link:hover {
  color: var(--text-primary);
}

.text-link:hover::after {
  background-color: var(--text-primary);
}

.btn-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

/* Layout Grid */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: rgba(7, 8, 10, 0.95);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.logo-img {
  height: 24px;
  /* appropriately sized 22-26px */
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Global Nav Links Center */
.nav-center {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  flex: 2;
}

.nav-center a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--text-primary);
}

/* Header Right CTA */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex: 1;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.nav-links-mobile {
  display: none;
}

/* Base Section */
section {
  padding: var(--section-padding-desktop) 0;
  position: relative;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-8);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 1000px;
  height: 400px;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* --- Global HUD Framework --- */
.hud-frame {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--space-4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hud-brackets::before,
.hud-brackets::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.hud-brackets::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--primary-color);
  border-left: 2px solid var(--primary-color);
}

.hud-brackets::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
}

.hud-ticks {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3));
  background-size: 2px 8px, 2px 8px;
  background-position: left center, right center;
  background-repeat: no-repeat;
}

.hud-image-area {
  width: calc(100% + var(--space-4) * 2);
  margin-left: calc(var(--space-4) * -1);
  margin-top: calc(var(--space-4) * -1);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Case Preview Animated Cards ── */
.case-preview {
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-top: -16px;
  margin-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 14, 18, 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.case-preview-header {
  height: 28px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  flex-shrink: 0;
}

.case-preview-header .cp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.case-preview-header .cp-dot:nth-child(1) { background: #ff5f56; }
.case-preview-header .cp-dot:nth-child(2) { background: #ffbd2e; }
.case-preview-header .cp-dot:nth-child(3) { background: #27c93f; }

.case-preview-header .cp-filename {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
}

.case-preview-body {
  height: 180px;
  position: relative;
  padding: 20px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .case-preview-body * {
    animation: none !important;
    transition: none !important;
  }
}

/* Case Deploy Animation (unified for all cards) */
.case-deploy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 10px;
  font-family: monospace;
}

.case-deploy-line {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: deployFade 0.3s ease forwards;
}

.case-deploy-line:nth-child(1) { animation-delay: 0.3s; }
.case-deploy-line:nth-child(2) { animation-delay: 1.2s; }
.case-deploy-line:nth-child(3) { animation-delay: 2.1s; }

.case-deploy-line .cd-ok {
  color: #27c93f;
}

.case-deploy-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0;
  opacity: 0;
  animation: deployFade 0.3s ease 0.5s forwards;
}

.case-deploy-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-steel), #27c93f);
  animation: deployBar 2.5s ease 0.8s forwards;
}

.case-deploy-done {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: deployPulse 0.6s ease 3s forwards;
}

.case-deploy-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #27c93f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #000;
  font-weight: 700;
}

.case-deploy-live {
  font-size: 14px;
  font-weight: 600;
  color: #27c93f;
}

@keyframes deployFade {
  to { opacity: 1; }
}

@keyframes deployBar {
  to { width: 100%; }
}

@keyframes deployPulse {
  0%   { opacity: 0; transform: scale(0.8); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Pågående variant (amber) */
.case-deploy.status-ongoing .case-deploy-bar-fill {
  background: linear-gradient(90deg, var(--accent-steel), #ffbd2e);
  animation: deployBarPartial 2.5s ease 0.8s forwards;
}

.case-deploy.status-ongoing .case-deploy-check {
  background: #ffbd2e;
}

.case-deploy.status-ongoing .case-deploy-live {
  color: #ffbd2e;
}

.case-deploy.status-ongoing .cd-ok {
  color: #ffbd2e;
}

@keyframes deployBarPartial {
  to { width: 65%; }
}

/* Demo variant (silver/muted) */
.case-deploy.status-demo .case-deploy-bar-fill {
  background: linear-gradient(90deg, var(--accent-steel), var(--primary-color, #BFC6CF));
}

.case-deploy.status-demo .case-deploy-check {
  background: var(--primary-color, #BFC6CF);
}

.case-deploy.status-demo .case-deploy-live {
  color: var(--primary-color, #BFC6CF);
}

.case-deploy.status-demo .cd-ok {
  color: var(--primary-color, #BFC6CF);
}

.text-glow {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 2px 12px rgba(0, 0, 0, 0.4);
}

.text-stroke-subtle {
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.1);
}

/* ---------------------------- */

.brand-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: rgba(13, 15, 19, 0.4);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-silver);
  margin-bottom: var(--space-3);
}

.brand-stamp img {
  height: 12px;
  width: auto;
}

.hero .proof-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--accent-silver);
}

.hero .proof-bullets span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.hero .proof-bullets span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: var(--accent-steel);
}

/* Cinematic Hero V3 Additions */
.hero-cinematic {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Global Cinematic Background System */
.global-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  /* Behind everything */
  pointer-events: none;
  background-color: var(--bg-color);
  overflow: hidden;
  perspective: 1000px;
  /* Required for the 3D grid */
}

.global-bg-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(140, 190, 255, 0.02) 0%, transparent 60%),
    radial-gradient(ellipse at center, transparent 20%, rgba(7, 8, 10, 0.85) 100%);
  z-index: 1;
}



.global-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.8;
}

/* Hero Specific Enhancements */
.hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(140, 190, 255, 0.05) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.section-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.02), transparent);
  animation: lightSweep 18s linear infinite;
  z-index: -1;
  pointer-events: none;
  transform: skewX(-20deg);
}

@keyframes lightSweep {
  0% {
    left: -100%;
  }

  15% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Scroll Typography Reveal & Unique Animations */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.split-text {
  opacity: 1;
  /* Let the children (split-inner) handle their own opacity */
}

/* Premium Split-Text Setup */
.split-text {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.1em;
}

.text-center .split-text,
.split-text.text-center {
  justify-content: center;
}

.split-word {
  display: inline-block;
  overflow: hidden;
  /* Clips the inner span for fly-ins and wipes */
  vertical-align: top;
}

.split-inner {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity, filter;
}

/* 1. Cinematic Scale-Down Reveal (Value Proposition) */
.reveal-blur.is-visible .split-inner {
  animation: revealBlur 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealBlur {
  0% {
    opacity: 0;
    transform: scale(1.4) translateZ(0);
  }

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

/* 2. Dramatic Tracking/Fly-in (Process) */
.reveal-tracking.is-visible .split-inner {
  /* Using cubic-bezier with a slight overshoot for impact */
  animation: revealTracking 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: left center;
}

@keyframes revealTracking {
  0% {
    opacity: 0;
    letter-spacing: 0.5em;
    transform: translateY(120%) rotate(4deg);
  }

  100% {
    opacity: 1;
    letter-spacing: normal;
    transform: translateY(0) rotate(0);
  }
}

/* 3. 3D Flip Reveal (Services) */
.reveal-clip {
  perspective: 800px;
}

.reveal-clip.is-visible .split-inner {
  animation: revealRotateX 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: bottom center;
}

@keyframes revealRotateX {
  0% {
    opacity: 0;
    transform: perspective(600px) rotateX(-90deg) translateY(40px);
  }

  100% {
    opacity: 1;
    transform: perspective(600px) rotateX(0deg) translateY(0);
  }
}

/* 4. Elastic Scale/Pop (CTA Band) */
.reveal-scale.is-visible .split-inner {
  animation: revealScale 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes revealScale {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(30px);
  }

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

/* Basic Fallback Reveal (for standard paragraphs if needed) */
.reveal-basic.is-visible {
  animation: simpleFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Glass Stamp */
.stamp-glass {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Kinetic Typography */
.kinetic-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em;
}

.kinetic-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.kinetic-word>span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.is-visible .kinetic-word>span,
.auto-kinetic.is-visible .kinetic-word>span {
  animation: revealWord 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealWord {
  0% {
    transform: translateY(110%);
    opacity: 0;
  }

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

.highlight-word {
  position: relative;
  color: #fff;
}

.highlight-word::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--glow);
  opacity: 0.8;
}

/* Simple Fade In Up */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
}

.is-visible.fade-in-up,
.is-visible .fade-in-up {
  animation: simpleFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes simpleFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Button Specular */
.btn-specular {
  position: relative;
  overflow: hidden;
}

.btn-specular::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(45deg) translateY(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.btn-specular:hover::after {
  transform: rotate(45deg) translateY(100%);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-silver);
  outline-offset: 4px;
}

/* Cards */
.card {
  background-color: var(--elevated-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: var(--h3-size-desktop);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.card p {
  margin-bottom: 0;
  font-size: var(--text-base);
}

/* Features/Services Lists inside cards */
.card-list {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  gap: var(--space-2);
}

.card-list li::before {
  content: '—';
  color: var(--accent-steel);
}

/* 10-Second Process Animation (CSS Voodoo) */
.process-anim-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  position: relative;
  height: 400px;
  /* Fixed height for the animation frame */
  align-items: center;
}

@media (min-width: 768px) {
  .process-anim-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

/* --- TEXT SYNC (Left Column) --- */
.proc-text-overlay {
  position: relative;
  width: 100%;
}

.proc-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  animation: procTextSync 15s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.proc-step .proc-num {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-steel);
  font-family: inherit;
  min-width: 28px;
  padding-top: 4px;
}

.proc-step h4 {
  font-size: var(--h3-size-desktop);
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--text-primary);
}

.proc-step p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--line-height-relaxed);
}

/* Stagger the 6 text blocks over the 15s loop */
#proc-step-1 {
  animation-delay: 0s;
}

#proc-step-2 {
  animation-delay: 2.5s;
}

#proc-step-3 {
  animation-delay: 5.0s;
}

#proc-step-4 {
  animation-delay: 7.5s;
}

#proc-step-5 {
  animation-delay: 10.0s;
}

#proc-step-6 {
  animation-delay: 12.5s;
}

@keyframes procTextSync {

  0%,
  1% {
    opacity: 0;
    transform: translateY(15px);
  }

  2%,
  15.6% {
    opacity: 1;
    transform: translateY(0);
  }

  16.6%,
  100% {
    opacity: 0;
    transform: translateY(-15px);
  }
}

/* --- 3D WINDOW MOCKUP (Right Side) --- */
.proc-window {
  width: 100%;
  height: 320px;
  background: rgba(15, 20, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  /* 3D Hover/Float effect */
  transform-style: preserve-3d;
  animation: procFloat 15s infinite ease-in-out;
}

@keyframes procFloat {

  0%,
  100% {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(0);
  }

  50% {
    transform: perspective(1000px) rotateY(-2deg) rotateX(4deg) translateY(-10px);
  }
}

/* Mac-style Window Header */
.proc-header {
  height: 28px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.proc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.proc-dot:nth-child(1) {
  background: #ff5f56;
}

.proc-dot:nth-child(2) {
  background: #ffbd2e;
}

.proc-dot:nth-child(3) {
  background: #27c93f;
}

/* Window Body Constraints */
.proc-body {
  position: relative;
  flex: 1;
  padding: 20px;
  overflow: hidden;
}

/* --- STEP LAYERS Base --- */
.proc-step-layer {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  opacity: 0;
  pointer-events: none;
}

/* --- STEP 1: KANBAN --- */
.proc-kanban-layer {
  animation: procLayer1 15s infinite;
}

.pk-board {
  display: flex;
  gap: 12px;
  height: 100%;
}

.pk-col {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pk-col-title {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 600;
}

.pk-card {
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pk-card.move-1 {
  animation: kMove1 15s infinite;
}

.pk-card.move-2 {
  animation: kMove2 15s infinite;
}

@keyframes kMove1 {

  0%,
  7% {
    transform: translateY(0);
    opacity: 1;
  }

  10%,
  100% {
    transform: translate(110%, 36px);
    opacity: 0;
  }
}

@keyframes kMove2 {

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

  13%,
  100% {
    transform: translate(110%, 36px);
  }
}

@keyframes procLayer1 {

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

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

/* --- STEP 2: WIREFRAME --- */
.proc-wire-layer {
  animation: procLayer2 15s infinite;
}

.proc-wire-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pw-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.pw-nav {
  display: flex;
  gap: 8px;
}

.pw-line {
  height: 4px;
  width: 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.proc-wire-hero {
  height: 100px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pw-title-line {
  width: 60%;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.pw-sub-line {
  width: 40%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.proc-wire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pw-card {
  height: 90px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
}

.pw-img {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.pw-text {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  width: 80%;
}

@keyframes procLayer2 {

  0%,
  14% {
    opacity: 0;
    transform: scale(0.95);
  }

  16%,
  31% {
    opacity: 1;
    transform: scale(1);
  }

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

/* --- STEP 3: CODE --- */
.proc-code-layer {
  animation: procLayer3 15s infinite;
}

.pc-editor {
  height: 100%;
  background: #1e1e1e;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: monospace;
  font-size: 11px;
}

.pc-head {
  background: #2d2d2d;
  padding: 6px 12px;
  color: #858585;
  border-bottom: 1px solid #000;
}

.pc-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pc-line {
  display: flex;
  gap: 6px;
}

.pc-line.indent {
  padding-left: 16px;
}

.pc-tag {
  color: #569cd6;
}

.pc-str {
  color: #ce9178;
}

.pc-cursor {
  width: 8px;
  height: 14px;
  background: #fff;
  animation: blink 1s infinite;
  margin-top: 4px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes procLayer3 {

  0%,
  31% {
    opacity: 0;
    transform: translateY(10px);
  }

  33%,
  48% {
    opacity: 1;
    transform: translateY(0);
  }

  50%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* --- STEP 4: FILL PROTOTYP --- */
.proc-fill-layer {
  animation: procLayer4 15s infinite;
}

.proc-fill-hero {
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 30, 40, 0.9), rgba(10, 15, 20, 0.9));
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.pf-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(100, 200, 255, 0.2);
  color: #64c8ff;
  padding: 4px 8px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.pf-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.pf-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 24px;
}

.pf-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.w-full {
  width: 80%;
}

.w-3-4 {
  width: 60%;
}

.w-1-2 {
  width: 40%;
}

.pf-btn {
  background: #fff;
  color: #000;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

@keyframes procLayer4 {

  0%,
  48% {
    opacity: 0;
    transform: scale(1.05);
  }

  50%,
  64% {
    opacity: 1;
    transform: scale(1);
  }

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

/* --- STEP 5: SLIDERS --- */
.proc-sliders-layer {
  background: rgba(10, 15, 20, 0.95);
  border-radius: 8px;
  animation: procLayer5 15s infinite;
}

.proc-sliders {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  height: 100%;
}

.proc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 500;
}

.proc-slider-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
}

.proc-slider-knob {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
}

.proc-slider-knob.k1 {
  animation: slideKnob1 15s infinite;
}

.proc-slider-knob.k2 {
  animation: slideKnob2 15s infinite;
}

.proc-slider-knob.k3 {
  animation: slideKnob3 15s infinite;
}

@keyframes procLayer5 {

  0%,
  64% {
    opacity: 0;
    transform: scale(1.05);
  }

  66%,
  81% {
    opacity: 1;
    transform: scale(1);
  }

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

@keyframes slideKnob1 {

  0%,
  66% {
    left: 20%;
  }

  72% {
    left: 80%;
    background: #64c8ff;
    box-shadow: 0 0 15px #64c8ff;
  }

  83%,
  100% {
    left: 80%;
  }
}

@keyframes slideKnob2 {

  0%,
  69% {
    left: 80%;
  }

  75% {
    left: 30%;
    background: #27c93f;
    box-shadow: 0 0 15px #27c93f;
  }

  83%,
  100% {
    left: 30%;
  }
}

@keyframes slideKnob3 {

  0%,
  72% {
    left: 10%;
  }

  78% {
    left: 90%;
    background: #ffbd2e;
    box-shadow: 0 0 15px #ffbd2e;
  }

  83%,
  100% {
    left: 90%;
  }
}

/* --- STEP 6: LAUNCH FLASH --- */
.proc-launch-layer {
  animation: procLayer6 15s infinite;
}

.proc-launch-flash {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(39, 201, 63, 0.15) 0%, rgba(10, 15, 20, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proc-launch-box {
  background: rgba(20, 25, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.pl-icon {
  width: 48px;
  height: 48px;
  background: rgba(39, 201, 63, 0.2);
  color: #27c93f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(39, 201, 63, 0.4);
}

.pl-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pl-status {
  color: #27c93f;
  font-size: 12px;
  letter-spacing: 0.05em;
}

@keyframes procLayer6 {

  0%,
  81% {
    opacity: 0;
    transform: scale(0.9);
  }

  83%,
  97% {
    opacity: 1;
    transform: scale(1);
  }

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

/* CTA Band */
.cta-band {
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, var(--glow) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band h2 {
  margin-bottom: var(--space-2);
}

.cta-band p {
  margin: 0 auto var(--space-4);
}

/* SECTION DIVIDERS (HUD V4) */
.hud-divider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.hud-divider::before,
.hud-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 6px;
  border-left: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
}

.hud-divider::before {
  left: 20%;
}

.hud-divider::after {
  right: 20%;
}

/* Contact Hero */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.contact-hero-val {
  font-size: var(--h2-size-desktop);
  color: var(--text-primary);
  font-weight: 500;
  display: block;
  margin-bottom: var(--space-1);
  transition: var(--transition-fast);
  letter-spacing: -0.01em;
}

.contact-hero-val:hover {
  color: var(--accent-silver);
}

.contact-label {
  font-size: var(--text-sm);
  color: var(--accent-steel);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  background-color: var(--bg-color);
  /* Kept aligned with bg */
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-3);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a,
.footer-col span {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-sm);
  color: var(--accent-steel);
}

.footer-bottom a:hover {
  color: var(--text-secondary);
}

/* Portolio Cards (Specific) */
.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.portfolio-image {
  background-color: #12151B;
  height: 240px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-steel);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-color);
}

.portfolio-content {
  padding: var(--space-4);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

/* FAQ Accordion */
.accordion {
  max-width: var(--content-max-width);
  width: 100%;
}

.accordion-item {
  margin-bottom: var(--space-3);
  transition: border-color 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-3) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: var(--h3-size-desktop);
  font-family: inherit;
  font-weight: 500;
  line-height: var(--h3-lh);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.accordion-header:hover,
.accordion-header:focus {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  outline: none;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-primary);
  transition: var(--transition);
}

.accordion-icon::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}

.accordion-icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}

.accordion-item.active .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-inner {
  padding-bottom: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-base);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--elevated-bg);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3) 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner.slide-up {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

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

.cookie-text p {
  font-size: var(--text-sm);
  margin: 0;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(8px);
  /* less distance */
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .nav-center {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links-mobile {
    position: fixed;
    top: var(--header-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-color);
    flex-direction: column;
    padding: var(--space-4) var(--space-3);
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-3);
    overflow-y: auto;
    z-index: 99;
  }

  .nav-links-mobile.open {
    left: 0;
  }

  .nav-links-mobile a {
    font-size: 18px;
    font-weight: 500;
  }

  .nav-links-mobile .nav-contact {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--h1-size-mobile);
  }

  h2 {
    font-size: var(--h2-size-mobile);
  }

  h3 {
    font-size: var(--h3-size-mobile);
  }

  section {
    padding: var(--section-padding-mobile) 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + var(--section-padding-mobile));
  }

  .cta-band {
    padding: var(--space-6) var(--space-3);
  }

  .card {
    padding: var(--space-3);
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up,
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    letter-spacing: normal;
    clip-path: none;
    animation: none !important;
  }

  .hero-light-sweep {
    animation: none !important;
    display: none !important;
  }

  .card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* Focus */
*:focus-visible {
  outline: 2px solid var(--accent-silver);
  outline-offset: 4px;
}