/* =========================================================================
   PAGE: CAPABILITIES/AGENTIC-DEVELOPMENT
   ========================================================================= */

/* ---- Agentic Hero Block ---- */
/* Scoped under #agentic-hero for encapsulation */

#agentic-hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background: #090909;
}

/* Background image layer */
#agentic-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#agentic-hero .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

/* Dark blur overlay */
#agentic-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2;
}

/* Fractal noise (film grain) overlay */
#agentic-hero .hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 3;
}

/* Content container */
#agentic-hero .hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  padding: 3rem 1.25rem 4rem;
  width: 100%;
}

@media (min-width: 768px) {
  #agentic-hero .hero-content {
    padding: 4rem 2.5rem 5rem;
  }
}

@media (min-width: 1024px) {
  #agentic-hero .hero-content {
    padding: 5rem 5rem 6rem;
  }
}

/* Title */
#agentic-hero .hero-title {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: var(--fw-normal);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 1000px;
}

/* Subtitle */
#agentic-hero .hero-subtitle {
  max-width: 700px;
  font-weight: var(--fw-extralight);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #b6b6b6;
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

/* CTA Button */
#agentic-hero .hero-cta {
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  padding: 1rem 2rem;
  border-radius: var(--radius);
}


/* ---- Agentic Section 1 — "What We Can Build For You" ---- */
/* Scoped under #agentic-section-1 for encapsulation */

#agentic-section-1 {
  background: #ffffff;
  padding: 5rem 1.25rem;
}

@media (min-width: 768px) {
  #agentic-section-1 {
    padding: 6rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  #agentic-section-1 {
    padding: 7rem 5rem;
  }
}

/* Inner wrapper */
#agentic-section-1 .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
#agentic-section-1 .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

#agentic-section-1 .section-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: var(--fw-normal);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  font-style: italic;
}

#agentic-section-1 .section-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.125rem);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* Top row — 3 cards */
#agentic-section-1 .cards-row-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  #agentic-section-1 .cards-row-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #agentic-section-1 .cards-row-top {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Bottom row — 2 cards, centered */
#agentic-section-1 .cards-row-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 66.666%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  #agentic-section-1 .cards-row-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  #agentic-section-1 .cards-row-bottom {
    max-width: 100%;
  }
}

/* Card item */
#agentic-section-1 .card-item {
  border: 1px solid #d9d9d9;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  background: #ffffff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#agentic-section-1 .card-item:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Card header — number + title */
#agentic-section-1 .card-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d9d9d9;
}

#agentic-section-1 .card-number {
  color: var(--red-1);
  font-weight: var(--fw-medium);
  font-size: 0.875rem;
}

#agentic-section-1 .card-title {
  color: var(--color-text);
  font-weight: var(--fw-semibold);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline;
}

/* Card body */
#agentic-section-1 .card-body {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-weight: var(--fw-light);
  color: var(--color-text);
  line-height: 1.65;
}


/* ============================================
   Block: agentic-section-2 — "What We've Built"
   Showcase cards with product mockup images
   ============================================ */

#agentic-section-2 {
  background: #fff;
  padding: 80px 0 100px;
}

#agentic-section-2 .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */

#agentic-section-2 .section-header {
  text-align: center;
  margin-bottom: 56px;
}

#agentic-section-2 .section-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #8f8f8f;
  text-transform: uppercase;
  margin-bottom: 24px;
}

#agentic-section-2 .section-subtitle {
  font-size: 42px;
  font-weight: 300;
  color: #8f8f8f;
  margin: 0 0 8px;
  line-height: 1.2;
}

#agentic-section-2 .section-title {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1d;
  margin: 0;
  line-height: 1.2;
}

/* ---------- Cards row ---------- */

#agentic-section-2 .cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Individual card ---------- */

#agentic-section-2 .showcase-card {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* Card text content area */
#agentic-section-2 .card-content {
  padding: 32px 28px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card logo image (Relmo) */
#agentic-section-2 .card-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Card icon (AI Beauty Advisor) */
#agentic-section-2 .card-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 16px;
}

/* VisibleBrands logo-text combo */
#agentic-section-2 .card-logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

#agentic-section-2 .vb-logo-icon {
  font-size: 20px;
  font-weight: 800;
  color: #1d1d1d;
  letter-spacing: -1px;
}

#agentic-section-2 .vb-logo-icon sub {
  font-size: 14px;
  vertical-align: baseline;
}

#agentic-section-2 .vb-logo-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1d1d1d;
  text-transform: uppercase;
}

/* Card title */
#agentic-section-2 .card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1d1d1d;
  margin: 0 0 16px;
}

/* Card description */
#agentic-section-2 .card-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: #424242;
  margin: 0;
  max-width: 340px;
}

/* Card mockup image area */
#agentic-section-2 .card-image {
  flex: 1;
  min-height: 260px;
  overflow: hidden;
}

#agentic-section-2 .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  #agentic-section-2 .section-subtitle {
    font-size: 32px;
  }

  #agentic-section-2 .section-title {
    font-size: 36px;
  }

  #agentic-section-2 .cards-row {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  #agentic-section-2 .card-image {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  #agentic-section-2 {
    padding: 48px 0 64px;
  }

  #agentic-section-2 .section-inner {
    padding: 0 20px;
  }

  #agentic-section-2 .section-subtitle {
    font-size: 24px;
  }

  #agentic-section-2 .section-title {
    font-size: 28px;
  }

  #agentic-section-2 .section-header {
    margin-bottom: 36px;
  }
}


/* =========================================================================
   AGENTIC DEVELOPMENT - SECTION 3
   ========================================================================= */

#agentic-section-3 {
  padding: 100px 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

#agentic-section-3 .section-inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 40px;
}

#agentic-section-3 .section-title {
  text-align: center;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

#agentic-section-3 .content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

/* -------------------------------------------------------------------------
   Image Left Column
   ------------------------------------------------------------------------- */
#agentic-section-3 .image-column {
  position: relative;
  width: 100%;
}

#agentic-section-3 .image-column img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  /* Replicate the feathered edge mask from the design */
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

/* -------------------------------------------------------------------------
   Accordion Right Column
   ------------------------------------------------------------------------- */
#agentic-section-3 .accordion-column {
  display: flex;
  flex-direction: column;
  padding-top: 40px; /* Align visually with image */
}

#agentic-section-3 .accordion-item {
  border-bottom: 1px solid var(--border-color, #EAEAEA);
  padding: 24px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

#agentic-section-3 .accordion-item:first-child {
  border-top: none; /* or use a border if needed, screenshot shows no top border on first item */
}

#agentic-section-3 .accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#agentic-section-3 .accordion-header h3 {
  font-size: 22px;
  font-weight: 400; /* Regular weight, turning active to medium */
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

#agentic-section-3 .accordion-body {
  display: none;
  padding-top: 16px;
  padding-bottom: 8px;
}

#agentic-section-3 .accordion-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary, #666);
  max-width: 90%;
}

#agentic-section-3 .active-line {
  height: 2px;
  width: 80px;
  background-color: var(--primary-color, #E30613);
  margin-top: 24px;
}

#agentic-section-3 .icon-toggle {
  transition: transform 0.3s ease;
  transform: rotate(180deg); /* points down by default */
}

/* Active State */
#agentic-section-3 .accordion-item.active .accordion-body {
  display: block;
  animation: fadeIn 0.3s ease;
}

#agentic-section-3 .accordion-item.active .accordion-header h3 {
  font-weight: 600;
}

#agentic-section-3 .accordion-item.active .icon-toggle {
  transform: rotate(0deg); /* points up when active */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  #agentic-section-3 .content-grid {
    gap: 40px;
  }
  #agentic-section-3 .accordion-column {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  #agentic-section-3 .content-grid {
    grid-template-columns: 1fr;
  }
  
  #agentic-section-3 .section-inner {
    padding: 0 24px;
  }

  #agentic-section-3 .image-column {
    order: 2; /* Move image below accordion on mobile if preferred, or leave as order 1 */
    margin-top: 40px;
  }

  #agentic-section-3 .accordion-column {
    order: 1; 
  }
}


/* =========================================================================
   AGENTIC DEVELOPMENT - SECTION 4 (Research & Insights)
   ========================================================================= */

#agentic-section-4 {
  padding: 120px 0;
  background-color: var(--bg-secondary, #F9F9FB); /* Subtle grey matching design */
  color: var(--text-primary);
}

#agentic-section-4 .section-inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 40px;
}

/* -------------------------------------------------------------------------
   Header Area
   ------------------------------------------------------------------------- */
#agentic-section-4 .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Align bottom of title block with button */
  margin-bottom: 60px;
}

#agentic-section-4 .header-content {
  max-width: 600px;
}

#agentic-section-4 .section-label {
  display: inline-block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #666);
  margin-bottom: 16px;
}

#agentic-section-4 .section-title {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

#agentic-section-4 .section-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary, #666);
  margin: 0;
  line-height: 1.4;
}

/* Button override for inline appearance if .btn isn't globally perfect */
#agentic-section-4 .btn-primary {
  display: inline-block;
  background-color: var(--primary-color, #E30613);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

#agentic-section-4 .btn-primary:hover {
  background-color: #C00510;
}

/* -------------------------------------------------------------------------
   Cards Grid
   ------------------------------------------------------------------------- */
#agentic-section-4 .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

#agentic-section-4 .blog-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border-color, #EAEAEA);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

#agentic-section-4 .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

#agentic-section-4 .card-image-wrapper {
  width: 100%;
  border-bottom: 1px solid var(--border-color, #EAEAEA);
}

#agentic-section-4 .card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

#agentic-section-4 .card-content {
  padding: 28px 24px 32px;
  flex-grow: 1;
}

#agentic-section-4 .card-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

#agentic-section-4 .card-excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary, #666);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
  #agentic-section-4 .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #agentic-section-4 .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  #agentic-section-4 .cards-grid {
    grid-template-columns: 1fr;
  }
  
  #agentic-section-4 .section-inner {
    padding: 0 24px;
  }
}


/* =========================================================================
   AGENTIC DEVELOPMENT - SECTION 5 (CTA)
   ========================================================================= */

#agentic-section-5 {
  position: relative;
  padding: 140px 0;
  color: var(--text-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------------
   Background & Overlays
   ------------------------------------------------------------------------- */
#agentic-section-5 .background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#agentic-section-5 .bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* Desaturate and lighten slightly for readability if needed, but overlay handles most of it */
}

/* White feathered overlay to mimic the Figma design */
#agentic-section-5 .bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.4) 20%, rgba(255,255,255,0.4) 80%, rgba(255,255,255,1) 100%),
    linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 25%, rgba(255,255,255,0) 75%, rgba(255,255,255,1) 100%),
    radial-gradient(circle at center, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 100%);
}

/* -------------------------------------------------------------------------
   Content Area
   ------------------------------------------------------------------------- */
#agentic-section-5 .section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

#agentic-section-5 .cta-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

#agentic-section-5 .section-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 48px 0;
  letter-spacing: -0.02em;
}

/* -------------------------------------------------------------------------
   Timeline Cards
   ------------------------------------------------------------------------- */
#agentic-section-5 .timeline-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

#agentic-section-5 .timeline-card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#agentic-section-5 .timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

#agentic-section-5 .card-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: var(--text-primary);
}

#agentic-section-5 .card-desc {
  font-size: 16px;
  color: var(--text-secondary, #666);
  margin: 0;
  line-height: 1.4;
}

/* -------------------------------------------------------------------------
   Action Buttons
   ------------------------------------------------------------------------- */
#agentic-section-5 .cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#agentic-section-5 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#agentic-section-5 .btn-primary {
  background-color: var(--primary-color, #E30613);
  color: #fff;
  padding: 16px 32px;
}

#agentic-section-5 .btn-primary:hover {
  background-color: #C00510;
  transform: scale(1.02);
}

#agentic-section-5 .btn-link {
  color: var(--primary-color, #E30613);
  background: transparent;
  padding: 8px 16px;
}

#agentic-section-5 .btn-link:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  #agentic-section-5 {
    padding: 100px 0;
  }
  #agentic-section-5 .timeline-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  #agentic-section-5 .section-title {
    font-size: 32px;
  }
}


