﻿/* ==========================================================================
   KIRN | Advanced Premium Animation & Interactive Styling System
   ========================================================================== */

@charset "UTF-8";

/* Lenis Recommended High-Performance Smooth Scrolling */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

:root {
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Core Typography Rules: Immediate Zero-Delay Application */
.font-serif,
[class*="font-serif"],
h1.font-serif,
h2.font-serif,
h3.font-serif {
  font-family: 'Instrument Serif', Georgia, serif !important;
}

.font-sans,
[class*="font-sans"] {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.font-display,
[class*="font-display"] {
  font-family: 'Syne', sans-serif;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0A0A0A;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Sticky Footer: Always pins footer to the bottom on short pages and zoom-out */
body > footer,
footer {
  margin-top: auto;
}

*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection: Pink highlight (#F2A7AC) with deep black text (#0F0F10) */
::selection, *::selection {
  background-color: #F2A7AC !important;
  color: #0F0F10 !important;
  -webkit-text-fill-color: #0F0F10 !important;
}
::-moz-selection, *::-moz-selection {
  background-color: #F2A7AC !important;
  color: #0F0F10 !important;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #737373;
}

/* ==========================================================================
   1. Dynamic Card Glare & Hover System
   ========================================================================== */
.interactive-card {
  position: relative;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.50),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 25;
}

.interactive-card:hover::before {
  opacity: 1;
}

/* Light / Pastel Card High-Gloss Glare */
.light-card-glare::before {
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.72),
    transparent 60%
  ) !important;
}

/* Dark Card Specular Glare */
.dark-card-glare::before {
  background: radial-gradient(
    520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.20),
    transparent 50%
  ) !important;
}

/* ==========================================================================
   2. Audio Wave Equalizer Animation (Mockup Card 1)
   ========================================================================== */
@keyframes barBounce1 {
  0%, 100% { height: 6px; }
  50% { height: 16px; }
}
@keyframes barBounce2 {
  0%, 100% { height: 14px; }
  50% { height: 8px; }
}
@keyframes barBounce3 {
  0%, 100% { height: 8px; }
  50% { height: 18px; }
}
@keyframes barBounce4 {
  0%, 100% { height: 12px; }
  50% { height: 5px; }
}

.audio-bar-1 { animation: barBounce1 1.2s ease-in-out infinite; }
.audio-bar-2 { animation: barBounce2 0.9s ease-in-out infinite 0.15s; }
.audio-bar-3 { animation: barBounce3 1.1s ease-in-out infinite 0.3s; }
.audio-bar-4 { animation: barBounce4 1.4s ease-in-out infinite 0.45s; }

.audio-paused .audio-bar {
  animation-play-state: paused;
  height: 4px !important;
}

/* ==========================================================================
   3. Stacked Tax Cards (Card 3) — Clean Static Deck (No Open on Hover)
   ========================================================================== */
/* The stacked notification cards stay solid, clean, and static in a realistic 3D deck */

/* ==========================================================================
   4. Circular Gauge Stroke Animation (Card 4)
   ========================================================================== */
.gauge-circle {
  transition: stroke-dasharray 1.6s var(--ease-spring);
}

/* ==========================================================================
   5. Metallic Rosette 3D Slow Rotation (Card 5)
   ========================================================================== */
@keyframes spinSmooth {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-rosette {
  animation: spinSmooth 24s linear infinite;
  transform-origin: center;
}

.rosette-container:hover .animate-spin-rosette {
  animation-duration: 8s;
}

/* ==========================================================================
   6. Floating Competency Badges Physics (Card 6)
   ========================================================================== */
@keyframes floatDriftA {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}
@keyframes floatDriftB {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(-1.5deg); }
}

.float-pill-1 { animation: floatDriftA 4.5s ease-in-out infinite; }
.float-pill-2 { animation: floatDriftB 5.2s ease-in-out infinite 0.5s; }
.float-pill-3 { animation: floatDriftA 4.8s ease-in-out infinite 1s; }
.float-pill-4 { animation: floatDriftB 5.6s ease-in-out infinite 1.5s; }
.float-pill-5 { animation: floatDriftA 5s ease-in-out infinite 2s; }
.float-pill-6 { animation: floatDriftB 4.6s ease-in-out infinite 2.5s; }

/* ==========================================================================
   7. Magnetic Button Pull Effect
   ========================================================================== */
.magnetic-btn {
  display: inline-block;
  transition: transform 0.2s var(--ease-spring);
  will-change: transform;
}

/* ==========================================================================
   8. Scroll-Driven Reveal Animations
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Delay helpers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   9. Accordion Smooth Grid Transition
   ========================================================================== */
.accordion-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-spring);
}

.accordion-wrapper.is-open {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}



/* ==========================================================================
   11. Footer 3D Floating Elements & Flowing Physics (Inspired by 3D Reference)
   ========================================================================== */
.footer-3d-item {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform;
  transform-origin: center center;
  transition: transform 0.35s var(--ease-spring), filter 0.35s ease;
  user-select: none;
  contain: layout paint;
}

.footer-3d-item:hover {
  transform: scale(1.28) translate3d(0, -6px, 0) !important;
  filter: drop-shadow(0 15px 25px rgba(255, 255, 255, 0.25)) drop-shadow(0 0 15px rgba(255, 100, 200, 0.4));
  z-index: 50 !important;
}

.footer-3d-item:active {
  transform: scale(0.92) translate3d(0, 0, 0) !important;
}

/* Off-screen battery & CPU saver: Pauses animations when footer is out of view */
.footer-anim-paused .footer-3d-item,
footer.footer-anim-paused .footer-3d-item {
  animation-play-state: paused !important;
}

/* 60FPS Hardware Accelerated 3D Floats (Desktop) */
@keyframes float3D_1 {
  0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
  50% { transform: translate3d(0, -16px, 0) rotate(5deg); }
}
@keyframes float3D_2 {
  0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
  50% { transform: translate3d(0, -20px, 0) rotate(-7deg); }
}
@keyframes float3D_3 {
  0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(4deg); }
}
@keyframes float3D_4 {
  0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(-6deg); }
}
@keyframes float3D_5 {
  0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
  50% { transform: translate3d(0, -22px, 0) rotate(8deg); }
}
@keyframes float3D_6 {
  0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(-4deg); }
}

@keyframes starTwinkleGlow {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.18) rotate(12deg); opacity: 1; }
}

@keyframes neuralPulseGlow {
  0%, 100% { opacity: 0.8; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.04); }
}

.anim-float-1 { animation: float3D_1 5.4s ease-in-out infinite; }
.anim-float-2 { animation: float3D_2 6.2s ease-in-out infinite 0.4s; }
.anim-float-3 { animation: float3D_3 4.8s ease-in-out infinite 0.8s; }
.anim-float-4 { animation: float3D_4 5.8s ease-in-out infinite 1.2s; }
.anim-float-5 { animation: float3D_5 6.6s ease-in-out infinite 0.6s; }
.anim-float-6 { animation: float3D_6 5.0s ease-in-out infinite 1.5s; }
.anim-star-twinkle { animation: starTwinkleGlow 3.6s ease-in-out infinite; }
.anim-neural-pulse { animation: neuralPulseGlow 4.5s ease-in-out infinite; }

/* Mobile Performance Tuning (Screen width < 640px)
   Keeps all illustrations 100% visible and gorgeous, but smooths float travel and optimizes GPU draw */
@media (max-width: 639px) {
  .footer-3d-item svg {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) !important;
  }
  @keyframes float3D_1 {
    0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
    50% { transform: translate3d(0, -7px, 0) rotate(3deg); }
  }
  @keyframes float3D_2 {
    0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
    50% { transform: translate3d(0, -9px, 0) rotate(-4deg); }
  }
  @keyframes float3D_3 {
    0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
    50% { transform: translate3d(0, -6px, 0) rotate(2deg); }
  }
  @keyframes float3D_4 {
    0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
    50% { transform: translate3d(0, -8px, 0) rotate(-3deg); }
  }
  @keyframes float3D_5 {
    0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
    50% { transform: translate3d(0, -10px, 0) rotate(4deg); }
  }
  @keyframes float3D_6 {
    0%, 100% { transform: translate3d(0, 0px, 0) rotate(0deg); }
    50% { transform: translate3d(0, -5px, 0) rotate(-2deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-3d-item,
  .anim-float-1,
  .anim-float-2,
  .anim-float-3,
  .anim-float-4,
  .anim-float-5,
  .anim-float-6,
  .anim-star-twinkle,
  .anim-neural-pulse {
    animation: none !important;
  }
}

/* ==========================================================================
   10. Maggle Official Brand Typography (Embedded Base64 for 100% Reliability on All Devices)
   ========================================================================== */
@font-face {
  font-family: 'Maggle';
  src: local('Maggle'),
       local('Maggle Regular'),
       local('Maggle-Regular'),
       url('fonts/maggle-regular.otf') format('opentype'),
       url('fonts/maggle-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Maggle';
  src: local('Maggle Italic'),
       local('Maggle-Italic'),
       url('fonts/maggle-italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}



@font-face {
  font-family: 'Kristen ITC';
  src: local('Kristen ITC'),
       local('KristenITC-Regular'),
       local('ITCKRIST'),
       local('Kristen'),
       url('fonts/ITCKRIST.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Forte';
  src: local('Forte'), local('FORTE'), local('Forte Regular');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.font-maggle {
  font-family: 'Maggle', 'Plus Jakarta Sans', sans-serif !important;
}

.font-kristen {
  font-family: 'Maggle', 'Kristen ITC', 'ITCKRIST', sans-serif !important;
}

.font-forte {
  font-family: 'Maggle', 'Kristen ITC', 'ITCKRIST', sans-serif !important;
}

/* ==========================================================================
   11. Intro Screen & Ambient Glow Animations
   ========================================================================== */
@keyframes ambientAuraFloat {
  0%, 100% {
    transform: scale(1) translate(0px, 0px);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08) translate(-15px, 10px);
    opacity: 0.92;
  }
}

.intro-star-prism {
  transform-origin: center;
}

.intro-beam-aura {
  animation: ambientAuraFloat 8s ease-in-out infinite;
}

/* ==========================================================================
   12. Hero Showcase Cards Floating & Interactive 3D Architecture
   ========================================================================== */
@keyframes floatHeroCard1 {
  0%, 100% {
    transform: translateY(0px) rotate(-3deg) translateX(10px);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg) translateX(10px);
  }
}

@keyframes floatHeroCard2 {
  0%, 100% {
    transform: translateY(-14px) scale(1);
  }
  50% {
    transform: translateY(-24px) scale(1.01);
  }
}

@keyframes floatHeroCard3 {
  0%, 100% {
    transform: translateY(0px) rotate(3deg) translateX(-10px);
  }
  50% {
    transform: translateY(-9px) rotate(2deg) translateX(-10px);
  }
}

@media (min-width: 768px) {
  .hero-card-wrapper-1 {
    transform: rotate(-2.5deg) translateX(8px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    will-change: transform;
  }
  .hero-card-wrapper-2 {
    transform: translateY(-10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    will-change: transform;
    z-index: 10;
  }
  .hero-card-wrapper-3 {
    transform: rotate(2.5deg) translateX(-8px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    will-change: transform;
  }
  .hero-card-wrapper {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.15s ease;
  }
  .hero-card-wrapper:hover {
    z-index: 50 !important;
  }
  .hero-card-wrapper-1:hover {
    transform: translateY(-8px) rotate(-0.5deg) translateX(8px) scale(1.02) !important;
  }
  .hero-card-wrapper-2:hover {
    transform: translateY(-20px) scale(1.03) !important;
  }
  .hero-card-wrapper-3:hover {
    transform: translateY(-8px) rotate(0.5deg) translateX(-8px) scale(1.02) !important;
  }
}

/* ==========================================================================
   Hero Showcase Cards Premium Interactive Hover Effects (Desktop Only)
   ========================================================================== */
.hero-showcase-card {
  position: relative;
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background-color 0.3s ease;
}

.hero-showcase-pink {
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hero-showcase-sky {
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hero-showcase-mint {
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hero-card-arrow {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, background-color;
}

/* Desktop Only: Rich Interactive Hover Physics & Glowing Shadows */
@media (hover: hover) and (pointer: fine) {
  /* Pink / Design Layer */
  .hero-showcase-pink:hover {
    z-index: 40 !important;
    box-shadow: 0 30px 65px -12px rgba(244, 63, 94, 0.45),
                0 0 45px rgba(236, 72, 153, 0.30) !important;
    border-color: rgba(244, 63, 94, 0.85) !important;
  }
  .hero-showcase-pink:hover .hero-card-arrow {
    background-color: #F43F5E !important;
    color: #FFFFFF !important;
    transform: scale(1.22) rotate(45deg);
    box-shadow: 0 8px 22px rgba(244, 63, 94, 0.55);
  }

  /* Sky / Business Layer */
  .hero-showcase-sky:hover {
    z-index: 40 !important;
    box-shadow: 0 32px 70px -12px rgba(14, 165, 233, 0.48),
                0 0 50px rgba(56, 189, 248, 0.32) !important;
    border-color: rgba(14, 165, 233, 0.85) !important;
  }
  .hero-showcase-sky:hover .hero-card-arrow {
    background-color: #0284C7 !important;
    color: #FFFFFF !important;
    transform: scale(1.22) rotate(45deg);
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.55);
  }

  /* Mint / Everyday Layer */
  .hero-showcase-mint:hover {
    z-index: 40 !important;
    box-shadow: 0 30px 65px -12px rgba(16, 185, 129, 0.45),
                0 0 45px rgba(52, 211, 153, 0.30) !important;
    border-color: rgba(16, 185, 129, 0.85) !important;
  }
  .hero-showcase-mint:hover .hero-card-arrow {
    background-color: #059669 !important;
    color: #FFFFFF !important;
    transform: scale(1.22) rotate(45deg);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.55);
  }

  /* Specular Shimmer Sweep Effect */
  .hero-showcase-card:hover .card-shimmer-sweep {
    transform: translateX(140%);
  }

  .workflow-step-card:hover {
    border-color: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.12),
                0 0 30px rgba(244, 63, 94, 0.12) !important;
  }
  .workflow-step-card:hover .step-badge {
    background: linear-gradient(135deg, #F43F5E, #F59E0B) !important;
    transform: scale(1.2) rotate(6deg);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.45);
  }
}

/* Specular Shimmer Sweep Base Definition */
.card-shimmer-sweep {
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.75) 50%,
    transparent 80%
  );
  transform: translateX(-140%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* ==========================================================================
   Workflow Step Cards Base Styling
   ========================================================================== */
.workflow-step-card {
  transition: box-shadow 0.35s var(--ease-spring), border-color 0.3s ease, background-color 0.3s ease;
}

@keyframes subtleOrbFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-15px) scale(1.05);
    opacity: 0.55;
  }
}

.anim-orb-float {
  animation: subtleOrbFloat 8s ease-in-out infinite;
}

/* ==========================================================================
   13. Continuous Fluid Chromatic Flow for Hero Section & Ambient Lighting
   ========================================================================== */
@keyframes continuousFlow1 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.60;
  }
  50% {
    transform: translate3d(-15px, 12px, 0) scale(1.05);
    opacity: 0.75;
  }
}

@keyframes continuousFlow2 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.50;
  }
  50% {
    transform: translate3d(15px, -15px, 0) scale(1.06);
    opacity: 0.68;
  }
}

@keyframes continuousFlow3 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.40;
  }
  50% {
    transform: translate3d(-12px, 10px, 0) scale(1.04);
    opacity: 0.58;
  }
}

.anim-flowing-glow-1 {
  animation: none !important;
}

.anim-flowing-glow-2 {
  animation: none !important;
}

.anim-flowing-glow-3 {
  animation: none !important;
}

/* ==========================================================================
   14. Prism Dispersion Origin Glow & Radiant Wave System
   ========================================================================== */
@keyframes originGlowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.85;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

@keyframes originGlowOuterPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.90);
    opacity: 0.55;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 0.85;
  }
}

.anim-origin-glow {
  animation: originGlowPulse 4s ease-in-out infinite;
  will-change: transform, opacity;
}

.anim-origin-glow-outer {
  animation: originGlowOuterPulse 5.5s ease-in-out infinite 0.5s;
  will-change: transform, opacity;
}

/* ==========================================================================
   14. Horizontal Curtain Slide Hardware Acceleration & DOM Virtualization
   ========================================================================== */
#panel-intro {
  z-index: 100 !important;
  background-color: #ffffff !important;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#panel-intro[style*="display: none"] * {
  animation: none !important;
}

.perf-contain {
  /* Removed to eliminate scroll layout jumps */
}

/* ==========================================================================
   15. Typography Helpers
   ========================================================================== */
.font-maggle,
.font-kristen,
.font-forte {
  font-family: 'Maggle', 'Plus Jakarta Sans', sans-serif !important;
}

/* ==========================================================================
   16. Sticky / Fixed Top Navigation Bar
   ========================================================================== */
#main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Subpages: solid frosted backdrop always active and never transparent */
#main-header.subpage-header {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(229, 231, 235, 0.85) !important;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.04) !important;
}

/* ==========================================================================
   17. Glassmorphic Blur Layer for Pipeline & Feature Cards
   ========================================================================== */
.card-blur-layer {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(229, 231, 235, 0.85) !important;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transform: translateZ(0);
}

.card-blur-layer:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 18px 38px -6px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.graphic-blur-container {
  position: relative;
  overflow: hidden;
}

.graphic-blur-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* ==========================================================================
   18. Products Navigation Dropdown Menu
   ========================================================================== */
.nav-dropdown-trigger {
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  pointer-events: none;
}

.group\/nav:hover .nav-dropdown-menu,
.group\/nav:focus-within .nav-dropdown-menu,
.nav-dropdown-menu.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.group\/nav:hover .nav-dropdown-chevron,
.group\/nav:focus-within .nav-dropdown-chevron,
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-chevron {
  transform: rotate(180deg);
  color: #000000;
}

/* ==========================================================================
   19. Interactive Share Your Idea Pipeline (Bento Card 2)
   ========================================================================== */
.task-checklist-item {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
}

.task-checklist-item .checklist-badge {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* ==========================================================================
   20. Pipeline Cards Text Clarity & 6-Box Showcase
   ========================================================================== */
.pipeline-box-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 800 !important;
  color: #0a0a0a !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  letter-spacing: -0.025em !important;
  transform: translateZ(0);
}

.pipeline-tool-card {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pipeline-box-item {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-box-item.is-hidden {
  display: none !important;
}

.pipeline-dot.is-active {
  background-color: #000000 !important;
  width: 24px !important;
  border-radius: 9999px !important;
}

/* ==========================================================================
   21. Ecosystem Showcase (4 on Top, 4 on Bottom - 1 Active, Rest Blurred)
   ========================================================================== */
.ecosystem-card-active {
  background: #ffffff !important;
  border: 1px solid rgba(229, 231, 235, 0.95) !important;
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: translateZ(0);
}

.ecosystem-card-active:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.1) !important;
}

.ecosystem-card-blurred {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(229, 231, 235, 0.8) !important;
  box-shadow: 0 2px 14px -2px rgba(0, 0, 0, 0.04) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.ecosystem-card-blurred:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08) !important;
}

.ecosystem-card-blurred .blurred-graphic {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  transform: scale(1.02);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.ecosystem-card-blurred:hover .blurred-graphic {
  filter: blur(3.5px);
  -webkit-filter: blur(3.5px);
  transform: scale(1.04);
}

.ecosystem-card-blurred .blurred-tool-title {
  filter: blur(4.5px);
  -webkit-filter: blur(4.5px);
  opacity: 0.5;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.ecosystem-card-blurred:hover .blurred-tool-title {
  filter: blur(3px);
  -webkit-filter: blur(3px);
  opacity: 0.7;
}

.ecosystem-coming-soon-badge {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   22. Mobile Ultra-Smooth Performance Boost (Zero Lag, Native 60/120fps Scroll)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    -webkit-overflow-scrolling: touch;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  /* Optimize blur rasterization on mobile GPU */
  .anim-flowing-glow-1,
  .anim-flowing-glow-2,
  .anim-flowing-glow-3 {
    animation-duration: 18s !important;
    filter: blur(48px) !important;
    -webkit-filter: blur(48px) !important;
    will-change: auto !important;
  }
}

/* On touch devices, disable heavy hover transforms and glares to prevent forced reflows */
@media (hover: none) and (pointer: coarse) {
  .interactive-card::before,
  .light-card-glare::before {
    display: none !important;
  }
  .interactive-card {
    transform: none !important;
  }
  .magnetic-btn {
    transform: none !important;
  }
}

/* ==========================================================================
   23. Mobile View Optimization (Ecosystem Teasers & Footer Clutter Reduction)
   ========================================================================== */
@media (max-width: 768px) {
  /* Hide excessive Coming Soon ecosystem boxes on mobile (keep only 3) */
  .ecosystem-card-desktop-only {
    display: none !important;
  }

  /* Hide secondary floating 3D stickers in footer on mobile to prevent crowding */
  .footer-sticker-desktop-only {
    display: none !important;
  }
}

/* ==========================================================================
   24. Mobile Cards Performance & Zero-Lag Touch Engine
   ========================================================================== */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  /* Simple, smooth, static cards on mobile: NO heavy animations, NO sticky glow, NO hang */
  .hero-showcase-card,
  .hero-showcase-card:hover,
  .hero-showcase-card:active,
  .hero-showcase-card:focus,
  .hero-card-wrapper,
  .hero-card-wrapper:hover,
  .hero-card-wrapper:active {
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .hero-showcase-card {
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.05) !important;
  }

  .hero-showcase-pink,
  .hero-showcase-pink:hover,
  .hero-showcase-pink:active,
  .hero-showcase-pink:focus {
    box-shadow: 0 4px 14px -2px rgba(244, 63, 94, 0.10) !important;
    border-color: rgba(244, 63, 94, 0.35) !important;
  }

  .hero-showcase-sky,
  .hero-showcase-sky:hover,
  .hero-showcase-sky:active,
  .hero-showcase-sky:focus {
    box-shadow: 0 4px 14px -2px rgba(14, 165, 233, 0.10) !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
  }

  .hero-showcase-mint,
  .hero-showcase-mint:hover,
  .hero-showcase-mint:active,
  .hero-showcase-mint:focus {
    box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.10) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
  }

  /* Keep the arrow button simple, crisp, and static on mobile touch */
  .hero-card-arrow,
  .hero-showcase-card:hover .hero-card-arrow,
  .hero-showcase-card:active .hero-card-arrow,
  .group:hover .hero-card-arrow,
  .group:active .hero-card-arrow {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: none !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
  }

  .hero-showcase-pink .hero-card-arrow,
  .hero-showcase-pink:hover .hero-card-arrow,
  .hero-showcase-pink:active .hero-card-arrow {
    color: #e11d48 !important;
  }

  .hero-showcase-sky .hero-card-arrow,
  .hero-showcase-sky:hover .hero-card-arrow,
  .hero-showcase-sky:active .hero-card-arrow {
    color: #0284c7 !important;
  }

  .hero-showcase-mint .hero-card-arrow,
  .hero-showcase-mint:hover .hero-card-arrow,
  .hero-showcase-mint:active .hero-card-arrow {
    color: #059669 !important;
  }

  /* Disable specular shimmer sweep completely on mobile */
  .card-shimmer-sweep {
    display: none !important;
  }

  /* Disable workflow card heavy hover shadow on mobile */
  .workflow-step-card,
  .workflow-step-card:hover,
  .workflow-step-card:active {
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(229, 231, 235, 0.9) !important;
    transform: none !important;
  }
  .workflow-step-card .step-badge,
  .workflow-step-card:hover .step-badge {
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  }

  /* Prevent text jump on mobile touch */
  .group:hover .group-hover\:translate-x-1\.5 {
    transform: none !important;
  }
}







/* ==========================================================================
   25. Section Virtualization & Zero-Hang Scroll Acceleration
   ========================================================================== */
#bento-section,
#workflow-section,
#community-section,
#philosophy-preview,
#faq-preview,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}
