/* Page-Specific Styles */

/* Hero Section */

.hero {
  position: relative;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  min-height: 600px;
  display: flex;
  align-items: center;
  background: #030812;
  overflow: hidden;
}

/* Layer 2: Blur - emphasized on left side under text */
.hero::before {
  content: "";
  position: absolute;
  top: 0; /* Start at top of hero section */
  bottom: 0;
  left: 0;
  width: 60%; /* Focus blur on left portion of hero */
  background-image: url("../images/Blur.png");
  background-repeat: no-repeat;
  background-position: left center; /* Position blur to the left */
  background-size: cover;
  pointer-events: none;
  z-index: 0;
  /* Flip horizontally so bright area appears on left */
  transform: scaleX(-1);
  /* Add radial mask for circular fade out towards the left - fade happens within hero */
  mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
}

/* Layer 3: Pattern - emphasized on left side under text */
.hero::after {
  content: "";
  position: absolute;
  top: 0; /* Start at top of hero section */
  bottom: 0;
  left: 0;
  width: 60%; /* Focus pattern on left portion of hero */
  background-image: url("../images/Pattern.png");
  background-repeat: repeat;
  background-size: auto;
  pointer-events: none;
  z-index: 1;
  /* Add radial mask for circular fade out towards the left - fade happens within hero */
  mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
}

/* ensure content stays above background */
.hero > * {
  position: relative;
  z-index: 2;
}

/* Our Approach Section - Same background style as header */
.approach-section {
  position: relative;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-3xl);
  min-height: 400px;
  display: flex;
  align-items: center;
  background: #030812;
}

.approach__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.approach__left {
  display: flex;
  align-items: center;
}

.approach__heading {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0;
}

.approach__right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}

.approach__description {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  margin: 0;
}

.approach__cta {
  background: #ffffff;
  color: #0034FF;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.approach__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 0.9;
}

.approach__cta:active {
  transform: translateY(0);
}

.approach__cta svg {
  color: #0034FF;
}

/* Features Section */
.features-section {
  position: relative;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  background: #030812;
  overflow: hidden;
}

/* Layer 2: Blur - emphasized on left side */
.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background-image: url("../images/Blur.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
  /* Flip horizontally so bright area appears on left */
  transform: scaleX(-1);
  /* Add radial mask for circular fade out towards the right */
  mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
}

/* Layer 3: Pattern - emphasized on left side */
.features-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background-image: url("../images/Pattern.png");
  background-repeat: repeat;
  background-size: auto;
  pointer-events: none;
  z-index: 1;
  /* Add radial mask for circular fade out towards the right */
  mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
}

/* Ensure content stays above background */
.features-section > * {
  position: relative;
  z-index: 2;
}

/* Reversed Features Section - Background effects on right side */
.features-section--reversed::before {
  left: auto;
  right: 0;
  /* Flip horizontally so bright area appears on right */
  transform: scaleX(1);
  /* Add radial mask for circular fade out towards the left */
  mask-image: radial-gradient(ellipse 150% 120% at left center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 150% 120% at left center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
}

.features-section--reversed::after {
  left: auto;
  right: 0;
  /* Add radial mask for circular fade out towards the left */
  mask-image: radial-gradient(ellipse 150% 120% at left center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 150% 120% at left center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
}

/* Reversed layout: left column has cards, right column has image */
.features-section--reversed .features__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.features-section--reversed .features__right {
  position: relative;
  display: block;
}

.features__content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: stretch;
}

/* Height specifications for each feature section */
#features .features__content {
  min-height: 600px;
}

#features-2 .features__content {
  min-height: 600px;
}

#features-3 .features__content {
  min-height: 600px;
}

.features__left {
  position: relative;
  align-self: stretch;
  min-height: 0;
}

.features__left-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

.features__right {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-self: stretch;
  min-height: 0;
}

.features__right-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

/* Feature Card */
.feature-card {
  position: relative;
  background: rgba(26, 27, 36, 0.6);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
}

/* Gradient glow effect on upper region of card */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(
    180deg,
    rgba(79, 70, 229, 0.1) 0%,
    rgba(79, 70, 229, 0.2) 20%,
    rgba(99, 102, 241, 0.3) 60%,
    rgba(129, 140, 248, 0.4) 100%
  );
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* First feature card gradient - starts with #171B25 and fades into #304391 */
.feature-card:first-child {
  background: linear-gradient(
    180deg,
    #171B25 0%,
    #171B25 40%,
    #304391 90%,
    #304391 100%
  );
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:first-child::before {
  display: none;
}

/* Second feature card - solid #171B25 with full glass effect on all borders */
.feature-card:last-child {
  background: #171B25;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:last-child::before {
  display: none;
}

/* Ensure card content stays above gradient */
.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0;
  text-align: center;
}

.feature-card__description {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: #CCCCCC;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .features__content {
    grid-template-columns: 0.35fr 0.65fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .features-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .features__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .features__left {
    display: none;
  }

  .features-section--reversed .features__left {
    display: flex;
  }

  .features-section--reversed .features__right {
    display: none;
  }

  .feature-card {
    padding: var(--space-lg);
  }

  .feature-card__title {
    font-size: var(--font-size-2xl);
  }

  .feature-card__description {
    font-size: var(--font-size-sm);
  }
}

/* Lifecycle Section - Pattern and blur focused in center */
.lifecycle-section {
  position: relative;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  background: #030812;
  overflow: hidden;
}

/* Layer 2: Blur - focused in center */
.lifecycle-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-image: url("../images/Blur.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
  /* Add radial mask for circular fade centered */
  mask-image: radial-gradient(ellipse 100% 100% at center center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at center center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
}

/* Layer 3: Pattern - focused in center */
.lifecycle-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-image: url("../images/Pattern.png");
  background-repeat: repeat;
  background-size: auto;
  pointer-events: none;
  z-index: 1;
  /* Add radial mask for circular fade centered */
  mask-image: radial-gradient(ellipse 100% 100% at center center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at center center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
}

/* Ensure content stays above background */
.lifecycle-section > * {
  position: relative;
  z-index: 2;
}

.lifecycle__content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.lifecycle__image {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
  max-width: 1200px;
}

/* New Content Section - Same background style as hero */
.new-content-section {
  position: relative;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  min-height: 400px;
  display: flex;
  align-items: center;
  background: #030812;
  overflow: hidden;
}

/* Layer 2: Blur - emphasized on left side under text */
.new-content-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background-image: url("../images/Blur.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
  mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
}

/* Layer 3: Pattern - emphasized on left side under text */
.new-content-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background-image: url("../images/Pattern.png");
  background-repeat: repeat;
  background-size: auto;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 150% 120% at right center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.9) 30%, 
    rgba(0, 0, 0, 0.7) 50%, 
    rgba(0, 0, 0, 0.4) 70%, 
    rgba(0, 0, 0, 0.2) 85%, 
    rgba(0, 0, 0, 0) 100%);
}

/* ensure content stays above background */
.new-content-section > * {
  position: relative;
  z-index: 2;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.hero__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero__logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.hero__logo-text {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.hero__headline {
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  max-width: 600px;
  margin: 0;
}

.hero__right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo-gif {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Visual with Feature Labels */

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 500px;
}

.feature-label {
  position: absolute;
  display: flex;
  align-items: center;
  animation: fadeInSlide 0.8s ease forwards;
  opacity: 0;
}

.feature-label--1 {
  top: 10%;
  right: 55%;
  animation-delay: 0.2s;
}

.feature-label--2 {
  top: 25%;
  right: 55%;
  animation-delay: 0.4s;
}

.feature-label--3 {
  top: 45%;
  right: 55%;
  animation-delay: 0.6s;
}

.feature-label--4 {
  top: 62%;
  right: 55%;
  animation-delay: 0.8s;
}

.feature-label--5 {
  bottom: 8%;
  right: 55%;
  animation-delay: 1s;
}

.feature-label__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  text-align: right;
  line-height: 1.4;
  white-space: nowrap;
}

.feature-label__line {
  width: 200px;
  height: 60px;
  margin-left: var(--space-sm);
}

.feature-label--2 .feature-label__line,
.feature-label--3 .feature-label__line,
.feature-label--4 .feature-label__line {
  height: 40px;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 3D Robot Agent Visual */

.agent-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.agent-visual__glow {
  position: absolute;
  bottom: 80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.agent-visual__platform {
  position: absolute;
  bottom: 60px;
  width: 200px;
  height: 40px;
  perspective: 1000px;
  animation: float 4s ease-in-out infinite;
}

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

.agent-visual__platform-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(99, 102, 241, 0.6);
  border-radius: 50%;
  transform: rotateX(75deg);
  box-shadow: 
    0 0 20px rgba(99, 102, 241, 0.4),
    inset 0 0 20px rgba(99, 102, 241, 0.2);
}

.agent-visual__platform-ring--2 {
  width: 85%;
  height: 85%;
  top: 7.5%;
  left: 7.5%;
  border-color: rgba(99, 102, 241, 0.4);
  animation: rotate 8s linear infinite;
}

.agent-visual__platform-ring--3 {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-color: rgba(99, 102, 241, 0.3);
  animation: rotate 6s linear infinite reverse;
}

@keyframes rotate {
  from {
    transform: rotateX(75deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(75deg) rotateZ(360deg);
  }
}

.agent-visual__robot {
  position: absolute;
  bottom: 100px;
  width: 100px;
  height: 140px;
  animation: float 4s ease-in-out infinite;
}

.robot-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, #444 0%, #222 100%);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.robot-eye {
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #6ef3ff 0%, #0891b2 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(110, 243, 255, 0.8);
  animation: blink 4s ease-in-out infinite;
}

.robot-eye--left {
  left: 12px;
}

.robot-eye--right {
  right: 12px;
}

@keyframes blink {
  0%, 48%, 52%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.robot-antenna {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 15px;
  background: linear-gradient(to top, #444, #888);
}

.robot-antenna::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #6ef3ff 0%, #0891b2 100%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(110, 243, 255, 1);
  animation: antennaBlink 2s ease-in-out infinite;
}

@keyframes antennaBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.robot-body {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 50px;
  background: linear-gradient(145deg, #555 0%, #333 100%);
  border-radius: 15px;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.robot-chest-light {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(99, 102, 241, 0.3) 100%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
  animation: chestPulse 2s ease-in-out infinite;
}

@keyframes chestPulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

.robot-arm {
  position: absolute;
  top: 60px;
  width: 15px;
  height: 50px;
  background: linear-gradient(145deg, #555 0%, #333 100%);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.robot-arm--left {
  left: 5px;
  transform: rotate(-15deg);
}

.robot-arm--right {
  right: 5px;
  transform: rotate(15deg);
}

/* Diagram Section */

.diagram-section {
  position: relative;
  background: #030812;
}

/* Layer 2: Pattern for diagram section */
.diagram-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/Pattern.png");
  background-repeat: repeat;
  background-size: auto;
  pointer-events: none;
  z-index: 0;
}

.diagram-section > * {
  position: relative;
  z-index: 1;
}

.diagram {
  position: relative;
}

.diagram__flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.diagram-box {
  grid-column: span 1;
  text-align: center;
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.diagram-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.diagram-box:nth-child(odd) {
  grid-column: span 1;
}

.diagram-box:nth-child(1) {
  grid-column: 1 / 2;
}

.diagram__arrow {
  grid-column: span 1;
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
  text-align: center;
  opacity: 0.4;
}

.diagram-box:nth-child(2) {
  grid-column: 2 / 3;
}

.diagram-box:nth-child(4) {
  grid-column: 4 / 5;
}

.diagram-box:nth-child(6) {
  grid-column: 6 / 7;
}

.diagram-box:nth-child(8) {
  grid-column: 8 / 9;
}

.diagram-box__number {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  margin: 0 auto var(--space-sm);
}

.diagram-box__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
}

.diagram-box__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.diagram__loop-indicator {
  margin-top: var(--space-lg);
  opacity: 0.5;
}

/* Matrix Section */

.matrix-section {
  position: relative;
  background: #030812;
}

/* Layer 2: Pattern for matrix section */
.matrix-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/Pattern.png");
  background-repeat: repeat;
  background-size: auto;
  pointer-events: none;
  z-index: 0;
}

.matrix-section > * {
  position: relative;
  z-index: 1;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.matrix-item {
  padding: var(--space-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.matrix-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.matrix-item__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
  color: var(--color-primary-light);
}

.matrix-item__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.matrix-item__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.matrix-item__features li {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  padding-left: var(--space-md);
  position: relative;
}

.matrix-item__features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* Get Started Section - Dark Glass Contact */

.get-started-section {
  width: 100%;
  padding-top: 100px;
  padding-bottom: 100px;
  background: #030812;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient background with vignette */
.get-started-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Pattern overlay */
.get-started-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/Pattern.png");
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.get-started-section > * {
  position: relative;
  z-index: 1;
}

.get-started-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.get-started-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left Column - Text */

.get-started-left {
  padding-right: 0;
}

.get-started-heading {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}

.get-started-description {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 100%;
}

/* Right Column - Form (No Card Container) */

.get-started-right {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  max-width: 580px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

/* Form Row for Title/Organization */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  margin-bottom: 0;
}

/* Form Inputs - Glass Pills */

.form-input-field,
.form-textarea-field {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  background: linear-gradient(180deg, 
    rgba(15, 20, 30, 0.7) 0%, 
    rgba(10, 15, 25, 0.8) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 18px;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
  position: relative;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Subtle inset highlight - top edge for smoked glass effect */
.form-input-field::before,
.form-textarea-field::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Uneven border highlight - stronger on top-left and bottom-right */
.form-input-field::after,
.form-textarea-field::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.25) 0%, 
    transparent 20%,
    transparent 80%,
    rgba(255, 255, 255, 0.25) 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  padding: 1px;
}

/* Hide placeholder when field is empty (label acts as placeholder) */
.form-input-field::placeholder,
.form-textarea-field::placeholder {
  color: transparent;
}

/* Show placeholder only when field is focused and has no value (label floats up) */
.form-input-field:focus:placeholder-shown::placeholder,
.form-textarea-field:focus:placeholder-shown::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.form-input-field:focus,
.form-textarea-field:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, 
    rgba(20, 25, 35, 0.75) 0%, 
    rgba(15, 20, 30, 0.85) 100%);
  box-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-input-field:focus::before,
.form-textarea-field:focus::before {
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
}

.form-input-field:focus::after,
.form-textarea-field:focus::after {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    transparent 20%,
    transparent 80%,
    rgba(255, 255, 255, 0.3) 100%);
}

.form-input-field:focus::before {
  opacity: 1;
}

/* Half-width inputs for Title/Organization row */
.form-input-field--half {
  margin-bottom: 18px;
}

/* Textarea - Rounded Rectangle */
.form-textarea-field {
  height: 160px;
  padding-top: 16px;
  padding-bottom: 16px;
  resize: none;
  border-radius: 22px;
  line-height: 1.5;
  background: linear-gradient(180deg, 
    rgba(15, 20, 30, 0.7) 0%, 
    rgba(10, 15, 25, 0.8) 100%);
}

/* Form Field Wrapper */
.form-field-wrapper {
  position: relative;
  margin-bottom: 18px;
  width: 100%;
}

.form-field-wrapper--half {
  margin-bottom: 18px;
}

/* Floating Labels */
.form-label {
  position: absolute;
  left: 24px;
  top: 14px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 2;
  background: transparent;
  padding: 0 4px;
}

.form-field-wrapper:has(.form-input-field:focus) .form-label,
.form-field-wrapper:has(.form-input-field:not(:placeholder-shown)) .form-label,
.form-field-wrapper:has(.form-textarea-field:focus) .form-label,
.form-field-wrapper:has(.form-textarea-field:not(:placeholder-shown)) .form-label,
.form-field-wrapper.has-value .form-label {
  top: -8px;
  left: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, 
    rgba(15, 20, 30, 0.95) 0%, 
    rgba(10, 15, 25, 0.95) 100%);
  padding: 0 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Success Indicator Icon */
.form-field-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.form-textarea-field + .form-field-icon {
  top: 20px;
  transform: translateY(0);
}

/* Textarea label positioning */
.form-field-wrapper:has(.form-textarea-field) .form-label {
  top: 20px;
}

.form-field-wrapper:has(.form-textarea-field:focus) .form-label,
.form-field-wrapper:has(.form-textarea-field:not(:placeholder-shown)) .form-label,
.form-field-wrapper:has(.form-textarea-field).has-value .form-label {
  top: -8px;
}

.form-field-icon--success {
  color: #4ade80;
}

.form-field-icon.visible {
  opacity: 1;
}

.form-field-icon svg {
  width: 16px;
  height: 16px;
}

/* Adjust input padding when success icon is visible */
.form-field-wrapper.has-success-icon .form-input-field,
.form-field-wrapper.has-success-icon .form-textarea-field {
  padding-right: 48px;
}

/* Character Counter */
.form-field-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 0;
}

.form-character-counter {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.form-character-counter .counter-current {
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Character counter states */
.form-character-counter.warning .counter-current {
  color: #fbbf24;
}

.form-character-counter.success .counter-current {
  color: #4ade80;
}

.form-character-counter.error .counter-current {
  color: #f87171;
}

/* Field Error Messages */
.form-field-error {
  display: none;
  font-size: 12px;
  color: #f87171;
  margin-top: 6px;
  padding-left: 4px;
  line-height: 1.4;
}

.form-field-error.visible {
  display: block;
}

/* Submit Button */

.form-submit-btn {
  width: auto;
  height: 44px;
  padding: 0 24px;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: #6366f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  margin-left: auto;
  margin-right: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 20px rgba(99, 102, 241, 0.2);
}

.form-submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 24px rgba(99, 102, 241, 0.3);
}

.form-submit-btn:active {
  opacity: 0.9;
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 16px rgba(99, 102, 241, 0.2);
}

.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-submit-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Form Success/Error Messages */

.form-success,
.form-error-message {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.form-success.visible,
.form-error-message.visible {
  display: block;
}

.form-success p,
.form-error-message p {
  margin: 0;
}

/* Responsive Adjustments */

@media (min-width: 769px) {
  .header__nav-wrapper {
    display: flex !important;
  }
}

@media (max-width: 1024px) {
  .header__nav {
    gap: var(--space-md);
    padding: var(--space-xs) var(--space-lg);
  }
  
  .nav-link {
    font-size: var(--font-size-sm);
  }
  
  .get-started-grid {
    gap: 64px;
  }
  
  .get-started-heading {
    font-size: 56px;
  }
  
  .get-started-description {
    font-size: 19px;
  }
}

@media (max-width: 900px) {
  /* Approach Section - Stack on tablets */
  .approach__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .approach__left {
    text-align: center;
  }
  
  .approach__right {
    align-items: center;
    text-align: center;
  }
  
  .approach__heading {
    font-size: var(--font-size-4xl);
  }
  
  .get-started-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .get-started-left {
    text-align: center;
  }
  
  .get-started-heading {
    font-size: 48px;
  }
  
  .get-started-description {
    font-size: 18px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .get-started-right {
    justify-content: center;
    max-width: 100%;
  }
  
  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .hero__right {
    justify-content: center;
  }
  
  .diagram__flow {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .diagram-box:nth-child(1) {
    grid-column: 1 / 2;
  }
  
  .diagram-box:nth-child(2) {
    grid-column: 3 / 4;
  }
  
  .diagram-box:nth-child(4) {
    grid-column: 1 / 2;
  }
  
  .diagram-box:nth-child(6) {
    grid-column: 3 / 4;
  }
}

@media (max-width: 768px) {
  /* Header Mobile Optimizations */
  .header {
    padding: var(--space-xs) 0;
  }
  
  .header__container {
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .header__nav-wrapper {
    display: none;
  }
  
  .header__cta {
    justify-self: end;
    padding: 10px 16px;
    font-size: var(--font-size-sm);
    height: 36px;
  }
  
  .header__cta svg {
    width: 14px;
    height: 14px;
  }
  
  .logo-image {
    height: 20px;
  }
  
  .logo-text {
    font-size: var(--font-size-base);
    letter-spacing: -0.01em;
  }
  
  .hero__headline {
    font-size: var(--font-size-3xl);
  }
  
  /* Approach Section Mobile */
  .approach-section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-xl);
    min-height: auto;
  }
  
  .approach__content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .approach__left {
    text-align: center;
  }
  
  .approach__heading {
    font-size: var(--font-size-3xl);
    line-height: 1.2;
  }
  
  .approach__right {
    align-items: center;
    text-align: center;
    gap: var(--space-md);
  }
  
  .approach__description {
    font-size: var(--font-size-base);
    max-width: 100%;
  }
  
  .approach__cta {
    padding: 12px 24px;
    font-size: var(--font-size-sm);
  }
  
  .get-started-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .get-started-container {
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .get-started-grid {
    gap: 40px;
  }
  
  .get-started-heading {
    font-size: 42px;
  }
  
  .get-started-description {
    font-size: 18px;
  }
  
  .get-started-right {
    max-width: 100%;
  }
  
  /* Stack Title/Organization on mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .footer-container {
    padding: 24px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .hero-visual {
    height: 400px;
    max-width: 100%;
  }
  
  .feature-label__text {
    font-size: var(--font-size-xs);
  }
  
  .feature-label__line {
    width: 120px;
  }
  
  .agent-visual {
    width: 200px;
    height: 300px;
  }
  
  .agent-visual__platform {
    width: 150px;
    bottom: 40px;
  }
  
  .agent-visual__robot {
    width: 80px;
    height: 110px;
    bottom: 80px;
  }
  
  .robot-head {
    width: 48px;
    height: 48px;
  }
  
  .robot-body {
    width: 56px;
    height: 40px;
  }
  
  .robot-arm {
    width: 12px;
    height: 40px;
  }
  
  .section__title {
    font-size: var(--font-size-3xl);
  }
  
  .matrix {
    grid-template-columns: 1fr;
  }
  
  .diagram__flow {
    grid-template-columns: 1fr;
  }
  
  .diagram__arrow {
    transform: rotate(90deg);
  }
  
  .diagram-box:nth-child(odd),
  .diagram-box:nth-child(even) {
    grid-column: 1 / -1;
  }
  
  .footer__container {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* Very small mobile devices */
@media (max-width: 480px) {
  .header__container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
    gap: var(--space-sm);
  }
  
  .header__cta {
    padding: 8px 12px;
    font-size: var(--font-size-xs);
    height: 32px;
  }
  
  .header__cta svg {
    width: 12px;
    height: 12px;
  }
  
  .logo-image {
    height: 18px;
  }
  
  .logo-text {
    font-size: var(--font-size-sm);
  }
  
  /* Approach Section - Very Small Screens */
  .approach-section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-lg);
  }
  
  .approach__content {
    gap: var(--space-md);
  }
  
  .approach__heading {
    font-size: var(--font-size-2xl);
  }
  
  .approach__description {
    font-size: var(--font-size-sm);
  }
  
  .approach__cta {
    padding: 10px 20px;
    width: 100%;
    justify-content: center;
  }
}

