  /* =========================================
     SECTION 01: API HERO REWRITE
     ========================================= */

  #api-hero {
    position: relative;
    width: 100%;
    /* Standardized 120px clearance for the fixed menu */
    padding: 120px 24px 100px 24px !important;
    background: transparent;
    color: var(--heading-color, #FFFFFF);
    box-sizing: border-box;
    overflow: visible; 
    z-index: 1; 
  }
  
  #api-hero * { box-sizing: border-box; }

  /* --- SUBTLE BACKGROUND EFFECTS --- */
  .api-bg-glow {
    position: absolute;
    top: 0%; right: -5%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 75%);
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: apiSubtleGlow 12s infinite ease-in-out alternate;
  }

  /* --- CONTAINER --- */
  .api-flex-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 10;
  }

  /* --- LEFT CONTENT --- */
  .api-content {
    flex: 0 0 55%;
    max-width: 55%;
  }

  .api-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 100px; /* Full rounded ribbon */
    margin-bottom: 32px;
    color: #A855F7;
  }

  .api-badge-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
  }

  .api-title {
    font-family: 'Mona Sans', sans-serif !important;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 25px;
    letter-spacing: -0.04em;
  }

  .text-gradient-api {
    background: linear-gradient(135deg, #28CCCD 0%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .api-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
  }

  .api-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px; /* Space for tech row below */
  }

  .btn-api-primary {
    background: #A855F7;
    color: #FFFFFF;
    padding: 18px 36px;
    border-radius: 8px;
    font-family: 'Mona Sans', sans-serif;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
  }

  .btn-api-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.3);
  }

  /* --- TECH ICONS UNDER CTA --- */
  .api-tech-stack {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
  }

  .tech-stack-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .tech-stack-icons {
    display: flex;
    gap: 15px;
    color: #94A3B8;
    font-size: 1.25rem;
    opacity: 0.7;
  }

  /* --- RIGHT VISUAL (THE HUB) --- */
  .api-visual {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
  }

  .hub-container {
    width: 380px;
    height: 380px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hub-core {
    width: 100px; height: 100px;
    background: radial-gradient(circle, #28CCCD, #0B0F19);
    border: 2px solid #28CCCD;
    border-radius: 50%;
    z-index: 20;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 0 50px rgba(40, 204, 205, 0.4);
    animation: corePulseAPI 4s infinite ease-in-out;
  }

  .hub-orbit {
    position: absolute;
    width: 320px; height: 320px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: spinClockwise 40s linear infinite;
  }

  .hub-node {
    position: absolute;
    width: 50px; height: 50px;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #A855F7;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  }

  /* Orbital Positioning */
  .hn-1 { top: -25px; left: 50%; transform: translateX(-50%); }
  .hn-2 { bottom: -25px; left: 50%; transform: translateX(-50%); }
  .hn-3 { left: -25px; top: 50%; transform: translateY(-50%); }
  .hn-4 { right: -25px; top: 50%; transform: translateY(-50%); }

  .hub-beam {
    position: absolute;
    width: 140px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(40, 204, 205, 0.4));
    transform-origin: left center;
    left: 50%; top: 50%;
    z-index: 1;
  }

  @keyframes apiSubtleGlow { 0% { opacity: 0.3; } 100% { opacity: 0.6; } }
  @keyframes corePulseAPI { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
  @keyframes spinClockwise { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  /* --- RESPONSIVE --- */
  @media (max-width: 1100px) {
    #api-hero { padding-top: 140px !important; }
    .api-flex-container { flex-direction: column; text-align: center; }
    .api-content, .api-visual { flex: 0 0 100%; max-width: 100%; }
    .api-sub { margin-left: auto; margin-right: auto; }
    .api-actions, .api-tech-stack { justify-content: center; }
    .hub-container { margin-top: 60px; transform: scale(0.85); }
  }



  /* =========================================
     SECTION 03 STYLES
     ========================================= */

  /* --- Layout & Background --- */
  #api-what-is {
      position: relative;
      width: 100%;
      padding: 120px 20px;
      background: transparent;
      font-family: 'Satoshi', sans-serif;
      color: #fff;
      box-sizing: border-box;
      overflow: hidden;
  }
  
  #api-what-is * { box-sizing: border-box; }

  .what-container {
      max-width: 1200px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
  }

  /* --- HEADER --- */
  .what-header {
      text-align: center;
      max-width: 900px;
      margin: 0 auto 80px auto;
  }

  .what-badge {
      display: inline-block;
      padding: 6px 12px;
      background: rgba(40, 204, 205, 0.1);
      border: 1px solid rgba(40, 204, 205, 0.3);
      border-radius: 50px;
      color: #28CCCD;
      font-family: 'Space Grotesk', monospace;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 20px;
  }

  .what-title {
      font-family: 'Mona Sans', sans-serif;
      font-size: 3rem;
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 20px;
  }

  .what-desc {
      font-size: 1.2rem;
      color: #94A3B8;
      line-height: 1.6;
      max-width: 800px;
      margin: 0 auto;
  }

  /* --- SERVICE CARDS (The Breakdown) --- */
  .service-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      margin-bottom: 100px;
  }

  .svc-card {
      background: rgba(13, 17, 23, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 24px;
      padding: 40px 30px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(12px);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .svc-card:hover {
      transform: translateY(-8px);
      background: rgba(13, 17, 23, 0.85);
      box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  }

  /* Specific Hover Colors */
  .card-connect:hover { border-color: #A855F7; }
  .card-auto:hover { border-color: #28CCCD; }
  .card-trans:hover { border-color: #4F46E5; }

  .svc-icon-box {
      width: 70px; height: 70px;
      border-radius: 20px;
      display: flex; align-items: center; justify-content: center;
      font-size: 2rem;
      margin-bottom: 25px;
      transition: transform 0.3s ease;
  }
  
  .svc-card:hover .svc-icon-box { transform: scale(1.1) rotate(5deg); }

  .sib-purple { background: rgba(168, 85, 247, 0.1); color: #A855F7; }
  .sib-teal { background: rgba(40, 204, 205, 0.1); color: #28CCCD; }
  .sib-indigo { background: rgba(79, 70, 229, 0.1); color: #4F46E5; }

  .svc-title {
      font-family: 'Space Grotesk', monospace;
      font-size: 1.4rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 15px;
  }

  .svc-text {
      font-size: 0.95rem;
      color: #94A3B8;
      line-height: 1.6;
  }

  /* --- BRIDGE VISUAL --- */
  .bridge-wrapper {
      position: relative;
      height: 300px;
      background: linear-gradient(180deg, rgba(21, 30, 50, 0.4) 0%, rgba(13, 17, 23, 0.9) 100%);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 32px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  /* The Bridge Path */
  .bridge-path {
      position: absolute;
      top: 50%; left: 10%; right: 10%;
      height: 4px;
      background: rgba(255,255,255,0.1);
      border-radius: 4px;
      transform: translateY(-50%);
  }

  /* Animated Data Stream */
  .data-stream {
      position: absolute;
      top: 0; left: 0;
      width: 20%; height: 100%;
      background: linear-gradient(90deg, transparent, #28CCCD, transparent);
      box-shadow: 0 0 20px #28CCCD;
      animation: streamFlow 2s infinite linear;
      border-radius: 4px;
  }

  /* Tool Nodes */
  .tool-node {
      position: absolute;
      width: 50px; height: 50px;
      background: #0B0F19;
      border: 2px solid #525C75;
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem;
      color: #fff;
      z-index: 2;
      top: 50%;
      transform: translateY(-50%);
      transition: all 0.3s ease;
  }
  
  .tn-left { left: 5%; border-color: #FF5F56; color: #FF5F56; } /* Chaos/Disconnected */
  .tn-right { right: 5%; border-color: #22C55E; color: #22C55E; } /* Unified/Connected */
  
  /* Central Processor */
  .api-processor {
      width: 120px; height: 120px;
      background: #0B0F19;
      border: 2px solid #A855F7;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      flex-direction: column;
      z-index: 3;
      box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
      position: relative;
  }
  
  .proc-icon { font-size: 3rem; color: #A855F7; margin-bottom: 5px; animation: pulseProc 2s infinite; }
  .proc-label { font-family: 'Space Grotesk', monospace; font-size: 0.7rem; color: #A855F7; font-weight: 700; letter-spacing: 1px; }

  /* Connector Lines into Processor */
  .input-line {
      position: absolute;
      height: 2px;
      background: rgba(255,255,255,0.1);
      width: 100px;
  }
  .il-1 { top: 30%; left: 20%; transform: rotate(20deg); }
  .il-2 { bottom: 30%; left: 20%; transform: rotate(-20deg); }
  
  /* Packet Drops */
  .drop-packet {
      width: 6px; height: 6px; background: #fff; border-radius: 50%;
      position: absolute;
      animation: dropIn 1.5s infinite ease-in;
  }

  /* ANIMATIONS */
  @keyframes streamFlow { 0% { left: 0; opacity: 0; } 50% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
  @keyframes pulseProc { 0% { transform: scale(1); text-shadow: 0 0 10px rgba(168, 85, 247, 0.5); } 50% { transform: scale(1.1); text-shadow: 0 0 30px rgba(168, 85, 247, 0.8); } 100% { transform: scale(1); text-shadow: 0 0 10px rgba(168, 85, 247, 0.5); } }
  @keyframes dropIn { 0% { opacity: 0; transform: translate(0, -50px); } 50% { opacity: 1; } 100% { transform: translate(0, 0); opacity: 0; } }

  /* RESPONSIVE */
  @media (max-width: 900px) {
      .service-grid { grid-template-columns: 1fr; gap: 30px; }
      .what-title { font-size: 2.2rem; }
      .bridge-wrapper { display: none; } /* Hide complex visual on mobile to save space/load */
  }
  
  

