/* Landing Page (index.html) Styles */

:root {
      --accent: #093FB4;        /* Royal Blue Theme */
      --accent-dark: #062E88;   /* Deep Navy Accent */
      --accent-light: #EFF4FA;  /* Light Cool Blue Tint */
      --text-primary: #0A0F1D;  /* Dark Charcoal Heading Text */
      --text-secondary: #334155;/* Slate Body Text */
      --bg-light: #EFF4FA;      /* Cool Soft Background */
      --border-dark: #000000;   /* Black Accent Border */
    }

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

    body {
      font-family: 'Poppins', 'Inter', sans-serif;
      background: linear-gradient(90deg, #93BDFB 0%, #A9CBFB 20%, #BDD8FC 40%, #D0E5FD 60%, #E1EEFD 80%, #F3F8FD 100%);
      color: var(--text-primary);
      overflow-x: hidden;
    }

    .hero-section {
      position: relative;
      z-index: 1;
      background-color: transparent;
    }

    .hero-section::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: url('/static/login_bg_outpainted.png');
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      opacity: 0.96;
      z-index: -2;
      pointer-events: none;
    }

    .hero-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, rgba(147, 189, 251, 0.12) 0%, rgba(208, 229, 253, 0.08) 50%, rgba(243, 248, 253, 0.04) 100%);
      z-index: -1;
      pointer-events: none;
    }

    ::selection {
      background: #093FB4;
      color: #fff;
    }

    ::-webkit-scrollbar {
      width: 6px;
    }

    ::-webkit-scrollbar-track {
      background: #0B0B0F;
    }

    ::-webkit-scrollbar-thumb {
      background: #1e1e26;
      border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: #2a2a35;
    }

    @keyframes slideInUp {
      from {
        transform: translateY(40px);
        opacity: 0;
      }

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

    @keyframes float {

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

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

    @keyframes pulse-glow {

      0%,
      100% {
        box-shadow: 0 0 20px rgba(9, 63, 180, 0.15);
      }

      50% {
        box-shadow: 0 0 40px rgba(9, 63, 180, 0.32);
      }
    }

    @keyframes shimmer {
      0% {
        background-position: -200% 0;
      }

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

    @keyframes bar-grow {
      from {
        height: 0;
      }
    }

    @keyframes fade-in-up {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

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

    .animate-on-scroll {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .float-anim {
      animation: float 6s ease-in-out infinite;
    }

    /* Vibrant #093FB4 Portal Theme */
    :root {
      --bg-primary: transparent;
      --bg-card: rgba(255, 255, 255, 0.85);
      --bg-card-hover: #ffffff;
      --bg-input: #ffffff;
      --border-color: rgba(0, 0, 0, 0.12);
      --border-hover: #093FB4;
      --accent: #093FB4;
      --accent-dark: #062E88;
      --accent-glow: rgba(9, 63, 180, 0.18);
      --text-primary: #0A0F1D;
      --text-secondary: #334155;
      --text-muted: #64748B;
    }

    .card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 14px;
      transition: all 0.35s ease;
    }

    .card:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-hover);
      box-shadow: 0 0 30px rgba(9, 63, 180, 0.12);
      transform: translateY(-3px);
    }

    .btn-primary {
      background: linear-gradient(135deg, #093FB4 0%, #062E88 100%);
      box-shadow: 0 4px 20px rgba(9, 63, 180, 0.30);
      transition: all 0.3s ease;
      border: none;
      border-radius: 999px !important;
      cursor: pointer;
    }

    .btn-primary:hover {
      box-shadow: 0 6px 30px rgba(9, 63, 180, 0.48);
      transform: translateY(-2px);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(0, 0, 0, 0.15);
      color: #334155;
      border-radius: 999px !important;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .btn-secondary:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: #ffffff;
      box-shadow: 0 0 20px rgba(9, 63, 180, 0.14);
    }

    .text-gradient {
      background: linear-gradient(135deg, #06163A 0%, #093FB4 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-section p {
      color: #0F172A !important;
      font-weight: 500 !important;
      text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95), 0 0 10px rgba(255, 255, 255, 0.9);
    }

    .accent {
      color: var(--accent);
      text-shadow: 0 0 20px rgba(9, 63, 180, 0.25);
    }

    .section-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(9, 63, 180, 0.12), transparent);
    }

    /* Dashboard mock */
    .dash-mock {
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.10);
      border-radius: 12px;
    }

    .dash-mini-card {
      background: rgba(239, 244, 250, 0.9);
      border: 1px solid rgba(7, 53, 164, 0.08);
      border-radius: 8px;
    }

    .bar-animate {
      animation: bar-grow 1.5s ease-out forwards;
    }

    /* Workflow */
    .wf-circle {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(7, 53, 164, 0.07);
      border: 1.5px solid rgba(7, 53, 164, 0.22);
      color: var(--accent);
      transition: all 0.3s ease;
    }

    .wf-circle:hover {
      background: rgba(7, 53, 164, 0.14);
      box-shadow: 0 0 20px rgba(7, 53, 164, 0.18);
      border-color: rgba(7, 53, 164, 0.5);
    }

    /* Stat */
    .stat-num {
      font-size: 2.8rem;
      font-weight: 800;
      background: linear-gradient(135deg, #0735A4, #093FB4);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.1;
    }

    /* Dept card */
    .dept-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 18px 12px;
      text-align: center;
      transition: all 0.3s ease;
    }

    .dept-card:hover {
      border-color: var(--border-hover);
      background: rgba(7, 53, 164, 0.03);
      transform: translateY(-2px);
    }

    /* Security box */
    .sec-box {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 14px;
      padding: 26px 18px;
      text-align: center;
      transition: all 0.3s ease;
    }

    .sec-box:hover {
      border-color: var(--border-hover);
      background: rgba(7, 53, 164, 0.02);
    }

    .sec-icon {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 12px;
      background: rgba(7, 53, 164, 0.07);
      border: 1px solid rgba(7, 53, 164, 0.15);
      color: var(--accent);
    }

    /* Platform horizontal card */
    .plat-card {
      min-width: 180px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 22px 18px;
      text-align: center;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }

    .plat-card:hover {
      border-color: var(--border-hover);
      transform: translateY(-3px);
    }

    /* Screenshot card */
    .ss-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 14px;
      overflow: hidden;
      transition: all 0.35s ease;
      cursor: pointer;
    }

    .ss-card:hover {
      border-color: var(--border-hover);
      box-shadow: 0 0 35px rgba(7, 53, 164, 0.10);
      transform: translateY(-4px);
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 28px;
      right: 28px;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.15);
      border-radius: 12px;
      padding: 14px 22px;
      color: #0A0F1D;
      font-size: 13px;
      z-index: 9999;
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    /* Nav */
    .nav-glass {
      backdrop-filter: blur(20px);
      background: rgba(239, 244, 250, 0.92);
      border: 1px solid rgba(0, 0, 0, 0.12);
      box-shadow: 0 10px 40px rgba(7, 53, 164, 0.08);
    }

    .nav-link {
      position: relative;
      transition: color 0.3s ease;
      display: inline-block;
    }

    .nav-link::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2.5px;
      bottom: -6px;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(135deg, #0735A4, #093FB4);
      transition: width 0.3s ease;
      border-radius: 2px;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
      width: 100%;
    }

    .nav-link.active {
      color: #0735A4 !important;
    }

    /* Tag pill */
    .tag-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(7, 53, 164, 0.09);
      border: 1px solid rgba(7, 53, 164, 0.22);
      border-radius: 999px;
      padding: 6px 16px;
      font-size: 11px;
      font-weight: 600;
      color: var(--accent);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    @media (max-width: 768px) {
      .stat-num {
        font-size: 2rem;
      }

      .wf-circle {
        width: 42px;
        height: 42px;
      }
    }

    /* Marquee Auto-Scroll Styles */
    .marquee-wrapper {
      overflow: hidden;
      width: 100%;
      position: relative;
      padding: 12px 0;
      mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
      -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    }

    .marquee-track {
      display: flex;
      gap: 16px;
      width: max-content;
      animation: marquee-scroll 32s linear infinite;
    }

    .marquee-track:hover {
      animation-play-state: paused;
    }

    @keyframes marquee-scroll {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(calc(-50% - 8px));
      }
    }

    /* Section-specific backgrounds & layouts for visual distinction */
    #about {
      background: #FFFFFF;
      box-shadow: none;
    }

    #modules {
      background: #EFF4FA;
    }

    .workflow-section {
      background: #FFFFFF;
      box-shadow: inset 0 20px 30px -20px rgba(0, 0, 0, 0.03), inset 0 -20px 30px -20px rgba(0, 0, 0, 0.03);
    }

    #features {
      background: #EFF4FA;
    }

    /* Light Section Break: Dashboard Preview */
    .preview-section {
      background: transparent;
      color: var(--text-primary);
      position: relative;
    }

    .preview-section .text-gradient {
      background: linear-gradient(135deg, #031442 0%, #0735A4 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .preview-section .tag-pill {
      background: rgba(7, 53, 164, 0.08);
      border-color: rgba(7, 53, 164, 0.18);
      color: var(--accent);
    }

    #departments {
      background: #EFF4FA;
    }

    .stats-section {
      background: #FFFFFF;
      box-shadow: inset 0 20px 30px -20px rgba(0, 0, 0, 0.03), inset 0 -20px 30px -20px rgba(0, 0, 0, 0.03);
    }

    .platform-section {
      background: #EFF4FA;
    }

    #security {
      background: #FFFFFF;
      box-shadow: inset 0 20px 30px -20px rgba(0, 0, 0, 0.03), inset 0 -20px 30px -20px rgba(0, 0, 0, 0.03);
    }

    /* Dark Section: Footer & CTA */
    .footer-section {
      background: linear-gradient(135deg, #060e22 0%, #0a1738 100%);
      color: #94a3b8;
    }

    .footer-section h2,
    .footer-section h4,
    .footer-section span {
      color: #ffffff !important;
    }

    .footer-section .text-gradient {
      background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .footer-section a {
      color: #94a3b8 !important;
    }

    .footer-section a:hover {
      color: #ffffff !important;
      text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    }

    .footer-section .border-t {
      border-color: rgba(255, 255, 255, 0.06) !important;
    }

    /* Hero Floating Glass Cards Styling */
    .hero-float-card {
      z-index: 10;
      transition: all 0.3s ease;
    }

    .glass-float-inner {
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1.5px solid rgba(9, 63, 180, 0.22);
      border-radius: 18px;
      box-shadow: 0 16px 35px rgba(9, 63, 180, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
      position: relative;
      transition: all 0.3s ease;
    }

    .glass-float-inner::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 18px;
      padding: 1.5px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(7, 53, 164, 0.25) 50%, rgba(0, 0, 0, 0.12));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    .hero-float-card:hover .glass-float-inner {
      transform: translateY(-5px) scale(1.02);
      box-shadow: 0 20px 40px rgba(7, 53, 164, 0.18);
      background: #ffffff;
      border-color: #0735A4;
    }

    /* Dynamic float animations */
    .float-slow {
      animation: floatSlow 6s ease-in-out infinite alternate;
    }

    .float-medium {
      animation: floatMedium 5s ease-in-out infinite alternate;
    }

    .float-slow-delay {
      animation: floatSlowDelay 7s ease-in-out infinite alternate;
    }

    .float-medium-delay {
      animation: floatMediumDelay 5.5s ease-in-out infinite alternate;
    }

    @keyframes floatSlow {
      0% {
        transform: translateY(0px) rotate(0deg);
      }

      100% {
        transform: translateY(-15px) rotate(1deg);
      }
    }

    @keyframes floatMedium {
      0% {
        transform: translateY(0px) rotate(0deg);
      }

      100% {
        transform: translateY(-12px) rotate(-1deg);
      }
    }

    @keyframes floatSlowDelay {
      0% {
        transform: translateY(0px) rotate(0deg);
      }

      100% {
        transform: translateY(-18px) rotate(-0.5deg);
      }
    }

    @keyframes floatMediumDelay {
      0% {
        transform: translateY(0px) rotate(0deg);
      }

      100% {
        transform: translateY(-14px) rotate(0.8deg);
      }
    }

    /* About Metrics Cards Micro-Interactions (Scoped to #about) */
    .about-metric-card {
      position: relative;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid rgba(147, 189, 251, 0.5);
      background: #FFFFFF;
      box-shadow: 0 12px 32px rgba(9, 63, 180, 0.07), 0 2px 8px rgba(147, 189, 251, 0.08);
      border-radius: 18px;
    }

    .about-metric-card:hover {
      transform: translateY(-8px);
      background: #FFFFFF;
      border-color: rgba(9, 63, 180, 0.45);
      box-shadow: 0 22px 42px rgba(9, 63, 180, 0.12), 0 0 25px rgba(147, 189, 251, 0.3);
    }

    #about h2,
    #about h3,
    #about h4 {
      color: #0A0F1D !important;
    }

    #about p {
      color: #334155 !important;
    }

    #about .about-metric-card p {
      color: #475569 !important;
    }

    .about-metric-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 16px;
      padding: 1.5px;
      background: linear-gradient(135deg, transparent 40%, var(--about-card-glow) 100%);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }

    .about-metric-card:hover::before {
      opacity: 1;
    }

    /* Individual icon animations on hover */
    .about-metric-card:hover [data-lucide="rocket"] {
      animation: rocket-launch 0.8s ease-out forwards;
    }

    .about-metric-card:hover [data-lucide="shield-check"] {
      transform: scale(1.15);
      transition: transform 0.3s ease;
    }

    .about-metric-card:hover [data-lucide="layers"] {
      animation: layers-stack 0.6s ease-in-out forwards;
    }

    .about-metric-card:hover [data-lucide="activity"] {
      animation: heart-beat 1.2s ease-in-out infinite;
    }

    @keyframes rocket-launch {
      0% {
        transform: translateY(0) translateX(0) scale(1);
      }

      50% {
        transform: translateY(-4px) translateX(3px) scale(1.1);
      }

      100% {
        transform: translateY(-2px) translateX(1.5px) scale(1.05);
      }
    }

    @keyframes layers-stack {

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

      50% {
        transform: translateY(-3px) scale(1.1);
      }
    }

    @keyframes heart-beat {

      0%,
      100% {
        transform: scale(1);
      }

      25% {
        transform: scale(1.15);
      }

      50% {
        transform: scale(0.95);
      }

      75% {
        transform: scale(1.1);
      }
    }

    /* Core Modules Premium Card Styles & Marquee Animations */
    .module-card {
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
      background: #FFFFFF;
      border: 1px solid rgba(147, 189, 251, 0.45);
      box-shadow: 0 10px 25px rgba(9, 63, 180, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
      border-radius: 18px;
      flex-shrink: 0;
      width: 240px;
    }

    .module-card:hover {
      transform: translateY(-6px);
      background: #FFFFFF;
      border-color: rgba(9, 63, 180, 0.45);
      box-shadow: 0 20px 38px rgba(9, 63, 180, 0.12), 0 0 20px rgba(147, 189, 251, 0.25);
    }

    .module-card:hover .module-icon-box {
      transform: scale(1.1) rotate(6deg);
    }

    .modules-marquee-wrapper {
      mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
      -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
      width: 100%;
      overflow: hidden;
    }

    .modules-marquee-track {
      display: flex;
      width: max-content;
      gap: 20px;
      padding: 12px 0;
    }

    .animate-marquee-left {
      animation: modulesMarqueeLeft 35s linear infinite;
    }

    .animate-marquee-right {
      animation: modulesMarqueeRight 35s linear infinite;
    }

    .modules-marquee-wrapper:hover .modules-marquee-track {
      animation-play-state: paused;
    }

    @keyframes modulesMarqueeLeft {
      0% {
        transform: translate3d(0, 0, 0);
      }

      100% {
        transform: translate3d(-50%, 0, 0);
      }
    }

    @keyframes modulesMarqueeRight {
      0% {
        transform: translate3d(-50%, 0, 0);
      }

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

    /* Workflow Premium Stepper Styles */
    .wf-step-container {
      position: relative;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .wf-step-container:hover {
      transform: translateY(-8px);
    }

    .wf-circle {
      width: 66px;
      height: 66px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.75);
      border: 1.5px solid rgba(9, 63, 180, 0.15);
      box-shadow: 0 8px 24px rgba(9, 63, 180, 0.04);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      transition: all 0.4s ease;
    }

    .wf-step-container:hover .wf-circle {
      border-color: var(--accent);
      background: #ffffff;
      box-shadow: 0 16px 32px rgba(9, 63, 180, 0.15);
      transform: scale(1.08);
    }

    .wf-step-container:hover .wf-circle i {
      color: var(--accent) !important;
      transform: scale(1.1);
    }

    .wf-step-container .wf-circle i {
      transition: all 0.3s ease;
      color: #0A0F1D;
    }

    .step-num-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: linear-gradient(135deg, #093FB4, #00A3FF);
      color: #ffffff;
      font-weight: 700;
      font-size: 9.5px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 3px 8px rgba(9, 63, 180, 0.22);
      border: 1px solid #ffffff;
    }

    .wf-connector {
      animation: arrowPulse 2s infinite ease-in-out;
      color: rgba(9, 63, 180, 0.25);
      transition: color 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      padding: 0 10px;
    }

    .wf-step-container:hover+.wf-connector {
      color: var(--accent);
    }

    @keyframes arrowPulse {

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

      50% {
        opacity: 1;
        transform: scale(1.15) translateX(3px);
      }
    }

    /* Bento Grid Smart Features Styles */
    .bento-grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 24px;
      auto-rows: 240px;
    }

    @media (min-width: 768px) {
      .bento-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .bento-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .bento-card {
      background: rgba(255, 255, 255, 0.75);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-radius: 20px;
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 10px 30px rgba(9, 63, 180, 0.05);
      padding: 32px;
      position: relative;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      z-index: 10;
    }

    .bento-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 20px;
      padding: 2px;
      background: linear-gradient(135deg, rgba(9, 63, 180, 0.8), rgba(0, 163, 255, 0.8), rgba(37, 99, 235, 0.8));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }

    .bento-card:hover {
      transform: translateY(-10px) scale(1.03);
      box-shadow: 0 25px 50px rgba(9, 63, 180, 0.12), 0 0 30px rgba(9, 63, 180, 0.08);
      background: rgba(255, 255, 255, 0.95);
    }

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

    .bento-card:hover .bento-icon {
      transform: rotate(8deg) scale(1.1);
    }

    .bento-card:hover .bento-arrow {
      transform: translateX(6px);
      color: var(--accent);
      opacity: 1;
    }

    .bento-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      margin-bottom: auto;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
      flex-shrink: 0;
    }

    .bento-arrow {
      position: absolute;
      bottom: 28px;
      right: 28px;
      color: #94a3b8;
      opacity: 0;
      transition: all 0.3s ease;
    }

    .bento-title {
      font-size: 22px;
      font-weight: 800;
      color: #0A0F1D;
      margin-top: 24px;
      margin-bottom: 8px;
      letter-spacing: -0.5px;
    }

    .bento-desc {
      font-size: 14.5px;
      color: #64748b;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .bento-bg-wrapper {
      position: absolute;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      z-index: 0;
    }

    .bento-bg-mesh {
      position: absolute;
      inset: -50%;
      width: 200%;
      height: 200%;
      background:
        radial-gradient(circle at 20% 30%, rgba(9, 63, 180, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 163, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
      animation: rotate-mesh 40s linear infinite;
    }

    .bento-bg-dots {
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(9, 63, 180, 0.12) 1px, transparent 1px);
      background-size: 28px 28px;
      opacity: 0.6;
    }

    .bento-bg-particle {
      position: absolute;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: rgba(9, 63, 180, 0.5);
      box-shadow: 0 0 10px rgba(9, 63, 180, 0.8);
      animation: float-particle 15s infinite linear;
    }

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

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

    @keyframes float-particle {
      0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
      }

      20% {
        opacity: 1;
      }

      80% {
        opacity: 1;
      }

      100% {
        transform: translate(150px, -150px) scale(0.5);
        opacity: 0;
      }
    }
