/* =========================================
     SECTION 01: CUSTOM SOFTWARE HERO
     ========================================= */

  /* --- GLOBAL RESET FOR THIS SECTION --- */
  #cs-hero {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background: transparent; /* CHANGED: Transparent to show theme grid */
    overflow: hidden;
    font-family: 'Satoshi', sans-serif;
    box-sizing: border-box;
    color: #fff;
    /* FIX: Create a new stacking context at level 0 so Menu (usually z-index 99+) stays on top */
    z-index: 0; 
  }
  
  #cs-hero * { box-sizing: border-box; }

  /* --- BACKGROUND EFFECTS --- */
  .cs-hero-bg-glow {
    position: absolute;
    top: -20%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(40, 204, 205, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0; /* Stays at bottom of local stack */
    animation: csPulse 8s infinite alternate;
  }

  /* --- CONTAINER --- */
  .cs-hero-container {
    max-width: 1200px; /* Aligned with your 1200px preference */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2; /* Sits above background, but contained within #cs-hero's z-index 0 */
  }

  /* --- LEFT COLUMN: CONTENT --- */
  .cs-hero-content {
    flex: 1;
    max-width: 600px;
  }

  .cs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(40, 204, 205, 0.1);
    border: 1px solid rgba(40, 204, 205, 0.2);
    border-radius: 50px;
    margin-bottom: 30px;
    color: #28CCCD;
  }

  .cs-badge-text {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .cs-hero-title {
    font-family: 'Mona Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
  }

  .text-gradient-teal {
    background: linear-gradient(135deg, #28CCCD 0%, #6AFADF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .cs-hero-sub {
    font-size: 1.15rem;
    color: #94A3B8; /* Slate 400 */
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 95%;
  }

  .cs-hero-sub strong { color: #fff; }

  /* --- BUTTONS --- */
  .cs-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
  }

  .cs-btn-primary {
    background: #28CCCD;
    color: #0B0F19;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: 'Mona Sans', sans-serif;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
  }
  .cs-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(40, 204, 205, 0.4); }

  .cs-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: 'Mona Sans', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
  }
  .cs-btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: #fff; }

  /* --- TRUST SIGNALS --- */
  .cs-hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .trust-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .trust-icons {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
    color: #64748B;
  }

  /* --- RIGHT VISUAL (The Stack) --- */
  .cs-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    perspective: 1000px;
  }

  .infra-stack-container {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(-45deg);
    animation: csFloat 6s ease-in-out infinite;
  }

  /* Base Plate */
  .infra-base {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.8);
    border: 2px solid #28CCCD;
    box-shadow: 0 0 50px rgba(40, 204, 205, 0.2);
    transform: translateZ(0);
  }

  /* Generated Layers */
  .stack-layer {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(21, 30, 50, 0.6);
    border: 1px solid rgba(40, 204, 205, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
    backdrop-filter: blur(4px);
    overflow: hidden; /* For wave containment */
  }

  .layer-content {
    transform: rotateZ(45deg) rotateX(-60deg); /* Counter-rotate for text readability */
    text-align: center;
    position: relative;
    z-index: 2;
  }

  .layer-icon { font-size: 3rem; color: #28CCCD; display: block; margin-bottom: 10px; text-shadow: 0 0 20px #28CCCD; }
  .layer-title { font-family: 'Space Grotesk', monospace; font-weight: 700; color: #fff; font-size: 1.2rem; text-transform: uppercase; }
  .layer-desc { font-family: 'Satoshi', sans-serif; font-size: 0.8rem; color: #94A3B8; }
  
  /* --- NEW: Data Wave Animation for Layer 1 --- */
  .data-wave-container {
    position: absolute;
    top: 0; left: 0; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(40, 204, 205, 0.1), transparent 60%);
    opacity: 0.6;
    animation: wavePulse 3s infinite linear;
    pointer-events: none;
    z-index: 1;
  }
  
  .data-grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(0deg, transparent 24%, rgba(40, 204, 205, .3) 25%, rgba(40, 204, 205, .3) 26%, transparent 27%, transparent 74%, rgba(40, 204, 205, .3) 75%, rgba(40, 204, 205, .3) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(40, 204, 205, .3) 25%, rgba(40, 204, 205, .3) 26%, transparent 27%, transparent 74%, rgba(40, 204, 205, .3) 75%, rgba(40, 204, 205, .3) 76%, transparent 77%, transparent);
    background-size: 30px 30px;
    animation: gridMove 4s linear infinite;
    opacity: 0.4;
  }

  /* --- ANIMATIONS --- */
  @keyframes csPulse { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0.8; transform: scale(1.1); } }
  @keyframes csFloat { 0%, 100% { transform: rotateX(60deg) rotateZ(-45deg) translateY(0); } 50% { transform: rotateX(60deg) rotateZ(-45deg) translateY(-20px); } }
  @keyframes wavePulse { 0% { transform: translate(-25%, -25%) scale(0.8); opacity: 0.3; } 50% { transform: translate(-25%, -25%) scale(1.2); opacity: 0.6; } 100% { transform: translate(-25%, -25%) scale(0.8); opacity: 0.3; } }
  @keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 30px 30px; } }

  /* --- RESPONSIVE --- */
  @media (max-width: 1024px) {
    .cs-hero-container { flex-direction: column; text-align: center; gap: 40px; }
    .cs-hero-content { align-items: center; display: flex; flex-direction: column; max-width: 100%; }
    .cs-hero-actions { justify-content: center; }
    .cs-hero-visual { width: 100%; height: 400px; }
    .infra-stack-container { width: 300px; height: 300px; }
    .cs-hero-title { font-size: 3rem; }
    .cs-hero-trust { flex-direction: column; gap: 10px; }
  }

  @media (max-width: 600px) {
    .cs-hero-title { font-size: 2.5rem; }
    .cs-hero-actions { flex-direction: column; width: 100%; }
    .cs-btn-primary, .cs-btn-outline { width: 100%; justify-content: center; }
  }


  /* =========================================
     SECTION 02 STYLES
     ========================================= */

  /* --- Layout & Background --- */
  #cs-why-custom {
      position: relative;
      width: 100%;
      padding: 100px 20px;
      background: transparent;
      font-family: 'Satoshi', sans-serif;
      color: #fff;
      box-sizing: border-box;
      overflow: hidden;
  }
  
  #cs-why-custom * { box-sizing: border-box; }
  
  .cs-why-bg-grid {
      position: absolute;
      inset: 0;
      background-image: 
          linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
      background-size: 50px 50px;
      z-index: 0;
      pointer-events: none;
      mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  }
  
  .cs-why-container {
      max-width: 1200px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
  }
  
  /* --- Header --- */
  .cs-why-header {
      text-align: center;
      max-width: 800px;
      margin: 0 auto 80px auto;
  }
  
  .cs-badge {
      display: inline-block;
      padding: 6px 12px;
      background: rgba(255, 95, 86, 0.1);
      border: 1px solid rgba(255, 95, 86, 0.3);
      border-radius: 50px;
      color: #FF5F56;
      font-family: 'Space Grotesk', monospace;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 20px;
  }
  
  .cs-why-title {
      font-family: 'Mona Sans', sans-serif;
      font-size: 3rem;
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 20px;
  }
  
  .text-gradient-red {
      background: linear-gradient(135deg, #FF5F56 0%, #FF8E53 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
  }
  
  .cs-why-lead {
      font-size: 1.2rem;
      color: #94A3B8;
      line-height: 1.6;
  }
  
  /* --- Split Stage --- */
  .cs-split-stage {
      display: flex;
      align-items: stretch;
      gap: 40px;
      margin-bottom: 100px;
  }
  
  .cs-stage-left, .cs-stage-right {
      flex: 1;
      display: flex;
      flex-direction: column;
  }
  
  /* Problem Visual (Left) */
  .problem-visual {
      background: rgba(255, 95, 86, 0.05);
      border: 1px solid rgba(255, 95, 86, 0.2);
      border-radius: 24px;
      padding: 40px;
      height: 100%;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease;
  }
  
  .box-constraint {
      width: 100px; height: 100px;
      border: 2px dashed #FF5F56;
      margin: 0 auto 30px auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #FF5F56;
      font-family: 'Space Grotesk', monospace;
      animation: rattle 0.2s infinite paused; 
  }
  
  .problem-visual:hover .box-constraint { animation-play-state: running; }
  
  .constraint-icon { font-size: 2rem; margin-bottom: 5px; }
  .glitch-text { font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; }
  
  .warning-bar {
      width: 80%; height: 4px;
      background: #FF5F56;
      margin-top: 10px;
      box-shadow: 0 0 10px #FF5F56;
  }
  
  /* Solution Visual (Right) */
  .solution-visual {
      background: rgba(40, 204, 205, 0.05);
      border: 1px solid rgba(40, 204, 205, 0.2);
      border-radius: 24px;
      padding: 40px;
      height: 100%;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease;
  }
  
  .flow-network {
      width: 100%; height: 100px;
      position: relative;
      margin-bottom: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .flow-node {
      width: 15px; height: 15px;
      background: #28CCCD;
      border-radius: 50%;
      position: absolute;
      box-shadow: 0 0 15px #28CCCD;
      animation: orbitNode 4s infinite linear;
  }
  
  .fn-1 { animation-delay: 0s; }
  .fn-2 { animation-delay: 1.3s; }
  .fn-3 { animation-delay: 2.6s; }
  
  .flow-connection {
      width: 100%; height: 2px;
      background: linear-gradient(90deg, transparent, #28CCCD, transparent);
      opacity: 0.5;
  }
  
  /* Cards shared styles */
  .card-head {
      font-family: 'Space Grotesk', monospace;
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 15px;
      text-transform: uppercase;
      letter-spacing: -0.02em;
  }
  .text-teal { color: #28CCCD; }
  
  .card-body {
      font-size: 1rem;
      color: #CBD5E1;
      line-height: 1.6;
  }
  
  /* Center VS */
  .cs-stage-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
  }
  .vs-line { width: 1px; height: 100px; background: rgba(255,255,255,0.1); }
  .vs-circle {
      width: 40px; height: 40px;
      border-radius: 50%;
      background: #1e293b;
      border: 1px solid rgba(255,255,255,0.2);
      display: flex; align-items: center; justify-content: center;
      font-weight: 900;
      font-size: 0.8rem;
      color: #64748B;
  }
  
  /* --- Trends Grid --- */
  .cs-trends-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
  }
  
  .trend-card {
      background: rgba(13, 17, 23, 0.6);
      border: 1px solid rgba(53, 59, 91, 0.3);
      border-radius: 16px;
      padding: 30px;
      transition: transform 0.3s ease;
      backdrop-filter: blur(10px);
  }
  .trend-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
  
  .card-icon {
      font-size: 2rem;
      margin-bottom: 20px;
      color: #28CCCD;
  }
  .tc-roi .card-icon { color: #28CCCD; }
  .tc-ai .card-icon { color: #A855F7; }
  .tc-security .card-icon { color: #6AFADF; }
  
  .trend-title {
      font-family: 'Mona Sans', sans-serif;
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 15px;
      color: #fff;
  }
  
  .trend-desc {
      font-size: 0.95rem;
      color: #94A3B8;
      line-height: 1.6;
      margin-bottom: 20px;
  }
  
  .trend-list {
      list-style: none; padding: 0; margin: 0;
  }
  .trend-list li {
      display: flex; align-items: center; gap: 10px;
      font-size: 0.9rem; color: #CBD5E1; margin-bottom: 8px;
  }
  .trend-list li i { color: #28CCCD; font-size: 0.8rem; }
  
  .trend-tag-cloud {
      display: flex; flex-wrap: wrap; gap: 8px;
  }
  .trend-tag-cloud span {
      font-size: 0.75rem;
      background: rgba(255,255,255,0.05);
      padding: 4px 10px;
      border-radius: 4px;
      color: #A4A8B1;
      font-family: 'Space Grotesk', monospace;
  }
  
  /* ANIMATIONS */
  @keyframes rattle {
      0% { transform: translate(1px, 1px) rotate(0deg); }
      10% { transform: translate(-1px, -2px) rotate(-1deg); }
      20% { transform: translate(-3px, 0px) rotate(1deg); }
      30% { transform: translate(3px, 2px) rotate(0deg); }
      40% { transform: translate(1px, -1px) rotate(1deg); }
      50% { transform: translate(-1px, 2px) rotate(-1deg); }
      60% { transform: translate(-3px, 1px) rotate(0deg); }
      70% { transform: translate(3px, 1px) rotate(-1deg); }
      80% { transform: translate(-1px, -1px) rotate(1deg); }
      90% { transform: translate(1px, 2px) rotate(0deg); }
      100% { transform: translate(1px, -2px) rotate(-1deg); }
  }
  
  @keyframes orbitNode {
      0% { transform: translateX(-50px) scale(0.8); opacity: 0; }
      20% { opacity: 1; }
      50% { transform: translateX(0px) scale(1.2); }
      80% { opacity: 1; }
      100% { transform: translateX(50px) scale(0.8); opacity: 0; }
  }
  
  /* RESPONSIVE */
  @media (max-width: 1024px) {
      .cs-split-stage { flex-direction: column; gap: 40px; }
      .cs-stage-center { transform: rotate(90deg); margin: 20px 0; }
      .cs-trends-grid { grid-template-columns: 1fr; }
  }