/* LyDian homepage CSS — extracted from index.html for cache efficiency
 * Generated 2026-04-18 · serve with 7-day cache + immutable via ?v=18
 */

      /* ============================================================ */
      /* 🏆 2025 AWARD-LEVEL UI - GLOSSY BLACK / PROFESSIONAL DARK        */
      /* ============================================================ */

      :root {
        /* Premium White Theme Palette */
        --bg-0: #1f1f1e; /* Corporate charcoal — warm neutral */
        --bg-1: #ffffff; /* White header background */
        --glass: #ffffff; /* White glass surface */
        --glass-2: rgba(0, 0, 0, 0.03); /* Light gray overlay */
        --stroke: rgba(0, 0, 0, 0.08); /* Light gray border */
        --txt-1: #1f1f1e; /* Dark text */
        --txt-2: #6b7280; /* Gray text */
        --accent-1: #E97451; /* Kızılelma Red */
        --accent-2: #6e84ff; /* Electric blue */
        --accent-3: #b86bff; /* Purple accent */
      }

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

      /* Search result hover — replaces inline onmouseover/onmouseout */
      .search-result-item:hover,
      .search-result-item:focus-visible {
        background: rgba(110, 132, 255, 0.08) !important;
        border-color: rgba(110, 132, 255, 0.2) !important;
        outline: none;
      }

      html {
        color-scheme: dark;
        scroll-behavior: smooth;
      }

      body {
        font-family: var(--font-body),
          'Segoe UI',
          Roboto,
          Helvetica,
          Arial,
          sans-serif;
        background:
          radial-gradient(1400px 900px at 70% 12%, rgba(233, 116, 81, 0.055), transparent 62%),
          radial-gradient(1200px 700px at 18% 82%, rgba(233, 116, 81, 0.035), transparent 65%),
          radial-gradient(900px 900px at 50% 50%, rgba(255,255,255,0.012), transparent 70%),
          var(--bg-0);
        color: var(--txt-1);
        line-height: 1.6;
        min-height: 100vh;
        overflow-x: hidden;
      }

      /* ============================================================ */
      /* 🎨 GLASSMORPHISM HEADER (AWARD-LEVEL)                       */
      /* ============================================================ */

      .header-2025 {
        position: sticky;
        top: 0;
        z-index: 50;
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        background: rgba(31, 31, 30, 0.88);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255,255,255,0.04);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .header-2025[data-hide='true'] {
        transform: translateY(-100%);
      }

      .header-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 68px;
        gap: 1rem;
      }

      .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        font-weight: 900;
        font-size: 30px;
        color: #ffffff;
        letter-spacing: 0.08em;
        transition: opacity 0.2s ease;
        flex-shrink: 0;
      }
      .brand-text-primary {
        color: #ffffff;
        font-weight: 900;
      }
      .brand-text-secondary {
        color: rgba(255, 255, 255, 0.65);
        font-weight: 900;
      }

      .brand:hover {
        opacity: 0.85;
      }

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

      .nav-link {
        color: rgba(255, 255, 255, 0.85);
        font-weight: 600;
        padding: 0.6rem 0.75rem;
        border-radius: 10px;
        border: 1px solid transparent;
        cursor: pointer;
        background: transparent;
        font-size: 15px;
        letter-spacing: 0.02em;
        transition: all 0.2s ease;
        text-decoration: none;
        display: inline-block;
        white-space: nowrap;
        position: relative;
      }
      .nav-link::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 0.75rem;
        right: 0.75rem;
        height: 2px;
        background: linear-gradient(90deg, #E97451, #fcd34d);
        border-radius: 1px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .nav-link:hover,
      .nav-link:focus-visible {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
        border-color: transparent;
        outline: none;
      }
      .nav-link:hover::after,
      .nav-link:focus-visible::after {
        transform: scaleX(1);
      }

      .nav-link[aria-expanded='true'] {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        text-shadow: 0 0 12px rgba(233, 116, 81, 0.3);
      }
      .nav-link[aria-expanded='true']::after {
        transform: scaleX(1);
      }

      .cta {
        background: linear-gradient(135deg, #ffffff, #f0f0f0);
        color: #1f1f1e;
        font-weight: 800;
        padding: 0.65rem 1.1rem;
        border-radius: 11px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
        font-size: 13.5px;
        box-shadow:
          0 8px 40px rgba(255, 255, 255, 0.2),
          0 4px 20px rgba(255, 255, 255, 0.15);
        transition: all 0.2s ease;
        text-decoration: none;
        display: inline-block;
        white-space: nowrap;
      }

      .cta:hover {
        transform: translateY(-1px);
        box-shadow:
          0 12px 50px rgba(255, 255, 255, 0.4),
          0 6px 30px rgba(255, 255, 255, 0.3);
        background: linear-gradient(135deg, #ffffff, #ffffff);
        color: #1f1f1e;
      }

      .cta-os {
        background: linear-gradient(135deg, #ffffff, #f0f0f0);
        padding: 0.65rem 1.1rem;
        margin-right: 0.5rem;
        color: #1f1f1e;
        border: 1px solid rgba(255, 255, 255, 0.2);
      }

      .cta-os:hover {
        background: linear-gradient(135deg, #ffffff, #ffffff);
        color: #1f1f1e;
      }

      /* ============================================================ */
      /* 🤖 AI ASISTAN GENESIS — Animated Nav Button                 */
      /* ============================================================ */
      @keyframes genesis-shimmer {
        0%   { background-position: -200% center; }
        100% { background-position: 200% center; }
      }
      .cta-genesis {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0.6rem 1.1rem;
        border-radius: 11px;
        font-size: 13.5px;
        font-weight: 800;
        letter-spacing: 0.02em;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        overflow: hidden;
        color: #ffffff;
        border: 1.5px solid transparent;
        background:
          linear-gradient(#1f1f1e, #1f1f1e) padding-box,
          linear-gradient(135deg, #E97451, #6e84ff, #b86bff, #E97451) border-box;
        background-size: 200% auto, 300% auto;
        animation: genesis-shimmer 4s linear infinite;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .cta-genesis::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,
          rgba(233, 116, 81, 0.15),
          rgba(110, 132, 255, 0.1),
          rgba(184, 107, 255, 0.15));
        opacity: 0;
        transition: opacity 0.25s ease;
        border-radius: inherit;
      }
      .cta-genesis:hover::before { opacity: 1; }
      .cta-genesis:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow:
          0 8px 32px rgba(233, 116, 81, 0.35),
          0 4px 16px rgba(110, 132, 255, 0.25);
        animation-play-state: paused;
        color: #ffffff;
      }
      .cta-genesis:active {
        transform: translateY(0px) scale(0.98);
      }
      .genesis-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #E97451;
        box-shadow: 0 0 6px rgba(233, 116, 81, 0.5);
        flex-shrink: 0;
      }
      /* Light theme override */
      [data-theme="light"] .cta-genesis {
        background:
          linear-gradient(#ffffff, #ffffff) padding-box,
          linear-gradient(135deg, #E97451, #6e84ff, #b86bff, #E97451) border-box;
        color: #1f1f1e;
      }
      [data-theme="light"] .genesis-dot {
        background: #E97451;
      }
      /* Hide on small mobile */
      @media (max-width: 680px) {
        .cta-genesis { display: none; }
      }

      .nav-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
      }

      /* Search Input Placeholder Styling */
      #live-search-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
        opacity: 1;
      }

      #live-search-input::-webkit-input-placeholder {
        color: rgba(255, 255, 255, 0.6);
      }

      #live-search-input::-moz-placeholder {
        color: rgba(255, 255, 255, 0.6);
      }

      .health-badge {
        transition: all 0.3s ease;
        white-space: nowrap;
      }

      /* ============================================================ */
      /* 🎯 MEGA DROPDOWN MENUS (AWARD-LEVEL)                        */
      /* ============================================================ */

      .mega {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - 72px);
        z-index: 49;
        padding: 0;
        border-radius: 0;
        background: rgba(31, 31, 30, 0.97);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: none;
        backdrop-filter: blur(32px) saturate(180%);
        -webkit-backdrop-filter: blur(32px) saturate(180%);
        opacity: 0;
        visibility: hidden;
        transition:
          opacity 0.3s ease,
          visibility 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
      }

      .mega.active {
        opacity: 1;
        visibility: visible;
      }

      /* Hide hero & synapse when mega dropdown is open */
      .mega.active ~ .hero,
      .header-2025:has(.mega.active) ~ main .hero,
      .header-2025:has(.mega.active) ~ #ai-synapse,
      .header-2025:has(.mega.active) ~ #qf-bg {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
      }
      /* Also via body class (JS fallback) */
      body.mega-open .hero,
      body.mega-open #ai-synapse,
      body.mega-open #qf-bg,
      body.mega-open .nav-ai-btn,
      body.mega-open .ly-panel {
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.2s ease;
      }

      /* Inner container for mega content */
      .mega-inner {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 32px 40px 40px;
      }

      /* Category header bar */
      .mega-category-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      }
      .mega-category-title {
        font-size: 20px;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: 0.02em;
      }
      .mega-category-badge {
        font-size: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 4px 12px;
        border-radius: 20px;
        letter-spacing: 0.03em;
      }

      /* Close button in mega */
      .mega-close {
        position: absolute;
        top: 20px;
        right: 32px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: all 0.15s ease;
        z-index: 10;
      }
      .mega-close:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.2);
      }


      /* ── UNIFIED MEGA: Enterprise Layout (applies to all dropdowns) ── */
      .mega .mega-inner {
        max-width: 1280px;
        padding: 28px 36px 20px;
      }

      .projects-featured {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        margin-bottom: 24px;
      }

      .project-featured-card {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 18px;
        padding-top: 36px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(233, 116, 81, 0.08) 0%, rgba(110, 132, 255, 0.06) 100%);
        border: 1px solid rgba(233, 116, 81, 0.15);
        text-decoration: none;
        color: inherit;
        transition: all 0.25s ease;
        overflow: hidden;
      }
      .project-featured-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #E97451, rgba(110, 132, 255, 0.6));
        opacity: 0;
        transition: opacity 0.25s ease;
      }
      .project-featured-card:hover {
        border-color: rgba(233, 116, 81, 0.35);
        background: linear-gradient(135deg, rgba(233, 116, 81, 0.12) 0%, rgba(110, 132, 255, 0.08) 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
      }
      .project-featured-card:hover::before {
        opacity: 1;
      }
      /* Featured card icon override */
      .project-featured-card .mega-item-icon {
        width: 36px;
        height: 36px;
        padding: 6px;
        border-radius: 10px;
        background: rgba(233, 116, 81, 0.12);
        border: 1px solid rgba(233, 116, 81, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .project-featured-card .mega-item-icon svg {
        width: 20px;
        height: 20px;
      }
      .project-featured-card .mega-item-title {
        font-size: 13px;
        font-weight: 700;
        color: #ffffff;
        line-height: 1.3;
      }
      .project-featured-card .mega-item-desc {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.55);
        line-height: 1.4;
        margin-top: 0;
      }
      .project-featured-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 0.8px;
        padding: 2px 7px;
        border-radius: 5px;
        text-transform: uppercase;
        z-index: 2;
      }

      .project-featured-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(233, 116, 81, 0.1);
        border: 1px solid rgba(233, 116, 81, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 20px;
      }

      .project-featured-content {
        flex: 1;
        min-width: 0;
      }

      .project-featured-label {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: #E97451;
        margin-bottom: 4px;
      }

      .project-featured-title {
        font-size: 14px;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: -0.01em;
        line-height: 1.3;
        margin-bottom: 4px;
      }

      .project-featured-desc {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
        line-height: 1.4;
      }

      .project-featured-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 1px;
        padding: 3px 8px;
        border-radius: 6px;
        text-transform: uppercase;
      }
      .project-featured-badge.badge-live {
        background: rgba(34, 197, 94, 0.15);
        color: #22c55e;
        border: 1px solid rgba(34, 197, 94, 0.25);
      }
      .project-featured-badge.badge-new {
        background: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
        border: 1px solid rgba(59, 130, 246, 0.25);
      }
      .project-featured-badge.badge-popular {
        background: rgba(168, 85, 247, 0.15);
        color: #a855f7;
        border: 1px solid rgba(168, 85, 247, 0.25);
      }

      /* Projects grid: fixed 4 columns */
      .projects-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
      }

      /* Projects footer */
      .projects-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
      }

      .projects-stats {
        display: flex;
        gap: 20px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.4);
        font-weight: 500;
      }
      .projects-stats span {
        display: flex;
        align-items: center;
        gap: 5px;
      }
      .projects-stat-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        display: inline-block;
      }
      .projects-stat-dot.dot-green { background: #22c55e; }
      .projects-stat-dot.dot-blue { background: #3b82f6; }
      .projects-stat-dot.dot-purple { background: #a855f7; }
      .projects-stat-dot.dot-amber { background: #f59e0b; }
      .projects-stat-dot.dot-red { background: #E97451; }

      .projects-cta {
        font-size: 13px;
        font-weight: 600;
        color: #E97451;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: 8px;
        border: 1px solid rgba(233, 116, 81, 0.2);
        background: rgba(233, 116, 81, 0.06);
        transition: all 0.2s ease;
      }
      .projects-cta:hover {
        background: rgba(233, 116, 81, 0.12);
        border-color: rgba(233, 116, 81, 0.35);
        color: #f08a5d;
      }

      /* Light theme overrides for projects */
      [data-theme="light"] .project-featured-card {
        background: linear-gradient(135deg, rgba(233, 116, 81, 0.04) 0%, rgba(110, 132, 255, 0.03) 100%);
        border-color: rgba(233, 116, 81, 0.12);
      }
      [data-theme="light"] .project-featured-card:hover {
        background: linear-gradient(135deg, rgba(233, 116, 81, 0.08) 0%, rgba(110, 132, 255, 0.05) 100%);
        border-color: rgba(233, 116, 81, 0.25);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      }
      [data-theme="light"] .project-featured-title {
        color: #353532;
      }
      [data-theme="light"] .project-featured-desc {
        color: rgba(0, 0, 0, 0.5);
      }
      [data-theme="light"] .project-featured-icon {
        background: rgba(233, 116, 81, 0.06);
        border-color: rgba(233, 116, 81, 0.1);
      }
      [data-theme="light"] .projects-footer {
        border-top-color: rgba(0, 0, 0, 0.06);
      }
      [data-theme="light"] .projects-stats {
        color: rgba(0, 0, 0, 0.45);
      }
      [data-theme="light"] .projects-cta {
        background: rgba(233, 116, 81, 0.04);
        border-color: rgba(233, 116, 81, 0.15);
      }
      [data-theme="light"] .projects-cta:hover {
        background: rgba(233, 116, 81, 0.08);
      }

      /* Mobile responsive for projects */
      @media (max-width: 968px) {
        .projects-featured {
          grid-template-columns: 1fr;
          gap: 10px;
        }
        .projects-grid {
          grid-template-columns: repeat(2, 1fr) !important;
        }
        .projects-footer {
          flex-direction: column;
          gap: 12px;
          align-items: flex-start;
        }
        .projects-stats {
          flex-wrap: wrap;
          gap: 12px;
        }
      }
      @media (max-width: 480px) {
        .projects-grid {
          grid-template-columns: 1fr !important;
        }
        .projects-featured {
          margin-bottom: 16px;
        }
        .mega .mega-inner {
          padding: 20px 16px 16px;
        }
      }

      /* Custom Scrollbar for Mega Menu */
      .mega::-webkit-scrollbar {
        width: 8px;
      }

      .mega::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
      }

      .mega::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        transition: background 0.2s ease;
      }

      .mega::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
      }

      /* Firefox Scrollbar */
      .mega {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
      }

      .mega-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 14px;
        min-width: 0;
      }

      .mega-col {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 14px;
        padding: 16px;
        min-width: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background 0.2s ease;
      }
      .mega.active .mega-col {
        opacity: 1;
        transform: translateY(0);
      }
      .mega.active .mega-col:nth-child(1) { transition-delay: 0ms; }
      .mega.active .mega-col:nth-child(2) { transition-delay: 50ms; }
      .mega.active .mega-col:nth-child(3) { transition-delay: 100ms; }
      .mega.active .mega-col:nth-child(4) { transition-delay: 150ms; }
      .mega.active .mega-col:nth-child(5) { transition-delay: 200ms; }

      .mega-col:hover {
        border-color: rgba(233, 116, 81, 0.3);
        background: rgba(255, 255, 255, 0.05);
      }

      .mega-kicker {
        font-size: 11px;
        color: #E97451;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-bottom: 10px;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .mega-kicker::before {
        content: '';
        width: 14px;
        height: 2px;
        background: #E97451;
        border-radius: 1px;
        flex-shrink: 0;
      }

      .mega-item {
        display: flex;
        gap: 12px;
        padding: 10px;
        padding-left: 14px;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.8);
        border: 1px solid transparent;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        position: relative;
      }
      .mega-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 8px;
        bottom: 8px;
        width: 2.5px;
        border-radius: 2px;
        background: #E97451;
        transform: scaleY(0);
        transition: transform 0.2s ease;
      }

      .mega-item:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
      }
      .mega-item:hover::before {
        transform: scaleY(1);
      }

      .mega-item-icon {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
      }

      .mega-item-content {
        flex: 1;
      }

      .mega-item-title {
        font-weight: 700;
        font-size: 14px;
        letter-spacing: -0.01em;
        word-wrap: break-word;
        overflow-wrap: break-word;
      }

      .mega-item-desc {
        font-size: 13px;
        font-weight: 500;
        opacity: 0.8;
        margin-top: 2px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
      }

      /* ============================================================ */
      /* 🧠 AI SYNAPSE CONSTELLATION (HERO BACKGROUND)               */
      /* ============================================================ */

      /* ── Quantum Field CSS Background (div — supports ::before/::after) ── */
      #qf-bg {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
        pointer-events: none;
        overflow: hidden;
        background: #1f1f1e;
      }

      /* Layer 1: Large vivid color blobs — slow drift */
      #qf-bg::before {
        content: '';
        position: absolute;
        inset: -50%;
        width: 200%;
        height: 200%;
        background:
          radial-gradient(circle 700px at 22% 38%, rgba(233, 116, 81, 0.22) 0%, transparent 55%),
          radial-gradient(circle 520px at 78% 28%, rgba(143, 61, 33, 0.14) 0%, transparent 52%),
          radial-gradient(circle 560px at 55% 72%, rgba(45, 45, 45, 0.35) 0%, transparent 58%),
          radial-gradient(circle 420px at 82% 70%, rgba(233, 116, 81, 0.10) 0%, transparent 50%),
          radial-gradient(circle 480px at 28% 82%, rgba(60, 60, 58, 0.28) 0%, transparent 55%);
        animation: qf-drift 16s ease-in-out infinite;
        pointer-events: none;
        z-index: 1;
        filter: blur(80px);
      }

      /* Layer 2: Bright accent highlights — pulse */
      #qf-bg::after {
        content: '';
        position: absolute;
        inset: -20%;
        width: 140%;
        height: 140%;
        background:
          radial-gradient(circle 360px at 42% 32%, rgba(233, 116, 81, 0.14) 0%, transparent 55%),
          radial-gradient(circle 300px at 70% 62%, rgba(255, 255, 255, 0.025) 0%, transparent 55%),
          radial-gradient(circle 260px at 24% 72%, rgba(143, 61, 33, 0.10) 0%, transparent 55%);
        animation: qf-pulse 10s ease-in-out infinite alternate;
        pointer-events: none;
        z-index: 2;
        filter: blur(60px);
      }

      @keyframes qf-drift {
        0%   { transform: translate(0%, 0%) rotate(0deg); }
        25%  { transform: translate(5%, -3%) rotate(1deg); }
        50%  { transform: translate(-3%, 5%) rotate(-1deg); }
        75%  { transform: translate(-5%, -2%) rotate(0.5deg); }
        100% { transform: translate(0%, 0%) rotate(0deg); }
      }

      @keyframes qf-pulse {
        0%   { transform: translate(0%, 0%) scale(1); opacity: 0.8; }
        33%  { transform: translate(3%, -4%) scale(1.05); opacity: 1; }
        66%  { transform: translate(-4%, 3%) scale(0.95); opacity: 0.9; }
        100% { transform: translate(2%, 2%) scale(1.02); opacity: 0.85; }
      }

      /* Canvas: transparent by default, only visible when WebGL renders */
      #ai-synapse {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        z-index: 2;
        display: block;
        pointer-events: none;
        background: transparent;
      }

      /* When WebGL succeeds, JS hides #qf-bg via style.display = 'none' */

      @media (max-width: 768px) {
        #ai-synapse {
          pointer-events: none;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        #qf-bg,
        #qf-bg::before,
        #qf-bg::after {
          animation: none !important;
          transition: none !important;
        }
      }

      /* ============================================================ */
      /* 🏥 HEALTH STATUS BADGE ANIMATION                            */
      /* ============================================================ */

      @keyframes pulse {
        0%,
        100% {
          opacity: 1;
          transform: scale(1);
        }
        50% {
          opacity: 0.6;
          transform: scale(1.1);
        }
      }

      @keyframes spin {
        0% {
          transform: translateY(-50%) rotate(0deg);
        }
        100% {
          transform: translateY(-50%) rotate(360deg);
        }
      }

      .health-badge {
        transition: all 0.3s ease;
      }

      .health-badge:hover {
        background: var(--glass);
        cursor: pointer;
      }

      .health-badge.warning .health-dot {
        background: #ffa500;
        box-shadow: 0 0 8px #ffa500;
      }

      .health-badge.error .health-dot {
        background: #E97451;
        box-shadow: 0 0 8px #E97451;
      }

      /* ============================================================ */
      /* 🎭 HERO SECTION                                             */
      /* ============================================================ */

      .hero {
        position: fixed;
        z-index: 3;
        inset: 68px 0 0 0;
        width: 100%;
        max-width: 100%;
        padding: 0 3rem;
        text-align: center;
        height: calc(100vh - 68px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        pointer-events: auto;
        background: none;
      }

      .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 1rem;
        background: rgba(233, 116, 81, 0.12);
        border: 1px solid rgba(233, 116, 81, 0.25);
        border-radius: 100px;
        font-size: 0.8rem;
        font-weight: 600;
        color: #f5a47c;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin-bottom: 1.5rem;
        width: fit-content;
        animation: hero-badge-in 0.8s ease-out both;
      }

      .hero-badge-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #E97451;
        animation: pulse-dot 2s ease-in-out infinite;
      }

      @keyframes pulse-dot {
        0%,
        100% {
          opacity: 1;
          transform: scale(1);
        }
        50% {
          opacity: 0.5;
          transform: scale(1.4);
        }
      }

      @keyframes hero-badge-in {
        from {
          opacity: 0;
          transform: translateY(12px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .hero-title {
        font-size: clamp(2.4rem, 4.5vw, 4rem);
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -0.03em;
        margin-bottom: 0.5rem;
        color: #ffffff;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 0 60px rgba(233, 116, 81, 0.15);
        animation: hero-title-in 0.8s ease-out 0.15s both;
      }

      @keyframes hero-title-in {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .hero-accent {
        color: var(--accent-1);
        text-shadow: 0 0 28px rgba(233, 116, 81, 0.35);
      }

      .hero-description {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.65);
        max-width: 540px;
        margin: 0 auto 1.8rem;
        line-height: 1.7;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
        animation: hero-title-in 0.8s ease-out 0.45s both;
      }

      .hero-ctas {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 2rem;
        animation: hero-title-in 0.8s ease-out 0.6s both;
      }

      .hero-cta-primary {
        padding: 0.65rem 1.4rem;
        font-size: 0.85rem;
        border-radius: 10px;
      }

      .hero-cta-ghost {
        background: transparent;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.65rem 1.4rem;
        font-size: 0.85rem;
        border-radius: 10px;
        box-shadow: none;
      }

      .hero-cta-ghost:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        box-shadow: none;
      }

      .hero-stats {
        display: flex;
        justify-content: center;
        gap: 2.5rem;
        animation: hero-title-in 0.8s ease-out 0.75s both;
        flex-wrap: wrap;
      }

      .hero-stat {
        text-align: center;
        min-width: 0;
      }

      .hero-stat-value {
        font-size: 1.2rem;
        font-weight: 800;
        color: #fff;
        letter-spacing: -0.02em;
        white-space: nowrap;
      }

      .hero-stat-label {
        font-size: 0.6rem;
        color: var(--txt-2);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-top: 0.15rem;
        white-space: nowrap;
      }

      /* ============================================================ */
      /* 🛰  HERO TELEMETRY RAILS (v10) — Premium Enterprise HUD        */
      /* ============================================================ */
      .hero-rail {
        position: absolute;
        top: 50%;
        width: 232px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        pointer-events: none;
        z-index: 2;
        opacity: 0;
      }
      .hero-rail-left  { left:  2.25rem; transform: translateY(-50%) translateX(-14px); animation: hero-rail-left-in 0.95s ease-out 1.05s forwards; }
      .hero-rail-right { right: 2.25rem; transform: translateY(-50%) translateX(14px);  animation: hero-rail-right-in 0.95s ease-out 1.05s forwards; }

      @keyframes hero-rail-left-in {
        from { opacity: 0; transform: translateY(-50%) translateX(-14px); }
        to   { opacity: 1; transform: translateY(-50%) translateX(0); }
      }
      @keyframes hero-rail-right-in {
        from { opacity: 0; transform: translateY(-50%) translateX(14px); }
        to   { opacity: 1; transform: translateY(-50%) translateX(0); }
      }

      .hero-rail-kicker {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.58);
        padding: 0 2px 9px;
        margin-bottom: 2px;
        display: flex;
        align-items: center;
        gap: 9px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      }
      .hero-rail-kicker::before {
        content: "";
        width: 22px;
        height: 1px;
        background: linear-gradient(90deg, rgba(233, 116, 81, 0.85), rgba(233, 116, 81, 0.15));
        flex-shrink: 0;
      }
      .hero-rail-kicker-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #E97451;
        box-shadow: 0 0 6px rgba(233, 116, 81, 0.75);
        margin-left: auto;
        animation: pulse-dot 2.4s ease-in-out infinite;
        flex-shrink: 0;
      }

      .hero-rail-card {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 14px 15px 14px;
        background: linear-gradient(180deg, rgba(53, 53, 50, 0.5), rgba(42, 42, 40, 0.42));
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-left: 2px solid rgba(233, 116, 81, 0.55);
        border-radius: 2px;
        backdrop-filter: blur(8px) saturate(120%);
        -webkit-backdrop-filter: blur(8px) saturate(120%);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.04),
          0 2px 12px rgba(0, 0, 0, 0.25);
        transition: border-left-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
      }
      .hero-rail-card::before,
      .hero-rail-card::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        pointer-events: none;
      }
      .hero-rail-card::before {
        top: -1px;
        left: -1px;
        border-top: 1px solid rgba(233, 116, 81, 0.8);
        border-left: 1px solid rgba(233, 116, 81, 0.8);
      }
      .hero-rail-card::after {
        bottom: -1px;
        right: -1px;
        border-bottom: 1px solid rgba(233, 116, 81, 0.8);
        border-right: 1px solid rgba(233, 116, 81, 0.8);
      }

      .rail-card-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
      }
      .rail-card-label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.48);
      }
      .rail-card-idx {
        font-size: 9px;
        font-weight: 600;
        color: rgba(233, 116, 81, 0.65);
        letter-spacing: 0.14em;
        font-variant-numeric: tabular-nums;
        font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
      }

      .rail-card-value {
        font-size: 26px;
        font-weight: 700;
        color: #fafaf9;
        letter-spacing: -0.015em;
        line-height: 1.05;
        font-variant-numeric: tabular-nums;
        font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', var(--font-body);
      }
      .rail-card-value-sm {
        font-size: 11px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.82);
        letter-spacing: 0.02em;
        line-height: 1.55;
        text-transform: none;
        font-family: var(--font-body);
      }
      .rail-card-unit {
        font-size: 14px;
        font-weight: 600;
        color: rgba(233, 116, 81, 0.85);
        margin-left: 2px;
      }

      .rail-card-bar {
        height: 2px;
        background: linear-gradient(90deg, rgba(233, 116, 81, 0.85) 0%, rgba(233, 116, 81, 0.35) 60%, rgba(233, 116, 81, 0.03) 100%);
        border-radius: 1px;
        margin-top: 2px;
      }

      .rail-card-foot {
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.34);
        margin-top: 1px;
      }

      .hero-rail-badge {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 11px;
        background: rgba(42, 42, 40, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-left: 2px solid rgba(233, 116, 81, 0.45);
        border-radius: 2px;
        font-size: 9px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.58);
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }
      .rail-badge-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #E97451;
        box-shadow: 0 0 6px rgba(233, 116, 81, 0.6);
        animation: pulse-dot 2s ease-in-out infinite;
        flex-shrink: 0;
      }
      .rail-badge-dot.ok {
        background: #4ade80;
        box-shadow: 0 0 6px rgba(74, 222, 128, 0.55);
      }

      /* Narrow desktop 1280-1439 — tighten */
      @media (min-width: 1280px) and (max-width: 1439px) {
        .hero-rail       { width: 196px; gap: 10px; }
        .hero-rail-left  { left: 1.25rem; }
        .hero-rail-right { right: 1.25rem; }
        .rail-card-value { font-size: 22px; }
        .hero-rail-card  { padding: 12px 13px 12px; }
      }

      /* Hide on tablet & mobile — orbit owns the viewport */
      @media (max-width: 1279px) {
        .hero-rail { display: none !important; }
      }

      /* Light theme overrides */
      [data-theme="light"] .hero-rail-kicker {
        color: rgba(31, 31, 30, 0.6);
        border-bottom-color: rgba(31, 31, 30, 0.1);
      }
      [data-theme="light"] .hero-rail-kicker::before {
        background: linear-gradient(90deg, rgba(233, 116, 81, 0.85), rgba(233, 116, 81, 0.15));
      }
      [data-theme="light"] .hero-rail-card {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.65));
        border-color: rgba(31, 31, 30, 0.12);
        border-left-color: rgba(233, 116, 81, 0.6);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.6),
          0 2px 12px rgba(31, 31, 30, 0.08);
      }
      [data-theme="light"] .hero-rail-card::before,
      [data-theme="light"] .hero-rail-card::after {
        border-color: rgba(233, 116, 81, 0.85);
      }
      [data-theme="light"] .rail-card-label  { color: rgba(31, 31, 30, 0.55); }
      [data-theme="light"] .rail-card-value  { color: #1f1f1e; }
      [data-theme="light"] .rail-card-value-sm { color: rgba(31, 31, 30, 0.82); }
      [data-theme="light"] .rail-card-foot   { color: rgba(31, 31, 30, 0.4); }
      [data-theme="light"] .hero-rail-badge  {
        background: rgba(255, 255, 255, 0.7);
        border-color: rgba(31, 31, 30, 0.1);
        border-left-color: rgba(233, 116, 81, 0.55);
        color: rgba(31, 31, 30, 0.62);
      }

      /* Reduced motion */
      @media (prefers-reduced-motion: reduce) {
        .hero-rail-left,
        .hero-rail-right {
          animation: none;
          opacity: 1;
          transform: translateY(-50%);
        }
        .rail-badge-dot,
        .hero-rail-kicker-dot { animation: none; }
      }

      /* ============================================================ */
      /* 🎴 ORBITAL FEATURE BOXES                                    */
      /* ============================================================ */

      @keyframes orbital-float-1 {
        0%,
        100% {
          transform: translate(0, 0) rotate(0deg);
        }
        25% {
          transform: translate(10px, -15px) rotate(2deg);
        }
        50% {
          transform: translate(-5px, -10px) rotate(-1deg);
        }
        75% {
          transform: translate(-10px, 5px) rotate(1deg);
        }
      }

      @keyframes orbital-float-2 {
        0%,
        100% {
          transform: translate(0, 0) rotate(0deg);
        }
        25% {
          transform: translate(-12px, 8px) rotate(-2deg);
        }
        50% {
          transform: translate(8px, 15px) rotate(1deg);
        }
        75% {
          transform: translate(12px, -5px) rotate(-1deg);
        }
      }

      @keyframes orbital-float-3 {
        0%,
        100% {
          transform: translate(0, 0) rotate(0deg);
        }
        25% {
          transform: translate(5px, 12px) rotate(1deg);
        }
        50% {
          transform: translate(-10px, -8px) rotate(-2deg);
        }
        75% {
          transform: translate(8px, -12px) rotate(2deg);
        }
      }

      @keyframes border-glow {
        0%,
        100% {
          border-color: var(--accent-1);
          box-shadow:
            0 0 20px rgba(233, 116, 81, 0.3),
            0 0 40px rgba(233, 116, 81, 0.1),
            inset 0 0 20px rgba(233, 116, 81, 0.05);
        }
        33% {
          border-color: var(--accent-2);
          box-shadow:
            0 0 20px rgba(110, 132, 255, 0.3),
            0 0 40px rgba(110, 132, 255, 0.1),
            inset 0 0 20px rgba(110, 132, 255, 0.05);
        }
        66% {
          border-color: var(--accent-3);
          box-shadow:
            0 0 20px rgba(184, 107, 255, 0.3),
            0 0 40px rgba(184, 107, 255, 0.1),
            inset 0 0 20px rgba(184, 107, 255, 0.05);
        }
      }

      .features {
        max-width: 1200px;
        margin: 8rem auto 6rem;
        padding: 0 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        flex-wrap: wrap;
        min-height: 40vh;
      }

      .feature-card {
        width: 180px;
        height: 180px;
        border-radius: 24px;
        border: 2px solid var(--accent-1);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: relative;
        animation: border-glow 6s ease-in-out infinite;
      }

      .feature-card:nth-child(1) {
        animation:
          orbital-float-1 12s ease-in-out infinite,
          border-glow 6s ease-in-out infinite;
      }

      .feature-card:nth-child(2) {
        animation:
          orbital-float-2 15s ease-in-out infinite,
          border-glow 6s ease-in-out infinite 2s;
        width: 200px;
        height: 200px;
      }

      .feature-card:nth-child(3) {
        animation:
          orbital-float-3 18s ease-in-out infinite,
          border-glow 6s ease-in-out infinite 4s;
      }

      .feature-card::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 24px;
        padding: 2px;
        background: linear-gradient(
          45deg,
          var(--accent-1),
          var(--accent-2),
          var(--accent-3),
          var(--accent-1)
        );
        -webkit-mask:
          linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
        mask:
          linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.5s ease;
      }

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

      .feature-card:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
      }

      /* ============================================================ */
      /* 📱 RESPONSIVE (MOBILE)                                      */
      /* ============================================================ */

      @media (max-width: 1200px) {
        .mega {
          width: min(980px, 94vw);
          padding: 12px;
        }
        .mega-grid {
          grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
          gap: 12px;
        }
      }

      @media (max-width: 1024px) {
        .mega {
          width: 92vw;
          max-height: calc(100vh - 90px);
          padding: 10px;
        }
        .mega-grid {
          grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
          gap: 10px;
        }
        .mega-col {
          padding: 12px;
        }
      }

      @media (max-width: 1280px) {
        #search-container input {
          width: 180px !important;
        }
        #search-container input:focus {
          width: 220px !important;
        }
        .health-text {
          font-size: 11px;
        }
      }

      @media (max-width: 968px) {
        .nav-links {
          display: none;
        }
        .mobile-menu-btn {
          display: flex;
        }
        .header-container {
          padding: 0 1.5rem;
          gap: 1rem;
        }
        #search-container input {
          width: 160px !important;
        }
        .health-badge {
          padding: 5px 8px;
        }
        .health-text span:last-child {
          display: none;
        }
      }

      /* ============================================================ */
      /* 📱 MOBILE RESPONSIVE - PERFECT UX                           */
      /* ============================================================ */

      /* Hamburger Menu Button */
      .mobile-menu-btn {
        display: none;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
      }

      .mobile-menu-btn span {
        width: 20px;
        height: 2px;
        background: #E97451;
        border-radius: 2px;
        transition: all 0.3s ease;
      }

      .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
      }

      .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
      }

      .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
      }

      /* Mobile Navigation Overlay */
      .mobile-nav-overlay {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(31, 31, 30, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 49;
        overflow-y: auto;
        padding: 2rem 1.5rem;
        -webkit-overflow-scrolling: touch;
      }

      .mobile-nav-overlay.active {
        transform: translateX(0);
      }

      .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
      }

      .mobile-nav-links li {
        margin-bottom: 1.5rem;
      }

      .mobile-nav-links a,
      .mobile-nav-links button {
        display: block;
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        padding: 1rem;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        width: 100%;
        text-align: left;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .mobile-nav-links a:active,
      .mobile-nav-links button:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
      }

      .mobile-nav-links li.mobile-nav-group {
        margin: 1.75rem 0 0.5rem;
        padding: 0;
        border: none;
        background: transparent;
      }
      .mobile-nav-links li.mobile-nav-group:first-child {
        margin-top: 0;
      }
      .mobile-nav-kicker {
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.55);
        padding: 0.35rem 0.25rem 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      }
      .mobile-nav-links li.mobile-nav-group + li {
        margin-top: 0.75rem;
      }

      @media (max-width: 1024px) {
        /* Tablet optimizations */
        .header-container {
          gap: 0.75rem;
          padding: 0 1.5rem;
        }

        #search-container {
          margin: 0 0.5rem;
        }

        .nav-link {
          font-size: 14px;
          padding: 0.5rem 0.6rem;
        }

        .sidebar-stats,
        .bottom-bar-categories {
          font-size: 13px;
        }
      }

      @media (max-width: 768px) {
        /* Mobile: Hide desktop nav, show hamburger */
        nav[aria-label='Main navigation'] {
          display: none;
        }

        .mobile-menu-btn {
          display: flex;
        }

        .header-container {
          padding: 0 0.75rem;
          gap: 0;
          height: 56px;
          flex-wrap: nowrap;
          overflow: hidden;
        }

        #search-container {
          display: none;
        }

        .brand {
          font-size: 20px;
          gap: 6px;
          flex: 1;
          min-width: 0;
          overflow: hidden;
        }
        .brand img {
          width: 32px !important;
          height: 32px !important;
          flex-shrink: 0;
        }
        .brand-text-primary {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .nav-right {
          gap: 0.125rem;
          align-items: center;
          flex-shrink: 0;
          margin-left: auto;
        }

        /* Hide "Sign In" button on mobile */
        .nav-right .btn-outline {
          display: none !important;
        }

        /* All buttons — uniform 32px, same line */
        .theme-neo {
          width: 32px;
          height: 32px;
          flex-shrink: 0;
        }
        .ly-toggle-indicator svg {
          width: 18px;
          height: 18px;
        }
        .nav-ai-btn {
          width: 32px;
          height: 32px;
          margin-right: 0;
          flex-shrink: 0;
        }
        .nav-ai-btn svg {
          width: 18px;
          height: 18px;
        }
        .mobile-menu-btn {
          padding: 6px;
          flex-shrink: 0;
        }

        .nav-right .nav-link,
        .nav-right .cta {
          padding: 0.5rem 0.75rem;
          font-size: 13px;
        }

        .cta-os {
          display: none;
        }

        .health-badge {
          display: none !important;
        }

        /* Mega menus — full screen overlay on mobile */
        .mega {
          top: 68px;
          max-height: calc(100vh - 68px);
          max-height: calc(100dvh - 68px);
          overflow-y: auto;
          -webkit-overflow-scrolling: touch;
        }
        .mega-inner {
          padding: 20px 16px 32px;
        }
        .mega-grid {
          grid-template-columns: 1fr;
          gap: 10px;
        }
        .mega-col {
          padding: 12px;
        }
        .mega-item {
          padding: 10px;
        }
        .mega-item-title {
          font-size: 13px;
        }
        .mega-item-desc {
          font-size: 12px;
        }
        .mega-close {
          top: 12px;
          right: 16px;
        }
        .mega-category-header {
          margin-bottom: 16px;
          padding-bottom: 12px;
        }
        .mega-category-title {
          font-size: 17px;
        }

        /* Sidebar - make it bottom bar on mobile */
        .sidebar-stats {
          position: fixed;
          bottom: 0;
          left: 0;
          right: 0;
          top: auto;
          width: 100%;
          height: auto;
          padding: 1rem;
          background: rgba(0, 0, 0, 0.9);
          border-top: 1px solid rgba(255, 255, 255, 0.15);
          border-left: none;
          display: flex;
          flex-direction: row;
          overflow-x: auto;
          overflow-y: visible;
          gap: 1rem;
          z-index: 48;
        }

        .sidebar-stats .stat-item {
          min-width: 120px;
          flex-shrink: 0;
          padding: 0.75rem;
          margin-bottom: 0;
        }

        .sidebar-stats .stat-label {
          font-size: 11px;
        }

        .sidebar-stats .stat-value {
          font-size: 18px;
        }

        /* Bottom bar categories */
        .bottom-bar-categories {
          position: fixed;
          bottom: 70px; /* Above stats bar */
          left: 0;
          right: 0;
          padding: 0.75rem 1rem;
          background: rgba(0, 0, 0, 0.85);
          border-top: 1px solid rgba(255, 255, 255, 0.1);
          overflow-x: auto;
          display: flex;
          gap: 0.75rem;
          z-index: 47;
        }

        .bottom-bar-categories .category-item {
          min-width: 100px;
          flex-shrink: 0;
          padding: 0.5rem 0.75rem;
          font-size: 12px;
        }



        /* Hero section — mobile: centered overlay, no background */
        .hero {
          position: fixed;
          inset: 60px 0 0 0;
          width: 100%;
          max-width: 100%;
          min-height: auto;
          height: calc(100vh - 60px);
          padding: 1.25rem 1.25rem 2rem;
          text-align: center;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          z-index: 2;
          background: none;
          pointer-events: none;
        }

        .hero > * {
          pointer-events: auto;
        }

        .hero-badge {
          margin-left: auto;
          margin-right: auto;
          margin-bottom: 0.75rem;
        }

        .hero-title {
          font-size: 1.6rem;
          margin-bottom: 0.25rem;
        }

        .hero-description {
          max-width: 360px;
          margin-left: auto;
          margin-right: auto;
          font-size: 0.85rem;
          margin-bottom: 0.75rem;
        }

        .hero-ctas {
          justify-content: center;
          gap: 0.75rem;
          margin-bottom: 0.75rem;
        }

        .hero-stats {
          justify-content: center;
          gap: 1.5rem;
        }

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

      @media (max-width: 480px) {
        /* Small mobile optimizations */
        .brand {
          font-size: 18px;
          gap: 6px;
        }
        .brand img {
          width: 32px !important;
          height: 32px !important;
        }

        .header-container {
          padding: 0 0.75rem;
          height: 56px;
        }

        .header-2025 {
          height: 56px;
        }

        .theme-neo {
          width: 32px;
          height: 32px;
        }
        .ly-toggle-indicator svg {
          width: 18px;
          height: 18px;
        }

        .nav-right .nav-link,
        .nav-right .cta {
          padding: 0.4rem 0.6rem;
          font-size: 12px;
        }

        .mobile-nav-overlay {
          top: 56px;
        }
        .mega {
          top: 56px;
        }

        .sidebar-stats .stat-item {
          min-width: 100px;
          padding: 0.5rem;
        }

        .sidebar-stats .stat-value {
          font-size: 16px;
        }

        .bottom-bar-categories {
          bottom: 60px;
        }

        .hero {
          padding: 1rem 1rem 1.25rem;
          background: linear-gradient(
            0deg,
            rgba(31, 31, 30, 0.96) 0%,
            rgba(31, 31, 30, 0.88) 40%,
            rgba(31, 31, 30, 0.45) 75%,
            transparent 100%
          );
        }

        .hero-title {
          font-size: 1.5rem;
        }

        .hero-description {
          font-size: 0.85rem;
          max-width: 340px;
        }

        .hero-cta-primary,
        .hero-cta-ghost {
          padding: 0.7rem 1.4rem;
          font-size: 0.85rem;
          min-height: 44px;
        }

        .hero-stats {
          gap: 1.2rem;
        }

        .hero-stat-value {
          font-size: 1.2rem;
        }
      }


      /* ============================================================ */
      /* 📱 LANDSCAPE ORIENTATION FIXES                               */
      /* ============================================================ */

      @media (max-width: 968px) and (orientation: landscape) {
        .hero {
          min-height: auto;
          padding: 1rem 1.5rem;
        }

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

        .hero-stats {
          flex-direction: row;
        }

        .hero-badge {
          margin-bottom: 0.5rem;
        }

        .hero-description {
          margin-bottom: 0.75rem;
        }
      }

      /* ============================================================ */
      /* LyDian AI Assistant — Enterprise Neural Interface             */
      /* ============================================================ */

      /* AI Assistant Header Button */
      .nav-ai-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        background: transparent;
        color: #E97451;
        transition: all 0.2s ease;
        padding: 0;
        margin-right: 4px;
        flex-shrink: 0;
      }
      .nav-ai-btn svg { width: 20px; height: 20px; }
      .nav-ai-btn:hover {
        background: rgba(233, 116, 81, 0.12);
        color: #F5A47C;
      }
      .nav-ai-btn:active { transform: scale(0.92); }
      .nav-ai-btn.open { color: #F5A47C; background: rgba(233, 116, 81, 0.15); }

      /* ── Panel ── */
      .ly-panel {
        position: fixed; bottom: 28px; right: 28px; z-index: 9001;
        width: 420px; height: 620px; border-radius: 16px;
        background: rgba(31,31,30,0.97); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
        border: 1px solid rgba(255,255,255,0.07);
        box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(233, 116, 81,0.1);
        display: flex; flex-direction: column; overflow: hidden;
        transform-origin: top right; transform: translateY(20px) scale(0.95);
        opacity: 0; pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
      }
      .ly-panel::before {
        content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
        background: linear-gradient(90deg, #E97451 0%, #F08A5D 50%, #D8B56A 100%);
        z-index: 2;
      }
      .ly-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

      /* ── Header ── */
      .ly-header {
        display: flex; align-items: center; gap: 10px; padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        background: rgba(233, 116, 81,0.04); flex-shrink: 0;
      }
      .ly-avatar {
        width: 34px; height: 34px; border-radius: 10px;
        background: rgba(233, 116, 81,0.1); border: 1px solid rgba(233, 116, 81,0.25);
        display: flex; align-items: center; justify-content: center; flex-shrink: 0;
      }
      .ly-avatar img { height: 22px; width: auto; }
      .ly-brand { flex: 1; font-family: var(--font-body); }
      .ly-brand-name { font-size: 14px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; }
      .ly-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
      .ly-brand-sub { font-size: 10.5px; color: rgba(255,255,255,0.4); margin-top: 1px; }
      .ly-close {
        width: 30px; height: 30px; border-radius: 8px; border: none;
        background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.5); cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: all 0.15s; flex-shrink: 0;
      }
      .ly-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
      .ly-close svg { width: 16px; height: 16px; }

      /* ── Body (scrollable) ── */
      .ly-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
      .ly-body::-webkit-scrollbar { width: 3px; }
      .ly-body::-webkit-scrollbar-track { background: transparent; }
      .ly-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

      /* ── Welcome Cards Grid ── */
      .ly-welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
      .ly-welcome-title {
        grid-column: 1 / -1; font: 600 13px/1.4 var(--font-body);
        color: rgba(255,255,255,0.85); margin-bottom: 4px;
      }
      .ly-card {
        padding: 12px; border-radius: 10px; cursor: pointer;
        background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
        transition: all 0.2s; display: flex; flex-direction: column; gap: 4px;
      }
      .ly-card:hover { background: rgba(233, 116, 81,0.08); border-color: rgba(233, 116, 81,0.25); transform: translateY(-1px); }
      .ly-card-icon { font-size: 18px; line-height: 1; }
      .ly-card-title { font: 600 12px/1.3 var(--font-body); color: rgba(255,255,255,0.9); }
      .ly-card-desc { font: 400 10.5px/1.3 var(--font-body); color: rgba(255,255,255,0.4); }

      /* ── Messages ── */
      .ly-messages { display: flex; flex-direction: column; gap: 10px; }
      .ly-msg {
        max-width: 90%; padding: 10px 14px; border-radius: 10px;
        font: 400 13px/1.6 var(--font-body);
        animation: ly-msg-in 0.3s ease-out;
      }
      .ly-msg a { color: #E97451; text-decoration: none; }
      .ly-msg a:hover { text-decoration: underline; }
      .ly-msg code { background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
      .ly-msg strong { font-weight: 600; color: #fff; }
      .ly-msg.bot {
        align-self: flex-start; background: rgba(255,255,255,0.06);
        color: rgba(255,255,255,0.88); border-left: 2px solid rgba(233, 116, 81,0.4);
        border-bottom-left-radius: 4px;
      }
      .ly-msg.user {
        align-self: flex-end; background: linear-gradient(135deg, rgba(233, 116, 81,0.9), rgba(180,120,20,0.85));
        color: #fff; border-bottom-right-radius: 4px;
      }
      .ly-cursor { display: inline-block; width: 2px; height: 14px; background: #E97451; margin-left: 2px; vertical-align: text-bottom; animation: ly-blink 0.8s step-end infinite; }
      @keyframes ly-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
      @keyframes ly-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

      /* ── Typing dots ── */
      .ly-typing { display: flex; gap: 4px; padding: 10px 14px; align-self: flex-start; background: rgba(255,255,255,0.06); border-radius: 10px; border-bottom-left-radius: 4px; }
      .ly-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.35); animation: ly-bounce 1.4s ease-in-out infinite; }
      .ly-typing span:nth-child(2) { animation-delay: 0.16s; }
      .ly-typing span:nth-child(3) { animation-delay: 0.32s; }
      @keyframes ly-bounce { 0%,60%,100% { transform: translateY(0); opacity: 0.35; } 30% { transform: translateY(-6px); opacity: 1; } }

      /* ── Chips ── */
      .ly-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px; flex-shrink: 0; min-height: 0; }
      .ly-chips:empty { padding: 0; }
      .ly-chip {
        padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
        background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.65);
        font: 500 11.5px/1 var(--font-body); cursor: pointer;
        transition: all 0.2s; white-space: nowrap;
      }
      .ly-chip:hover { background: rgba(233, 116, 81,0.12); border-color: rgba(233, 116, 81,0.35); color: #fff; }

      /* ── Input Area ── */
      .ly-input-area {
        display: flex; align-items: center; gap: 8px; padding: 12px 16px;
        border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
        background: rgba(0,0,0,0.2);
      }
      .ly-input {
        flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px; padding: 10px 14px; color: #fff;
        font: 400 13px/1.4 var(--font-body); outline: none;
        transition: border-color 0.2s; resize: none;
      }
      .ly-input::placeholder { color: rgba(255,255,255,0.3); }
      .ly-input:focus { border-color: rgba(233, 116, 81,0.4); }
      .ly-send {
        width: 38px; height: 38px; border-radius: 10px; border: none;
        background: linear-gradient(135deg, #E97451, #C95A37); color: #fff;
        cursor: pointer; display: flex; align-items: center; justify-content: center;
        transition: all 0.2s; flex-shrink: 0;
      }
      .ly-send:hover { filter: brightness(1.15); transform: scale(1.05); }
      .ly-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; filter: none; }
      .ly-send svg { width: 18px; height: 18px; }
      .ly-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: ly-spin 0.6s linear infinite; }
      @keyframes ly-spin { to { transform: rotate(360deg); } }

      /* ── Status Bar ── */
      .ly-status-bar {
        display: flex; justify-content: space-between; padding: 6px 16px;
        font: 400 10px/1 var(--font-body); color: rgba(255,255,255,0.25);
        border-top: 1px solid rgba(255,255,255,0.04); flex-shrink: 0;
      }

      /* ── Light Theme ── */
      [data-theme="light"] .nav-ai-btn { background: transparent; color: #D4654A; }
      [data-theme="light"] .nav-ai-btn:hover { background: rgba(233, 116, 81, 0.08); color: #E97451; }
      [data-theme="light"] .ly-panel { background: rgba(255,255,255,0.97); border-color: rgba(0,0,0,0.08); box-shadow: 0 32px 80px rgba(0,0,0,0.15); }
      [data-theme="light"] .ly-header { background: rgba(233, 116, 81,0.04); border-color: rgba(0,0,0,0.06); }
      [data-theme="light"] .ly-brand-name { color: #353532; }
      [data-theme="light"] .ly-brand-sub { color: rgba(0,0,0,0.4); }
      [data-theme="light"] .ly-avatar { background: rgba(233, 116, 81,0.08); border-color: rgba(233, 116, 81,0.2); }
      [data-theme="light"] .ly-close { background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.4); }
      [data-theme="light"] .ly-close:hover { background: rgba(0,0,0,0.08); color: #353532; }
      [data-theme="light"] .ly-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
      [data-theme="light"] .ly-card:hover { background: rgba(233, 116, 81,0.05); border-color: rgba(233, 116, 81,0.2); }
      [data-theme="light"] .ly-card-title { color: #353532; }
      [data-theme="light"] .ly-card-desc { color: rgba(0,0,0,0.45); }
      [data-theme="light"] .ly-welcome-title { color: #353532; }
      [data-theme="light"] .ly-msg.bot { background: rgba(0,0,0,0.03); color: #353532; border-left-color: rgba(233, 116, 81,0.4); }
      [data-theme="light"] .ly-msg.user { color: #fff; }
      [data-theme="light"] .ly-msg a { color: #C95A37; }
      [data-theme="light"] .ly-msg strong { color: #353532; }
      [data-theme="light"] .ly-chip { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: rgba(0,0,0,0.6); }
      [data-theme="light"] .ly-chip:hover { background: rgba(233, 116, 81,0.08); border-color: rgba(233, 116, 81,0.25); color: #353532; }
      [data-theme="light"] .ly-input { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); color: #353532; }
      [data-theme="light"] .ly-input::placeholder { color: rgba(0,0,0,0.3); }
      [data-theme="light"] .ly-input:focus { border-color: rgba(233, 116, 81,0.35); }
      [data-theme="light"] .ly-input-area { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
      [data-theme="light"] .ly-status-bar { color: rgba(0,0,0,0.3); border-color: rgba(0,0,0,0.04); }
      [data-theme="light"] .ly-typing { background: rgba(0,0,0,0.04); }
      [data-theme="light"] .ly-typing span { background: rgba(0,0,0,0.3); }

      /* ── Mobile ── */
      @media (max-width: 480px) {
        .ly-panel { width: calc(100vw - 24px); height: calc(100dvh - 100px); bottom: 12px; right: 12px; border-radius: 14px; }
        .header-container { padding: 0 0.5rem; height: 48px; }
        .brand { font-size: 18px; gap: 5px; }
        .brand img { width: 28px !important; height: 28px !important; }
        .nav-ai-btn { width: 28px; height: 28px; }
        .nav-ai-btn svg { width: 16px; height: 16px; }
        .theme-neo { width: 28px; height: 28px; }
        .ly-toggle-indicator svg { width: 16px; height: 16px; }
        .mobile-menu-btn { padding: 4px; }
        .mobile-menu-btn span { width: 18px; }
        .ly-welcome { grid-template-columns: 1fr; }
      }

      /* ============================================================ */
      /* 🌤️ LIGHT THEME OVERRIDES                                    */
      /* ============================================================ */

      [data-theme="light"] {
        --bg-0: #f8f9fc;
        --bg-1: #ffffff;
        --glass: #ffffff;
        --glass-2: rgba(0, 0, 0, 0.03);
        --stroke: rgba(0, 0, 0, 0.1);
        --txt-1: #353532;
        --txt-2: #6b7280;
      }

      [data-theme="light"] body {
        background: #dfdcd6;
        color: var(--txt-1);
      }

      [data-theme="light"] html {
        color-scheme: light;
      }

      /* ── Header ── */
      [data-theme="light"] .header-2025 {
        background: rgba(236, 233, 228, 0.92);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
      }

      [data-theme="light"] .brand {
        color: #353532;
      }

      [data-theme="light"] .brand-text-primary {
        color: #353532;
      }

      [data-theme="light"] .brand-text-secondary {
        color: rgba(26, 26, 46, 0.6);
      }

      [data-theme="light"] .nav-link {
        color: #374151;
      }

      [data-theme="light"] .nav-link:hover,
      [data-theme="light"] .nav-link:focus-visible {
        color: #E97451;
        background: rgba(233, 116, 81, 0.06);
      }

      [data-theme="light"] .nav-link[aria-expanded='true'] {
        color: #E97451;
        background: rgba(233, 116, 81, 0.08);
      }

      [data-theme="light"] .cta {
        background: linear-gradient(135deg, #E97451, #b8960e);
        color: #ffffff;
        border-color: rgba(233, 116, 81, 0.3);
        box-shadow: 0 4px 16px rgba(233, 116, 81, 0.2);
      }

      [data-theme="light"] .cta:hover {
        background: linear-gradient(135deg, #f5cc3a, #E97451);
        color: #ffffff;
        box-shadow: 0 6px 24px rgba(233, 116, 81, 0.3);
      }

      [data-theme="light"] .cta-os {
        background: linear-gradient(135deg, #E97451, #b8960e);
        color: #ffffff;
        border-color: rgba(233, 116, 81, 0.3);
      }

      [data-theme="light"] .cta-os:hover {
        background: linear-gradient(135deg, #f5cc3a, #E97451);
        color: #ffffff;
      }

      /* ── Search ── */
      [data-theme="light"] #live-search-input {
        background: rgba(0, 0, 0, 0.04) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #353532 !important;
      }

      [data-theme="light"] #live-search-input::placeholder {
        color: rgba(0, 0, 0, 0.4) !important;
      }

      [data-theme="light"] #live-search-input:focus {
        border-color: rgba(233, 116, 81, 0.3) !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 3px rgba(233, 116, 81, 0.08) !important;
      }

      /* ── Health Badge ── */
      [data-theme="light"] .health-badge {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.1);
      }

      [data-theme="light"] .health-text {
        color: #374151;
      }

      /* ── Bottom Sub-Nav Bar ── */
      [data-theme="light"] .bottom-bar-categories {
        background: rgba(255, 255, 255, 0.92) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
      }

      [data-theme="light"] .bottom-bar-categories .category-item {
        color: #374151;
      }

      [data-theme="light"] .bottom-bar-categories .category-item:hover {
        color: #E97451;
        background: rgba(233, 116, 81, 0.06);
      }

      /* ── Mega Menu ── */
      [data-theme="light"] .mega {
        background: rgba(255, 255, 255, 0.97);
        border-top-color: rgba(0, 0, 0, 0.06);
      }

      [data-theme="light"] .mega-category-header {
        border-bottom-color: rgba(0, 0, 0, 0.06);
      }

      [data-theme="light"] .mega-card {
        background: rgba(0, 0, 0, 0.02);
        border-color: rgba(0, 0, 0, 0.06);
      }

      [data-theme="light"] .mega-card:hover {
        background: rgba(233, 116, 81, 0.04);
        border-color: rgba(233, 116, 81, 0.15);
      }

      [data-theme="light"] .mega-card-title {
        color: #353532;
      }

      [data-theme="light"] .mega-card-desc {
        color: #6b7280;
      }

      [data-theme="light"] .mega-section-title {
        color: #353532;
      }

      /* ── Hero Section ── */
      [data-theme="light"] .hero-title {
        color: #353532;
        text-shadow: none;
      }

      [data-theme="light"] .hero-description {
        color: #4a5568;
        text-shadow: none;
      }

      [data-theme="light"] .hero-stat-value {
        color: #353532;
        text-shadow: none;
      }

      [data-theme="light"] .hero-stat-label {
        color: #6b7280;
        text-shadow: none;
      }

      [data-theme="light"] .hero-cta-ghost {
        color: #353532;
        border-color: rgba(0, 0, 0, 0.15);
      }

      [data-theme="light"] .hero-cta-ghost:hover {
        background: rgba(0, 0, 0, 0.04);
        color: #353532;
      }

      [data-theme="light"] .hero-badge {
        background: rgba(233, 116, 81, 0.06);
        border-color: rgba(233, 116, 81, 0.15);
        color: #E97451;
      }

      [data-theme="light"] .hero {
        background: none;
      }

      @media (max-width: 768px) {
        [data-theme="light"] .hero {
          background: linear-gradient(
            0deg,
            rgba(223, 220, 214, 0.96) 0%,
            rgba(223, 220, 214, 0.85) 40%,
            rgba(223, 220, 214, 0.4) 75%,
            transparent 100%
          );
        }
      }

      @media (min-width: 769px) {
        [data-theme="light"] .hero {
          background: none;
          backdrop-filter: none;
          -webkit-backdrop-filter: none;
        }
      }

      /* ── Mobile Overlay ── */
      [data-theme="light"] .mobile-nav-overlay {
        background: rgba(255, 255, 255, 0.97);
      }

      [data-theme="light"] .mobile-nav-overlay a {
        color: #353532;
      }

      /* ── Quantum Modal ── */
      [data-theme="light"] #quantum-modal {
        background: rgba(0, 0, 0, 0.3);
      }

      [data-theme="light"] .quantum-modal-card {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.1);
      }

    
/* ============================================================
   ENTERPRISE HOMEPAGE SECTIONS — LyDian AI v3.0
   ============================================================ */

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* Gradient word in hero */
.hero-gradient-word {
  background: linear-gradient(135deg, #ffffff 0%, #E97451 40%, #6e84ff 70%, #b86bff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-gradient-shift 4s ease-in-out infinite alternate;
}
@keyframes hero-gradient-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
[data-theme="light"] .hero-gradient-word {
  background: linear-gradient(135deg, #353532 0%, #E97451 40%, #4a5adf 70%, #8a4fbf 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Homepage scrollable sections container */
.homepage-sections {
  position: relative;
  z-index: 5;
  margin-top: 100vh;
}

.hp-section {
  position: relative;
  padding: 6rem 1.5rem;
  background: #1f1f1e;
}
.hp-section + .hp-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 800px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 20%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.04) 80%, transparent 100%);
}
.hp-section:first-child {
  padding-top: 3rem;
}

[data-theme="light"] .hp-section {
  background: #f5f3ef;
}

.hp-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hp-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E97451;
  margin-bottom: 0.75rem;
}

.hp-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}
[data-theme="light"] .hp-section-title { color: #353532; }

.hp-section-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.6;
}
[data-theme="light"] .hp-section-desc { color: rgba(26,26,46,0.5); }

/* Section heading glow */
.hp-section-heading {
  position: relative;
  margin-bottom: 3rem;
}
.hp-section-heading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse at left, rgba(233, 116, 81,0.08) 0%, rgba(110,132,255,0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

/* ---- Feature Grid (Enterprise Premium) ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.fg-card {
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1), border-color 0.25s, background 0.25s, box-shadow 0.3s;
}
.fg-card.in-view { opacity: 1; transform: translateY(0); }
.fg-card:nth-child(1) { transition-delay: 0ms; }
.fg-card:nth-child(2) { transition-delay: 70ms; }
.fg-card:nth-child(3) { transition-delay: 140ms; }
.fg-card:nth-child(4) { transition-delay: 0ms; }
.fg-card:nth-child(5) { transition-delay: 70ms; }
.fg-card:nth-child(6) { transition-delay: 140ms; }

.fg-card:hover { border-color: rgba(233, 116, 81,0.2); background: rgba(233, 116, 81,0.025); box-shadow: 0 8px 32px rgba(233, 116, 81,0.06), 0 0 0 1px rgba(233, 116, 81,0.08) inset; }
.fg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #E97451, #6e84ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.fg-card { position: relative; overflow: hidden; }
.fg-card:hover::before { transform: scaleX(1); }

[data-theme="light"] .fg-card { border-color: rgba(0,0,0,0.06); background: rgba(255,255,255,0.6); backdrop-filter: blur(16px); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
[data-theme="light"] .fg-card:hover { border-color: rgba(233, 116, 81,0.3); background: rgba(233, 116, 81,0.04); }

.fg-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.7);
}
.fg-icon.ai { background: rgba(233, 116, 81,0.08); border: 1px solid rgba(233, 116, 81,0.12); color: #fcd34d; }
.fg-icon.data { background: rgba(110,132,255,0.08); border: 1px solid rgba(110,132,255,0.12); color: #6e84ff; }
.fg-icon.trust { background: rgba(184,107,255,0.08); border: 1px solid rgba(184,107,255,0.12); color: #b86bff; }

.fg-title { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
[data-theme="light"] .fg-title { color: #353532; }
.fg-desc { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
[data-theme="light"] .fg-desc { color: rgba(26,26,46,0.55); }

/* ---- Stats + Marquee ---- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.stat-big { text-align: center; }
.stat-big-value {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.35rem;
}
[data-theme="light"] .stat-big-value { color: #353532; }
.stat-big-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}
[data-theme="light"] .stat-big-label { color: rgba(26,26,46,0.4); }

/* Logo marquee */
.marquee-section {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
[data-theme="light"] .marquee-section { border-color: rgba(0,0,0,0.06); }

.marquee-label {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 2rem;
}
[data-theme="light"] .marquee-label { color: rgba(26,26,46,0.3); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-set {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  padding-right: 3.5rem;
}

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

.tech-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  transition: color 0.35s ease, opacity 0.35s ease;
  flex-shrink: 0;
  opacity: 0.5;
  cursor: default;
}
.tech-logo-item:hover {
  color: rgba(255,255,255,0.8);
  opacity: 1;
}
[data-theme="light"] .tech-logo-item {
  color: rgba(26,26,46,0.3);
}
[data-theme="light"] .tech-logo-item:hover {
  color: rgba(26,26,46,0.7);
}
.tech-logo-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}
.tech-logo-item .tl-name {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---- Model Demo ---- */
.model-demo {
  max-width: 720px;
  margin: 0 auto;
}
.model-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.model-tab {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.model-tab.active { background: rgba(233, 116, 81,0.1); border-color: rgba(233, 116, 81,0.3); color: #fff; }
.model-tab:hover:not(.active) { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.75); }
[data-theme="light"] .model-tab { border-color: rgba(0,0,0,0.1); color: rgba(26,26,46,0.5); }
[data-theme="light"] .model-tab.active { background: rgba(233, 116, 81,0.08); border-color: rgba(233, 116, 81,0.25); color: #353532; }

.model-output {
  padding: 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-height: 140px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.model-output::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(233, 116, 81,0.3) 30%, rgba(110,132,255,0.3) 70%, transparent 100%);
}
[data-theme="light"] .model-output { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }

.model-output-prompt {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
  font-style: italic;
}
[data-theme="light"] .model-output-prompt { color: rgba(26,26,46,0.3); }

.model-output-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}
[data-theme="light"] .model-output-text { color: rgba(26,26,46,0.7); }

.model-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #E97451;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.model-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(233, 116, 81,0.1);
  border: 1px solid rgba(233, 116, 81,0.15);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(233, 116, 81,0.06) 0%, rgba(110,132,255,0.04) 40%, transparent 65%);
  pointer-events: none;
  filter: blur(60px);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}
[data-theme="light"] .cta-title { color: #353532; }

.cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
  position: relative;
}
[data-theme="light"] .cta-desc { color: rgba(26,26,46,0.5); }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-btn-primary {
  padding: 0.85rem 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #E97451 0%, #a8182f 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(233, 116, 81,0.25);
  position: relative;
}
.cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(233, 116, 81,0.35); }

.cta-btn-secondary {
  padding: 0.85rem 2rem;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
  cursor: pointer;
}
.cta-btn-secondary:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
[data-theme="light"] .cta-btn-secondary { color: #353532; border-color: rgba(26,26,46,0.15); }

/* ---- Footer ---- */
.hp-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  border-top: 1px solid rgba(255,255,255,0.04);
}
[data-theme="light"] .hp-footer { color: rgba(26,26,46,0.3); border-color: rgba(0,0,0,0.06); }
.hp-footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
.hp-footer a:hover { color: #E97451; }
[data-theme="light"] .hp-footer a { color: rgba(26,26,46,0.4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-gradient-word, .marquee-track { animation: none !important; }
  .tech-logo-item svg { width: 18px; height: 18px; }
  .tech-logo-item .tl-name { font-size: 0.7rem; }
  .fg-card { opacity: 1 !important; transform: none !important; transition: none !important; }
  body::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   🪐 ORBIT CONSTELLATION v3 — Premium Enterprise Edition
   Choreographed entrance · Harmonized palette · Container queries
   ═══════════════════════════════════════════════════════════════ */

/* Hide the large "AI Orchestration Platform" h1 on home — the orbit IS the brand.
   Preserved for screen readers + SEO via sr-only technique. */
.hero-title--sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  animation: none !important;
}

.orbit-system {
  position: relative;
  width: min(96vw, 680px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 2.2rem auto 2.6rem;
  container-type: size;
  isolation: isolate;
  overflow: visible;
  opacity: 0;
  animation: orbit-system-in 0.7s ease-out 0.1s forwards;
}
@keyframes orbit-system-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Precision ambient glow - tight corporate vignette (v8) */
.orbit-system::before {
  content: '';
  position: absolute;
  inset: -4%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(233, 116, 81, 0.10)  0%,
      rgba(233, 116, 81, 0.06)  24%,
      rgba(143, 61, 33, 0.03)  48%,
      rgba(31, 31, 30, 0.00)   76%,
      transparent 100%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

/* Telemetry ticks — faint cardinal-point markers */
.orbit-system::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 50% 2%,  rgba(233, 116, 81,0.55), transparent 100%),
    radial-gradient(1.2px 1.2px at 50% 98%, rgba(233, 116, 81,0.55), transparent 100%),
    radial-gradient(1.2px 1.2px at 2%  50%, rgba(233, 116, 81,0.55), transparent 100%),
    radial-gradient(1.2px 1.2px at 98% 50%, rgba(233, 116, 81,0.55), transparent 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* RINGS - corporate hairline with subtle #E97451 tint */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 0.75px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 50px rgba(233, 116, 81, 0.025),
    0 0 30px rgba(233, 116, 81, 0.03);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  scale: 0.35;
  animation: orbit-ring-in 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes orbit-ring-in {
  0%   { opacity: 0; scale: 0.35; }
  100% { opacity: 1; scale: 1; }
}

.orbit-ring-1 {
  width: 38cqmin;
  height: 38cqmin;
  border-color: rgba(245, 164, 124, 0.28);
  border-width: 1px;
  box-shadow:
    inset 0 0 32px rgba(245, 164, 124, 0.06),
    0 0 22px rgba(233, 116, 81, 0.08);
  animation-delay: 0.35s;
}
.orbit-ring-2 {
  width: 64cqmin;
  height: 64cqmin;
  border-color: rgba(255, 255, 255, 0.14);
  border-width: 0.75px;
  box-shadow:
    inset 0 0 42px rgba(233, 116, 81, 0.05),
    0 0 24px rgba(233, 116, 81, 0.05);
  animation-delay: 0.5s;
}
.orbit-ring-3 {
  width: 92cqmin;
  height: 92cqmin;
  border-color: rgba(255, 255, 255, 0.09);
  border-width: 0.5px;
  box-shadow:
    inset 0 0 52px rgba(143, 61, 33, 0.04),
    0 0 28px rgba(143, 61, 33, 0.05);
  animation-delay: 0.65s;
}

/* CENTRAL CORE - animated logo anchor */
.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19cqmin;
  height: 19cqmin;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 3;
  opacity: 0;
  scale: 0.5;
  animation: orbit-core-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes orbit-core-in {
  0%   { opacity: 0; scale: 0.5; }
  100% { opacity: 1; scale: 1; }
}

/* v13 · Hero core — enterprise flat, zero halo/reflection */
.orbit-core-halo {
  display: none;
}

/* Inner disc — crisp, no drop-shadow, no glow */
.orbit-core-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
}

/* Static logo image — sharp, enterprise, no animation */
.orbit-core-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* PLANET NODES */
.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  transform:
    translate(-50%, -50%)
    translate(calc(cos(var(--a)) * var(--r, 18cqmin)),
              calc(sin(var(--a)) * var(--r, 18cqmin)));
  scale: 0.4;
  opacity: 0;
  animation: orbit-node-in 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(0.9s + var(--i, 0) * 0.07s);

  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg,
    rgba(38, 38, 37, 0.92) 0%,
    rgba(24, 24, 23, 0.94) 100%);
  border: 1px solid color-mix(in srgb, var(--accent, #E97451) 45%, rgba(255,255,255,0.14));
  color: #fff;
  font-size: clamp(0.68rem, 1.9cqmin, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(31, 31, 30, 0.55),
    0 0 16px color-mix(in srgb, var(--accent) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    scale 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

@keyframes orbit-node-in {
  0%   { opacity: 0; scale: 0.4; }
  70%  { opacity: 1; scale: 1.06; }
  100% { opacity: 1; scale: 1; }
}

/* Leading status dot */
.orbit-node::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 10px var(--accent),
    0 0 0 2px rgba(0, 0, 0, 0.4);
  margin-right: 8px;
  vertical-align: 1px;
  animation: orbit-node-pulse 2.4s ease-in-out infinite;
}

@keyframes orbit-node-pulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.78); }
}

.orbit-node-label {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,235,238,0.88) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Per-ring radii */
.orbit-node-r1 { --r: 19cqmin; }
.orbit-node-r2 { --r: 32cqmin; }
.orbit-node-r3 { --r: 45cqmin; }

/* Hover state */
.orbit-node:hover,
.orbit-node:focus-visible {
  scale: 1.10;
  background: linear-gradient(180deg,
    rgba(48, 48, 46, 0.97) 0%,
    rgba(28, 28, 26, 0.97) 100%);
  border-color: var(--accent);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.62),
    0 0 0 3px rgba(31, 31, 30, 0.55),
    0 0 32px color-mix(in srgb, var(--accent) 72%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  outline: none;
}

/* LIGHT THEME */
[data-theme="light"] .orbit-system::before {
  background:
    radial-gradient(circle at 50% 50%,
      rgba(233, 116, 81, 0.22) 0%,
      rgba(233, 116, 81, 0.14) 22%,
      rgba(233, 116, 81, 0.10) 45%,
      rgba(143, 61, 33, 0.07) 65%,
      transparent 82%);
}
[data-theme="light"] .orbit-system::after {
  background-image:
    radial-gradient(1px 1px at 18% 22%, rgba(143, 61, 33,0.32), transparent 100%),
    radial-gradient(1px 1px at 82% 14%, rgba(143, 61, 33,0.28), transparent 100%),
    radial-gradient(1px 1px at 28% 78%, rgba(143, 61, 33,0.22), transparent 100%),
    radial-gradient(1px 1px at 76% 84%, rgba(143, 61, 33,0.28), transparent 100%),
    radial-gradient(1px 1px at 92% 52%, rgba(143, 61, 33,0.20), transparent 100%),
    radial-gradient(1px 1px at 8%  48%, rgba(143, 61, 33,0.20), transparent 100%);
}
[data-theme="light"] .orbit-ring { border-color: rgba(143, 61, 33, 0.20); }
[data-theme="light"] .orbit-ring-1 { border-color: rgba(245, 164, 124, 0.42); }
[data-theme="light"] .orbit-ring-2 { border-color: rgba(233, 116, 81, 0.36); }
[data-theme="light"] .orbit-ring-3 { border-color: rgba(143, 61, 33, 0.32); }
[data-theme="light"] .orbit-core-inner {
  filter: none}
[data-theme="light"] .orbit-node {
  background: linear-gradient(180deg,
    rgba(255, 252, 250, 0.96) 0%,
    rgba(253, 247, 243, 0.96) 100%);
  color: #3a1a0a;
  border-color: color-mix(in srgb, var(--accent, #E97451) 50%, rgba(143,61,33,0.18));
  box-shadow:
    0 8px 22px rgba(143, 61, 33, 0.14),
    0 0 0 3px rgba(255, 255, 255, 0.70),
    0 0 18px color-mix(in srgb, var(--accent) 35%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .orbit-node-label {
  background: linear-gradient(180deg, #5C2513 0%, rgba(92, 37, 19,0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .orbit-node:hover,
[data-theme="light"] .orbit-node:focus-visible {
  background: linear-gradient(180deg,
    rgba(255, 253, 253, 0.99) 0%,
    rgba(254, 245, 247, 0.99) 100%);
  box-shadow:
    0 14px 32px rgba(143, 61, 33, 0.22),
    0 0 0 3px rgba(255, 255, 255, 0.85),
    0 0 36px color-mix(in srgb, var(--accent) 65%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* MOBILE - progressive breakpoints */
@media (max-width: 768px) {
  .orbit-system { width: min(94vw, 560px); margin: 1.8rem auto 2rem; }
}
@media (max-width: 560px) {
  .orbit-system { width: 94vw; margin: 1.4rem auto 1.8rem; }
  .orbit-node {
    padding: 6px 11px 6px 10px;
    font-size: clamp(0.62rem, 2.3cqmin, 0.74rem);
  }
  .orbit-node::before { width: 5px; height: 5px; margin-right: 6px; }
  .orbit-node-r1 { --r: 19cqmin; }
  .orbit-node-r2 { --r: 32cqmin; }
  .orbit-node-r3 { --r: 45cqmin; }
  .orbit-core { width: 22cqmin; height: 22cqmin; }
}
@media (max-width: 420px) {
  .orbit-system { width: 96vw; margin: 1.1rem auto 1.4rem; }
  .orbit-node {
    padding: 5px 9px 5px 8px;
    font-size: clamp(0.56rem, 2.6cqmin, 0.68rem);
    letter-spacing: 0;
  }
  .orbit-node::before { width: 4px; height: 4px; margin-right: 5px; }
  .orbit-node-r1 { --r: 20cqmin; }
  .orbit-node-r2 { --r: 33cqmin; }
  .orbit-node-r3 { --r: 46cqmin; }
  .orbit-core { width: 24cqmin; height: 24cqmin; }
}
@media (max-width: 340px) {
  .orbit-node {
    padding: 4px 7px 4px 7px;
    font-size: clamp(0.52rem, 2.8cqmin, 0.62rem);
  }
  .orbit-node-r1 { --r: 21cqmin; }
  .orbit-node-r2 { --r: 34cqmin; }
  .orbit-node-r3 { --r: 47cqmin; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .orbit-system,
  .orbit-ring,
  .orbit-ring-1, .orbit-ring-2, .orbit-ring-3,
  .orbit-core,
  .orbit-core-halo,
  .orbit-core-logo-img,
  .orbit-node,
  .orbit-node::before {
    animation: none !important;
    opacity: 1 !important;
    scale: 1 !important;
  }
  .orbit-node { transition: none !important; }
}

/* ============================================================
   ORBIT TECH GRID v8 - replaces slideshow with command-center
   ============================================================ */
.orbit-tech-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  animation: orbit-grid-in 1.2s ease-out 0.35s forwards;
  -webkit-mask-image: radial-gradient(circle at 50% 50%,
    #000 0%, #000 46%, rgba(0,0,0,0.55) 70%, transparent 94%);
          mask-image: radial-gradient(circle at 50% 50%,
    #000 0%, #000 46%, rgba(0,0,0,0.55) 70%, transparent 94%);
}
@keyframes orbit-grid-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Fine dot-grid — feels like a precision coordinate plane */
.orbit-tech-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.09) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: center center;
}

/* Crosshair rails — subtle vertical + horizontal guides */
.orbit-tech-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(255,255,255,0.055) 50%, transparent 50.15%),
    linear-gradient(0deg,  transparent 49.85%, rgba(255,255,255,0.055) 50%, transparent 50.15%);
  mix-blend-mode: screen;
}

/* Rotating scan beam — Lidar-style sweep */
.orbit-scan-beam {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    rgba(233, 116, 81, 0.00) 0%,
    rgba(233, 116, 81, 0.00) 78%,
    rgba(233, 116, 81, 0.10) 86%,
    rgba(233, 116, 81, 0.28) 93%,
    rgba(255, 255, 255, 0.35) 99%,
    rgba(233, 116, 81, 0.00) 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%,
    transparent 10%, #000 32%, #000 48%, transparent 94%);
          mask-image: radial-gradient(circle at 50% 50%,
    transparent 10%, #000 32%, #000 48%, transparent 94%);
  animation: orbit-scan-rotate 8s linear infinite;
  opacity: 0;
  animation-delay: 1.4s;
  animation-fill-mode: forwards;
}
@keyframes orbit-scan-rotate {
  0%   { transform: rotate(0deg);   opacity: 0; }
  5%   { opacity: 0.85; }
  95%  { opacity: 0.85; }
  100% { transform: rotate(360deg); opacity: 0; }
}

[data-theme="light"] .orbit-tech-grid::before {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31,31,30,0.12) 1px, transparent 1.4px);
}
[data-theme="light"] .orbit-tech-grid::after {
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(31,31,30,0.08) 50%, transparent 50.15%),
    linear-gradient(0deg,  transparent 49.85%, rgba(31,31,30,0.08) 50%, transparent 50.15%);
  mix-blend-mode: multiply;
}
[data-theme="light"] .orbit-scan-beam {
  background: conic-gradient(
    from 0deg,
    rgba(143, 61, 33, 0.00) 0%,
    rgba(143, 61, 33, 0.00) 78%,
    rgba(143, 61, 33, 0.10) 86%,
    rgba(143, 61, 33, 0.22) 93%,
    rgba(31, 31, 30, 0.35) 99%,
    rgba(143, 61, 33, 0.00) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .orbit-tech-grid,
  .orbit-scan-beam {
    animation: none !important;
    opacity: 1 !important;
  }
  .orbit-scan-beam { display: none; }
}
@media (max-width: 560px) {
  .orbit-tech-grid::before { background-size: 18px 18px; }
}
@media (max-width: 420px) {
  .orbit-tech-grid::before { background-size: 14px 14px; }
}

/* ============================================================
   MARQUEE FIX v5 - fade edges + mobile padding
   ============================================================ */
.marquee-section {
  position: relative;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}
.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(36px, 8vw, 120px);
  pointer-events: none;
  z-index: 2;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg,
    var(--bg-0, #1f1f1e) 0%,
    rgba(31, 31, 30, 0.92) 35%,
    transparent 100%);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(270deg,
    var(--bg-0, #1f1f1e) 0%,
    rgba(31, 31, 30, 0.92) 35%,
    transparent 100%);
}
[data-theme="light"] .marquee-section::before {
  background: linear-gradient(90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.92) 35%,
    transparent 100%);
}
[data-theme="light"] .marquee-section::after {
  background: linear-gradient(270deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.92) 35%,
    transparent 100%);
}

@media (max-width: 560px) {
  .marquee-section { padding: 1.6rem 0.5rem; }
  .marquee-section::before,
  .marquee-section::after { width: 28px; }
  .tech-logo-item .tl-name { font-size: 0.72rem; }
  .tech-logo-item svg { width: 18px; height: 18px; }
  .marquee-set { gap: 2.25rem; padding-right: 2.25rem; }
}

/* ============================================================
   v6 CORPORATE CHARCOAL — unified warm surface
   ============================================================ */
html { background-color: #1f1f1e; }
[data-theme="light"] html { background-color: #f8f9fc; }

.hp-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012) 0%, transparent 18%),
    #1f1f1e;
}
.hp-section + .hp-section::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(233, 116, 81, 0.22) 50%,
    transparent 100%);
}

/* Subtle warm vignette that only appears outside the orbit */
.orbit-system {
  /* soft inner shadow to seat the orbit over the charcoal */
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
}

/* ============================================================
   HEADER v5 - redistribute after LyDos/Velun removal
   ============================================================ */
@media (max-width: 768px) {
  .header-actions { gap: 0.5rem; }
}
@media (max-width: 560px) {
  .header-actions .cta-ghost,
  .header-actions .cta-genesis,
  .header-actions .cta-os { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   ORBIT v4 · Constellation Live — Enterprise WOW Layer (2026-04-18)
   Warm-clay palette preserved · zero palette/logo/favicon changes
   ══════════════════════════════════════════════════════════════ */

/* Rotating arc sweepers on each ring (30deg bright parcel) */
.orbit-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    transparent 320deg,
    color-mix(in srgb, var(--clay-arc, #E97451) 55%, transparent) 338deg,
    color-mix(in srgb, var(--clay-arc, #F5A47C) 95%, transparent) 352deg,
    color-mix(in srgb, var(--clay-arc, #E97451) 55%, transparent) 360deg,
    transparent 372deg);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 2px), #000 calc(50% - 1px), #000 50%, transparent calc(50% + 1px));
  mask: radial-gradient(circle, transparent calc(50% - 2px), #000 calc(50% - 1px), #000 50%, transparent calc(50% + 1px));
  pointer-events: none;
  opacity: 0;
  animation: orbit-arc-fade 0.8s ease-out 2.0s forwards,
             orbit-arc-spin var(--spin, 22s) linear 2.0s infinite;
}
.orbit-ring-1::before { --clay-arc: #F5A47C; --spin: 18s; }
.orbit-ring-2::before { --clay-arc: #E97451; --spin: 26s; }
.orbit-ring-3::before { --clay-arc: #C95A37; --spin: 34s; }
@keyframes orbit-arc-fade { from{opacity:0} to{opacity:.9} }
@keyframes orbit-arc-spin { to{transform:rotate(360deg)} }
[data-theme="light"] .orbit-ring-1::before { --clay-arc: #E97451; }
[data-theme="light"] .orbit-ring-2::before { --clay-arc: #C95A37; }
[data-theme="light"] .orbit-ring-3::before { --clay-arc: #8F3D21; }

/* SVG connector + data-packet layer */
.orbit-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: orbit-arc-fade 1s ease-out 1.6s forwards;
}
.orbit-connectors .packet {
  r: 2.2;
  fill: #F5A47C;
  filter: drop-shadow(0 0 3px #E97451) drop-shadow(0 0 6px rgba(233,116,81,.55));
  animation: packet-flow 4.2s linear infinite;
}
.orbit-connectors .packet.p2 { animation-duration: 5.4s; animation-delay: 1.3s; fill: #E97451; }
.orbit-connectors .packet.p3 { animation-duration: 6.8s; animation-delay: 2.6s; fill: #C95A37; }
.orbit-connectors .packet.p4 { animation-duration: 5.1s; animation-delay: 0.6s; }
@keyframes packet-flow {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
.orbit-connectors .packet.r1 { offset-path: path('M 50 50 L 50 31.5'); }
.orbit-connectors .packet.r2 { offset-path: path('M 50 50 L 82 50'); }
.orbit-connectors .packet.r3 { offset-path: path('M 50 50 L 50 96'); }
.orbit-connectors .packet.r4 { offset-path: path('M 50 50 L 18 50'); }

/* Core live-pulse halo + LIVE chip */
.orbit-core::before {
  content: '';
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(233,116,81,0.30) 0%,
    rgba(233,116,81,0.10) 40%,
    transparent 72%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
  animation: core-halo-pulse 3.4s ease-in-out 1.5s infinite;
}
[data-theme="light"] .orbit-core::before {
  background: radial-gradient(circle,
    rgba(233,116,81,0.32) 0%,
    rgba(245,164,124,0.18) 40%,
    transparent 72%);
}
@keyframes core-halo-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
.orbit-core-live {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(10,10,10,0.78);
  border: 1px solid rgba(245,164,124,0.45);
  font-family: ui-monospace, "Geist Mono", "JetBrains Mono", Menlo, monospace;
  font-size: clamp(8px, 1.6cqmin, 10px);
  font-weight: 700;
  letter-spacing: 0.10em;
  color: #F5A47C;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  opacity: 0;
  animation: orbit-arc-fade 0.6s ease-out 2.2s forwards;
  z-index: 5;
}
.orbit-core-live::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}
[data-theme="light"] .orbit-core-live {
  background: rgba(255,252,250,0.92);
  border-color: rgba(201,90,55,0.5);
  color: #8F3D21;
}
@keyframes live-dot-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .45; transform: scale(.72); }
}

/* Node v2: icon slot + hover spin-halo; status dot repositioned */
.orbit-node { overflow: visible; }
.orbit-node::before {
  width: 5px; height: 5px;
  margin-right: 0;
  margin-left: 5px;
  order: 3;
  vertical-align: middle;
  box-shadow: 0 0 7px var(--accent), 0 0 0 2px rgba(0,0,0,.35);
}
.orbit-node-icon {
  display: inline-flex;
  width: 13px; height: 13px;
  margin-right: 6px;
  color: var(--accent, #E97451);
  flex-shrink: 0;
  vertical-align: middle;
}
.orbit-node-icon svg { width: 100%; height: 100%; }
.orbit-node::after {
  content: '';
  position: absolute;
  inset: -10px -14px;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--accent, #E97451) 60%, transparent);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.orbit-node:hover::after,
.orbit-node:focus-visible::after {
  opacity: 0.85;
  animation: node-halo-spin 7s linear infinite;
}
@keyframes node-halo-spin { to { transform: rotate(360deg); } }
.orbit-system:has(.orbit-node:hover) .orbit-node:not(:hover) {
  opacity: 0.38;
  transition: opacity 0.28s ease;
}

/* Parallax wrapper hint (JS-driven transform) */
.orbit-system {
  transform-style: preserve-3d;
  perspective: 900px;
  will-change: transform;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .orbit-ring::before,
  .orbit-connectors,
  .orbit-core::before,
  .orbit-core-live::before,
  .orbit-node:hover::after { animation: none !important; }
  .orbit-connectors { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   HERO RAIL v2 — Telemetry panels with LED + sparkline
   ══════════════════════════════════════════════════════════════ */
.hero-rail-card { position: relative; }
.hero-rail-card .rail-led {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e, 0 0 0 2px rgba(34,197,94,0.12);
  animation: live-dot-pulse 1.8s ease-in-out infinite;
}
.hero-rail-card .rail-spark {
  width: 100%;
  height: 18px;
  margin-top: 6px;
  display: block;
  opacity: 0.88;
}
.hero-rail-card .rail-spark polyline {
  fill: none;
  stroke: #F5A47C;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(233,116,81,0.55));
}
[data-theme="light"] .hero-rail-card .rail-spark polyline { stroke: #C95A37; }

/* ══════════════════════════════════════════════════════════════
   LIVE METRICS RIBBON (replaces old stat-big strip)
   ══════════════════════════════════════════════════════════════ */
.metrics-ribbon {
  position: relative;
  margin: 0 auto;
  padding: 20px 26px 18px;
  max-width: 1180px;
  background: linear-gradient(180deg, rgba(38,38,37,0.55), rgba(26,26,25,0.55));
  border: 1px solid rgba(245,164,124,0.18);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.metrics-ribbon::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(245,164,124,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,164,124,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  -webkit-mask: radial-gradient(ellipse at center, #000 15%, transparent 80%);
  mask: radial-gradient(ellipse at center, #000 15%, transparent 80%);
  opacity: 0.55;
}
[data-theme="light"] .metrics-ribbon {
  background: linear-gradient(180deg, rgba(255,252,250,0.92), rgba(253,247,243,0.92));
  border-color: rgba(201,90,55,0.28);
}
.metrics-ribbon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(245,164,124,0.15);
  position: relative;
  flex-wrap: wrap;
}
.metrics-ribbon-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "Geist Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F5A47C;
  font-weight: 700;
}
.metrics-ribbon-kicker::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}
.metrics-ribbon-foot {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.05em;
}
[data-theme="light"] .metrics-ribbon-foot { color: rgba(92,37,19,0.58); }
[data-theme="light"] .metrics-ribbon-kicker { color: #8F3D21; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  position: relative;
}
@media (max-width: 980px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.metric-cell { position: relative; padding: 2px 0; }
.metric-cell + .metric-cell::before {
  content: '';
  position: absolute;
  left: -11px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(245,164,124,0.28), transparent);
}
@media (max-width: 560px) { .metric-cell + .metric-cell::before { display: none; } }
.metric-cell-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
[data-theme="light"] .metric-cell-label { color: rgba(92,37,19,0.62); }
.metric-cell-label .idx {
  font-size: 9px;
  color: rgba(245,164,124,0.65);
  padding: 1px 5px;
  border: 1px solid rgba(245,164,124,0.28);
  border-radius: 4px;
}
[data-theme="light"] .metric-cell-label .idx { color: #8F3D21; border-color: rgba(201,90,55,0.35); }
.metric-cell-value {
  font-family: ui-monospace, "Geist Mono", Menlo, monospace;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
[data-theme="light"] .metric-cell-value { color: #3a1a0a; }
.metric-cell-value .unit {
  font-size: 0.52em;
  color: #F5A47C;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 1px;
}
[data-theme="light"] .metric-cell-value .unit { color: #C95A37; }
.metric-cell-spark {
  width: 100%; height: 20px; margin-top: 10px; display: block;
}
.metric-cell-spark polyline {
  fill: none;
  stroke: #F5A47C;
  stroke-width: 1.25;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(233,116,81,0.5));
  opacity: 0.85;
}
[data-theme="light"] .metric-cell-spark polyline { stroke: #C95A37; }

/* ══════════════════════════════════════════════════════════════
   PLATFORM MARQUEE — Ailydian own platforms (no third-party tech)
   ══════════════════════════════════════════════════════════════ */
.platform-marquee {
  margin: 22px auto 0;
  max-width: 1180px;
  padding: 14px 0 10px;
  border-top: 1px solid rgba(245,164,124,0.14);
  position: relative;
  overflow: hidden;
}
.platform-marquee::before,
.platform-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.platform-marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-0, #1f1f1e) 0%, transparent 100%); }
.platform-marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-0, #1f1f1e) 0%, transparent 100%); }
[data-theme="light"] .platform-marquee::before { background: linear-gradient(90deg, rgba(253,247,243,1) 0%, transparent 100%); }
[data-theme="light"] .platform-marquee::after  { background: linear-gradient(270deg, rgba(253,247,243,1) 0%, transparent 100%); }
.platform-marquee-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,164,124,0.78);
  text-align: center;
  margin-bottom: 12px;
}
[data-theme="light"] .platform-marquee-label { color: rgba(143,61,33,0.75); }
.platform-marquee-track {
  display: flex;
  gap: 34px;
  align-items: center;
  animation: platform-scroll 54s linear infinite;
  width: max-content;
}
@keyframes platform-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.platform-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.78);
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.platform-marquee-item:hover { color: #F5A47C; }
.platform-marquee-item .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #E97451;
  box-shadow: 0 0 6px rgba(233,116,81,0.55);
}
[data-theme="light"] .platform-marquee-item { color: rgba(92,37,19,0.82); }
[data-theme="light"] .platform-marquee-item:hover { color: #C95A37; }

/* ══════════════════════════════════════════════════════════════
   CAPABILITIES BENTO + MICRO-DEMOS
   ══════════════════════════════════════════════════════════════ */
.feature-grid.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(184px, auto);
  gap: 16px;
}
.feature-grid.bento .fg-card {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.feature-grid.bento .fg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233,116,81,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.38),
              0 0 22px rgba(233,116,81,0.14);
}
.feature-grid.bento .fg-card.span-3 { grid-column: span 3; }
.feature-grid.bento .fg-card.span-4 { grid-column: span 4; }
@media (max-width: 960px) {
  .feature-grid.bento { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.bento .fg-card,
  .feature-grid.bento .fg-card.span-3,
  .feature-grid.bento .fg-card.span-4 { grid-column: span 1; }
}
@media (max-width: 560px) {
  .feature-grid.bento { grid-template-columns: 1fr; }
}
.fg-card-demo {
  position: absolute;
  right: 16px; bottom: 14px;
  pointer-events: none;
  opacity: 0.95;
}
.fg-demo-chips { display: flex; gap: 5px; }
.fg-demo-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(38,38,37,0.9);
  border: 1px solid rgba(245,164,124,0.28);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  transition: background 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}
.fg-demo-chips .chip.active {
  background: color-mix(in srgb, #E97451 22%, rgba(38,38,37,0.9));
  border-color: #E97451;
  color: #fff;
  box-shadow: 0 0 10px rgba(233,116,81,0.45);
}
.fg-demo-chips .chip .dt { width: 4px; height: 4px; border-radius: 50%; background: #F5A47C; }
[data-theme="light"] .fg-demo-chips .chip {
  background: rgba(255,252,250,0.9); color: #8F3D21;
  border-color: rgba(201,90,55,0.35);
}
.fg-demo-agents {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 92px;
}
.fg-demo-agents span {
  width: 10px; height: 10px; border-radius: 50%;
  background: color-mix(in srgb, #E97451 30%, rgba(38,38,37,0.9));
  border: 1px solid rgba(245,164,124,0.35);
  opacity: 0.55;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.fg-demo-agents span.on {
  opacity: 1;
  background: #E97451;
  transform: scale(1.18);
  box-shadow: 0 0 8px rgba(233,116,81,0.7);
}
.fg-demo-comply {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(38,38,37,0.9);
  border: 1px solid rgba(245,164,124,0.35);
  color: #F5A47C;
  transition: color 0.3s ease;
}
.fg-demo-comply::before { content: '✓'; color: #22c55e; font-weight: 700; }
[data-theme="light"] .fg-demo-comply {
  background: rgba(255,252,250,0.92); color: #8F3D21;
  border-color: rgba(201,90,55,0.35);
}
.fg-demo-lang {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.82);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(38,38,37,0.9);
  border: 1px solid rgba(245,164,124,0.3);
  min-width: 42px;
  text-align: center;
  transition: color 0.3s ease, border-color 0.3s ease;
}
[data-theme="light"] .fg-demo-lang {
  background: rgba(255,252,250,0.92); color: #8F3D21;
  border-color: rgba(201,90,55,0.35);
}
.fg-demo-rag {
  display: inline-flex; gap: 3px; align-items: flex-end;
  height: 26px;
}
.fg-demo-rag span {
  width: 5px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #F5A47C, #C95A37);
  animation: rag-bar-rise 2.6s ease-in-out infinite;
}
.fg-demo-rag span:nth-child(1) { height: 30%; animation-delay: 0.0s; }
.fg-demo-rag span:nth-child(2) { height: 58%; animation-delay: 0.15s; }
.fg-demo-rag span:nth-child(3) { height: 82%; animation-delay: 0.30s; }
.fg-demo-rag span:nth-child(4) { height: 48%; animation-delay: 0.45s; }
.fg-demo-rag span:nth-child(5) { height: 66%; animation-delay: 0.60s; }
@keyframes rag-bar-rise {
  0%, 100% { transform: scaleY(0.72); opacity: 0.6; }
  50%      { transform: scaleY(1);    opacity: 1; }
}
.fg-demo-latency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(34,197,94,0.38);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  color: #22c55e;
}
.fg-demo-latency::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}
[data-theme="light"] .fg-demo-latency {
  background: rgba(255,252,250,0.85);
  border-color: rgba(34,197,94,0.45);
}

/* ══════════════════════════════════════════════════════════════
   MODEL DEMO — Telemetry bar
   ══════════════════════════════════════════════════════════════ */
.model-demo-telemetry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(245,164,124,0.82);
  padding: 7px 13px;
  border-radius: 10px 10px 0 0;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(245,164,124,0.18);
  border-bottom: none;
  flex-wrap: wrap;
}
.model-demo-telemetry .left,
.model-demo-telemetry .right {
  display: inline-flex; align-items: center; gap: 8px;
}
.model-demo-telemetry .tok { color: #fff; font-weight: 700; }
.model-demo-telemetry .lat { color: #22c55e; }
.model-demo-telemetry .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}
[data-theme="light"] .model-demo-telemetry {
  background: rgba(255,252,250,0.7); color: #8F3D21;
}
[data-theme="light"] .model-demo-telemetry .tok { color: #3a1a0a; }

/* ══════════════════════════════════════════════════════════════
   CTA SPLIT PANEL — form left + code example right
   ══════════════════════════════════════════════════════════════ */
.cta-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 30px;
  background: linear-gradient(135deg, rgba(38,38,37,0.78), rgba(26,26,25,0.78));
  border: 1px solid rgba(245,164,124,0.22);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.cta-split::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(233,116,81,0.12), transparent 55%),
    radial-gradient(circle at 88% 88%, rgba(245,164,124,0.10), transparent 55%);
  pointer-events: none;
}
[data-theme="light"] .cta-split {
  background: linear-gradient(135deg, rgba(255,252,250,0.96), rgba(253,247,243,0.96));
  border-color: rgba(201,90,55,0.3);
}
@media (max-width: 800px) {
  .cta-split { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
}
.cta-split-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  text-align: left;
}
.cta-split-kicker {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F5A47C;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cta-split-kicker::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: live-dot-pulse 1.6s ease-in-out infinite;
}
[data-theme="light"] .cta-split-kicker { color: #8F3D21; }
.cta-split-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.015em;
  margin: 0;
}
[data-theme="light"] .cta-split-title { color: #3a1a0a; }
.cta-split-desc {
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 44ch;
  margin: 0;
}
[data-theme="light"] .cta-split-desc { color: rgba(92,37,19,0.74); }
.cta-split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.cta-split-right {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  background: #121211;
  border-radius: 12px;
  border: 1px solid rgba(245,164,124,0.22);
  font-family: ui-monospace, "Geist Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  overflow: hidden;
  min-height: 180px;
}
[data-theme="light"] .cta-split-right {
  background: #1a1a19;
  color: rgba(255,235,224,0.94);
  border-color: rgba(201,90,55,0.4);
}
.cta-split-right-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245,164,124,0.16);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,164,124,0.78);
}
.cta-split-right-head .dots { display: inline-flex; gap: 4px; }
.cta-split-right-head .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
}
.cta-split-right-head .dots span:first-child   { background: #ff5f56; }
.cta-split-right-head .dots span:nth-child(2)  { background: #ffbd2e; }
.cta-split-right-head .dots span:last-child    { background: #27c93f; }
.cta-split-right pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.cta-code-k { color: #F5A47C; font-weight: 600; }
.cta-code-s { color: #9fe8a1; }
.cta-code-c { color: rgba(255,255,255,0.42); font-style: italic; }
.cta-code-p { color: #F08A5D; }
.cta-code-n { color: #F5A47C; }

/* ══════════════════════════════════════════════════════════════
   ENTERPRISE MEGA-FOOTER (2026-04-18) — Fully responsive
   Warm-clay palette · native <details> accordion on mobile
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 6;
  margin-top: 0;
  padding: 56px clamp(20px, 5vw, 64px) 28px;
  /* Solid opaque base — hero (position:fixed) must NOT bleed through */
  background: #121211;
  border-top: 1px solid rgba(245,164,124,0.16);
  color: rgba(255,255,255,0.78);
  overflow: hidden;
  isolation: isolate;
}
/* Subtle warm-clay gradient layered on top of the opaque base (decorative) */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(233,116,81,0.06) 0%, transparent 45%),
    linear-gradient(180deg, rgba(38,38,37,0.0) 0%, rgba(18,18,17,0.0) 100%);
  pointer-events: none;
  z-index: 0;
}
/* Top hairline accent */
.site-footer > .footer-inner::before {
  content: '';
  position: absolute;
  top: -56px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,164,124,0.45) 20%,
    rgba(233,116,81,0.65) 50%,
    rgba(245,164,124,0.45) 80%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Grid pattern decorative overlay (masked) */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(245,164,124,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,164,124,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  -webkit-mask: linear-gradient(180deg, transparent, #000 35%, #000 90%, transparent);
  mask: linear-gradient(180deg, transparent, #000 35%, #000 90%, transparent);
  z-index: 0;
}
[data-theme="light"] .site-footer {
  background: #f5f3ef;
  border-top-color: rgba(201,90,55,0.22);
  color: rgba(60,30,15,0.82);
}
[data-theme="light"] .site-footer::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(201,90,55,0.05) 0%, transparent 45%);
}
/* Make sure all footer content renders above decorative layers */
.site-footer > .footer-inner { position: relative; z-index: 2; }

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Primary: brand (2fr) + nav grid (5fr) ── */
.footer-primary {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(245,164,124,0.14);
}
[data-theme="light"] .footer-primary { border-bottom-color: rgba(201,90,55,0.2); }

@media (max-width: 1024px) {
  .footer-primary { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Brand column ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  width: fit-content;
}
.footer-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
[data-theme="light"] .footer-logo { color: #3a1a0a; }

.footer-tagline {
  margin: 0;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.64);
}
[data-theme="light"] .footer-tagline { color: rgba(60,30,15,0.72); }

.footer-newsletter {
  margin-top: 4px;
  max-width: 420px;
}
.footer-newsletter label {
  display: block;
  font-family: ui-monospace, "Geist Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F5A47C;
  font-weight: 700;
  margin-bottom: 10px;
}
[data-theme="light"] .footer-newsletter label { color: #8F3D21; }
.newsletter-input {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(38,38,37,0.72);
  border: 1px solid rgba(245,164,124,0.22);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.newsletter-input:focus-within {
  border-color: #E97451;
  box-shadow: 0 0 0 3px rgba(233,116,81,0.18);
}
[data-theme="light"] .newsletter-input {
  background: rgba(255,252,250,0.9);
  border-color: rgba(201,90,55,0.3);
}
.newsletter-input input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.newsletter-input input::placeholder { color: rgba(255,255,255,0.38); }
[data-theme="light"] .newsletter-input input { color: #3a1a0a; }
[data-theme="light"] .newsletter-input input::placeholder { color: rgba(60,30,15,0.45); }
.newsletter-input button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  border: none;
  background: linear-gradient(180deg, #E97451, #C95A37);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}
.newsletter-input button:hover { filter: brightness(1.1); }
.newsletter-input button:active { transform: scale(0.97); }
.newsletter-input button svg { width: 14px; height: 14px; }
.newsletter-status {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.48);
  min-height: 1.2em;
  letter-spacing: 0.01em;
}
.newsletter-status.ok { color: #22c55e; }
.newsletter-status.err { color: #ef6e56; }
[data-theme="light"] .newsletter-status { color: rgba(60,30,15,0.58); }

/* ── Nav grid (5 columns) ── */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
@media (max-width: 1200px) {
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .footer-nav { grid-template-columns: 1fr; gap: 4px; }
}

/* Native accordion via <details> — open on desktop, collapsed on mobile */
.footer-col {
  min-width: 0;
}
.footer-col > summary {
  list-style: none;
  cursor: default;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-col > summary::-webkit-details-marker { display: none; }
.footer-col > summary::marker { content: ''; }
.footer-col h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
[data-theme="light"] .footer-col h4 { color: #3a1a0a; }
.footer-col .chev {
  display: none;
  width: 16px;
  height: 16px;
  color: #F5A47C;
  transition: transform 0.25s ease;
}
.footer-col[open] .chev { transform: rotate(180deg); }

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  display: inline-block;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 2px 0;
  transition: color 0.18s ease, transform 0.18s ease;
  position: relative;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: #F5A47C;
  transform: translateX(2px);
  outline: none;
}
.footer-col a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-theme="light"] .footer-col a { color: rgba(60,30,15,0.68); }
[data-theme="light"] .footer-col a:hover { color: #C95A37; }

/* Mobile: accordion behavior */
@media (max-width: 640px) {
  .footer-col {
    border-bottom: 1px solid rgba(245,164,124,0.12);
  }
  .footer-col:last-child { border-bottom: none; }
  .footer-col > summary {
    cursor: pointer;
    padding: 14px 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .footer-col .chev { display: block; }
  .footer-col ul {
    padding: 4px 0 16px;
    gap: 12px;
  }
  .footer-col a { font-size: 14.5px; padding: 4px 0; }
  [data-theme="light"] .footer-col { border-bottom-color: rgba(201,90,55,0.18); }
}

/* ── Meta row: compliance + status + locale + social ── */
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 0 20px;
  border-bottom: 1px solid rgba(245,164,124,0.14);
}
[data-theme="light"] .footer-meta { border-bottom-color: rgba(201,90,55,0.2); }
.footer-meta-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
@media (max-width: 640px) {
  .footer-meta { gap: 16px; }
  .footer-meta-group { width: 100%; gap: 12px 16px; }
}

.footer-compliance {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(38,38,37,0.7);
  border: 1px solid rgba(245,164,124,0.28);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(245,164,124,0.92);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.compliance-badge::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 4px #22c55e;
}
.compliance-badge:hover {
  background: rgba(48,48,46,0.85);
  border-color: rgba(245,164,124,0.5);
}
[data-theme="light"] .compliance-badge {
  background: rgba(255,252,250,0.88);
  color: #8F3D21;
  border-color: rgba(201,90,55,0.35);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(38,38,37,0.7);
  border: 1px solid rgba(34,197,94,0.28);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e, 0 0 0 2px rgba(34,197,94,0.12);
  animation: live-dot-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.footer-status:hover { background: rgba(48,48,46,0.85); border-color: rgba(34,197,94,0.5); }
.footer-status svg { width: 12px; height: 12px; opacity: 0.55; }
[data-theme="light"] .footer-status {
  background: rgba(255,252,250,0.85);
  color: rgba(60,30,15,0.88);
}

.footer-locale {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(38,38,37,0.65);
  border: 1px solid rgba(245,164,124,0.2);
  color: rgba(255,255,255,0.82);
  font-size: 12.5px;
}
.footer-locale svg { width: 14px; height: 14px; color: #F5A47C; flex-shrink: 0; }
.footer-locale .locale-lang {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.footer-locale .locale-sep { opacity: 0.4; }
.footer-locale .locale-region { opacity: 0.75; }
[data-theme="light"] .footer-locale {
  background: rgba(255,252,250,0.85);
  color: rgba(60,30,15,0.88);
  border-color: rgba(201,90,55,0.28);
}

.footer-social {
  display: inline-flex;
  gap: 6px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(38,38,37,0.65);
  border: 1px solid rgba(245,164,124,0.2);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: #F5A47C;
  background: rgba(48,48,46,0.85);
  border-color: rgba(233,116,81,0.6);
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 6px 14px rgba(233,116,81,0.22);
}
.footer-social svg { width: 16px; height: 16px; }
[data-theme="light"] .footer-social a {
  background: rgba(255,252,250,0.85);
  color: rgba(60,30,15,0.72);
  border-color: rgba(201,90,55,0.28);
}
[data-theme="light"] .footer-social a:hover { color: #C95A37; }

/* ── Bottom row: © + legal links ── */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 22px;
}
.footer-bottom-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.48);
}
.footer-bottom-brand img {
  width: 18px; height: 18px; object-fit: contain; opacity: 0.75;
}
[data-theme="light"] .footer-bottom-brand { color: rgba(60,30,15,0.55); }

.footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #F5A47C;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-theme="light"] .footer-legal a { color: rgba(60,30,15,0.65); }
[data-theme="light"] .footer-legal a:hover { color: #C95A37; }

@media (max-width: 560px) {
  .footer-bottom { justify-content: flex-start; }
  .footer-legal { gap: 6px 14px; }
  .footer-legal a { font-size: 12.5px; }
}

/* ── Back-to-top button (global, fixed) ── */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(38,38,37,0.92), rgba(26,26,25,0.94));
  border: 1px solid rgba(245,164,124,0.4);
  color: #F5A47C;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,0.5), 0 0 0 3px rgba(31,31,30,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: linear-gradient(180deg, rgba(48,48,46,0.96), rgba(32,32,30,0.96));
  border-color: #E97451;
  box-shadow: 0 12px 28px rgba(0,0,0,0.55), 0 0 0 3px rgba(31,31,30,0.6), 0 0 18px rgba(233,116,81,0.38);
  outline: none;
}
.back-to-top svg { width: 18px; height: 18px; }
[data-theme="light"] .back-to-top {
  background: linear-gradient(180deg, rgba(255,252,250,0.94), rgba(253,247,243,0.94));
  color: #C95A37;
  border-color: rgba(201,90,55,0.5);
  box-shadow: 0 8px 22px rgba(143,61,33,0.18);
}
@media (max-width: 560px) {
  .back-to-top { width: 42px; height: 42px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.1s linear; transform: none; }
  .back-to-top.visible { transform: none; }
}

/* ── Hide legacy hp-footer if both present ── */
.hp-footer + .site-footer,
.site-footer ~ .hp-footer { display: none; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE POLISH PASS — homepage sections on small viewports
   ══════════════════════════════════════════════════════════════ */

/* Bento demo element: don't overlap title on narrow cards */
@media (max-width: 480px) {
  .feature-grid.bento .fg-card { padding-bottom: 70px; }
  .fg-card-demo { right: 14px; bottom: 12px; }
}

/* Metrics ribbon: tighter on phones */
@media (max-width: 380px) {
  .metrics-ribbon { padding: 16px 14px 14px; }
  .metric-cell-value { font-size: 22px; }
  .metric-cell-label { font-size: 9.5px; gap: 6px; }
  .metric-cell-label .idx { font-size: 8.5px; padding: 1px 4px; }
}

/* Platform marquee edge-fade width scales with viewport */
@media (max-width: 560px) {
  .platform-marquee::before,
  .platform-marquee::after { width: 42px; }
  .platform-marquee-track { gap: 22px; }
  .platform-marquee-item { font-size: 12px; }
}

/* CTA split: stack cleanly + reduce code font on small screens */
@media (max-width: 560px) {
  .cta-split { padding: 20px 18px; border-radius: 16px; }
  .cta-split-title { font-size: 1.45rem; }
  .cta-split-right { font-size: 11.5px; padding: 14px; min-height: 0; }
  .cta-split-right pre { font-size: 11px; line-height: 1.6; }
}

/* Orbit rings hit ceiling at small viewports — guarantee logo visible */
@media (max-width: 360px) {
  .orbit-core-live { font-size: 8px; bottom: -36%; padding: 2px 7px 2px 5px; }
  .orbit-core-live::before { width: 4px; height: 4px; }
}

/* Model demo telemetry bar wraps smartly on narrow */
@media (max-width: 480px) {
  .model-demo-telemetry { font-size: 9.5px; padding: 6px 10px; gap: 6px; }
  .model-demo-telemetry .left,
  .model-demo-telemetry .right { gap: 6px; }
}

/* Generic: ensure tap target minimum 40px for interactive elements */
@media (pointer: coarse) {
  .footer-col a,
  .footer-legal a,
  .footer-locale .locale-lang { min-height: 40px; display: inline-flex; align-items: center; }
  .footer-col ul { gap: 0; }
  .footer-col a { padding: 6px 0; }
  .footer-legal { gap: 0 18px; }
  .footer-legal a { padding: 6px 0; }
}

/* Honor reduced motion for decorative footer effects */
@media (prefers-reduced-motion: reduce) {
  .footer-status::before { animation: none; }
  .compliance-badge { transition: none; }
  .footer-social a { transition: color 0.15s ease, background 0.15s ease; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE-NATIVE OVERRIDES (2026-04-18 · rev2)
   Keep hero `position: fixed` (works on desktop & mobile) —
   focus on: bulletproof footer opacity, progressive orbit scaling,
   touch hit-areas, iOS Safari workarounds.
   ══════════════════════════════════════════════════════════════ */

/* Rails always hidden below 1280 (rule already exists elsewhere but reaffirm) */
@media (max-width: 900px) {
  .hero-rail,
  .hero-rail-left,
  .hero-rail-right { display: none !important; }
}

/* Bulletproof footer + section opacity on mobile — defeats any fixed-layer bleed
   from the hero (position: fixed + z-index: 3). z-index: 100 is extreme overkill
   but trivial in cost and eliminates stacking-context edge cases on iOS/Safari. */
@media (max-width: 900px) {
  .site-footer {
    position: relative;
    z-index: 100;
    background: #121211 !important;
    isolation: isolate;
  }
  [data-theme="light"] .site-footer { background: #f5f3ef !important; }

  .hp-section {
    position: relative;
    z-index: 50;
    background: #1f1f1e !important;
  }
  [data-theme="light"] .hp-section { background: #f5f3ef !important; }

  .homepage-sections {
    position: relative;
    z-index: 50;
    isolation: isolate;
    /* Top sentinel: prevent any sub-pixel gap where hero could bleed */
  }
  .homepage-sections::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 2px;
    background: #1f1f1e;
    z-index: 1;
  }
  [data-theme="light"] .homepage-sections::before { background: #f5f3ef; }
}

/* ──────────────────────────────────────────────────────────────
   ORBIT MOBILE — rev4 (2026-04-18)
   Fixes from live mobile testing:
   - Hide heavy synapse/qf-bg canvases on mobile (visual noise)
   - Shrink core logo (was too large — filled orbit center)
   - REVERT ring-3 rotation (cardinals look cleaner; spacing alone fixes collision)
   - LIVE chip smaller, further below core
   - Tighter progressive scale
   ──────────────────────────────────────────────────────────────── */

/* Disable background canvas effects on mobile — they compete with the orbit */
@media (max-width: 900px) {
  #ai-synapse,
  #qf-bg,
  #qf-bg::before,
  #qf-bg::after { display: none !important; }
  /* Hide header background decorations that create visual noise */
  .orbit-tech-grid { opacity: 0.3; }
  .orbit-scan-beam { display: none; }
}

/* ── Tablet 768px ── */
@media (max-width: 768px) {
  .orbit-system {
    width: min(94vw, 500px);
    /* Extra top margin creates room for LIVE chip above orbit */
    margin: 2.6rem auto 2rem;
  }
  .orbit-node {
    padding: 6px 11px 6px 9px;
    font-size: clamp(0.66rem, 2cqmin, 0.76rem);
    min-height: 30px;
    letter-spacing: 0.01em;
  }
  .orbit-node-icon { width: 11px; height: 11px; margin-right: 5px; }
  .orbit-node::before { width: 4px; height: 4px; margin-left: 3px; }
  .orbit-node-r1 { --r: 19cqmin; }
  .orbit-node-r2 { --r: 33cqmin; }
  /* r3 pulled inward so UAV/Holiday stay inside viewport */
  .orbit-node-r3 { --r: 44cqmin; }
  .orbit-core { width: 16cqmin; height: 16cqmin; }
  /* LIVE chip OUT of orbit — above orbit-system (between header & iKDA).
     Math: orbit-core top = 42cqmin from orbit-system top (50% - 8cqmin).
     top:-50cqmin → chip top at -8cqmin from orbit-system top. */
  .orbit-core-live {
    top: -50cqmin;
    bottom: auto;
    font-size: 9.5px;
    padding: 3px 10px 3px 8px;
    letter-spacing: 0.1em;
    z-index: 6;
  }
}

/* ── Phone 480px ── */
@media (max-width: 480px) {
  .orbit-system {
    width: 92vw;
    margin: 2.4rem auto 1.6rem;
  }
  .orbit-node {
    padding: 5px 9px 5px 7px;
    font-size: clamp(0.58rem, 2.2cqmin, 0.66rem);
    letter-spacing: 0;
    min-height: 26px;
  }
  .orbit-node-icon { width: 10px; height: 10px; margin-right: 4px; }
  .orbit-node::before { width: 4px; height: 4px; margin-left: 3px; }
  .orbit-node-r1 { --r: 18cqmin; }
  .orbit-node-r2 { --r: 32cqmin; }
  /* r3 pulled inward — prevents UAV (left) & Holiday (right) overflow */
  .orbit-node-r3 { --r: 44cqmin; }
  .orbit-core { width: 15cqmin; height: 15cqmin; }
  .orbit-core-live {
    top: -51cqmin;
    bottom: auto;
    font-size: 9px;
    padding: 3px 9px 3px 7px;
    letter-spacing: 0.08em;
    z-index: 6;
  }
  .orbit-core-live::before { width: 4px; height: 4px; }
  .orbit-connectors .packet { r: 1.7; }
}

/* ── Narrow phone 360px ── */
@media (max-width: 360px) {
  .orbit-system {
    width: 94vw;
    margin: 2rem auto 1.4rem;
  }
  .orbit-node {
    padding: 4px 8px 4px 6px;
    font-size: 0.56rem;
    letter-spacing: 0;
    min-height: 24px;
  }
  .orbit-node-icon { width: 9px; height: 9px; margin-right: 3px; }
  .orbit-node::before { width: 3.5px; height: 3.5px; margin-left: 2px; }
  .orbit-node-r1 { --r: 18cqmin; }
  .orbit-node-r2 { --r: 33cqmin; }
  .orbit-node-r3 { --r: 45cqmin; }
  .orbit-core { width: 16cqmin; height: 16cqmin; }
  .orbit-core-live {
    top: -52cqmin;
    bottom: auto;
    font-size: 8px;
    padding: 2px 8px 2px 6px;
    letter-spacing: 0.06em;
    z-index: 6;
  }
  .orbit-core-live::before { width: 3.5px; height: 3.5px; }
}

/* ── Ultra-narrow 320px ── */
@media (max-width: 320px) {
  .orbit-system { width: 96vw; margin: 1.8rem auto 1rem; }
  .orbit-node {
    padding: 3px 7px 3px 5px;
    font-size: 0.52rem;
  }
  .orbit-node-icon { width: 8px; height: 8px; margin-right: 3px; }
  .orbit-node-r1 { --r: 18cqmin; }
  .orbit-node-r2 { --r: 33cqmin; }
  .orbit-node-r3 { --r: 46cqmin; }
  .orbit-core { width: 17cqmin; height: 17cqmin; }
  .orbit-core-live { top: -53cqmin; font-size: 7.5px; }
}

/* Touch-friendly hit area: existing ::after (inset: -10 -14) already covers ~40×50px.
   On coarse pointer, enforce 44px minimum per WCAG 2.2 Target Size. */
@media (pointer: coarse) {
  .orbit-node {
    min-height: 34px;
    touch-action: manipulation;
  }
  .orbit-node::after {
    /* Ensure this pseudo is clickable regardless of visibility */
    pointer-events: auto;
    opacity: 0;
    inset: -12px -16px;
  }
  .orbit-node:active {
    transform-origin: center;
    scale: 0.96;
  }
  /* Larger touch targets for hero CTAs too */
  .hero-ctas a,
  .cta-btn-primary,
  .cta-btn-secondary,
  .cta-split-actions a { min-height: 44px; }
}

/* Safari iOS / WebKit workaround: explicit backface + containment */
@supports (-webkit-touch-callout: none) {
  .orbit-node,
  .orbit-ring,
  .orbit-core { -webkit-backface-visibility: hidden; }
  .orbit-system { contain: layout paint; }
}

