/* OpenNeo AI — Homepage specific styles */

/* Hero drifting glow background */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 75% 30%, rgba(0, 153, 153, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 25% 70%, rgba(0, 107, 107, 0.08) 0%, transparent 55%);
  animation: heroDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero .hero-inner {
  position: relative;
  z-index: 1;
}

@keyframes heroDrift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(2%, -2%) scale(1.03);
  }
}

/* Hero visual SVG shadow */
.hero-visual svg {
  filter: drop-shadow(0 12px 32px rgba(0, 153, 153, 0.1));
}

/* Feature visual SVG shadow */
.feature-visual svg {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.04));
}

/* CTA grid texture */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

/* ===================================================================
   Business areas — asymmetric bento (home only)
   Replaces the 4-equal-card row with a rhythm: a tall dark flagship
   tile + a tinted wide tile + two square tiles.
   =================================================================== */
.biz-head {
  margin-bottom: var(--space-7);
}

.biz-head .section-subtitle {
  margin-bottom: 0;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--space-5);
}

.biz-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 182px;
  padding: var(--space-6);
  background: #ffffff;
  border: 1px solid rgba(0, 153, 153, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(10, 61, 61, 0.04), 0 8px 24px rgba(10, 61, 61, 0.05);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.biz-tile:hover {
  z-index: 1;
  transform: translateY(-6px);
  border-color: rgba(0, 153, 153, 0.22);
  box-shadow: 0 16px 40px rgba(0, 153, 153, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04);
}

/* Flagship tile: dark brand fill, spans 2x2, vertically centered */
.biz-tile--feature {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(150deg, #063e3e 0%, var(--color-primary-text) 58%, var(--color-primary-dark) 100%);
  border-color: transparent;
  box-shadow: 0 18px 48px rgba(6, 62, 62, 0.28);
}

.biz-tile--feature .card-title {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.25;
}

.biz-tile--feature .card-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  max-width: 40ch;
}

.biz-tile--feature .card-icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: none;
}

/* Accent tile: tinted, spans 2 cols */
.biz-tile--accent {
  grid-column: span 2;
  background: var(--color-primary-subtle);
  border-color: rgba(0, 153, 153, 0.16);
}

.biz-tile--accent .card-text {
  max-width: 52ch;
}

/* Watermark = the tile's own icon enlarged and faint (a meaningful motif) */
.biz-watermark {
  position: absolute;
  right: -16px;
  bottom: -16px;
  z-index: -1;
  width: 152px;
  height: 152px;
  opacity: 0.06;
  color: currentColor;
  pointer-events: none;
}

.biz-tile--feature .biz-watermark {
  width: 190px;
  height: 190px;
  opacity: 0.1;
}

/* ===================================================================
   Product 2 — dark "engineering spotlight" + code sample card.
   Product 1 stays the light marketing split, so the two products now
   read as marketing-light vs engineering-dark (their real audiences).
   =================================================================== */
.feature--dark {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(160deg, #063a3a 0%, #074a4c 55%, #063e3e 100%);
}

.feature--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 78% 18%, rgba(0, 153, 153, 0.28) 0%, transparent 60%);
  pointer-events: none;
}

.feature--dark .feature-inner {
  position: relative;
  z-index: 1;
}

.feature--dark .feature-title {
  color: #ffffff;
}

.feature--dark .feature-desc {
  color: rgba(255, 255, 255, 0.78);
}

.feature--dark .feature-list li {
  color: rgba(255, 255, 255, 0.85);
}

.feature--dark .feature-list li::before {
  background: rgba(255, 255, 255, 0.14);
  color: #8af3e8;
}

.feature--dark .feature-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #a7f6ee;
}

/* Code sample card (language-neutral; representative MCP/SQL call) */
.code-card {
  position: relative;
  align-self: center;
  width: 100%;
  background: #04262a;
  border: 1px solid rgba(138, 243, 232, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #cdeee9;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature--dark:hover .code-card {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.code-card .ln {
  display: block;
  white-space: pre;
}

.code-card .k {
  color: #62d8ca;
}

.code-card .s {
  color: #a8e6cf;
}

.code-card .c {
  color: #5f938b;
  font-style: italic;
}

.code-card .caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -2px;
  background: #62d8ca;
  animation: caretBlink 1.1s steps(1, end) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

/* Product 1 visual: gentle hover lift for life */
.feature-visual {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature:hover .feature-visual {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 107, 107, 0.12);
}

/* ===================================================================
   Bento responsive collapse
   =================================================================== */
@media (max-width: 1024px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .biz-tile--feature {
    grid-column: span 2;
    grid-row: auto;
  }

  .biz-tile--accent {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .biz-grid {
    grid-template-columns: 1fr;
  }

  .biz-tile--feature,
  .biz-tile--accent {
    grid-column: auto;
  }

  .biz-tile--feature .card-title {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-card .caret {
    animation: none;
  }
}
