:root {
  /* Official Brand Identity (from KI) */
  --sarc-gold: #b8860b;
  --sarc-gold-gradient: linear-gradient(135deg, #b8860b 0%, #daa520 50%, #b8860b 100%);
  --sarc-gold-glow: 0 0 20px rgba(184, 134, 11, 0.4);
  --sarc-blue-glow: 0 0 20px rgba(0, 150, 255, 0.2);
  /* Tech accent */
  --pure-white: #ffffff;
  --theme-dark: #050505;
  /* Deepened the dark for better contrast with glows */
  --theme-border: rgba(255, 255, 255, 0.1);
  --theme-border-gold: rgba(184, 134, 11, 0.3);
  --card-bg: rgba(15, 15, 15, 0.6);
  /* More transparent for glassmorphism */

  /* Built-in Tech Grid Variables */
  --grid-color: rgba(255, 255, 255, 0.03);
  --grid-size: 40px;

  /* Font Families */
  --font-primary: 'Poppins', sans-serif;
  --font-mono: 'Poppins', sans-serif;
  /* Tech data font using Poppins */

  /* Animation Timings */
  --snappy-duration: 0.3s;
  --snappy-ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Sharper ease-out for tech feel */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--theme-dark);
  color: var(--pure-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Tech Background Helpers */
.bg-tech-grid {
  background-color: var(--theme-dark);
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
}

.bg-tech-dots {
  background-color: var(--theme-dark);
  background-image: radial-gradient(var(--grid-color) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  color: #a0a0a0;
}

.font-mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--snappy-duration) var(--snappy-ease);
}

/* Utility Classes */
.text-gold {
  color: var(--sarc-gold);
}

.text-gradient {
  background: linear-gradient(135deg, #b8860b 0%, #daa520 25%, #f8e5a0 50%, #daa520 75%, #b8860b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.bg-dark {
  background-color: var(--theme-dark);
}

.border-thin {
  border: 1px solid var(--theme-border);
}

/* Tech Card Element */
.tech-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--theme-border);
  border-radius: 4px;
  /* Techy sharp corners */
  padding: 2.5rem;
  transition: all var(--snappy-duration) var(--snappy-ease);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--theme-border-gold), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.tech-card:hover {
  transform: translateY(-2px);
  border-color: var(--theme-border-gold);
  box-shadow: var(--sarc-gold-glow);
}

.tech-card:hover::before {
  transform: translateX(100%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* Glassmorphism */
.glass {
  background-color: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--theme-border);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  /* Softer, modern corners */
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  text-transform: none;
  /* More natural reading flow */
  letter-spacing: 0.02em;
  font-family: var(--font-primary);
  text-decoration: none;
  z-index: 1;
}

/* Dynamic sweep hover effect for all buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 200%;
}

.btn:active {
  transform: scale(0.97);
}

/* Premium Primary Button (Neon Wireframe Style) */
.btn-primary {
  background: rgba(184, 134, 11, 0.05);
  color: var(--sarc-gold);
  border: 1px solid rgba(184, 134, 11, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(184, 134, 11, 0.15);
  box-shadow: 0 0 25px rgba(184, 134, 11, 0.3), inset 0 0 15px rgba(184, 134, 11, 0.15);
  border-color: var(--sarc-gold);
  color: #fff;
}

/* Premium Outline Button */
.btn-outline {
  background: rgba(184, 134, 11, 0.05);
  color: var(--sarc-gold);
  border: 1px solid rgba(184, 134, 11, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 transparent;
}

.btn-outline:hover {
  background: rgba(184, 134, 11, 0.15);
  box-shadow: 0 0 25px rgba(184, 134, 11, 0.2), inset 0 0 15px rgba(184, 134, 11, 0.1);
  color: #fff;
  border-color: var(--sarc-gold);
}

/* Scroll Reveals (Executive Motion Design) */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--snappy-duration) var(--snappy-ease),
    transform var(--snappy-duration) var(--snappy-ease);
}

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

/* Dynamic Motion & Tech Effects */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.orb-gold {
  background: rgba(184, 134, 11, 0.15);
  width: 400px;
  height: 400px;
  top: 10%;
  left: 20%;
}

.orb-blue {
  background: rgba(0, 150, 255, 0.08);
  width: 300px;
  height: 300px;
  top: 30%;
  right: 15%;
  animation-duration: 12s;
  animation-delay: -5s;
}

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

  50% {
    transform: translate(30px, -50px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 20px) scale(0.9);
  }
}

.pulse-glow {
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(39, 201, 63, 0.2);
  }

  100% {
    box-shadow: 0 0 25px rgba(39, 201, 63, 0.6);
  }
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.5), transparent);
  animation: scan 3s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}

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

  100% {
    transform: translateY(500px);
    /* Adjust based on card height */
  }
}

/* UI Composition (HTML Alternative to Image) */
.hero-ui-composition {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  /* Spacing between cards */
  transform: scale(0.9);
  /* Scale down to fit column */
}

.ui-card {
  position: relative;
  /* Changed from absolute to prevent overlap */
  flex-shrink: 0;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
}

.ui-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

/* Different states and animations for each card */
.card-ai-core {
  width: 260px;
  height: 320px;
  z-index: 3;
  animation: floatCore 8s ease-in-out infinite alternate;
  border-color: rgba(184, 134, 11, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(184, 134, 11, 0.1);
}

.card-workflow {
  width: 260px;
  height: 320px;
  z-index: 2;
  animation: floatLeft 9s ease-in-out infinite alternate;
}

.card-scale {
  width: 260px;
  height: 320px;
  z-index: 2;
  animation: floatRight 10s ease-in-out infinite alternate;
}

@keyframes floatCore {
  0% {
    transform: translateZ(30px) translateY(0);
  }

  100% {
    transform: translateZ(30px) translateY(-15px);
  }
}

@keyframes floatLeft {
  0% {
    transform: translateZ(-20px) rotateY(15deg) translateY(0);
  }

  100% {
    transform: translateZ(-20px) rotateY(15deg) translateY(-10px);
  }
}

@keyframes floatRight {
  0% {
    transform: translateZ(-10px) rotateY(-15deg) translateY(0);
  }

  100% {
    transform: translateZ(-10px) rotateY(-15deg) translateY(-12px);
  }
}

/* AI Core Internal Animations */
.ai-core-rings {
  position: relative;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.core-chip {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(184, 134, 11, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(184, 134, 11, 0.2);
  animation: pulseChip 3s infinite alternate;
}

@keyframes pulseChip {
  0% {
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.2);
  }

  100% {
    box-shadow: 0 0 30px rgba(184, 134, 11, 0.6);
  }
}

.ai-core-rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(184, 134, 11, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ai-core-rings .inner-ring {
  width: 100px;
  height: 100px;
  border-style: dashed;
  animation: spin 10s linear infinite;
}

.ai-core-rings .outer-ring {
  width: 150px;
  height: 150px;
  border-color: rgba(255, 255, 255, 0.05);
  animation: spinReverse 20s linear infinite;
}

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

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

/* Workflow Nodes */
.node-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
}

.node-circle.active {
  width: 56px;
  height: 56px;
  border-color: var(--sarc-gold);
  background: rgba(184, 134, 11, 0.1);
  box-shadow: 0 0 15px rgba(184, 134, 11, 0.3);
}

/* Animated SVG lines for workflow */
.svg-flow-line {
  stroke: rgba(255, 255, 255, 0.08);
  /* slightly thicker/nicer base */
  stroke-width: 2px;
  stroke-linecap: round;
}

.svg-flow-path {
  stroke: var(--sarc-gold);
  stroke-width: 2px;
  stroke-linecap: round;
  /* Instead of small dots, make it a solid light pulse (50px solid, 150px gap = 200px total length) */
  stroke-dasharray: 60 140;
  animation: svgFlowAnim 2s linear infinite;
  opacity: 1;
}

@keyframes svgFlowAnim {
  from {
    stroke-dashoffset: 200;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* Pulse Chart Line */
.chart-line-pulse {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawChartPulse 3.5s ease-out infinite;
}

@keyframes drawChartPulse {
  0% {
    stroke-dashoffset: 120;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

/* Tech Accent Lines */
.tech-line {
  position: absolute;
  background: var(--theme-border-gold);
  z-index: 0;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--snappy-duration) var(--snappy-ease),
    border-color var(--snappy-duration) var(--snappy-ease),
    padding var(--snappy-duration) var(--snappy-ease);
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--theme-border);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pure-white);
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--sarc-gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #c0c0c0;
}

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

/* Footer */
footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--theme-border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-desc {
  color: #888;
  max-width: 400px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 4rem;
}

.footer-links-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li {
  margin-bottom: 0.75rem;
}

.footer-links-col ul li a {
  color: #888;
}

.footer-links-col ul li a:hover {
  color: var(--pure-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--theme-border);
  color: #666;
  font-size: 0.875rem;
}

/* Diagnostic Animation Section */
.diagnostic-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--theme-dark);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  gap: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .diagnostic-canvas {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    padding: 4rem 3rem;
    gap: 0;
  }
}

.diag-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.diag-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.diag-desc {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #a0a0a0;
  max-width: 220px;
  text-align: center;
}

/* Artisanal Chaos */
.diag-artisanal .diag-title {
  color: #ff4444;
}

.diag-icons-cluster {
  position: relative;
  width: 160px;
  height: 160px;
}

.d-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background: #141414;
  border: 1px solid #333;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: shakeIcon 4s ease-in-out infinite;
}

.d-icon i {
  width: 20px;
  height: 20px;
}

.d-icon-whatsapp {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.d-icon-mail {
  top: 20%;
  right: 10%;
  animation-delay: 0.5s;
}

.d-icon-excel {
  bottom: 20%;
  left: 20%;
  animation-delay: 1s;
}

.d-icon-user {
  bottom: 10%;
  right: 20%;
  animation-delay: 1.5s;
}

.badgex {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4444;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid #141414;
}

@keyframes shakeIcon {

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

  25% {
    transform: translate(-2px, 2px) rotate(-3deg);
  }

  50% {
    transform: translate(2px, -1px) rotate(2deg);
  }

  75% {
    transform: translate(-1px, -2px) rotate(1deg);
  }
}

.d-line-chaos {
  position: absolute;
  border: 1px dashed #ff4444;
  opacity: 0.3;
  z-index: -1;
}

.d-line-c1 {
  top: 30%;
  left: 30%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.d-line-c2 {
  top: 40%;
  left: 20%;
  width: 80px;
  height: 40px;
  transform: rotate(45deg);
}

/* Center AI Transformation */
.diag-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0.8;
  z-index: 1;
}

.diag-ai-core {
  width: 64px;
  height: 64px;
  background: rgba(184, 134, 11, 0.1);
  border: 2px solid var(--sarc-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  box-shadow: 0 0 20px rgba(184, 134, 11, 0.3);
}

.ai-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--sarc-gold);
  animation: corePulse 2s ease-out infinite;
}

@keyframes corePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

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

.diag-connector-line {
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.4), transparent);
  transform: translateY(-50%);
  z-index: 1;
}

@media (max-width: 767px) {
  .diag-connector-line {
    top: -50%;
    left: 50%;
    width: 2px;
    height: 200%;
    background: linear-gradient(180deg, transparent, rgba(184, 134, 11, 0.4), transparent);
    transform: translateX(-50%);
  }
}

/* Digital Machinery */
.diag-digital .diag-title {
  color: var(--sarc-gold);
}

.diag-grid-system {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-line {
  position: absolute;
  background: rgba(184, 134, 11, 0.15);
}

.s-line-h {
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  transform: translateY(-50%);
}

.s-line-v {
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 2px;
  transform: translateX(-50%);
}

.s-line-active {
  content: '';
  position: absolute;
  background: var(--sarc-gold);
  box-shadow: 0 0 8px var(--sarc-gold);
}

.s-line-h .s-line-active {
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  animation: flowH 2s linear infinite;
}

.s-line-v .s-line-active {
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  animation: flowV 2s linear infinite;
}

@keyframes flowH {
  0% {
    left: 0;
    opacity: 0;
    width: 0;
  }

  10% {
    opacity: 1;
    width: 20%;
  }

  90% {
    opacity: 1;
    width: 20%;
  }

  100% {
    left: 100%;
    opacity: 0;
    width: 0;
  }
}

@keyframes flowV {
  0% {
    top: 0;
    opacity: 0;
    height: 0;
  }

  10% {
    opacity: 1;
    height: 20%;
  }

  90% {
    opacity: 1;
    height: 20%;
  }

  100% {
    top: 100%;
    opacity: 0;
    height: 0;
  }
}

.d-sys-node {
  width: 44px;
  height: 44px;
  background: #141414;
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: absolute;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.d-sys-node i {
  width: 18px;
  height: 18px;
}

.d-sys-main {
  width: 56px;
  height: 56px;
  border-color: var(--sarc-gold);
  box-shadow: 0 0 15px rgba(184, 134, 11, 0.2);
  border-radius: 12px;
}

.d-sys-main i {
  width: 24px;
  height: 24px;
}

.d-sys-left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.d-sys-right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.d-sys-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.d-sys-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Option 2: Pipeline */
.opt-pipeline .diag-center {
  margin: 0 1rem;
}

.pipeline-chaos {
  position: relative;
  width: 160px;
  height: 160px;
  overflow: hidden;
  border: 1px dashed rgba(255, 68, 68, 0.3);
  border-radius: 8px;
}

.p-item {
  position: absolute;
  width: 36px;
  height: 36px;
  background: #141414;
  border: 1px solid #333;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fallDown 3s linear infinite;
  opacity: 0;
}

.p-item i {
  width: 18px;
  height: 18px;
}

.p-item-1 {
  left: 10%;
  animation-delay: 0s;
}

.p-item-2 {
  left: 45%;
  animation-delay: 0.75s;
}

.p-item-3 {
  right: 10%;
  animation-delay: 1.5s;
}

.p-item-4 {
  right: 45%;
  animation-delay: 2.25s;
}

@keyframes fallDown {
  0% {
    top: -40px;
    opacity: 0;
    transform: rotate(-10deg);
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 160px;
    opacity: 0;
    transform: rotate(10deg);
  }
}

.pipeline-machine {
  width: 140px;
  height: 140px;
  background: rgba(184, 134, 11, 0.05);
  border: 2px solid var(--sarc-gold);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(184, 134, 11, 0.1), 0 0 30px rgba(184, 134, 11, 0.2);
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--sarc-gold);
  box-shadow: 0 0 10px var(--sarc-gold);
  animation: scan 2s ease-in-out infinite alternate;
}

@keyframes scan {
  0% {
    top: 0;
  }

  100% {
    top: calc(100% - 4px);
  }
}

.pipeline-structured {
  position: relative;
  width: 100%;
  max-width: 180px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.p-block {
  background: #141414;
  border: 1px solid rgba(184, 134, 11, 0.3);
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  opacity: 1;
  transition: all 0.3s ease;
}

.p-block:hover {
  border-color: var(--sarc-gold);
  transform: translateX(5px);
  background: #1a1a1a;
}


/* Interactive Methodology Timeline Component */
.method-interactive-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* Timeline */
.timeline-container {
  position: relative;
  margin-bottom: 3rem;
  display: none;
}

@media (min-width: 768px) {
  .timeline-container {
    display: block;
  }
}

.timeline-track {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: var(--sarc-gold);
  transform: translateY(-50%);
  z-index: 0;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

.timeline-steps {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
}

.step-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  outline: none;
}

.step-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #141414;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.step-btn:hover .step-icon-wrapper {
  border-color: rgba(184, 134, 11, 0.5);
  color: #fff;
}

.step-btn.active .step-icon-wrapper {
  background: var(--sarc-gold);
  border-color: #fff;
  color: #fff;
  transform: scale(1.2);
  box-shadow: var(--sarc-gold-glow);
}

.step-label {
  position: absolute;
  bottom: -30px;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a0a0a0;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.step-btn.active .step-label {
  color: #fff;
}

/* Panels */
.method-panels {
  position: relative;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  height: auto;
  min-height: 480px;
}

.method-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@media (min-width: 768px) {
  .method-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.method-panel.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.panel-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .panel-content {
    padding: 4rem;
  }
}

.panel-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a0a0a0;
  margin-bottom: 1.5rem;
  align-self: flex-start;
  letter-spacing: 1px;
}

.panel-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sarc-gold);
}

.method-panel h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.panel-desc {
  font-size: 1.125rem;
  color: #a0a0a0;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.panel-details {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ddd;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(10px);
}

.method-panel.active .panel-details li {
  animation: slideUpFade 0.5s forwards;
}

.method-panel.active .panel-details li:nth-child(1) {
  animation-delay: 0.2s;
}

.method-panel.active .panel-details li:nth-child(2) {
  animation-delay: 0.3s;
}

.method-panel.active .panel-details li:nth-child(3) {
  animation-delay: 0.4s;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.3s;
  margin-top: auto;
}

.panel-link:hover {
  color: var(--sarc-gold);
}

.panel-link i {
  transition: transform 0.3s;
}

.panel-link:hover i {
  transform: translateX(5px);
}

/* Panel Visuals */
.panel-visual {
  min-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(184, 134, 11, 0.05) 0%, transparent 70%);
}

.visual-rings {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 134, 11, 0.1) 0%, transparent 70%);
  border: 1px solid rgba(184, 134, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  transform: scale(0.8) rotate(-5deg);
}

.method-panel.active .visual-rings {
  animation: popScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.visual-core {
  width: 140px;
  height: 140px;
  background: #141414;
  border-radius: 24px;
  border: 1px solid var(--theme-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(184, 134, 11, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.floating-icon {
  animation: float 4s ease-in-out infinite;
}

@keyframes popScale {
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

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

@keyframes float {
  0% {
    transform: translateY(0);
  }

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

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

/* Mobile Dots */
.mobile-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .mobile-dots {
    display: none;
  }
}

.dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.dot-btn.active {
  width: 32px;
  background: var(--sarc-gold);
}

@keyframes spinIcon {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spinIcon 2s linear infinite;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 2rem !important;
  }

  .hero .container>div:first-child {
    text-align: center !important;
    align-items: center !important;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    margin: 0 auto 2rem !important;
  }

  .hero img {
    max-width: 90% !important;
    width: 100% !important;
  }

  .hero-ui-composition {
    transform: scale(0.75);
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }

  h1 {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .hero-ui-composition {
    flex-direction: column;
    height: auto;
    transform: scale(0.9);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-ui-composition .ui-card {
    animation: floatMobile 6s ease-in-out infinite alternate !important;
  }

  @keyframes floatMobile {
    0% {
      transform: translateY(0);
    }

    100% {
      transform: translateY(-10px);
    }
  }

  h2 {
    font-size: 1.75rem;
  }

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

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active a:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active a:nth-child(4) { transition-delay: 0.25s; }

  .header-container {
    padding: 0 1.5rem;
    position: relative;
    justify-content: space-between;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Narrative Icons CSS */
.sc-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  color: #444;
  transition: all 0.3s;
}

/* Step 1: Diagnostico (Meeting/Consultation) */
.sc-client {
  transform: translateX(-35px);
  opacity: 0;
  width: 40px;
  height: 40px;
}

.sc-consultant {
  transform: translateX(35px);
  opacity: 0;
  width: 40px;
  height: 40px;
  color: var(--sarc-gold);
}

.sc-chat {
  transform: translate(-10px, -20px) scale(0);
  opacity: 0;
  width: 28px;
  height: 28px;
  color: #fff;
}

.method-panel.active .sc-client {
  animation: fadeInIcon 0.5s forwards;
}

.method-panel.active .sc-consultant {
  animation: fadeInIcon 0.5s forwards;
  animation-delay: 0.2s;
}

.method-panel.active .sc-chat {
  animation: chatTransfer 4.5s infinite;
  animation-delay: 0.5s;
}

@keyframes fadeInIcon {
  to {
    opacity: 0.8;
  }
}

@keyframes chatTransfer {
  0% {
    transform: translate(-25px, -25px) scale(0);
    opacity: 0;
  }

  10% {
    transform: translate(-25px, -25px) scale(1.2);
    opacity: 1;
    color: #fff;
  }

  40% {
    transform: translate(0, -25px) scale(1);
    opacity: 1;
    color: var(--sarc-gold);
  }

  70% {
    transform: translate(25px, -25px) scale(1.2);
    opacity: 1;
    color: var(--sarc-gold);
  }

  90% {
    transform: translate(25px, -25px) scale(0);
    opacity: 0;
  }

  100% {
    transform: translate(25px, -25px) scale(0);
    opacity: 0;
  }
}

/* Step 2: Demo en 48h (Programming & Preparation) */
.sc-gear {
  transform: translateX(-30px);
  opacity: 0;
  width: 32px;
  height: 32px;
  color: #a0a0a0;
}

.sc-code {
  transform: translateX(30px);
  opacity: 0;
  width: 32px;
  height: 32px;
  color: #a0a0a0;
}

.sc-demo {
  transform: translateY(20px) scale(0);
  opacity: 0;
  width: 52px;
  height: 52px;
  color: var(--sarc-gold);
}

.method-panel.active .sc-gear {
  animation: workSpin 4.5s infinite;
}

.method-panel.active .sc-code {
  animation: workCode 4.5s infinite;
  animation-delay: 0.2s;
}

.method-panel.active .sc-demo {
  animation: demoPop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 1.5s;
}

@keyframes workSpin {
  0% {
    transform: translateX(-30px) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.8;
    color: var(--sarc-gold);
  }

  90% {
    transform: translateX(-30px) rotate(360deg);
    opacity: 0;
  }

  100% {
    transform: translateX(-30px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes workCode {
  0% {
    transform: translateX(30px) scale(0.8);
    opacity: 0;
  }

  15% {
    opacity: 0.8;
    transform: translateX(30px) scale(1.1);
  }

  80% {
    opacity: 0.8;
    transform: translateX(30px) scale(1);
    color: var(--sarc-gold);
  }

  90% {
    transform: translateX(30px) scale(0.8);
    opacity: 0;
  }

  100% {
    transform: translateX(30px) scale(0.8);
    opacity: 0;
  }
}

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

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(184, 134, 11, 0.6));
  }
}

/* Step 3: Despliegue (Implementation in Company) */
.sc-package {
  transform: translateX(-45px);
  opacity: 0;
  width: 36px;
  height: 36px;
  color: var(--sarc-gold);
}

.sc-arrow-move {
  transform: translateX(0);
  opacity: 0;
  width: 24px;
  height: 24px;
  color: #666;
}

.sc-company {
  transform: translateX(45px);
  opacity: 0;
  width: 44px;
  height: 44px;
}

.method-panel.active .sc-company {
  animation: companyWait 5s infinite;
}

.method-panel.active .sc-package {
  animation: deliverPackage 5s infinite;
  animation-delay: 0.5s;
}

.method-panel.active .sc-arrow-move {
  animation: arrowMove 5s infinite;
  animation-delay: 0.5s;
}

@keyframes companyWait {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 0.4;
    color: #666;
    filter: none;
    transform: translateX(45px) scale(1);
  }

  60% {
    opacity: 0.4;
    color: #666;
    filter: none;
    transform: translateX(45px) scale(1);
  }

  75% {
    opacity: 1;
    color: var(--sarc-gold);
    filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.8));
    transform: translateX(45px) scale(1.1);
  }

  90% {
    opacity: 1;
    color: var(--sarc-gold);
    filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.8));
    transform: translateX(45px) scale(1.1);
  }

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

@keyframes deliverPackage {
  0% {
    transform: translateX(-45px) scale(0.5);
    opacity: 0;
  }

  15% {
    transform: translateX(-45px) scale(1);
    opacity: 1;
  }

  60% {
    transform: translateX(25px) scale(1);
    opacity: 1;
  }

  75% {
    transform: translateX(45px) scale(0);
    opacity: 0;
  }

  100% {
    transform: translateX(45px) scale(0);
    opacity: 0;
  }
}

@keyframes arrowMove {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }

  35% {
    opacity: 0.8;
    color: var(--sarc-gold);
  }

  75% {
    transform: translateX(20px);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* Step 4: Libertad Operativa (Auto UI & Client) */
.sc-ai-brain {
  position: absolute;
  opacity: 0;
  width: 80px;
  height: 80px;
  color: rgba(184, 134, 11, 0.15);
  z-index: 0;
}

.sc-controls {
  transform: translate(-35px, 0);
  opacity: 0;
  width: 32px;
  height: 32px;
  color: #a0a0a0;
  z-index: 1;
}

.sc-owner {
  transform: translate(15px, 10px) scale(0);
  opacity: 0;
  width: 50px;
  height: 50px;
  color: var(--sarc-gold);
  z-index: 2;
}

.method-panel.active .sc-ai-brain {
  animation: enginePulse 4s infinite;
}

.method-panel.active .sc-controls {
  animation: autoSliders 4s infinite;
}

.method-panel.active .sc-owner {
  animation: ownerPop 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.5s;
}

@keyframes enginePulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  20% {
    opacity: 1;
    transform: scale(1);
  }

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

  80% {
    opacity: 1;
    transform: scale(1.05);
  }

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

@keyframes autoSliders {
  0% {
    opacity: 0;
    transform: translate(-35px, 10px);
  }

  20% {
    opacity: 0.8;
    transform: translate(-35px, -5px);
  }

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

  60% {
    transform: translate(-35px, -10px);
    color: var(--sarc-gold);
  }

  80% {
    transform: translate(-35px, 0);
    opacity: 0.8;
  }

  90% {
    opacity: 0.8;
    transform: translate(-35px, 0);
    color: var(--sarc-gold);
    filter: drop-shadow(0 0 10px rgba(184, 134, 11, 0.4));
  }

  100% {
    opacity: 0;
    transform: translate(-35px, 0);
  }
}

@keyframes ownerPop {
  0% {
    transform: translate(15px, 20px) scale(0);
    opacity: 0;
  }

  100% {
    transform: translate(15px, 10px) scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(184, 134, 11, 0.8));
  }
}

/* Custom Scrollbar - Diseño Premium */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 8px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sarc-gold);
}

/* Custom Selection */
::selection {
    background: rgba(184, 134, 11, 0.4);
    color: white;
}
::-moz-selection {
    background: rgba(184, 134, 11, 0.4);
    color: white;
}