/* Apex Agents - Cyber Industrial 2026 Aesthetic */

:root {
  --glow-primary: rgba(56, 214, 200, 0.6);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #0A0F16;
  color: #94A3B8;
}

/* Glass & Bento Architecture */
.bento-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 214, 200, 0.3);
}

.bento-card:hover::before {
  opacity: 1;
}

/* Glow Texts & Borders */
.text-glow {
  text-shadow: 0 0 20px rgba(56, 214, 200, 0.5);
}

.glow-icon-wrapper {
  background: linear-gradient(135deg, rgba(56, 214, 200, 0.2) 0%, rgba(56, 214, 200, 0.05) 100%);
  border: 1px solid rgba(56, 214, 200, 0.3);
  box-shadow: 0 0 20px rgba(56, 214, 200, 0.2) inset;
  color: #38d6c8;
}

/* Primary Button High-End 2026 */
.btn-primary-glow {
  background: linear-gradient(135deg, #38d6c8 0%, #2ab0a3 100%);
  color: #0A0F16;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 20px rgba(56, 214, 200, 0.4);
}

.btn-primary-glow:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(56, 214, 200, 0.6), 0 0 60px rgba(56, 214, 200, 0.2);
}

.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: inherit;
  filter: blur(8px);
  opacity: 0;
  z-index: -1;
  border-radius: 9999px;
  transition: opacity 0.3s ease;
}

.btn-primary-glow:hover::after {
  opacity: 0.8;
}

/* Hero CTA Arrow */
.hero-cta-wrap {
  position: relative;
  isolation: isolate;
}

.hero-cta-arrow {
  position: absolute;
  width: 320px;
  height: 220px;
  left: -285px;
  top: -145px;
  pointer-events: none;
  z-index: 30;
  opacity: 1;
}

.hero-cta-arrow svg {
  width: 100%;
  height: 100%;
}

.hero-arrow-stroke {
  stroke: #ff545e;
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
  filter: drop-shadow(0 0 4px rgba(255, 84, 94, 0.5));
}

.hero-arrow-head {
  stroke: #ff545e;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 4px rgba(255, 84, 94, 0.5));
}

/* Hero Background Integration */
.hero-image-overlay {
  background-image: linear-gradient(to bottom, rgba(10, 15, 22, 0.3) 0%, #0A0F16 100%), url('assets/images/hero-bg-optimized.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

/* Dark Navbar */
.glass-nav-dark {
  background-color: rgba(10, 15, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ambient Background Glows */
.ambient-glow-1 {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 214, 200, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.ambient-glow-2 {
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56, 214, 200, 0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Product Showcase Active Tab Styling */
.showcase-tab {
  min-height: 52px;
  letter-spacing: 0.01em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.showcase-tab.active-tab {
  background-color: transparent;
  border: 2px solid #38d6c8; /* Solid, vivid green/cyan line */
  color: #ffffff; /* Brighter white text focus */
  box-shadow: 0 0 10px rgba(56, 214, 200, 0.1), inset 0 0 10px rgba(56, 214, 200, 0.1);
}

.showcase-tab:not(.active-tab):hover {
  border-color: rgba(56, 214, 200, 0.25);
}

.showcase-tab:focus-visible {
  outline: 2px solid rgba(56, 214, 200, 0.8);
  outline-offset: 2px;
}

/* Contact Form Status + Submit UX */
.contact-form-status {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease;
}

.contact-form-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form-status.is-error {
  color: #fca5a5;
}

.contact-form-status.is-success {
  color: #38d6c8;
}

.contact-submit-button {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-submit-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-message-input {
  transition: height 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-honeypot-wrap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Skip off-screen paint until scrolled near content */
.deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

@media (max-width: 640px) {
  .showcase-tab {
    min-height: 48px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1023px) {
  .hero-cta-arrow {
    width: 220px;
    height: 150px;
    left: -185px;
    top: -92px;
  }
}

@media (max-width: 767px) {
  .hero-cta-arrow {
    display: none;
  }
}
