/* =========================================
   SUPER APP DEVELOPMENT - PREMIUM SAAS STYLES
   ========================================= */

/* Hero Section */
.sa-hero {
  position: relative;
  padding: 180px 0 100px;
  background: var(--clr-surface-2);
  overflow: hidden;
  text-align: center;
  z-index: 1;
}
.sa-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 20% -20%, rgba(181, 36, 106, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 120%, rgba(26, 46, 68, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--clr-surface-2) 0%, var(--clr-surface) 100%);
  z-index: -1;
}
.sa-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--clr-primary) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  opacity: 0.04;
}
.sa-hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.sa-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: rgba(181, 36, 106, 0.08);
  border: 1px solid rgba(181, 36, 106, 0.15);
  color: var(--clr-accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(181, 36, 106, 0.05);
}
.sa-title {
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--clr-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.sa-title span {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.sa-desc {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 40px;
}
.sa-cta {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  box-shadow: 0 10px 25px rgba(26, 46, 68, 0.2);
  border: none;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.sa-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(26, 46, 68, 0.3);
  background: linear-gradient(135deg, var(--clr-primary-light) 0%, var(--clr-primary) 100%);
}

/* Sections Global */
.sa-section {
  padding: 120px 0;
  position: relative;
}
.sa-section-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--clr-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.sa-section-desc {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 48px;
}

/* Ecosystem Grid (Section 1) */
.sa-ecosystem-sec {
  background: var(--clr-surface);
}
.sa-eco-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}
.sa-eco-header h2 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--clr-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.sa-eco-header p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}
.sa-eco-grid {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.sa-eco-core {
  position: relative;
  z-index: 10;
  background: var(--clr-surface);
  border: 2px solid rgba(181, 36, 106, 0.2);
  border-radius: 50%;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 30px 60px rgba(26, 46, 68, 0.08),
    inset 0 0 30px rgba(181, 36, 106, 0.05);
  text-align: center;
  transform-style: preserve-3d;
  animation: core-hover 6s ease-in-out infinite alternate;
}
@keyframes core-hover {
  0% { transform: translateZ(0px) translateY(0); }
  100% { transform: translateZ(40px) translateY(-10px); }
}
.sa-core-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 36, 106, 0.1) 0%, transparent 70%);
  animation: pulse-ring 3s infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
.sa-core-icon {
  font-size: 3.5rem;
  color: var(--clr-accent);
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(181, 36, 106, 0.3));
}
.sa-eco-core h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-primary);
  margin-bottom: 4px;
}
.sa-eco-core p {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.3;
  padding: 0 15px;
}
.sa-eco-orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-15deg);
  width: 600px; height: 600px;
  border: 1px dashed rgba(26, 46, 68, 0.15);
  border-radius: 50%;
  z-index: 1;
  transform-style: preserve-3d;
  animation: orbit-spin 40s linear infinite;
}
@keyframes orbit-spin {
  0% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
  100% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); }
}
.sa-eco-node {
  position: absolute;
  width: 90px; height: 90px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(26, 46, 68, 0.06);
  transform: translate(-50%, -50%) rotateX(-60deg); 
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  cursor: pointer;
}
/* Revert the rotation for nodes so they face forward */
.sa-eco-node.n1 { top: 0; left: 50%; transform: translate(-50%, -50%) rotateZ(0deg) rotateX(-60deg); }
.sa-eco-node.n2 { top: 25%; left: 93.3%; transform: translate(-50%, -50%) rotateZ(-60deg) rotateX(-60deg); }
.sa-eco-node.n3 { top: 75%; left: 93.3%; transform: translate(-50%, -50%) rotateZ(-120deg) rotateX(-60deg); }
.sa-eco-node.n4 { top: 100%; left: 50%; transform: translate(-50%, -50%) rotateZ(-180deg) rotateX(-60deg); }
.sa-eco-node.n5 { top: 75%; left: 6.7%; transform: translate(-50%, -50%) rotateZ(-240deg) rotateX(-60deg); }
.sa-eco-node.n6 { top: 25%; left: 6.7%; transform: translate(-50%, -50%) rotateZ(-300deg) rotateX(-60deg); }

.sa-eco-node:hover {
  background: var(--clr-surface);
  box-shadow: 0 25px 50px rgba(181, 36, 106, 0.15);
  border-color: var(--clr-accent);
  z-index: 20;
}
.sa-eco-node i {
  font-size: 2rem;
  color: var(--clr-primary);
  margin-bottom: 6px;
  transition: color 0.3s;
}
.sa-eco-node:hover i {
  color: var(--clr-accent);
}
.sa-eco-node h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-text-muted);
}

/* Capabilities (Section 2) */
.sa-capabilities-sec {
  background: var(--clr-surface-2);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.sa-cap-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sa-cap-list {
  list-style: none;
}
.sa-cap-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid transparent;
  box-shadow: 0 4px 15px rgba(26, 46, 68, 0.02);
  transition: all 0.4s ease;
}
.sa-cap-list li:hover {
  transform: translateX(10px);
  border-color: rgba(181, 36, 106, 0.2);
  box-shadow: 0 15px 35px rgba(26, 46, 68, 0.06);
}
.sa-cap-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(181, 36, 106, 0.1) 0%, rgba(181, 36, 106, 0.02) 100%);
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-right: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(181, 36, 106, 0.1);
}
.sa-cap-text strong {
  display: block;
  font-size: 1.2rem;
  color: var(--clr-primary);
  margin-bottom: 8px;
}
.sa-cap-text span {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}
.sa-cap-visual {
  perspective: 1000px;
}
.sa-glass-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 
    0 40px 80px rgba(26, 46, 68, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
  position: relative;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.sa-glass-panel:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
}
.sa-glass-header {
  background: rgba(26, 46, 68, 0.03);
  padding: 16px 24px;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
}
.sa-glass-header .dot {
  width: 12px; height: 12px; border-radius: 50%; margin-right: 8px;
}
.sa-glass-header .dot.r { background: #ff5f56; }
.sa-glass-header .dot.y { background: #ffbd2e; }
.sa-glass-header .dot.g { background: #27c93f; }
.sa-glass-header .title {
  margin-left: auto; margin-right: auto;
  font-size: 0.85rem; font-weight: 600; color: var(--clr-text-muted);
  letter-spacing: 1px; text-transform: uppercase;
}
.sa-glass-body {
  padding: 40px;
}
.sa-module-block {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.sa-module-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(26, 46, 68, 0.1);
}
.sa-module-block::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
}
.sa-module-block:hover::after {
  animation: shine 1s;
}
@keyframes shine { 100% { left: 200%; } }
.sa-module-block.primary {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: #fff;
  border: none;
}
.sa-module-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.sa-module-row:last-child {
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 0;
}
.sa-module-block.secondary {
  background: rgba(181, 36, 106, 0.05);
  color: var(--clr-accent);
  border: 1px solid rgba(181, 36, 106, 0.15);
}
.sa-module-block.tertiary {
  background: var(--clr-surface-2);
  border: 1px dashed var(--clr-border);
  color: var(--clr-text-muted);
}

/* Workflow (Section 3) */
.sa-workflow-sec {
  background: var(--clr-surface);
}
.sa-workflow-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.sa-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.sa-workflow-grid::before {
  content: '';
  position: absolute;
  top: 50px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(181, 36, 106, 0.2), transparent);
  z-index: 0;
}
.sa-flow-card {
  position: relative;
  padding: 40px 32px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(26, 46, 68, 0.02);
  z-index: 1;
}
.sa-flow-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(26, 46, 68, 0.08);
  border-color: rgba(181, 36, 106, 0.2);
}
.sa-flow-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(26, 46, 68, 0.04);
  margin-bottom: 24px;
  line-height: 1;
  transition: color 0.4s;
}
.sa-flow-card:hover .sa-flow-number {
  color: rgba(181, 36, 106, 0.1);
}
.sa-flow-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--clr-primary);
}
.sa-flow-text {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}
.sa-flow-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-light));
  transition: width 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.sa-flow-card:hover .sa-flow-bar {
  width: 100%;
}

@media (max-width: 992px) {
  .sa-cap-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .sa-workflow-grid::before { display: none; }
}
@media (max-width: 768px) {
  .sa-title { font-size: 2.8rem; }
  .sa-eco-grid { height: 400px; perspective: 800px; }
  .sa-eco-orbit { width: 340px; height: 340px; transform: translate(-50%, -50%) rotateX(50deg) rotateZ(-15deg); }
  .sa-eco-core { width: 140px; height: 140px; }
  .sa-core-icon { font-size: 2rem; }
  .sa-eco-node { width: 60px; height: 60px; border-radius: 12px; }
  .sa-eco-node i { font-size: 1.2rem; }
  .sa-eco-node h4 { font-size: 0.6rem; }
  
  /* Adjusted mobile rotations to keep nodes flat */
  .sa-eco-node.n1 { transform: translate(-50%, -50%) rotateZ(0deg) rotateX(-50deg); }
  .sa-eco-node.n2 { transform: translate(-50%, -50%) rotateZ(-60deg) rotateX(-50deg); }
  .sa-eco-node.n3 { transform: translate(-50%, -50%) rotateZ(-120deg) rotateX(-50deg); }
  .sa-eco-node.n4 { transform: translate(-50%, -50%) rotateZ(-180deg) rotateX(-50deg); }
  .sa-eco-node.n5 { transform: translate(-50%, -50%) rotateZ(-240deg) rotateX(-50deg); }
  .sa-eco-node.n6 { transform: translate(-50%, -50%) rotateZ(-300deg) rotateX(-50deg); }
  
  .sa-workflow-grid { grid-template-columns: 1fr; gap: 24px; }
}
