/* =========================================
   forma.IT GROUP — DESIGN SYSTEM
   Premium SaaS UI Foundation
========================================= */

/* ==========================
   ROOT VARIABLES
========================== */

:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --card: #161616;

  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --glow: rgba(59,130,246,0.25);

  --text: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;

  --border: rgba(255,255,255,0.06);
  --shadow-glow: 0 10px 30px rgba(59,130,246,0.25);

  /* ADD THESE (MISSING FIX) */
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-6: 24px;
}

/* ==========================
   BASE RESET
========================== */

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

html {
  background: var(--bg);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ==========================
   TYPOGRAPHY SYSTEM
========================== */

h1, h2, h3, h4 {
  letter-spacing: -0.03em;
  line-height: 1.1;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--primary);
}

/* ==========================
   LAYOUT CONTAINER
========================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================
   CARD SYSTEM (SAAS STYLE)
========================== */

.card,
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all .3s ease;
}

.card:hover,
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 10px 40px rgba(59,130,246,0.08);
}

/* ==========================
   BUTTON SYSTEM
========================== */

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: all .3s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* ==========================
   PAGE TRANSITIONS
========================== */

.page-exit {
  opacity: 0 !important;
  transform: translateY(20px);
  transition: all .35s ease;
}


/* ==========================
   LOADER SYSTEM
========================== */

#page-loader {
  position: fixed;
  inset: 0;
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity .4s ease, visibility .4s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-ring {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(255,255,255,.08);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* ==========================
   BACKGROUND ORBS (CSS LAYER)
========================== */
@keyframes orb1 {
  0% {
    transform: translate(-50px, -30px);
  }
  100% {
    transform: translate(50px, 40px);
  }
}

@keyframes orb2 {
  0% {
    transform: translate(40px, -20px);
  }
  100% {
    transform: translate(-40px, 30px);
  }
}

@keyframes orb3 {
  0% {
    transform: translate(-30px, 20px);
  }
  100% {
    transform: translate(30px, -40px);
  }
}


.animate-orb1 {
  background: rgba(59,130,246,0.2);
  width: 600px;
  height: 600px;
  animation: orb1 18s ease-in-out infinite alternate;
}

.animate-orb2 {
  background: rgba(255,255,255,0.1);
  width: 500px;
  height: 500px;
  animation: orb2 24s ease-in-out infinite alternate;
}

.animate-orb3 {
  background: rgba(96,165,250,0.1);
  width: 700px;
  height: 700px;
  animation: orb3 30s ease-in-out infinite alternate;
}
/* ==========================
   GRID OVERLAY (OPTIONAL)
========================== */

.grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.05;
}

/* ==========================
   SAFETY STATE (JS FAIL SAFE)
========================== */

.js-failed #page-loader {
  display: none !important;
}
.reveal {
  opacity: 1;
  transform: translateY(30px);
  transition: all .8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.chart-bar{
    flex:1;
    background:linear-gradient(
        to top,
        rgba(59,130,246,0.95),
        rgba(96,165,250,0.35)
    );
    border-radius:12px 12px 0 0;
    animation:chartFloat 4s ease-in-out infinite;
}

.chart-bar:nth-child(2){
    animation-delay:.2s;
}

.chart-bar:nth-child(3){
    animation-delay:.4s;
}

.chart-bar:nth-child(4){
    animation-delay:.6s;
}

.chart-bar:nth-child(5){
    animation-delay:.8s;
}

.chart-bar:nth-child(6){
    animation-delay:1s;
}

.chart-bar:nth-child(7){
    animation-delay:1.2s;
}

@keyframes chartFloat{

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

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

}
/* ==========================
   DASHBOARD GLOW SYSTEM
========================== */
/* =========================================
   STRIPE-LEVEL DASHBOARD SYSTEM
========================================= */

.dashboard-glow {
  position: relative;
  overflow: hidden;
  border-radius: 32px;

  /* subtle base depth */
  background: rgba(255,255,255,0.02);
}

/* ===== CURSOR LIGHT FIELD ===== */
.dashboard-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--x, 50%) var(--y, 50%),
    rgba(59,130,246,0.14),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* activate only on interaction */
.dashboard-glow:hover::before {
  opacity: 1;
}

/* ===== SOFT AMBIENT BREATHING GLOW ===== */
.dashboard-glow::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(59,130,246,0.10),
    transparent 60%
  );
  animation: ambientPulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ambientPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.55;
  }
}

/* ensure content stays above glow layers */
.dashboard-glow > * {
  position: relative;
  z-index: 1;
}

/* ===== STRIPE-STYLE CARD INTERACTION ===== */
.glow-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;

  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.glow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 18px 50px rgba(59,130,246,0.10);
}
/* =========================================
   LIVE STRIPE-STYLE CHART SYSTEM
========================================= */

.chart-bar {
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(
    to top,
    rgba(59,130,246,0.25),
    rgba(59,130,246,0.05)
  );

  transform-origin: bottom;
  animation: chartPulse 2.8s ease-in-out infinite;
  transition: transform 0.4s ease;
}

/* staggered motion = real SaaS feel */
.chart-bar:nth-child(1) { animation-delay: 0s; }
.chart-bar:nth-child(2) { animation-delay: 0.15s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.45s; }
.chart-bar:nth-child(5) { animation-delay: 0.6s; }
.chart-bar:nth-child(6) { animation-delay: 0.75s; }
.chart-bar:nth-child(7) { animation-delay: 0.9s; }

@keyframes chartPulse {
  0%, 100% {
    transform: scaleY(1);
    opacity: 0.85;
  }
  50% {
    transform: scaleY(1.08);
    opacity: 1;
  }
}
.ai-line {
  opacity: 0;
  transform: translateY(6px);
  animation: aiFade 0.5s ease forwards;
}

@keyframes aiFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================
   CRM PIPELINE SYSTEM
========================================= */

.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.column {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 300px;
}

.task {
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: 12px;
  cursor: grab;
  transition: all .2s ease;
}

.task:hover {
  transform: scale(1.02);
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: all .2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.4);
}

[data-theme="light"] {
  --bg: #ffffff;
  --text: #0a0a0a;
  --card: #f5f5f5;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn .6s ease forwards;
}

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

.deal-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  
  /* 🎯 FIXED: Re-enforced structural side margins and interior text cushions */
  padding: 12px 14px 12px 14px;
  background: #0F0F0F;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin-bottom: 10px;
  text-align: left;
}

.deal-title {
  font-weight: 700;
  font-size: 14px;
}

.deal-value {
  font-size: 12px;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.deal-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* 🎯 STAGE INDICATORS WITH BUILT-IN PADDING PROTECTION */
.deal-card.hot {
  border-left: 4px solid #ef4444;
  padding-left: 12px; /* Leaves a perfect breathing gap between red lines and your words */
}

.deal-card.warm {
  border-left: 4px solid #f59e0b;
  padding-left: 12px;
}

.deal-card.cold {
  border-left: 4px solid #3b82f6;
  padding-left: 12px;
}

.hero-title span {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s infinite linear;
}

@keyframes shimmer {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(20deg); }
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--x) var(--y),
    rgba(59,130,246,0.12),
    transparent 40%
  );
  pointer-events: none;
}

.glow-card {
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.counter {
  text-shadow: 0 0 20px rgba(59,130,246,0.4);
}

.kanban-column::before {
  content: attr(data-stage);
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.kanban-column:empty::after {
  content: "No deals yet";
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  display: block;
  padding: 20px;
}

.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("https://grainy-gradients.vercel.app/noise.png");
  opacity: 0.03;
}

section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

body.page-ready #page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
section {
  opacity: 1;
  transform: none;
}
section.active {
  opacity: 1;
  transform: translateY(0);
}
#page-loader {
  transition: opacity .4s ease, visibility .4s ease;
}

#page-loader.hide,
body.page-ready #page-loader {
  opacity: 0;
  visibility: hidden;
}
html {
  background: #0a0a0a;
}

body {
  min-height: 100vh;
}


/* =========================
ABOUT PAGE BASE
========================= */

.about-page {
  padding: 120px 20px;
  max-width: 1100px;
  margin: auto;
}

/* HERO */
.about-hero {
  text-align: center;
  margin-bottom: 80px;
}

.about-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: white;
}

.about-hero p {
  color: #a1a1aa;
  margin-top: 12px;
  font-size: 18px;
  max-width: 700px;
  margin-inline: auto;
}

/* CARDS */
.about-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 40px;
  color: white;
}

/* =========================
AI SECTION
========================= */

.ai-section {
  margin-top: 80px;
}

.ai-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* LEFT */
.ai-text h2 {
  font-size: 32px;
  color: white;
}

.ai-text p {
  color: #a1a1aa;
  margin-top: 10px;
}

/* RIGHT CHAT */
.ai-chat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(120,160,255,0.2);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* CHAT HEADER */
.ai-header {
  color: white;
  margin-bottom: 15px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-left: 6px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* MESSAGES */
.msg {
  opacity: 0;
  transform: translateY(10px);
  margin-bottom: 12px;
  color: #e4e4e7;
}

/* TYPING */
.typing span {
  width: 6px;
  height: 6px;
  background: #60a5fa;
  display: inline-block;
  border-radius: 50%;
  margin-right: 4px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ai-container {
    grid-template-columns: 1fr;
  }
}
.process-visual{
    margin-bottom:80px;
}

.process-window{
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    overflow:hidden;
    background:rgba(255,255,255,.03);
    backdrop-filter:blur(20px);
}

.window-bar{
    display:flex;
    gap:8px;
    padding:14px 18px;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.window-bar span{
    width:10px;
    height:10px;
    border-radius:50%;
    background:rgba(255,255,255,.3);
}

.strategy-board{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:16px;
    padding:30px;
}

.strategy-card{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06);
    border-radius:16px;
    padding:24px;
    text-align:center;
}

.crm-window{
    display:grid;
    grid-template-columns:220px 1fr;
    border-radius:24px;
    overflow:hidden;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.08);
    margin-bottom:80px;
}

.crm-sidebar{
    padding:30px;
    border-right:1px solid rgba(255,255,255,.05);
    display:flex;
    flex-direction:column;
    gap:18px;
}

.crm-main{
    padding:30px;
}

.crm-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin-bottom:24px;
}

.stat-box{
    background:rgba(255,255,255,.04);
    padding:20px;
    border-radius:14px;
}

.mini-kanban{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.pipeline{
    background:rgba(255,255,255,.03);
    padding:16px;
    border-radius:14px;
}

.lead-card{
    height:60px;
    background:rgba(255,255,255,.05);
    border-radius:12px;
    margin-top:10px;
}
/* =========================
STRATEGY PHONE SCREEN
========================= */

.strategy-screen-demo{
    padding:100px 20px;
    display:flex;
    justify-content:center;
}

.strategy-phone{

    width:320px;
    height:640px;

    background:#f8fafc;

    border-radius:42px;

    border:1px solid rgba(255,255,255,.08);

    padding:16px;

    position:relative;

    box-shadow:
    0 40px 120px rgba(0,0,0,.5);

    overflow:hidden;
}

.phone-top{

    width:120px;
    height:26px;

    background:black;

    border-radius:0 0 16px 16px;

    margin:auto;
}

.strategy-app{
    padding:24px;
}

.app-badge{

    display:inline-block;

    padding:6px 12px;

    border-radius:999px;

    background:rgba(59,130,246,.12);

    color:#60a5fa;

    font-size:12px;
}

.app-header h3{
    margin-top:20px;
    font-size:28px;
    font-weight:800;
    color: #0f172a;
}

.app-header p{
   color: #64748b; /* This is already perfect (Slate-500) for muted subtitle text */
    margin-top: 6px;
}

.checklist{
    margin-top:30px;
}

.task {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    
    color: #334155; /* ADD THIS: Slate-700 makes the text inside your white task boxes readable */
}

.task span{
    color:#22c55e;
    font-weight:700;
}

.progress-card {
    margin-top: 30px;
    padding: 20px;
    border-radius: 18px;
    
    /* CHANGE THIS LINE */
    background: #ffffff; /* Gives the card a clean white background container */
    border: 1px solid #e2e8f0; /* ADD THIS: Gives it a subtle border to pop out */
    
    /* ADD THIS LINE */
    color: #0f172a; /* Forces all text inside this card to a readable dark slate color */
}

.progress-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    /* The color rule added to .progress-card will automatically fix the text here */
}

.progress-bar {
    height: 8px;
    border-radius: 999px;
    
    /* CHANGE THIS LINE */
    background: #f1f5f9; /* Changes the empty bar track from transparent white to a visible soft gray */
    overflow: hidden;
}

.progress-fill {
    width: 85%;
    height: 100%;
    background: #3b82f6; /* This vibrant blue stays perfectly visible */
    border-radius: 999px;
}

.continue-btn {
    width: 100%;
    margin-top: 30px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: #2563eb;
    color: white; /* Stays crisp white against the blue button */
    font-weight: 700;
    cursor: pointer;
}

.strategy-row{
    display:grid;
    grid-template-columns:1fr 380px;
    gap:60px;
    align-items:center;
    margin-bottom:80px;
}
@media (max-width: 900px){

    .strategy-row{
        grid-template-columns:1fr;
    }

    .strategy-phone{
        margin:auto;
    }

}
/* =========================
BUILD FOR SCALE
========================= */

.build-row{
    display:grid;
    grid-template-columns:1fr 650px;
    gap:60px;
    align-items:center;
    margin-bottom:100px;
}

/* DESKTOP */

.desktop-frame{

    background:#ffffff;

    border-radius:24px;

    overflow:hidden;

    border:1px solid #dbe4ef;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08),
        0 30px 80px rgba(59,130,246,.15),
        0 60px 120px rgba(0,0,0,.25);

}
/* BODY */

.desktop-body{
    display:grid;
    grid-template-columns:180px 1fr;
    /* height:100%; <--- REMOVE OR COMMENT THIS OUT */
}

/* TOP BAR */

.desktop-bar{

    height:52px;

    background:#f8fafc;

    border-bottom:1px solid #e5e7eb;

    display:flex;

    align-items:center;

    padding:0 18px;

    gap:8px;

}

.desktop-bar span{

    width:12px;

    height:12px;

    border-radius:50%;

    background:#d1d5db;

}

/* BODY */

.desktop-body{

    display:grid;
    grid-template-columns:180px 1fr;

    height:100%;
}

/* SIDEBAR */

.desktop-sidebar{

    background:#f8fafc;

    border-right:1px solid #e5e7eb;

    color:#475569;

    padding:24px;

    display:flex;

    flex-direction:column;

    gap:18px;

    font-size:15px;

}
.desktop-sidebar div:first-child{

    background:#dbeafe;

    color:#2563eb;

    padding:10px 14px;

    border-radius:10px;

}
/* MAIN */

.desktop-main{
    padding:24px;
}

/* STATS */

.stat-card{

    background:#ffffff;

    border:1px solid #e2e8f0;

    border-radius:16px;

    padding:18px;

}

.stat-card small{

    color:#64748b;

}

.stat-card strong{

    color:#0f172a;

    font-size:22px;

}

/* PIPELINE */

.mini-pipeline{

    display:grid;

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

    gap:12px;

    margin-bottom:20px;
}

.pipeline-col{

    background:#f8fafc;

    border:1px solid #e5e7eb;

    border-radius:14px;

    padding:14px;

}

.mini-lead{

    background:white;

    border:1px solid #e2e8f0;

    border-left:4px solid #3b82f6;

    height:54px;

    border-radius:10px;

    margin-top:10px;

}

/* AI INSIGHT */

.insight-box{

    background:#eff6ff;

    border:1px solid #bfdbfe;

    color:#1e3a8a;

    border-radius:14px;

    padding:18px;

    margin-top:20px;

}
@media(max-width:1100px){

    .build-row{
        grid-template-columns:1fr;
    }

    .desktop-frame{
        width:100%;
    }

}
/* =========================
LONG TERM PARTNERSHIP
========================= */

.partnership-row{

    display:grid;

    grid-template-columns:1fr 380px;

    gap:60px;

    align-items:center;

    margin-bottom:100px;
 /* ADD THESE THREE LINES TO FIX THE LAYOUT */
    max-width: 1200px;   /* Limits how wide the section can grow */
    margin-left: auto;    /* Centers the entire row on the screen */
    margin-right: auto;   /* Centers the entire row on the screen */
    padding: 0 24px;      /* Prevents items from hugging the screen walls */
}/* PHONE */

.ai-phone {
    width: 320px;
    height: 640px; /* Fixed height for consistent device framing */
    margin-left: auto;
    margin-right: auto; /* Centers the phone on its grid track */
    background: #f8fafc;
    
    /* PHYSICAL PHONE FRAME STYLES */
    border-radius: 44px;
    border: 12px solid #09090b; /* Thick dark matte bezel frame */
    position: relative;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 40px 120px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* SMARTPHONE CAMERA NOTCH OVERLAY */
.ai-phone::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 24px;
    background: #09090b; /* Matches phone frame bezel */
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10; /* Keeps notch floating smoothly on top of content */
}

/* INNER SCREEN APP CONTAINER */
.ai-app {
    padding: 24px;
    height: calc(640px - 24px); /* Offsets physical frame boundaries */
    display: flex;
    flex-direction: column;
}

/* SCROLL area FOR CHAT BUBBLES */
.ai-chat-scroller {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 4px;
}


/* HEADER */

.ai-status{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:24px;
    font-weight:700;
    color:#0f172a; /* FIXED: Dark text for light screen */
    padding-top: 12px; /* FIXED: Keeps text safely under the black notch */
}

.online-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#22c55e;
}

/* CHAT */

.chat-message{
    padding:14px;
    border-radius:16px;
    margin-bottom:12px;
    line-height:1.5;
}

.ai-msg{
    background:rgba(59,130,246,.1); /* Soft tint background */
    border:1px solid rgba(59,130,246,.2);
    color:#1e3a8a; /* FIXED: High contrast blue text */
}

.user-msg{
    background:#ffffff; /* FIXED: Solid white background */
    border:1px solid #e2e8f0; /* FIXED: Subtle border */
    margin-left:40px;
    color:#334155; /* FIXED: Dark charcoal text */
}

/* SUPPORT CARD */

.support-card{
    margin-top:25px;
    padding:18px;
    border-radius:18px;
    background:#ffffff; /* FIXED: Solid white background */
    border:1px solid #e2e8f0; /* FIXED: Subtle border */
    color:#475569; /* FIXED: Muted dark gray text */
}

.support-card strong{
    display:block;
    margin-top:8px;
    font-size:24px;
    color:#0f172a; /* FIXED: Deep slate color for bold numbers */
}

/* INPUT CONTAINER */

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px; /* Pill-shaped input bar */
    padding: 6px 6px 6px 14px;
    margin-top: auto; /* Always sticks to the very bottom */
}

/* TEXT FIELD */

.chat-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #0f172a;
}

.chat-input-wrapper input::placeholder {
    color: #94a3b8; /* Muted placeholder text color */
}

/* SEND BUTTON */

.chat-send-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #2563eb; /* Vibrant blue button */
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease;
}

.chat-send-btn:hover {
    background: #1d4ed8; /* Darkens slightly when hovered */
}
/* TYPING INDICATOR */

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* STATUS CHANGER */
.ai-status.typing {
    color: #2563eb; /* Shifts header text to blue when writing */
}

.strategy-phone,
.ai-phone,
.desktop-frame{

    transform-style: preserve-3d;
    perspective: 1200px;

    transition:
        transform .5s ease,
        box-shadow .5s ease;

}
.strategy-phone{

    transform:
        rotateY(-10deg)
        rotateX(6deg);

}

.desktop-frame{

    transform:
        rotateY(10deg)
        rotateX(5deg);

}

.ai-phone{

    transform:
        rotateY(-8deg)
        rotateX(5deg);

}

.strategy-phone::after,
.desktop-frame::after,
.ai-phone::after{

    content:"";

    position:absolute;

    left:50%;
    bottom:-30px;

    width:70%;
    height:30px;

    transform:translateX(-50%);

    background:rgba(59,130,246,.25);

    filter:blur(30px);

    border-radius:50%;

    z-index:-1;

}

.strategy-phone::before,
.ai-phone::before,
.desktop-frame::before{

    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:60%;
    height:100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.18),
            transparent
        );

    transform:skewX(-20deg);

    animation:shine 8s linear infinite;

}

@keyframes shine{

    from{
        left:-120%;
    }

    to{
        left:180%;
    }

}

body::before{

    content:"";

    position:fixed;

    inset:0;

    background-image:

    linear-gradient(
        rgba(255,255,255,.03) 1px,
        transparent 1px
    ),

    linear-gradient(
        90deg,
        rgba(255,255,255,.03) 1px,
        transparent 1px
    );

    background-size:80px 80px;

    perspective:1000px;

    pointer-events:none;

    z-index:-2;

}

.device {
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
}
.phone-device {
    width: 320px;
    height: 640px;
    background: #f8fafc;
}

/* ==========================================================================
   SERVICES SECTION ROW ENGINE (CLEAN & SECURE)
   ========================================================================== */
.services-hero {
    padding-top: 176px; /* Moves the hero block safely down past your header */
    padding-bottom: 96px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Creates a side-by-side split row on desktop viewports */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .hero-text {
        flex: 1;
        max-width: 540px;
    }
    .studio-visual {
        flex: 1;
        margin-top: 0;
    }
}

/* HERO BUTTON ADJUSTMENTS */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.btn-primary {
    display: inline-flex;
    padding: 12px 28px;
    border-radius: 9999px;
    background-color: #3b82f6;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.btn-primary:hover { transform: scale(1.04); }

.btn-secondary {
    display: inline-flex;
    padding: 12px 28px;
    border-radius: 9999px;
    border: 1px solid #27272a;
    font-weight: 600;
    color: #a1a1aa;
    text-decoration: none;
    transition: background 0.2s ease;
}
.btn-secondary:hover { background: #111827; }

/* STUDIO WORKSPACE CANVAS (FIXED CENTERED TRACKING) */
.studio-visual {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 580px;
    margin: 0 auto;
}

.code-editor {
    width: 100%;
    max-width: 480px;
    height: 280px;
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    position: absolute;
    top: 40px;
    left: 50%;                     
    transform: translateX(-50%);   /* Keeps it locked center */
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
    z-index: 5;
}

/* ==========================================================================
   PRODUCT APP CARDS REPOSITIONING (ADD THIS BLOCK TO THE BOTTOM OF YOUR CSS)
   ========================================================================== */
.product {
    position: absolute;
    width: 160px;          
    height: 120px;         
    background: #ffffff;   
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 32px;       
    font-weight: 700;
    color: #0f172a;        
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    opacity: 1;            /* FIX: Forced fallback visibility to bypass GSAP timing crashes */
    z-index: 10;           /* Brings them way out in front of the box container */
}

.product span {
    font-size: 13px;
    color: #475569;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* INDIVIDUAL POSITION COORDS */
.web-app {
    top: 360px;
    left: 5%;            
}

.mobile-app {
    top: 420px;
    left: 50%;
    transform: translateX(-50%); 
}

.ai-app {
    top: 360px;
    right: 5%;           
}

/* ==========================================================================
   SERVICES ROW FLEX CONFIGURATION (FIXES SIDE-BY-SIDE INTERSECTIONS)
   ========================================================================== */
.services-hero {
    padding-top: 176px; /* pt-44 safety clearance past your fixed header */
    padding-bottom: 96px;
    max-width: 1280px;  /* max-w-7xl design spec alignment match */
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Transforms the hero section into a clean side-by-side split screen view on desktop monitors */
@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .hero-text {
        flex: 1;
        max-width: 540px;
    }
    .studio-visual {
        flex: 1;
        margin-top: 0;
    }
}

/* HERO BUTTON CONTAINERS (FIXED: Flex-wrap utility layout blocks collisions) */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 9999px;
    background-color: #3b82f6; /* Tailwind blue-500 match */
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.btn-primary:hover { transform: scale(1.05); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 9999px;
    border: 1px solid #27272a; /* Tailwind zinc-800 match */
    font-weight: 600;
    color: #a1a1aa; /* Tailwind zinc-400 match */
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.btn-secondary:hover { background-color: #18181b; }

/* ==========================================================================
   STUDIO VISUAL PLATFORM STRUCTURES
   ========================================================================== */
.studio-visual {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 580px;
    margin: 0 auto;
}

.code-editor {
    width: 100%;
    max-width: 480px;
    height: 280px;
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    position: absolute;
    top: 40px;
    left: 50%;                     /* Positions absolute element horizontally true center */
    transform: translateX(-50%);   /* Completes precise canvas coordinate locking */
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
    z-index: 5;
}

.editor-bar {
    height: 42px;
    background: #1f2937;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}
.editor-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
}

.editor-body {
    padding: 30px;
    font-family: 'JetBrains Mono', monospace;
    color: #e5e7eb;
    line-height: 2;
}
.success { color: #22c55e; }

/* ==========================================================================
   PRODUCT PLATFORM CARDS (FIXED TRACK ALIGNMENT)
   ========================================================================== */
.product {
    position: absolute;
    width: 150px;          /* Clean, uniform width */
    height: 110px;         
    background: #ffffff;   
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 32px;       
    font-weight: 700;
    color: #0f172a;        
    box-shadow: 0 15px 45px rgba(0,0,0,.25);
    z-index: 10;
    
    /* Hardware accelerated 3D prep states */
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform, top;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.product:hover {
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
}

.product span {
    font-size: 13px;
    color: #475569;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* 
   FIXED GEOMETRY MATCHING:
   We offset the cards based on their widths so they sit perfectly centered 
   at the precise termination points of the lines.
*/
.web-app {
    top: 410px;
    left: 10px;            /* Aligns centered under the 130-degree left laser vector */
}

.mobile-app {
    top: 430px;
    left: 350px;
    transform: translateX(-50%) !important; /* Locks dead center on the 700px wrapper axis */
}

.ai-app {
    top: 410px;
    right: 10px;           /* Aligns centered under the 50-degree right laser vector */
}

/* ==========================================================================
   GLOBAL PROPERTIES & RESET RESETS
   ========================================================================== */
@custom-variant hover-hover (@media (hover: hover));

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0A0A0A;
    color: #FFFFFF;
    overflow-x: hidden;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Selection Highlights */
::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: #FFFFFF;
}

/* Hide Scrollbar for clean aesthetics while maintaining functionality */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #1F2937;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3B82F6;
}

/* ==========================================================================
   GLOBAL ANIMATIONS (ORBS & LOADERS)
   ========================================================================== */
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(70px, -50px) scale(1.1); }
    66% { transform: translate(-40px, 40px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(-60px, 60px) scale(1.15); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    40% { transform: translate(50px, 80px) scale(0.9); }
}

.animate-orb1 { top: -10%; left: -10%; animation: orbFloat1 22s infinite ease-in-out; }
.animate-orb2 { bottom: -15%; right: -5%; animation: orbFloat2 26s infinite ease-in-out; }
.animate-orb3 { top: 40%; left: 30%; animation: orbFloat3 30s infinite ease-in-out; }

/* Page Loader styling */
.page-loader {
    position: fixed;
    inset: 0;
    background: #0A0A0A;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    border-top-color: #3B82F6;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   SERVICES HERO & INTERACTIVE AI DIAGRAM SYSTEM
   ========================================================================== */
.services-hero {
    padding-top: 11rem;
    padding-bottom: 7rem;
    position: relative;
    z-index: 10;
}

.services-hero-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .services-hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.services-text h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #FFFFFF 60%, #A1A1AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) { .services-text h1 { font-size: 4rem; } }

.services-text p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #A1A1AA;
    max-width: 36rem;
}

/* Hub and Spoke Diagram Container */
.services-visual {
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

@media (min-width: 1024px) { .services-visual { margin-top: 0; height: 450px; } }

/* Central Engine Hub */
.ai-core-center {
    position: relative;
    z-index: 20;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 2px solid rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.35), inset 0 0 20px rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(59, 130, 246, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 0 60px rgba(59, 130, 246, 0.55), inset 0 0 25px rgba(59, 130, 246, 0.3); }
}

/* Satellite Spoke Nodes */
.service-node {
    position: absolute;
    z-index: 20;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    background: rgba(24, 24, 27, 0.75);
    border: 1px solid rgba(63, 63, 70, 0.4);
    backdrop-filter: blur(8px);
    font-size: 0.875rem;
    font-weight: 600;
    color: #E4E4E7;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-node:hover {
    border-color: #3B82F6;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

/* Node Positioning Map */
.service-node.web { top: 12%; left: 8%; }
.service-node.mobile { top: 12%; right: 8%; }
.service-node.ai { bottom: 12%; left: 35%; }

@media (max-width: 480px) {
    .service-node.web { top: 5%; left: 2%; }
    .service-node.mobile { top: 5%; right: 2%; }
    .service-node.ai { bottom: 5%; left: 28%; }
}

/* Core Layout Container */
.ecosystem-dashboard {
  display: flex;
  gap: 12px; /* Small layout gap resembles an integrated console */
  max-width: 900px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.01);
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Left Panel Monitor */
.dashboard-display {
  flex: 1.5;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 32px;
}

.display-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #38bdf8;
  margin-bottom: 20px;
}

.status-dot.pulsing {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
}

/* Right Side Tab Blocks */
.dashboard-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Interactive Tabs */
.control-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

/* Hidden side color accent bar to replace connecting tracks */
.accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #38bdf8;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

/* Hover and Active Visual States */
.control-tab:hover, .control-tab.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(56, 189, 248, 0.4);
  padding-left: 26px; /* Smooth shift forward on interact */
}

.control-tab:hover .accent-bar, .control-tab.active .accent-bar {
  transform: scaleY(1);
}

/* ==========================================================================
   DIMMED AI ENGINE DASHBOARD LIGHTING
   ========================================================================== */
.dashboard-display {
  flex: 1.5;
  background: #0b0f19; /* Deep matte black background keeps layout dark */
  border: 1px solid transparent; 
  border-radius: 12px;
  padding: 32px;
  position: relative;
  z-index: 1;
}

/* Subdued, low-intensity outline track */
.dashboard-display::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 13px;
  
  /* Dimmed slate-blue gradient instead of vibrant green-blue neon */
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
  background-size: 200% 100%;
  
  /* Drastically reduced aura glow signature to keep it subtle */
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.1);
  
  z-index: -1;
  animation: dimDashboardTrack 4s linear infinite;
}

/* Subtle inner background ambient light glow */
.dashboard-display::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 12px;
  
  /* Very soft inner radial glow focused in the corner */
  background: radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Slow, gentle movement speed for the dimmed outline */
@keyframes dimDashboardTrack {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}



/* ==========================================================================
   2. THREE SERVICE TABS LIGHTING
   ========================================================================== */
.control-tab {
  background: #0b0f19;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 20px 24px;
  color: #ffffff;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* Neon ring border for all 3 tabs at once */
.control-tab::before {
  content: '';
  position: absolute;
  top: -1.5px; left: -1.5px; right: -1.5px; bottom: -1.5px;
  border-radius: 11px;
  background: linear-gradient(90deg, #38bdf8, #00ff66, #38bdf8, #00ff66);
  background-size: 300% 100%;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4), 0 0 20px rgba(0, 255, 102, 0.2);
  z-index: -1;
  /* Syncs perfectly with the screen animation */
  animation: simultaneousLighting 3s linear infinite;
}


/* ==========================================================================
   3. GLOBAL SHARED ENERGY ANIMATION KEYFRAME
   ========================================================================== */
@keyframes simultaneousLighting {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 300% 0%;
  }
}

/* Dim text slightly on tabs that aren't clicked so the active one stands out */
.control-tab:not(.active) {
  opacity: 0.85;
}


/* ==========================================================================
   BENTO GRID & CARDS STRATEGIC TREATMENT
   ========================================================================== */
.service-card {
    position: relative; /* 🌟 Crucial fix: Keeps SVGs trapped inside the card boundary */
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.9) 100%);
    backdrop-filter: blur(12px);
    overflow: hidden; /* Ensures any oversized vector overflow is cleanly clipped */
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Glow gradient overlay masking trick */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(59, 130, 246, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 30px -10px rgba(59, 130, 246, 0.15);
}

/* Subtle continuous line flow behind delivery milestones */
@media (min-width: 768px) {
    .grid-delivery-flow {
        position: relative;
    }
    .grid-delivery-flow::after {
        content: '';
        position: absolute;
        top: 2.75rem;
        left: 10%;
        width: 80%;
        height: 1px;
        background: linear-gradient(90deg, rgba(59,130,246,0.3) 0%, rgba(24,24,27,1) 100%);
        z-index: 1;
        pointer-events: none;
    }
}

/* ==========================================================================
   SCROLL ENGINE REVEAL REVISIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   BENTO SVG KINETIC ANIMATIONS
   ========================================================================== */

/* Card 01 & 06 - Wave float animation */
@keyframes svgWaveFloat {
    0%, 100% { transform: translateY(4px) scale(1); }
    50% { transform: translateY(-4px) scale(1.02); }
}
.animate-svg-wave {
    animation: svgWaveFloat 6s infinite ease-in-out;
}

/* Card 02 - Subtle breathing pulse for AI nodes */
@keyframes svgPulseNodes {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.03); }
}
.animate-svg-pulse {
    transform-origin: bottom right;
    animation: svgPulseNodes 4s infinite ease-in-out;
}

/* Card 03 - Code brackets shifting gently inward/outward */
@keyframes svgBrackets {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-6px); }
}
.animate-svg-brackets {
    animation: svgBrackets 3s infinite ease-in-out;
}

/* Card 04 & 05 - Grid parallax shift */
@keyframes svgUiShift {
    0%, 100% { transform: translate(0px, 4px); }
    50% { transform: translate(-4px, -2px); }
}
.animate-svg-ui {
    animation: svgUiShift 8s infinite ease-in-out;
}

/* Hover acceleration modifier rules */
.service-card:hover .animate-svg-wave { animation-duration: 3s; }
.service-card:hover .animate-svg-pulse { animation-duration: 2s; }
.service-card:hover .animate-svg-brackets { animation-duration: 1.5s; }
.service-card:hover .animate-svg-ui { animation-duration: 4s; }

.delivery-stream-line {
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

/* ==========================================================================
   MAGNETIC INTERACTION REFINEMENTS
   ========================================================================== */
.magnetic-btn {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.magnetic-btn .btn-text {
    will-change: transform;
    display: inline-block;
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Override your old hover utility rule to prevent physics conflicts */
.magnetic-btn:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.45);
}

