/* ============================================================
   AI App Development (Mobile) - Unique Styling
   Theme: Light, Futuristic AI Ecosystem, Neural Layouts
   ============================================================ */

/* --- AI HERO --- */
.ai-hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-surface);
  padding-top: 5rem;
}

.ai-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(181,36,106,0.05) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(26,46,68,0.05) 0%, transparent 40%);
  z-index: 0;
}

.ai-hero-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.ai-hero-content {
  flex: 1;
  max-width: 800px;
}

.ai-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(181,36,106,0.1);
  color: var(--clr-accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(181,36,106,0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.ai-title span {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ai-desc {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}



/* --- SMART ASSISTANT UI --- */
.ai-smart-sec {
  padding: 6rem 0;
  background: var(--clr-surface-2);
  position: relative;
  overflow: hidden;
}

.ai-smart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ai-smart-visual {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.4) 100%);
  box-shadow: 0 20px 50px rgba(26,46,68,0.05);
  border: 1px solid rgba(255,255,255,0.8);
}

.ai-smart-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.ai-neural-node {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--clr-accent);
  border-radius: 50%;
  top: -20px;
  right: -20px;
  z-index: 1;
  opacity: 0.2;
  filter: blur(20px);
  animation: pulseNode 3s infinite;
}

@keyframes pulseNode {
  0% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 0.2; }
}

.ai-smart-content h2 {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
}

.ai-smart-content p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ai-feature-boxes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ai-fb {
  background: var(--clr-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(26,46,68,0.03);
  border-left: 4px solid var(--clr-accent);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ai-fb:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 25px rgba(26,46,68,0.08);
}

.ai-fb h4 {
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.ai-fb p {
  margin: 0;
  font-size: 0.95rem;
}

/* --- WORKFLOW STORYTELLING --- */
.ai-workflow-sec {
  padding: 6rem 0;
  background: var(--clr-surface);
  text-align: center;
}

.ai-workflow-header {
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.ai-workflow-header h2 {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

.ai-workflow-header p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
}

.ai-workflow-path {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

.ai-workflow-path::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: 0.3;
  z-index: 0;
}

.ai-step {
  flex: 1;
  background: var(--clr-surface-2);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  border: 1px solid var(--clr-border);
  box-shadow: 0 10px 30px rgba(26,46,68,0.02);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ai-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(181,36,106,0.08);
  border-color: rgba(181,36,106,0.3);
}

.ai-step-icon {
  width: 70px;
  height: 70px;
  background: var(--clr-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2rem;
  color: var(--clr-accent);
  box-shadow: 0 5px 15px rgba(26,46,68,0.05);
  border: 2px solid var(--clr-border);
  transition: all 0.3s;
}

.ai-step:hover .ai-step-icon {
  background: var(--clr-accent);
  color: white;
  border-color: var(--clr-accent);
}

.ai-step h3 {
  font-size: 1.3rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

.ai-step p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- GENERATIVE AI CAPABILITIES --- */
.ai-gen-sec {
  padding: 6rem 0;
  background: var(--clr-surface-2);
}

.ai-gen-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.ai-gen-header h2 {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

.ai-gen-header p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
}

.ai-gen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ai-gen-card {
  background: var(--clr-surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26,46,68,0.03);
  transition: all 0.4s ease;
}

.ai-gen-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26,46,68,0.08);
  border-color: var(--clr-accent-pale);
}

.ai-gen-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--clr-accent);
  opacity: 0.05;
  filter: blur(40px);
  border-radius: 50%;
  transition: opacity 0.4s ease;
}

.ai-gen-card:hover .ai-gen-glow {
  opacity: 0.15;
}

.ai-gen-icon {
  width: 50px;
  height: 50px;
  background: var(--clr-surface-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
  border: 1px solid var(--clr-border);
  transition: all 0.3s ease;
}

.ai-gen-card:hover .ai-gen-icon {
  background: var(--clr-accent);
  color: white;
  border-color: var(--clr-accent);
}

.ai-gen-card h3 {
  font-size: 1.25rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}

.ai-gen-card p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- AUTONOMOUS AGENTIC MODULES --- */
.ai-agent-sec {
  padding: 6rem 0;
  background: var(--clr-surface);
  position: relative;
}

.ai-agent-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ai-agent-content h2 {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
}

.ai-agent-content p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.ai-agent-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ai-agent-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.ai-agent-list i {
  font-size: 1.5rem;
  color: var(--clr-accent);
  background: var(--clr-accent-pale);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
}

.ai-agent-list strong {
  display: block;
  font-size: 1.1rem;
  color: var(--clr-primary);
  margin-bottom: 0.3rem;
}

.ai-agent-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--clr-text-muted);
}

.ai-agent-visual {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 3rem;
  background: linear-gradient(135deg, rgba(26,46,68,0.03) 0%, rgba(26,46,68,0.08) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-agent-glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(26,46,68,0.1);
  border: 1px solid rgba(255,255,255,1);
  width: 100%;
  max-width: 350px;
  position: relative;
}

.ai-pulse-ring {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ai-agent-glass h3 {
  font-size: 1.1rem;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-agent-stat {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(26,46,68,0.1);
}

.ai-agent-stat:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ai-agent-stat span {
  display: block;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 0.3rem;
}

.ai-agent-stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--clr-primary);
  font-family: var(--font-headings);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .ai-hero-container, .ai-smart-grid, .ai-gen-grid, .ai-agent-layout {
    flex-direction: column;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ai-hero-content {
    align-items: center;
  }
  .ai-workflow-path {
    flex-direction: column;
  }
  .ai-workflow-path::before {
    display: none;
  }
  .ai-agent-list li {
    text-align: left;
  }
}
