/* ----------------------------------------------------
   Agionix — Style Guide & Premium CSS Architecture
   ---------------------------------------------------- */

:root {
  --color-bg-base: #0d0b17;
  --color-bg-matte: #0b0912;
  --color-bg-card: rgba(14, 12, 23, 0.65);
  --color-bg-glass: rgba(12, 10, 20, 0.55);

  --color-text-primary: #FFFFFF;
  --color-text-muted: #94a3b8;
  --color-text-dimmed: #475569;

  --color-accent-purple: #818cf8;
  /* Light Indigo */
  --color-accent-purple-glow: rgba(99, 102, 241, 0.12);
  --color-accent-purple-strong: rgba(139, 92, 246, 0.35);
  --color-accent-cyan: #38bdf8;
  --color-accent-orange: #f97316;
  --color-accent-orange-glow: rgba(249, 115, 22, 0.2);

  --color-white-glow: rgba(255, 255, 255, 0.04);
  --color-white-border: rgba(255, 255, 255, 0.08);
  --color-white-border-hover: rgba(255, 255, 255, 0.18);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-color: #0d0b17;
  /* Primary Base void */
  background-image:
    /* Top-left light source zone diffusion */
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.07) 0%, transparent 60%),
    /* Secondary depth layer and bottom-right shadow sink */
    radial-gradient(circle at 50% 50%, #1c1830 0%, #0d0b17 100%);
}



/* Atmospheric Layering */
#volumetric-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Particle Web Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

.atmosphere-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.atmosphere-fog {
  background:
    /* Concentrated streak density near top-left origin */
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.04) 0%, transparent 55%),
    /* Overall atmospheric haze overlay */
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.015) 0%, transparent 75%);
  mix-blend-mode: screen;
}

.atmosphere-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  mix-blend-mode: overlay;
}

.atmosphere-vignette {
  background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(2, 2, 5, 0.95) 100%);
}

/* Typography elements */
h1,
h2,
h3,
h4 {
  font-weight: 300;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Floating Glassmorphism Nav */
#site-header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

#site-header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.glass-nav {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: rgba(10, 10, 14, 0.15);
  /* Almost invisible smoked glass */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  /* Faint glass outline */
  border-radius: 9999px;
  box-shadow: none;
  transition: border-color 0.6s var(--transition-smooth), box-shadow 0.6s var(--transition-smooth), background 0.6s var(--transition-smooth), backdrop-filter 0.6s var(--transition-smooth);
}

.nav-glow {
  position: absolute;
  top: -20px;
  left: 5%;
  right: 5%;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(249, 115, 22, 0.06) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.5s var(--transition-smooth);
  pointer-events: none;
  filter: blur(10px);
}

.glass-nav:hover {
  border-color: rgba(255, 255, 255, 0.08);
  /* Smoked acrylic background with heavy blur and slight blue (#0B0F1A) undertone */
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.55) 0%, rgba(11, 15, 26, 0.55) 100%);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  /* Background light turns on behind nav */
  box-shadow:
    0 15px 35px -5px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(255, 255, 255, 0.05),
    0 0 20px rgba(249, 115, 22, 0.08);
}

.glass-nav:hover .nav-glow {
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
}

.nav-logo {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-item-dropdown {
  position: relative;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  position: relative;
  transition: color 0.4s var(--transition-smooth), background-color 0.4s var(--transition-smooth), text-shadow 0.4s var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  width: 0;
  height: 1px;
  background: #F5F7FF;
  transition: width 0.3s var(--transition-smooth), left 0.3s var(--transition-smooth);
}

.nav-link:hover {
  color: #F5F7FF;
  background: rgba(234, 242, 255, 0.07);
  /* Smoked acrylic EAF2FF bounce */
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.25),
    0 0 16px rgba(122, 77, 255, 0.18);
}

.nav-link.active {
  color: #F5F7FF;
  background: rgba(234, 242, 255, 0.04);
}

.nav-link.active::after {
  width: 50%;
  left: 25%;
}

/* Smoked Obsidian Dropdown Panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) scaleY(0.85) translateY(-10px);
  transform-origin: top center;
  width: 480px;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.55) 0%, rgba(11, 15, 26, 0.55) 100%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 30px 1px rgba(122, 77, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.dropdown-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Open state on hover */
.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scaleY(1) translateY(0);
}

.dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dropdown-header {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dimmed);
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.item-title {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color 0.3s, text-shadow 0.3s;
}

.item-desc {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--color-text-dimmed);
}

.dropdown-item:hover .item-title {
  color: var(--color-text-primary);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
  /* Soft purple text glow */
}


/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 100%;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Menu container */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(25px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.6s var(--transition-smooth);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.mobile-link {
  font-size: 1.8rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  transition: color 0.3s, text-shadow 0.3s;
}

.mobile-link:hover {
  color: var(--color-text-primary);
  text-shadow: 0 0 15px var(--color-accent-purple);
}

/* Hero Section */
.section {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem 2rem;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-content {
  max-width: 1100px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent-purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent-purple);
  animation: pulse-glow 2s infinite alternate;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Clean Logo Title */
.hero-logo-text {
  font-size: clamp(4.5rem, 10.5vw, 9.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  color: #ffffff;
  text-shadow:
    0 0 40px rgba(255, 255, 255, 0.12),
    0 0 80px rgba(129, 140, 248, 0.06);
}

.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-text-primary);
  margin-top: 1.8rem;
  letter-spacing: -0.01em;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

.desktop-break {
  display: block;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 4rem;
  align-items: center;
}

/* Premium Buttons styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.btn-primary {
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 30px rgba(129, 140, 248, 0.12),
    /* Subsurface Purple Luxury Accent (idle) */
    0 0 50px rgba(139, 92, 246, 0.05);
  /* Volumetric Fog Glow (idle) */
  transition: transform 0.5s var(--transition-smooth), border-color 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth), background 0.5s var(--transition-smooth);
  background-size: 150% 150%;
  background-position: 0% 0%;
}

.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%) scale(0.85);
  /* Top-left directional light bias + dynamic cursor displacement */
  background: radial-gradient(circle at calc(35% + var(--btn-norm-x, 0) * 20%) calc(35% + var(--btn-norm-y, 0) * 20%),
      rgba(168, 85, 247, 0.88) 0%,
      /* Purple Core */
      rgba(129, 140, 248, 0.28) 25%,
      /* Purple Glow */
      rgba(99, 102, 241, 0.08) 65%,
      transparent 100%);
  opacity: 0.65;
  transition: transform 0.6s var(--transition-smooth), opacity 0.6s var(--transition-smooth);
  pointer-events: none;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.18),
      transparent);
  transform: skewX(-25deg);
  transition: 0.85s var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.45);
  /* Cool white-blue EAF2FF bounce inside smoked glass */
  background: rgba(10, 10, 14, 0.55) linear-gradient(135deg, rgba(234, 242, 255, 0.12) 0%, rgba(234, 242, 255, 0.05) 100%);
  animation: btn-glass-drift 6s ease-in-out infinite;
  box-shadow:
    0 15px 35px -8px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 45px rgba(139, 92, 246, 0.35),
    /* Subsurface Purple Luxury Accent (hover) */
    0 0 75px rgba(129, 140, 248, 0.22),
    /* Volumetric Fog Glow (hover) */
    0 0 20px rgba(99, 102, 241, 0.12);
  /* Ambient Reflection Layer */
}

.btn-primary:hover .btn-glow {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
}

.btn-primary:hover .btn-shine {
  left: 200%;
}

@keyframes btn-glass-drift {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  transition: color 0.3s, transform 0.3s;
}

.btn-arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s var(--transition-smooth);
}

.btn-secondary:hover {
  color: var(--color-text-primary);
  transform: translateX(3px);
}

.btn-secondary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Ambient Hero Geometry */
.hero-geometry {
  position: absolute;
  top: 0;
  right: 50%;
  width: 60%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.geo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.02);
  animation: geo-spin 60s linear infinite;
}

.geo-ring-1 {
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.015);
}

.geo-ring-2 {
  width: 380px;
  height: 380px;
  border: 1px dashed rgba(139, 92, 246, 0.03);
  animation-duration: 40s;
  animation-direction: reverse;
}

.geo-ring-3 {
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.01);
}

.geo-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  height: 1px;
  width: 120%;
}

.geo-line-1 {
  transform: rotate(-35deg);
}

.geo-line-2 {
  transform: rotate(55deg);
}

.geo-crystal {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.005) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(2px);
  border-radius: 4px;
}

.geo-crystal-1 {
  width: 80px;
  height: 80px;
  top: 25%;
  right: 20%;
  transform: rotate(45deg) translateZ(0);
  animation: float-slow 12s ease-in-out infinite alternate;
}

.geo-crystal-2 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  right: 40%;
  transform: rotate(-15deg) translateZ(0);
  animation: float-slow 18s ease-in-out infinite alternate-reverse;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.scroll-line {
  height: 40px;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: #ffffff;
  animation: scroll-slide 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.scroll-text {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Product Section */
.products-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-container {
  width: 100%;
}

.section-header {
  max-width: 580px;
  margin-bottom: 4.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-purple);
  margin-bottom: 1rem;
  display: block;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.section-title {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Products Grid */
.products-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

/* Add varied horizontal offsets for visual variety */
.product-card:nth-child(odd) {
  margin-left: 5%;
}

.product-card:nth-child(even) {
  margin-right: 5%;
}


.products-grid> :nth-child(4),
.products-grid> :nth-child(5) {
  grid-column: span 1;
}

@media (min-width: 1024px) {

  /* Dynamic alignment layout */
  .products-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  #card-automation {
    grid-column: span 3;
  }

  #card-webtools {
    grid-column: span 3;
  }

  #card-dashboards {
    grid-column: span 2;
  }

  #card-workflows {
    grid-column: span 2;
  }

  #card-integrations {
    grid-column: span 2;
  }
}

/* Premium Dark Glassmorphism Cards */
.product-card.shape-square {
  clip-path: none;
}

/* 45° beveled corners on all sides */
.product-card.shape-bevel {
  clip-path: polygon(5% 0%, 95% 0%,
      100% 5%, 100% 95%,
      95% 100%, 5% 100%,
      0% 95%, 0% 5%);
}

/* Mix of square and 45° cut: top‑left and bottom‑right beveled */
.product-card.shape-mixed {
  clip-path: polygon(5% 0%, 100% 0%,
      100% 5%, 95% 100%,
      0% 100%, 0% 95%);
}

/* Only top‑left 45° cut */
.product-card.shape-cut-tl {
  clip-path: polygon(5% 0%, 100% 0%,
      100% 100%, 0% 100%,
      0% 5%);
}

/* Only bottom‑right 45° cut */
.product-card.shape-cut-br {
  clip-path: polygon(0% 0%, 100% 0%,
      100% 95%, 95% 100%,
      0% 100%, 0% 0%);
}



.card-inner {
  padding: 2.2rem;
  height: 10%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 3;
  transform: translateZ(30px);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 80%),
    radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--color-accent-purple-glow), transparent 80%);
  opacity: 0;
  transition: opacity 0.5s var(--transition-smooth);
  pointer-events: none;
  z-index: 1;
}

.card-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  opacity: 0.4;
  transition: opacity 0.5s;
  z-index: 2;
  pointer-events: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-text-primary);
  margin-bottom: auto;
  opacity: 0.7;
  transition: opacity 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth);
  transform: translateZ(10px);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  transform: translateZ(15px);
}

.card-description {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  transform: translateZ(10px);
  transition: color 0.4s;
}

.card-divider {
  height: 1px;
  background: var(--color-white-border);
  width: 100%;
  margin-bottom: 1rem;
  transition: background-color 0.4s;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.card-arrow {
  margin-left: 0.4rem;
  transition: transform 0.3s var(--transition-smooth);
}

/* Card Canvas — lives beneath card-inner */
.card-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 10%;
  z-index: 0;
  pointer-events: none;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .card-canvas {
  opacity: 1;
}

/* Card Hover Interactions */
.product-card:hover {
  border-color: rgba(255, 154, 61, 0.22);
  box-shadow:
    0 20px 50px -15px rgba(0, 0, 0, 0.85),
    0 0 25px 0px rgba(255, 154, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.product-card:hover .card-glow {
  opacity: 1;
}

.product-card:hover .card-icon {
  opacity: 1;
  transform: translateZ(25px) scale(1.05);
  color: rgba(255, 154, 61, 0.9);
}

.product-card:hover .card-description {
  color: rgba(255, 255, 255, 0.8);
}

.product-card:hover .card-divider {
  background: rgba(255, 154, 61, 0.25);
}

.product-card:hover .card-link {
  color: rgba(255, 154, 61, 0.9);
}

.product-card:hover .card-arrow {
  transform: translateX(5px);
}

/* Card — expanded state */
.product-card.is-expanding {
  z-index: 200;
}

/* ── Fullscreen Overlay ────────────────────────────────────────────────────── */
.card-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0s linear 0.6s;
}

.card-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0s linear 0s;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.overlay-panel {
  position: absolute;
  inset: 3vmin;
  border-radius: 24px;
  border: 1px solid rgba(255, 154, 61, 0.12);
  background: rgba(8, 8, 14, 0.72);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(255, 154, 61, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-overlay.is-open .overlay-panel {
  transform: scale(1) translateY(0);
}

#overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  border-radius: 24px;
}

.overlay-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 5vmin 8vmin;
  max-width: 760px;
}

.overlay-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 154, 61, 0.75);
  margin-bottom: 1.4rem;
  display: block;
}

.overlay-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 2rem;
  color: #ffffff;
}

.overlay-description {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3rem;
  max-width: 540px;
}

.overlay-cta {
  align-self: flex-start;
}

.overlay-close {
  position: absolute;
  top: 2.2rem;
  right: 2.2rem;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overlay-close:hover {
  color: rgba(255, 154, 61, 0.9);
  border-color: rgba(255, 154, 61, 0.3);
  background: rgba(255, 154, 61, 0.06);
  transform: rotate(90deg);
}

.overlay-close svg {
  width: 18px;
  height: 18px;
}


/* Full‑screen page canvas – used on individual service pages */
.page-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCTS SECTION — SPLIT LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.products-section {
  padding: 8rem 0 10rem;
  overflow: visible;
}

.products-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.products-left {
  position: sticky;
  top: 30vh;
  padding-right: 2rem;
}

.products-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 200px;
  padding: 1rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BASE CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.pc-card {
  position: relative;
  cursor: pointer;
  outline: none;
  transition: transform 0.4s ease;
  /* No overflow:hidden so canvas can bleed out */
}

.pc-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.4s ease;
}

.pc-card:hover {
  transform: translateY(-3px);
}
.pc-card:hover .pc-bg {
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.7),
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 154, 61, 0.08);
}

.pc-card:focus-visible {
  outline: 2px solid rgba(255, 154, 61, 0.6);
  outline-offset: 4px;
}

/* Full-bleed canvas behind content but NOT clipped by bg */
.pc-canvas {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  pointer-events: none;
  z-index: 2; /* above bg, below content */
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD SHAPES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Card 1 — Wide horizontal rectangle, generously rounded */
.pc-card-1 {
  width: 100%;
  max-width: 560px;
  height: 180px;
}
.pc-card-1 .pc-bg {
  border-radius: 26px;
}

/* Card 2 — Dual-square diagonal structure
   Achieved via clip-path that cuts a diagonal step from the centre outward */
.pc-card-2 {
  width: 100%;
  max-width: 520px;
  height: 280px;
}
.pc-card-2 .pc-bg {
  border-radius: 22px;
  /* The clip-path creates the notched diagonal silhouette */
  clip-path: polygon(
    0% 0%,
    50% 0%,
    50% 50%,
    100% 50%,
    100% 100%,
    50% 100%,
    50% 50%,
    0% 50%
  );
  background: transparent;
  box-shadow: none; /* Shadow applies to inner squares instead */
}

/* Inner squares for card 2 */
.pc-content-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 3;
}

.pc-square-a {
  grid-column: 1;
  grid-row: 1;
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px 0 0 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.pc-square-b {
  grid-column: 2;
  grid-row: 2;
  background: rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 0 0 22px 0;
  padding: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Card 3 — Wide oval / elongated ellipse */
.pc-card-3 {
  width: 100%;
  max-width: 560px;
  height: 130px;
}
.pc-card-3 .pc-bg {
  border-radius: 50%;
}

/* Card 4 — Tall vertical rectangle */
.pc-card-4 {
  width: 100%;
  max-width: 400px;
  height: 340px;
}
.pc-card-4 .pc-bg {
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */

.pc-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 2.2rem;
  pointer-events: none;
}

.pc-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 154, 61, 0.65);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.pc-title {
  font-size: 1.35rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.pc-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 154, 61, 0.8);
  letter-spacing: 0.04em;
  margin-top: 1rem;
}

.pc-arrow {
  transition: transform 0.3s ease;
}

.pc-card:hover .pc-arrow {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FULLSCREEN OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.pc-overlay {
  position: fixed;
  z-index: 9000;
  background: rgba(8, 8, 12, 0.94);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow:
    0 0 0 1px rgba(255, 154, 61, 0.12),
    0 40px 120px rgba(0, 0, 0, 0.9);
  /* Position/size driven by JS animation */
  overflow: hidden;
}

.pc-overlay.is-open {
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  opacity: 1 !important;
}

.pc-overlay-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
}

.pc-overlay-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pc-overlay-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 154, 61, 0.65);
}

.pc-overlay-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.pc-overlay-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin: 0;
}

.pc-overlay-cta {
  align-self: flex-start;
  margin-top: 1rem;
}

.pc-overlay-close {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.pc-overlay-close:hover {
  background: rgba(255, 154, 61, 0.15);
  border-color: rgba(255, 154, 61, 0.4);
  color: rgba(255, 154, 61, 0.9);
}

.pc-overlay-close svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 2rem;
  }
  .products-left {
    position: static;
    padding-right: 0;
  }
  .products-right {
    align-items: stretch;
  }
  .pc-card-1, .pc-card-2, .pc-card-3, .pc-card-4 {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .pc-card-1 { height: 150px; }
  .pc-card-3 { height: 110px; }
  .pc-card-4 { height: 260px; }
}



.contact-section {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.contact-description {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dimmed);
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-text-primary);
  transition: color 0.3s;
}

a.detail-value:hover {
  color: var(--color-accent-purple);
}

/* Contact Form Panel */
.glass-panel {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-white-border);
  border-radius: 20px;
  padding: 2.5rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  transition: border-color 0.4s var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.form-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--color-accent-purple-glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.form-group {
  position: relative;
  margin-bottom: 1.75rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
  display: block;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-family);
  font-size: 0.9rem;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.3s var(--transition-smooth), background-color 0.3s;
}

.form-textarea {
  resize: vertical;
}

.input-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent-purple);
  transition: width 0.4s var(--transition-smooth);
}

.form-input:focus {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.form-input:focus+.input-glow {
  width: 100%;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
}

/* Footer styling */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #030303;
  padding: 3.5rem 2rem;
  z-index: 10;
  position: relative;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-text-primary);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--color-text-dimmed);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--color-text-primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-dimmed);
}

/* Animations Keyframes */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 4px var(--color-accent-purple);
    opacity: 0.6;
  }

  100% {
    box-shadow: 0 0 12px var(--color-accent-purple);
    opacity: 1;
  }
}

@keyframes scroll-slide {
  0% {
    transform: translateY(-100%);
  }

  60% {
    transform: translateY(250%);
  }

  100% {
    transform: translateY(250%);
  }
}

@keyframes geo-spin {
  0% {
    transform: rotate(0deg);
  }

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

@keyframes float-slow {
  0% {
    transform: rotate(45deg) translateY(0px) translateX(0px);
  }

  100% {
    transform: rotate(50deg) translateY(-15px) translateX(10px);
  }
}

@keyframes bismuth-shine {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes bismuth-iridescence {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 200% 200%;
  }
}

/* Responsiveness adjustments */
@media (max-width: 900px) {
  .section {
    padding: 6rem 1.5rem 3rem 1.5rem;
  }

  .bismuth-text {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .desktop-break {
    display: none;
  }

  .hero-geometry {
    display: none;
  }
}

@media (max-width: 600px) {
  #site-header {
    top: 1rem;
  }

  .glass-nav {
    max-width: 100%;
    border-radius: 20px;
  }

  .nav-inner {
    padding: 0.6rem 1.1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .bismuth-text {
    font-size: 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .glass-panel {
    padding: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   AGIONIX — PREMIUM SIMPLIFIED LAYOUT & POPUP SYSTEMS
   ═══════════════════════════════════════════════════════════════ */

/* ── Scroll Reveal ── */
.reveal-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal-target.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Refinements (Exceptionally Simple) ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-purple);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.2s var(--transition-smooth) forwards;
}
.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent-purple);
  box-shadow: 0 0 6px var(--color-accent-purple);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.4s var(--transition-smooth) forwards;
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s 0.6s var(--transition-smooth) forwards;
}
.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 5rem;
  opacity: 0;
  animation: fadeUp 1s 0.8s var(--transition-smooth) forwards;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-text-muted);
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--color-white-border);
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}
.btn-ghost:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent-purple);
  background: rgba(129, 140, 248, 0.04);
  box-shadow:
    0 8px 25px -5px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(129, 140, 248, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-arrow { transition: transform 0.3s var(--transition-smooth); }
.btn-ghost:hover .btn-arrow { transform: translateX(3px); }
.btn-nav {
  padding: 0.5rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 9999px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .btn-nav { display: none; }
}

/* ── Hero Before / After Cards ── */
.hero-transform {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 840px;
  width: 100%;
  opacity: 0;
  animation: fadeUp 1.2s 1s var(--transition-smooth) forwards;
  margin-top: 2rem;
}
.transform-card {
  flex: 1;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--color-white-border);
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  text-align: left;
}
.transform-before {
  border-color: rgba(239, 68, 68, 0.08);
  background: rgba(239, 68, 68, 0.015);
}
.transform-after {
  border-color: rgba(74, 222, 128, 0.08);
  background: rgba(74, 222, 128, 0.015);
}
.transform-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dimmed);
  margin-bottom: 1rem;
}
.label-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
}
.label-dot-bad { background: #ef4444; }
.label-dot-good { background: #4ade80; }
.transform-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
  min-height: 4.8rem;
}
.transform-after .transform-text { color: #d1fae5; }
.transform-meta {
  display: flex;
  gap: 0.5rem;
}
.meta-tag {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-dimmed);
  text-transform: uppercase;
}
.meta-tag-good {
  background: rgba(74, 222, 128, 0.05);
  color: rgba(74, 222, 128, 0.7);
}
.transform-arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  gap: 0.5rem;
  flex-shrink: 0;
}
.transform-arrow-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(180deg, transparent, var(--color-white-border), transparent);
}
.transform-arrow-icon {
  width: 24px; height: 24px;
  color: var(--color-accent-purple);
}
.transform-arrow-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dimmed);
}
@media (max-width: 768px) {
  .hero-transform { flex-direction: column; gap: 1rem; }
  .transform-arrow-wrap { flex-direction: row; padding: 1rem 0; }
  .transform-arrow-line { width: 1px; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--color-white-border), transparent); }
}

/* ── Benefits (Why It Matters) ── */
.benefits-section { padding: 8rem 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.benefit-card {
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--color-white-border);
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  text-align: left;
  transition: transform 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth);
}
.clickable-card {
  cursor: pointer;
}
.clickable-card:hover {
  border-color: rgba(129, 140, 248, 0.25);
  transform: translateY(-4px);
}
.benefit-icon {
  width: 32px; height: 32px;
  color: var(--color-accent-purple);
  margin-bottom: 1.5rem;
}
.benefit-title {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.benefit-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ── How It Works Section ── */
.hiw-section { padding: 8rem 0; }
.hiw-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 4rem;
}
.hiw-step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
  transition: transform 0.4s var(--transition-smooth);
}
.clickable-step {
  cursor: pointer;
}
.clickable-step:hover {
  transform: translateY(-3px);
}
.hiw-step-num {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-accent-purple);
  margin-bottom: 1.2rem;
}
.hiw-step-title {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.hiw-step-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.hiw-connector {
  display: flex;
  align-items: center;
  padding-top: 2.2rem;
  width: 40px;
  flex-shrink: 0;
}
.hiw-connector-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-white-border), transparent);
}
@media (max-width: 900px) {
  .hiw-flow { flex-direction: column; gap: 2.5rem; align-items: center; }
  .hiw-connector { display: none; }
}

/* ── Live Demo Section ── */
.demo-section { padding: 8rem 0; }
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 3rem 0 2.5rem;
}
.demo-tab {
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--color-white-border);
  border-radius: 9999px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}
.demo-tab:hover {
  border-color: var(--color-white-border-hover);
  color: var(--color-text-primary);
}
.demo-tab.active {
  background: var(--color-accent-purple);
  border-color: var(--color-accent-purple);
  color: #fff;
}
.demo-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}
.demo-panel {
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--color-white-border);
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  text-align: left;
}
.demo-original { border-color: rgba(239, 68, 68, 0.05); }
.demo-enhanced { border-color: rgba(74, 222, 128, 0.05); }
.demo-panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.demo-panel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.demo-dot-bad { background: #ef4444; }
.demo-dot-good { background: #4ade80; }
.demo-panel-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dimmed);
}
.demo-panel-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  transition: opacity 0.25s ease;
}
.demo-enhanced .demo-panel-text { color: #d1fae5; }
.demo-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  gap: 0.5rem;
}
.demo-divider-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--color-white-border), transparent);
}
.demo-divider-badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent-purple);
  background: var(--color-accent-purple-glow);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
}
.integrations-compact-link {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.integrations-compact-link a {
  color: var(--color-accent-purple);
  font-weight: 400;
  text-underline-offset: 4px;
}
.integrations-compact-link a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .demo-compare { grid-template-columns: 1fr; gap: 1rem; }
  .demo-divider { display: none; }
}

/* ── ROI (Compact) ── */
.roi-section-compact {
  padding: 5rem 0;
  border-top: 1px solid var(--color-white-border);
  border-bottom: 1px solid var(--color-white-border);
}
.roi-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 2rem;
}
.roi-compact-item {
  text-align: center;
}
.roi-val-wrapper {
  display: inline-flex;
  align-items: baseline;
}
.roi-number {
  font-size: 2.8rem;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #fff;
}
.roi-suffix {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-accent-purple);
  margin-left: 0.1rem;
}
.roi-compact-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
  font-weight: 400;
}
@media (max-width: 768px) {
  .roi-compact-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

/* ── Final CTA ── */
.finalcta-section {
  padding: 10rem 0;
  text-align: center;
}
.finalcta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.finalcta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 200;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
.finalcta-accent {
  background: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.finalcta-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.btn-large {
  padding: 1rem 2.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 9999px;
  cursor: pointer;
}

/* ── Footer ── */
.site-footer {
  padding: 5rem 2rem;
  border-top: 1px solid var(--color-white-border);
  background: rgba(5,5,8,0.4);
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand {
  text-align: left;
}
.footer-logo {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #fff;
  display: block;
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--color-text-dimmed);
}
.footer-links {
  display: flex;
  gap: 1.8rem;
}
.footer-link {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: color 0.3s;
}
.footer-link:hover {
  color: #fff;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-dimmed);
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 2rem;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { text-align: center; }
  .footer-links { flex-direction: column; gap: 1rem; }
}


/* ═══════════════════════════════════════════════════════════════
   RADICAL MINIMALISM & SIDE PANEL SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* Floating Centered Logo Intro */
.floating-logo-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1010;
  pointer-events: none;
  animation: logoWrapIntro 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoWrapIntro {
  0% {
    transform: translateY(40px);
  }
  100% {
    transform: translateY(0);
  }
}

.floating-logo {
  position: fixed;
  font-family: var(--font-family);
  font-size: 3rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 
    0 0 30px rgba(255, 255, 255, 0.1),
    0 0 60px rgba(129, 140, 248, 0.05);
  pointer-events: none;
  z-index: 1011;
  transform-origin: center center;
  transition: transform 0.1s linear, letter-spacing 0.1s linear;
}

/* Minimal Header Navigation */
.site-header-minimal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  background: rgba(5, 5, 8, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--transition-smooth);
}

.nav-minimal-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-placeholder {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  visibility: hidden;
  user-select: none;
  margin-left: 2.5rem;
}

.nav-center {
  display: flex;
  gap: 1rem;
}

.nav-link-btn {
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.3s var(--transition-smooth);
}

.nav-link-btn:hover {
  color: #ffffff;
}

.btn-nav-minimal {
  padding: 0.55rem 1.4rem;
  font-size: 0.8rem;
}

/* Hero Section (Just logo space) */
.hero-minimal-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-minimal-content {
  position: relative;
  z-index: 10;
}

.hero-logo-placeholder {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  visibility: hidden;
  user-select: none;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.6;
  z-index: 10;
  transition: opacity 0.4s var(--transition-smooth);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent-orange), transparent);
  animation: scrollPulse 2s infinite alternate;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0.7); opacity: 0.5; }
  100% { transform: scaleY(1.3); opacity: 1; }
}

.scroll-text {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

/* Section minimal layouts */
.section-minimal {
  padding: 12rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.minimal-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Section 2: Communication Layer */
.comm-layer-section {
  padding-top: 14rem;
}

.comm-title {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  font-weight: 200;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.accent-orange-text {
  color: var(--color-accent-orange);
  text-shadow: 0 0 40px rgba(249, 115, 22, 0.15);
}

.comm-subtitle {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 3.5rem;
}

.comm-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Section 3: Interactive Demo */
.demo-minimal-section {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 80%);
}

.demo-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-purple);
  margin-bottom: 1rem;
}

.demo-title {
  font-size: 2.2rem;
  font-weight: 200;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 3.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   IMMERSIVE FULLSCREEN INFORMATION LAYERS
   ═══════════════════════════════════════════════════════════════ */

.fullscreen-layer {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  transition: 
    left 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    background-color 0.65s ease;
}

.layer-content {
  opacity: 0;
  transform: translateY(30px);
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.layer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.2rem 3rem 0 3rem;
  z-index: 10;
}

.layer-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-family);
  transition: color 0.3s var(--transition-smooth);
}

.layer-close-btn:hover {
  color: #ffffff;
}

.close-icon {
  font-size: 2rem;
  font-weight: 200;
  line-height: 0.8;
}

.close-text {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.layer-body-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem 8rem 3rem;
  text-align: left;
}

.layer-body-narrow {
  max-width: 620px;
}

.layer-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-orange);
  display: block;
  margin-bottom: 0.8rem;
}

.layer-hero-title {
  font-size: clamp(3rem, 7.5vw, 5.2rem);
  font-weight: 200;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 2.5rem;
}

.layer-lead-text {
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 820px;
  margin-bottom: 5rem;
}

/* Why It Matters Grid */
.layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.layer-grid-card {
  background: rgba(14, 15, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 3rem;
  border-radius: 16px;
  transition: border-color 0.4s var(--transition-smooth), background-color 0.4s var(--transition-smooth);
}

.layer-grid-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(18, 19, 28, 0.92);
}

.card-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent-orange);
  display: block;
  margin-bottom: 1.2rem;
}

.layer-grid-card h3 {
  font-size: 1.4rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 1rem;
}

.layer-grid-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

/* Flowchart Diagram (How It Works) */
.visual-storyboard {
  margin: 8rem 0 6rem 0;
  width: 100%;
}

.story-nodes {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.8rem;
  position: relative;
}

.story-node {
  background: rgba(14, 15, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 2.5rem 1.8rem;
  flex: 1;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.4s, background-color 0.4s;
}

.story-node.node-highlight {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(22, 16, 14, 0.90);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.15);
}

.node-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  line-height: 1;
}

.story-node h4 {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.node-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  margin-bottom: 0;
}

.story-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0.35;
  position: relative;
}

.arrow-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.pulse-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-accent-orange);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: pulseTravel 2s infinite linear;
}

@keyframes pulseTravel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Speech bubbles representing rewrites */
.speech-bubble {
  position: absolute;
  top: -85px;
  width: 230px;
  padding: 1rem 1.3rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bubble-bad {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  left: 0;
}

.bubble-good {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #d1fae5;
  right: -30px;
  width: 270px;
  top: -105px;
}

/* Tech steps inside How It Works Layer */
.tech-steps-fullscreen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 5rem;
}

.tech-step-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-num {
  font-size: 2rem;
  font-weight: 200;
  color: var(--color-accent-orange);
}

.tech-step-item h3 {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0;
}

.tech-step-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

/* Contact form in fullscreen layer */
.contact-form-minimal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn-submit-panel {
  width: 100%;
  padding: 0.95rem;
  margin-top: 1rem;
}

.panel-success-message {
  text-align: center;
  padding: 4rem 1rem;
  animation: panelSuccessFadeIn 0.5s var(--transition-smooth) forwards;
}

@keyframes panelSuccessFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-success-message h4 {
  font-size: 1.6rem;
  color: #4ade80;
  margin-bottom: 0.8rem;
  font-weight: 300;
}

.panel-success-message p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Conversion Minimal Section */
.conversion-minimal-section {
  padding: 10rem 2rem;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 60%);
}

.conversion-title {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 200;
  color: #ffffff;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

/* Footer Minimal */
.footer-minimal {
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.footer-minimal-inner {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-dimmed);
}

@media (max-width: 900px) {
  .story-nodes {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .story-arrow {
    height: 40px;
    width: 100%;
    transform: rotate(90deg);
  }
  .speech-bubble {
    position: static;
    margin-top: 1.5rem;
    width: 100%;
  }
  .bubble-good {
    right: 0;
  }
  .layer-body-container {
    padding: 4rem 1.5rem 6rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .footer-minimal-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .site-header-minimal {
    padding: 0 1.5rem;
  }
  .nav-center {
    display: none; /* Hide internal links on mobile to save space */
  }
  .layer-nav {
    padding: 1.5rem 1.5rem 0 1.5rem;
  }
}

/* Global Fullscreen Layer Background Overlay */
.global-layer-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(13, 11, 23, 0.45); /* Soft dark purple overlay */
  opacity: 0;
  visibility: hidden;
  z-index: 1999; /* Just below fullscreen layers (which are 2000) */
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.global-layer-bg::before {
  display: none;
}

.global-layer-bg.active {
  opacity: 1;
  visibility: visible;
}

.layer-content {
  position: relative;
  z-index: 5;
}

/* Fade out landing page content when fullscreen layer is open */
#floating-logo-wrap,
#site-header,
#hero,
#communication-layer,
#demo,
.conversion-minimal-section,
.footer-minimal {
  transition: opacity 0.5s var(--transition-smooth);
}

body.layer-open #floating-logo-wrap,
body.layer-open #site-header,
body.layer-open #hero,
body.layer-open #communication-layer,
body.layer-open #demo,
body.layer-open #ai-demo-tool,
body.layer-open .conversion-minimal-section,
body.layer-open .footer-minimal {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AI HUMANIZER DEMO TOOL
   ═══════════════════════════════════════════════════════════════════════════ */

.ai-demo-section {
  padding: 8rem 0 6rem;
}

.ai-demo-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.ai-demo-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-purple);
  margin-bottom: 1rem;
}

.ai-demo-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.ai-demo-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Input Block ── */
.ai-demo-tool-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ai-demo-input-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-white-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.4s var(--transition-smooth);
}

.ai-demo-input-block:focus-within {
  border-color: rgba(129, 140, 248, 0.25);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 40px rgba(129,140,248,0.06),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.ai-demo-step {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ai-demo-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ai-demo-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ai-step-num {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-accent-purple);
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.ai-demo-textarea {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-primary);
  line-height: 1.65;
  resize: vertical;
  outline: none;
  min-height: 130px;
  transition: border-color 0.3s var(--transition-smooth), background 0.3s;
}

.ai-demo-textarea::placeholder {
  color: var(--color-text-dimmed);
  font-style: italic;
}

.ai-demo-textarea:focus {
  border-color: rgba(129,140,248,0.3);
  background: rgba(255,255,255,0.04);
}

.ai-demo-selects-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .ai-demo-selects-row {
    grid-template-columns: 1fr;
  }
}

.ai-select-wrap {
  position: relative;
}

.ai-demo-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-primary);
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s var(--transition-smooth), background 0.3s;
}

.ai-demo-select:focus {
  border-color: rgba(129,140,248,0.3);
  background: rgba(255,255,255,0.04);
}

.ai-demo-select option {
  background: #0d0b17;
  color: var(--color-text-primary);
}

.ai-select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  pointer-events: none;
  transition: color 0.3s;
}

.ai-select-wrap:focus-within .ai-select-arrow {
  color: var(--color-accent-purple);
}

.ai-humanize-btn {
  align-self: flex-start;
  padding: 0.9rem 2.5rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-btn-loader {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: ai-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.ai-humanize-btn.is-loading .ai-btn-loader {
  display: block;
}

.ai-humanize-btn.is-loading .btn-text {
  opacity: 0.5;
}

@keyframes ai-spin {
  to { transform: rotate(360deg); }
}

.ai-demo-error {
  font-size: 0.82rem;
  color: rgba(248, 113, 113, 0.85);
  min-height: 1.2em;
  transition: opacity 0.3s;
}

/* ── Results Panel ── */
.ai-demo-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.ai-demo-results.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Scores */
.ai-results-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 540px) {
  .ai-results-scores { grid-template-columns: 1fr; }
}

.ai-score-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-white-border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.ai-score-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ai-score-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

.ai-score-bar {
  height: 100%;
  border-radius: 99px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-score-bar-original {
  background: linear-gradient(90deg, #475569, #64748b);
}

.ai-score-bar-improved {
  background: linear-gradient(90deg, var(--color-accent-purple), #a78bfa);
}

.ai-score-value {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  line-height: 1;
}

.ai-score-improved {
  color: var(--color-accent-purple);
}

/* Results Grid */
.ai-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .ai-results-grid { grid-template-columns: 1fr; }
}

.ai-result-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-white-border);
  border-radius: 14px;
  padding: 1.5rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 8px 30px -10px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.3s var(--transition-smooth), box-shadow 0.3s;
}

.ai-result-panel:hover {
  border-color: rgba(129,140,248,0.18);
  box-shadow:
    0 12px 40px -10px rgba(0,0,0,0.6),
    0 0 25px rgba(129,140,248,0.05),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.ai-result-why-full {
  grid-column: 1 / -1;
}

.ai-result-panel-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.ai-result-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ai-dot-neutral { background: #64748b; }
.ai-dot-good    { background: var(--color-accent-purple); box-shadow: 0 0 8px rgba(129,140,248,0.5); }
.ai-dot-sms     { background: #38bdf8; box-shadow: 0 0 8px rgba(56,189,248,0.4); }
.ai-dot-email   { background: #a78bfa; box-shadow: 0 0 8px rgba(167,139,250,0.4); }
.ai-dot-why     { background: var(--color-accent-orange); box-shadow: 0 0 8px rgba(249,115,22,0.4); }

.ai-result-panel-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ai-result-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Lead gen CTA card */
.ai-lead-cta-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid rgba(129,140,248,0.2);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 50px rgba(129,140,248,0.06),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.ai-lead-cta-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(129,140,248,0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.ai-lead-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.ai-lead-cta-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--color-text-primary);
  max-width: 520px;
}


/* ═══════════════════════════════════════════════════════════════
   EMAIL GATE — One-Time Demo Restriction UI
   ═══════════════════════════════════════════════════════════════ */

/* ── Gate container ─────────────────────────────────────────── */
.ai-email-gate {
  position: relative;
  margin-bottom: 0;
}

.ai-email-gate-inner {
  position: relative;
  background: rgba(14, 12, 23, 0.7);
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow: hidden;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(129, 140, 248, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  /* Ambient top glow */
}

.ai-email-gate-inner::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(129, 140, 248, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Icon ───────────────────────────────────────────────────── */
.ai-email-gate-icon {
  font-size: 2rem;
  color: var(--color-accent-purple);
  text-shadow: 0 0 20px rgba(129, 140, 248, 0.6);
  margin-bottom: 1.25rem;
  animation: gate-icon-pulse 3s ease-in-out infinite;
  display: block;
}

@keyframes gate-icon-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

/* ── Text ───────────────────────────────────────────────────── */
.ai-email-gate-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.ai-email-gate-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.ai-email-gate-note {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-text-dimmed);
  margin-top: 0.3rem;
  text-transform: uppercase;
}

/* ── Form row ───────────────────────────────────────────────── */
.ai-email-gate-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
  align-items: stretch;
}

/* ── Email input ────────────────────────────────────────────── */
.ai-email-input-wrap {
  position: relative;
  flex: 1;
}

.ai-email-input {
  width: 100%;
  height: 100%;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  font-size: 0.9rem;
  font-weight: 300;
  font-family: var(--font-family);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  letter-spacing: 0.01em;
}

.ai-email-input::placeholder {
  color: var(--color-text-dimmed);
}

.ai-email-input:focus {
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 3px rgba(129, 140, 248, 0.08),
    0 0 20px rgba(129, 140, 248, 0.1);
}

.ai-email-input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--color-text-dimmed);
  pointer-events: none;
  transition: color 0.3s;
}

.ai-email-input:focus ~ .ai-email-input-icon {
  color: var(--color-accent-purple);
}

/* ── Unlock button ──────────────────────────────────────────── */
.ai-email-submit-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-email-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Error ──────────────────────────────────────────────────── */
.ai-email-gate-error {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #f87171;
  min-height: 1.2em;
  text-align: center;
  letter-spacing: 0.01em;
  animation: error-fade-in 0.3s ease;
}

@keyframes error-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Verified badge (shown after gate passes) ───────────────── */
.ai-demo-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
}

.ai-verified-icon {
  color: #4ade80;
  font-size: 0.9rem;
}

.ai-verified-text {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.ai-verified-text strong {
  color: #4ade80;
  font-weight: 400;
}

/* ── Loader spinner (shared with humanize btn) ──────────────── */
.ai-btn-loader {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ai-email-gate-inner {
    padding: 2rem 1.25rem;
  }

  .ai-email-gate-form {
    flex-direction: column;
  }

  .ai-email-submit-btn {
    width: 100%;
    border-radius: 9999px;
  }
}