﻿/* 
 * Powered BLUE Website Redesign - Main Stylesheet
 * High-Performance / Modern / Japanese Grid Layout
 */

:root {
  /* Premium Color Palette */
  --color-primary: #004e92;
  /* Rich Deep Blue */
  --color-secondary: #000428;
  /* Midnight Blue */
  --color-accent: #00d2ff;
  /* Cyan Electric */
  --color-bg-light: #f8f9fa;
  --color-text-main: #333333;
  --color-text-sub: #666666;
  --color-text-white: #ffffff;
  --color-border: #e0e0e0;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  --gradient-btn: linear-gradient(90deg, #004e92 0%, #000428 100%);
  --gradient-accent: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);

  /* Spacing */
  --container-max-width: 1200px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;

  /* Effects */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(15px);
  --ag-floating-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  --header-height: 70px;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
  /* Header is fixed, prevent overlapping */
}

/* Anchor Offset for Fixed Header */
[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center {
  text-align: center;
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Antigravity Animations */
@keyframes floating {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(15px);
  }
}

@keyframes ag-pulse {
  0% {
    opacity: 0.1;
    filter: blur(80px);
  }

  100% {
    opacity: 0.15;
    filter: blur(100px);
  }
}

@keyframes float-text {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Modern Components */
.btn-primary {
  display: inline-block;
  background: var(--gradient-btn);
  color: var(--color-text-white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 78, 146, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 78, 146, 0.4);
  color: var(--color-text-white);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: bold;
  letter-spacing: 0.05em;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-header {
  background: var(--color-accent);
  /* Brighter CTA in header */
  color: #003366 !important;
  /* Contrasting text for accent button */
  padding: 8px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
}

.btn-header:hover {
  background: #fff;
  color: var(--color-primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

/* Fixed Glass Header (Dark Blue) */
header {
  background-color: rgba(0, 4, 40, 0.9);
  /* Dark Blue Transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  /* Stronger shadow */
  position: fixed;
  /* Fixed position */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-white) !important;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--color-accent);
}

.logo-text {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.logo-text .brand-powered {
  font-weight: 300;
  /* Thin */
  color: rgba(255, 255, 255, 0.9);
}

.logo-text .brand-blue {
  font-weight: 700;
  /* Bold */
  color: var(--color-accent);
}


.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  /* Light text */
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-white);
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

.mobile-menu-toggle svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-secondary);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    padding: 20px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .btn-header {
    width: auto;
    margin-top: 10px;
  }
}

/* Immersive Hero with index-2 style background and grids */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('../images/hero.jpg') no-repeat center center/cover;
  overflow: hidden;
  padding: 80px 20px;
}

.product-card img,
.product-detail-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: move-grid 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 4, 40, 0.8) 100%);
  pointer-events: none;
  z-index: 2;
}

@keyframes move-grid {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.1em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.hero .reveal-text {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero .reveal-text span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero.visible .reveal-text span {
  transform: translateY(0);
}

.text-highlight {
  color: #00AEEF;
  position: relative;
  display: inline-block;
}

.hero p {
  font-size: 1.15rem;
  color: #fff;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  font-weight: 400;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Glowing Button Effect */
.btn-glow {
  box-shadow: 0 0 20px rgba(0, 174, 239, 0.5);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 40px rgba(0, 174, 239, 0.8), 0 0 10px rgba(255, 255, 255, 0.8);
}

.hero-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.hero-btns-top {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-btns-bottom {
  margin-top: 10px;
}

.hero-btns .btn-primary {
  min-width: 200px;
  padding: 14px 30px;
}

.btn-secondary.btn-glow {
  box-shadow: 0 0 15px rgba(102, 102, 102, 0.2);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 51, 102, 0.1);
  color: var(--color-primary);
}

.btn-secondary.btn-glow:hover {
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 5px 20px rgba(0, 51, 102, 0.1);
}

/* Solution Grid Portal - Immersive Glassmorphism */
.solution-portal {
  padding: 100px 0;
  background: transparent;
  position: relative;
  z-index: 10;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: -150px;
  /* Stronger overlap with hero */
}

.solution-card {
  position: relative;
  height: 480px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(145deg, rgba(0, 30, 60, 0.9) 0%, rgba(0, 5, 20, 0.85) 100%);
  /* Premium ultra-deep glass */
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  padding: 50px 30px;
  /* Snappy for movement, super slow for text reveal later */
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.8s ease,
    border-color 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Use a pseudo-element for the idle floating AND the vibrant hover glow */
.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, var(--theme-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 1.5s ease;
  animation: solution-bob 10s ease-in-out infinite;
}

.solution-card:hover::before {
  opacity: 0.35;
  /* Impactful core activation */
}

.solution-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 40%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.05) 60%,
      transparent 100%);
  transform: skewX(-25deg);
  transition: none;
  z-index: 1;
}

.solution-card:hover::after {
  animation: shimmer-pulse 2.0s cubic-bezier(0.19, 1, 0.22, 1) infinite;
  /* Recurring energy pulse */
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
  opacity: 0.6;
  transition: opacity 2.4s ease;
}

/* Category Themes */
.card-ai {
  --theme-color: #00d2ff;
  --theme-glow: rgba(0, 210, 255, 0.4);
}

.card-security {
  --theme-color: #00ff87;
  --theme-glow: rgba(0, 255, 135, 0.4);
}

.card-infra {
  --theme-color: #ff9966;
  --theme-glow: rgba(255, 153, 102, 0.4);
}

.solution-card:hover {
  transform: translateY(-20px) scale(1.02);
  border-color: var(--theme-color);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 30px var(--theme-glow);
}

.solution-icon-wrap {
  width: 130px;
  height: 130px;
  margin-bottom: 35px;
  position: relative;
  z-index: 2;
  transition: transform 2.0s cubic-bezier(0.19, 1, 0.22, 1);
  filter: drop-shadow(0 0 15px var(--theme-glow));
}

.solution-card:hover .solution-icon-wrap {
  transform: scale(1.1) translateY(-10px);
}

.solution-card h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.solution-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  /* Brighter for readability */
  line-height: 1.7;
  margin-bottom: 25px;
  z-index: 2;
  transition: opacity 1.6s ease;
}

.solution-product-list {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 3.6s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 3;
}

.solution-card:hover .solution-product-list {
  bottom: 40px;
  opacity: 1;
  transform: translateY(0);
}

.solution-card:hover p {
  opacity: 0;
}

.product-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.solution-card:hover .product-tag {
  border-color: var(--theme-color);
  background: rgba(255, 255, 255, 0.15);
}

/* AI Glow specifically for the flag-ship card */
.card-ai-pulse::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(45deg,
      transparent 20%,
      var(--theme-color) 50%,
      transparent 80%);
  background-size: 200% 200%;
  z-index: -1;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateGlow 4s linear infinite;
  opacity: 0.6;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 992px) {
  .solution-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
}

/* Access Flow - Light Path Diagram */
.steps-section {
  padding: 100px 0;
  background: #000428;
  color: #fff;
}

/* Diagram Light Theme (for white backgrounds) */
.access-flow-diag.diag-light {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.access-flow-diag.diag-light .diag-node {
  fill: #f0f7ff;
  stroke: #c2e0ff;
}

.access-flow-diag.diag-light .diag-text {
  fill: #004e92;
  font-weight: 700;
}

.access-flow-diag.diag-light .diag-subtext {
  fill: #666;
}

.access-flow-diag.diag-light .flow-path {
  stroke: #ddd;
}

.access-flow-diag.diag-light .flow-path {
  stroke: #eee;
  stroke-width: 5;
  stroke-dasharray: none;
}

.access-flow-diag.diag-light .flow-path.active {
  stroke: #00d2ff;
  stroke-width: 5;
  filter: drop-shadow(0 0 12px #00d2ff);
}

.access-flow-diag.diag-light .particle-dot {
  fill: #00d2ff;
  r: 6px;
  filter: drop-shadow(0 0 12px #00d2ff);
}

.access-flow-diag.diag-light .particle-red {
  fill: #ff4d4d;
  r: 6px;
  filter: drop-shadow(0 0 12px #ff4d4d);
}

.access-flow-diag {
  max-width: 900px;
  margin: 60px auto;
}

.diag-svg {
  width: 100%;
  overflow: visible;
}

.diag-node {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.2);
  transition: all 0.6s ease;
  cursor: pointer;
}

.diag-node.active {
  fill: rgba(0, 210, 255, 0.1);
  stroke: var(--color-accent);
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

.diag-text {
  fill: #fff;
  font-size: 14px;
  pointer-events: none;
}

.diag-subtext {
  fill: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  pointer-events: none;
}

.flow-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  /* 少し明るく */
  stroke-width: 5;
  /* 太く */
  stroke-dasharray: none;
  /* 最初から実線 */
}

.flow-path.active {
  stroke: var(--color-accent);
  stroke-width: 5;
  filter: drop-shadow(0 0 15px var(--color-accent));
}

.particle-dot {
  fill: var(--color-accent);
  filter: drop-shadow(0 0 12px var(--color-accent));
  opacity: 0;
  offset-rotate: none;
}

.particle-red {
  fill: #ff4d4d;
  filter: drop-shadow(0 0 12px #ff4d4d);
  opacity: 0;
  offset-rotate: none;
}

.particle-dot.active {
  opacity: 1;
  offset-path: path("M150 100 H300");
  animation: flowParticle 3s linear infinite;
}

#p2.active {
  offset-path: path("M450 100 H600");
}

@keyframes flowParticle {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  95% {
    opacity: 1;
  }

  100% {
    offset-distance: 100%;
    opacity: 0;
    /* 100%の瞬間に消えるようにして枠内到達を維持 */
  }
}

/* 交互アニメーション用の遅延 */
.delay-anim {
  animation-delay: 2s !important;
}

@media (max-width: 992px) {
  .solution-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
}

/* Product Filtering */
.product-card {
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  opacity: 1;
  visibility: visible;
}

.product-card.hidden {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  /* Take out of flow to prevent gaps */
  pointer-events: none;
  transform: translateY(20px);
}

.products-filter-tabs {
  margin-bottom: 40px;
}

/* Feature Cards */
.section-products {
  background-color: #ffffff;
  padding: 80px 0;
  color: #003366;
  /* Dark Navy Text */
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #003366;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  /* Removed overlap margins */
}

/* Category Tabs System */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-primary);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.tab-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--ag-floating-shadow);
}

.tab-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(0, 51, 102, 0.25);
}

.category-content {
  display: none;
  animation: fadeIn 0.6s ease;
}

.category-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feature Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 20px;
}

.ag-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  padding: 0;
  /* Changed to allow internal structural padding */
  box-shadow: var(--ag-floating-shadow);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.ag-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 78, 146, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Card Structure for Reveal */
.card-main {
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.ag-card:hover .card-main {
  filter: blur(4px);
  opacity: 0.3;
}

.card-catchphrase {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 20px;
  line-height: 1.4;
}

.card-reveal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.ag-card:hover .card-reveal {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
}

.product-card {
  background: white;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  border-top: 4px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: #f0f7ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
  font-family: 'Roboto Mono', monospace;
  /* Tech Spec Font */
  letter-spacing: -1px;
}

.card-title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  text-align: center;
  font-weight: 700;
}

.card-desc {
  font-size: 0.9rem;
  /* Slightly smaller */
  color: var(--color-text-sub);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  flex-grow: 1;
}

.card-footer {
  text-align: center;
  margin-top: auto;
}

/* Contact CTA Section */
.section-contact-cta {
  background-color: #f7f9fb;
  /* Light gray */
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
}

.section-contact-cta h2 {
  color: var(--color-primary);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.section-contact-cta p {
  color: var(--color-text-sub);
  margin-bottom: 30px;
}

/* Responsive: Stack cards vertically on mobile */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Step Diagram */
.steps-section {
  background: white;
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--color-border);
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.step-item {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  padding: 20px;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 60px;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

.step-arrow {
  font-size: 2rem;
  color: var(--color-border);
  margin-top: 30px;
  font-weight: 300;
  animation: pulse-arrow 2s infinite ease-in-out;
}

@keyframes pulse-arrow {

  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }

  50% {
    transform: translateX(5px);
    opacity: 1;
    color: var(--color-accent);
  }
}

@media (max-width: 768px) {
  .steps-container {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
}

/* Contact Form */
.contact-form-container {
  max-width: 600px;
  margin: var(--spacing-xl) auto;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #edf2f7;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Updated Footer */
footer {
  background: #000428;
  /* Dark Midnight Blue */
  color: rgba(255, 255, 255, 0.7);
  padding-top: 60px;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.copyright {
  background: #000215;
  /* Even darker for bottom bar */
  padding: 20px 0;
  text-align: center;
  margin-top: 0;
}

/* Products Page Styles */

/* Compact Hero */
.hero-small {
  padding: 80px 0 100px;
  /* Reduced padding */
}

.hero-small h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-small p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Sub-Navigation (Quick Links) */
.sub-nav {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 15px 0;
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.sub-nav-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.sub-nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  gap: 5px;
}

.sub-nav-links a:hover {
  color: var(--color-primary);
}

.sub-nav-links a.active {
  color: var(--color-primary);
}


.hero-small::before {
  /* Slightly different grid for subpages maybe, or same */
  opacity: 0.15;
}

/* Product Detail Items */
.section-products-detail {
  padding: 60px 0;
  background: white;
}

.product-detail-item {
  margin-bottom: 80px;
  border-bottom: 1px solid #eee;
  padding-bottom: 60px;
}

.product-detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.detail-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
}

.detail-header h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin: 0;
}

.detail-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.detail-content p {
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--color-text-main);
}

.detail-features,
.detail-usecase {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.detail-features h4,
.detail-usecase h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--color-secondary);
  border-left: 4px solid var(--color-accent);
  padding-left: 10px;
}

.detail-features ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--color-text-sub);
}

.detail-features li {
  margin-bottom: 8px;
}

.detail-action {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .detail-action {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-action .btn-primary,
  .detail-action .btn-secondary {
    text-align: center;
  }
}

/* Comparison Table */
.section-comparison {
  padding: 60px 0;
  background: #fff;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.1);
  /* Indicate scrollability */
  margin: 0 -16px;
  /* Negative margin to touch edges on mobile */
  padding: 0 16px;
  /* Restore padding */
  width: calc(100% + 32px);
}

@media (min-width: 768px) {
  .table-responsive {
    margin: 0;
    padding: 0;
    width: 100%;
    box-shadow: none;
  }
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  /* Required for sticky */
  border-spacing: 0;
  margin-top: 20px;
  min-width: 600px;
  /* Ensure enough width to trigger scroll */
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

/* Sticky First Column */
.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fdfdfd;
  /* Ensure bg to cover scrolled text */
  border-right: 2px solid #ddd;
  /* Divider line */
  font-weight: bold;
  color: var(--color-primary);
}

.comparison-table th:first-child {
  background: #333;
  /* Header bg */
  color: white;
  z-index: 3;
  /* Higher than sticky td */
}

.comparison-table th {
  background: var(--color-secondary);
  color: white;
  font-weight: 600;
  white-space: nowrap;
  /* Prevent ugly wrap */
}

/* Row-striping adjustment for sticky */
.comparison-table tr:nth-child(even) td {
  background: #fdfdfd;
}

.comparison-table tr:nth-child(even) td:first-child {
  background: #f0f0f0;
  /* Darker bg for sticky col even rows */
}

.marker-ok {
  color: #27ae60;
  font-weight: bold;
}

.marker-sub {
  color: #f39c12;
}

/* Marker styles above */

.model-number {
  font-family: 'Roboto Mono', monospace;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Contact Form Enhancements */
.contact-form-container {
  max-width: 800px;
  /* Wider form */
}

.form-group label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: block;
}

.form-control {
  border: 1px solid #ddd;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fdfdfd;
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.15);
  /* Nice cyan glow */
  background: white;
  outline: none;
}

.row-group {
  display: flex;
  gap: 20px;
}

.col-half {
  flex: 1;
}

@media (max-width: 600px) {
  .row-group {
    flex-direction: column;
    gap: 0;
  }

  .col-half {
    margin-bottom: 20px;
  }
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 30px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  cursor: pointer;
}

.radio-group {
  display: flex;
  gap: 20px;
  padding: 10px 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal !important;
  /* Override bold label */
  cursor: pointer;
  color: var(--color-text-main) !important;
}

.radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

/* -------------------------------------------------------------------------- */
/* Utility / Support Section (for Products page) */
/* -------------------------------------------------------------------------- */

.section-utility {
  background-color: #f0f7ff;
  /* Light blue background for utility */
  padding: 80px 0;
  border-top: 1px solid rgba(0, 78, 146, 0.1);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card-utility {
  background: #fff;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.card-utility:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

.card-utility .card-title {
  text-align: left !important;
  margin-bottom: 5px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-utility .card-desc {
  text-align: left;
  font-size: 0.85rem;
  margin-bottom: 25px;
}

.badge-utility {
  display: inline-block;
  padding: 3px 12px;
  background: var(--color-accent);
  color: #003366;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: fit-content;
}

.feature-card-img {
  width: 100%;
  height: 240px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 10px;
}

.feature-card-body {
  padding: 25px;
  flex-grow: 1;
}

.feature-card-body h4 {
  color: var(--color-primary);
  margin-bottom: 12px;
  border-left: 4px solid var(--color-accent);
  padding-left: 10px;
  font-size: 1.1rem;
}

.feature-card-body p {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.6;
}

/* --- AI Aurora Reveal Styles --- */
.antigravity-reveal {
  position: relative;
  height: 100px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  border: 2px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.antigravity-reveal:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), inset 0 0 10px rgba(0, 210, 255, 0.1);
  transform: translateY(-2px);
}

.reveal-content {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.antigravity-reveal:hover .reveal-content {
  transform: translateY(-100%);
}

.reveal-front,
.reveal-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  backface-visibility: hidden;
}

.reveal-back {
  top: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  color: #333;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: left;
  padding: 12px;
  border-top: 1px solid rgba(0, 210, 255, 0.1);
}

.reveal-back p {
  margin: 0;
  color: #444;
  font-weight: 500;
}

.antigravity-reveal .matrix-label {
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.antigravity-reveal:hover .matrix-label {
  color: var(--color-primary);
}

.antigravity-reveal .matrix-check {
  transition: all 0.3s ease;
}

.antigravity-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.2), transparent);
  transition: 0.5s;
  pointer-events: none;
}

.antigravity-reveal:hover::after {
  left: 200%;
  transition: 0.8s;
}

/* --- Feature Matrix Styles --- */
.feature-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 60px 0 40px;
}

.matrix-item {
  background: #ffffff;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
}

.matrix-item:hover {
  transform: scale(1.02);
  border-color: var(--color-accent);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.matrix-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.matrix-check {
  font-size: 1.6rem;
  color: #2e7d32;
  font-weight: 900;
  line-height: 1;
}

.matrix-option {
  font-size: 0.75rem;
  color: #d32f2f;
  font-weight: 700;
  background: #fff5f5;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid #ffcdd2;
}

.feature-matrix-container {
  background: #fdfdfd;
  border-top: 1px solid #eee;
  padding: 40px 0;
  margin: 60px -50vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

@media (max-width: 768px) {
  .feature-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}



/* AI Reveal Styles - Refined */
.typing-cursor {
  display: inline-block;
  width: 6px;
  height: 1em;
  background: #00d2ff;
  margin-left: 2px;
  vertical-align: middle;
  animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Add glow to existing hover state without overwriting transform */
.antigravity-reveal:hover .reveal-content {
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3), inset 0 0 15px rgba(0, 210, 255, 0.1);
  border-color: #00d2ff;
}

@keyframes solution-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer-pulse {
  0% {
    left: -150%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  40% {
    left: 150%;
    opacity: 0;
  }

  100% {
    left: 150%;
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    left: 150%;
    opacity: 0;
  }
}

/* Global Category Navigation Bar */
.category-nav {
  background: #fff;
  padding: 15px 0;
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #eee;
}

.nav-container-flex {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-tab-btn,
.nav-tab-link {
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
}

.nav-tab-btn:hover,
.nav-tab-link:hover {
  background: #e9ecef;
  color: var(--color-primary);
}

.nav-tab-btn.active,
.nav-tab-link.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .category-nav {
    padding: 10px 0;
  }

  .nav-container-flex {
    gap: 8px;
  }

  .nav-tab-btn,
  .nav-tab-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}