/* ============================================================
   AI Agent Development - Standalone Page Styles
   Theme: Light, Futuristic, Enterprise-level, Premium
   Brand Colors: Deep navy-slate (#1a2e44), Magenta-rose (#B5246A)
   ============================================================ */

/* --- VARIABLES --- */
:root {
  --agent-primary: var(--clr-primary, #1a2e44);
  --agent-accent: var(--clr-accent, #B5246A);
  --agent-accent-light: var(--clr-accent-light, #C94985);
  --agent-surface: var(--clr-surface, #ffffff);
  --agent-surface-alt: var(--clr-surface-2, #f8f7f4);
  --agent-text: var(--clr-text, #1c1c1e);
  --agent-text-muted: var(--clr-text-muted, #4a4a58);
  --agent-border: var(--clr-border, #e8e4dc);
  --agent-radius: 16px;
  --agent-radius-lg: 24px;
}

/* --- GLOBAL LAYOUT --- */
.aad-page {
  background: var(--agent-surface);
  color: var(--agent-text);
  overflow: hidden;
  font-family: var(--font-sans);
}

.aad-container {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.aad-section {
  padding: 6rem 0;
  position: relative;
}

.aad-title-font {
  font-family: var(--font-headings);
}

/* --- HERO SECTION --- */
.aad-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #f0f4f8 0%, var(--agent-surface) 70%);
  padding-top: 8rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.aad-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(26, 46, 68, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 46, 68, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

.aad-hero-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(181, 36, 106, 0.08) 0%, transparent 60%);
  top: -10%;
  right: -5%;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: aadPulse 8s infinite alternate ease-in-out;
}

.aad-hero-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 46, 68, 0.06) 0%, transparent 60%);
  bottom: 0%;
  left: -5%;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: aadPulse 10s infinite alternate-reverse ease-in-out;
}

@keyframes aadPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.1) translate(-20px, 20px); opacity: 1; }
}

.aad-hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aad-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(181, 36, 106, 0.08);
  border: 1px solid rgba(181, 36, 106, 0.15);
  border-radius: 100px;
  color: var(--agent-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  animation: aadFadeUp 0.8s ease-out forwards;
}

.aad-hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--agent-accent);
  box-shadow: 0 0 8px var(--agent-accent);
}

.aad-hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: var(--agent-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  font-weight: 700;
  opacity: 0;
  animation: aadFadeUp 0.8s ease-out 0.2s forwards;
}

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

.aad-hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--agent-text-muted);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: aadFadeUp 0.8s ease-out 0.4s forwards;
}

.aad-hero-cta {
  opacity: 0;
  animation: aadFadeUp 0.8s ease-out 0.6s forwards;
}

/* Floating Tech Tags */
.aad-floating-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.aad-tag {
  position: absolute;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--agent-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--agent-primary);
  box-shadow: 0 8px 24px rgba(26, 46, 68, 0.06);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: aadFloat 6s ease-in-out infinite;
}

.aad-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--agent-accent);
}

.aad-tag-1 { top: 25%; left: 15%; animation-delay: 0s; }
.aad-tag-2 { top: 40%; right: 12%; animation-delay: 1s; }
.aad-tag-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.aad-tag-4 { bottom: 20%; right: 18%; animation-delay: 1.5s; }
.aad-tag-5 { top: 15%; right: 25%; animation-delay: 0.5s; }

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

@keyframes aadFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- SECTION HEADER --- */
.aad-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.aad-section-label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--agent-accent);
  margin-bottom: 1rem;
}

.aad-section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--agent-primary);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.aad-section-desc {
  font-size: 1.1rem;
  color: var(--agent-text-muted);
  line-height: 1.7;
}

/* --- SECTION 1: AI CAPABILITIES (Visual Storytelling) --- */
.aad-capabilities {
  background: var(--agent-surface);
  position: relative;
}

.aad-cap-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.aad-cap-row {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  min-height: 320px;
}

.aad-cap-row:nth-child(even) {
  flex-direction: row-reverse;
}

.aad-cap-content {
  flex: 1;
  background: var(--agent-surface-alt);
  border-radius: var(--agent-radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(26, 46, 68, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.aad-cap-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--agent-accent);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: bottom;
}

.aad-cap-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(26, 46, 68, 0.08);
}

.aad-cap-content:hover::before {
  transform: scaleY(1);
}

.aad-cap-icon {
  width: 56px;
  height: 56px;
  background: var(--agent-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--agent-accent);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(26, 46, 68, 0.05);
}

.aad-cap-title {
  font-size: 1.8rem;
  color: var(--agent-primary);
  margin-bottom: 1rem;
}

.aad-cap-desc {
  color: var(--agent-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.aad-cap-visual {
  flex: 1;
  border-radius: var(--agent-radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(26, 46, 68, 0.08);
}

.aad-cap-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.aad-cap-row:hover .aad-cap-img {
  transform: scale(1.03);
}

/* --- SECTION 2: WORKFLOW EXPERIENCE --- */
.aad-workflow {
  background: var(--agent-surface-alt);
  padding: 8rem 0;
}

.aad-flow-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

/* The connecting line */
.aad-flow-line {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(26, 46, 68, 0.1);
  z-index: 1;
}

.aad-flow-line-active {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--agent-accent), transparent);
  animation: aadFlowAnim 4s linear infinite;
  background-size: 200% 100%;
}

@keyframes aadFlowAnim {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.aad-flow-step {
  flex: 1;
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}

.aad-flow-node {
  width: 64px;
  height: 64px;
  background: var(--agent-surface);
  border: 2px solid var(--agent-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--agent-primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(26, 46, 68, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.aad-flow-step:hover .aad-flow-node {
  border-color: var(--agent-accent);
  color: var(--agent-accent);
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(181, 36, 106, 0.15);
}

.aad-flow-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--agent-primary);
  margin-bottom: 0.5rem;
}

.aad-flow-desc {
  font-size: 0.9rem;
  color: var(--agent-text-muted);
  line-height: 1.5;
}

/* --- SECTION 3: ENTERPRISE OUTCOMES --- */
.aad-outcomes {
  background: var(--agent-surface);
}

.aad-outcomes-comp {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.aad-outcome-box {
  background: var(--agent-surface-alt);
  border-radius: var(--agent-radius);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--agent-border);
  transition: all 0.4s ease;
}

.aad-outcome-box:hover {
  background: var(--agent-primary);
  border-color: var(--agent-primary);
}

.aad-outcome-box::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(181, 36, 106, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s;
}

.aad-outcome-box:hover::after { opacity: 1; }

.aad-outcome-icon {
  font-size: 2.5rem;
  color: var(--agent-primary);
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.aad-outcome-box:hover .aad-outcome-icon {
  color: var(--agent-accent-light);
}

.aad-outcome-title {
  font-size: 1.5rem;
  color: var(--agent-primary);
  margin-bottom: 1rem;
  transition: color 0.4s ease;
  font-family: var(--font-headings);
}

.aad-outcome-desc {
  color: var(--agent-text-muted);
  line-height: 1.6;
  transition: color 0.4s ease;
}

.aad-outcome-box:hover .aad-outcome-title,
.aad-outcome-box:hover .aad-outcome-desc {
  color: #ffffff;
}

.aad-outcome-box:hover .aad-outcome-desc {
  opacity: 0.8;
}

/* --- SECTION 4: COMPACT CTA --- */
.aad-cta {
  padding: 4rem 0;
  background: var(--agent-surface);
}

.aad-cta-inner {
  background: linear-gradient(135deg, var(--agent-primary) 0%, #2c4a6e 100%);
  border-radius: var(--agent-radius-lg);
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(26, 46, 68, 0.15);
}

.aad-cta-inner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(181, 36, 106, 0.2) 0%, transparent 70%);
  transform: rotate(-15deg);
}

.aad-cta-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.aad-cta-title {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-family: var(--font-headings);
}

.aad-cta-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.aad-cta-action {
  position: relative;
  z-index: 2;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .aad-cap-row {
    flex-direction: column !important;
  }
  .aad-cap-visual {
    min-height: 250px;
  }
  .aad-flow-container {
    flex-direction: column;
    gap: 3rem;
  }
  .aad-flow-line {
    top: 0; left: 34px; bottom: 0; right: auto;
    width: 2px; height: 100%;
    transform: none;
  }
  .aad-flow-line-active {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, var(--agent-accent), transparent);
    background-size: 100% 200%;
  }
  .aad-flow-step {
    flex-direction: row;
    text-align: left;
    width: 100%;
    max-width: 400px;
    gap: 1.5rem;
  }
  .aad-flow-node {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .aad-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .aad-hero {
    padding-top: 6rem;
    min-height: 80vh;
  }
  .aad-floating-tags {
    display: none;
  }
  .aad-outcomes-comp {
    grid-template-columns: 1fr;
  }
  .aad-section {
    padding: 4rem 0;
  }
}
