/* ============================================================
   landing.css - Public landing page (index.php) styles
   ------------------------------------------------------------
   Extracted from an inline <style> block that used to live
   directly inside index.php. Loaded alongside theme.css (shared
   design tokens/palette) so the landing page and the logged-in
   app stay visually consistent, and so page-specific styling
   here is editable in one place without touching PHP.
   ============================================================ */

        /* ============================================================
           GLOBAL MONEY DISPLAY - amount on the left, currency on the
           right in smaller, muted text (e.g. "300.00 Birr" instead of
           "Birr300.00"). Same classes as the logged-in app (footer.php)
           so pricing looks identical before and after login.
           ============================================================ */
        .money { white-space: nowrap; font-variant-numeric: tabular-nums; }
        .money-amt { font-weight: 600; font-size: 1em; color: inherit; }
        .money-cur {
            font-size: 0.62em; font-weight: 600; opacity: 0.62; margin-left: 0.25rem;
            /* Shown exactly as typed in Settings (e.g. "Birr" stays "Birr"). */
            letter-spacing: 0.3px; vertical-align: 0.15em;
        }
        .price-usd .money-cur, .original-price .money-cur { opacity: 0.55; }
        .price-usd {
            display: block;
            font-size: 0.5em;
            font-weight: 500;
            margin-top: 2px;
            color: var(--text-muted);
        }

        /* ============================================================
           THEME VARIABLES - ENTERPRISE EDITION
           ============================================================ */
        :root {
            /* Core palette (--bg-primary, --text-*, --accent-1..5, --border-glass, --glow-1,
               --shadow-card, --radius-*) now comes from the shared theme.css foundation -
               same tokens the rest of the app uses, so this page can't drift out of sync. */
            --toggle-bg: rgba(11,46,51,0.08);
            --toggle-dot: #ffffff;
            --blob-1: #14917F;
            --blob-2: #2C6E76;
            --blob-3: #0B2E33;
            --nav-bg: rgba(248,244,238,0.75);
        }
        .dark-theme {
            --toggle-bg: rgba(255,255,255,0.10);
            --toggle-dot: #F5F2EC;
            --blob-1: #14917F;
            --blob-2: #3E8C94;
            --blob-3: #D4A72C;
            --nav-bg: rgba(10,34,38,0.55);
        }

        * { margin:0; padding:0; box-sizing:border-box; }
        html, body {
            height: 100%;
            scroll-behavior: smooth;
        }
        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            transition: background 0.5s, color 0.5s;
            overflow-x: hidden;
            overflow-x: clip; /* clip makes no scroll container, so the WINDOW scrolls */
        }
        h1, h2, h3, h4, h5, h6, .logo-text, .nav-brand, .hero-title, .section-title, .plan-name {
            font-family: 'Space Grotesk', 'Inter', sans-serif;
        }
        .amh-text { font-family: 'Noto Sans Ethiopic', sans-serif; }

        /* ====== BLOBS ====== */
        .bg-blob {
            position: fixed;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.25;
            pointer-events: none;
            animation: floatBlob 20s infinite alternate ease-in-out;
            transition: background 0.5s;
            z-index: 0;
        }
        .bg-blob:nth-child(1) {
            width: 37.5rem;
            height: 37.5rem;
            top: -15.625rem;
            left: -9.375rem;
            background: var(--blob-1);
            animation-duration: 25s;
        }
        .bg-blob:nth-child(2) {
            width: 31.25rem;
            height: 31.25rem;
            bottom: -12.5rem;
            right: -9.375rem;
            background: var(--blob-2);
            animation-duration: 30s;
            animation-delay: 2s;
        }
        .bg-blob:nth-child(3) {
            width: 25rem;
            height: 25rem;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--blob-3);
            animation-duration: 35s;
            animation-delay: 4s;
            opacity: 0.12;
        }
        @keyframes floatBlob {
            0%   { transform: translate(0, 0) scale(1); }
            33%  { transform: translate(80px, -80px) scale(1.15); }
            66%  { transform: translate(-60px, 70px) scale(0.9); }
            100% { transform: translate(60px, 30px) scale(1.05); }
        }

        /* ============================================================
           LAYOUT
           ============================================================ */
        .landing-wrapper {
            position: relative;
            z-index: 1;
            min-height: 100vh; min-height: 100dvh;
            padding-top: 4.375rem;
        }

        /* ====== REFERRAL BANNER ====== */
        .referral-banner {
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            color: #fff;
            padding: 0.75rem 1.25rem;
            text-align: center;
            font-size: 0.95rem;
            font-weight: 500;
            position: relative;
            z-index: 5;
            border-radius: 0 0 var(--radius-md) var(--radius-md);
            margin: 0 1.25rem 1.25rem;
            box-shadow: 0 8px 30px var(--glow-1);
            animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        .referral-banner a {
            color: #fff;
            font-weight: 700;
            text-decoration: underline;
        }
        .referral-banner a:hover {
            text-decoration: none;
        }
        .referral-banner .close-banner {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.2);
            border: none;
            color: #fff;
            width: 1.75rem;
            height: 1.75rem;
            border-radius: 50%;
            font-size: 1rem;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }
        .referral-banner .close-banner:hover {
            background: rgba(255,255,255,0.35);
            transform: translateY(-50%) scale(1.1);
        }
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ====== NAVBAR ====== */
        .navbar-custom {
            background: var(--nav-bg);
            backdrop-filter: blur(24px) saturate(1.8);
            -webkit-backdrop-filter: blur(24px) saturate(1.8);
            border-bottom: 1px solid var(--border-glass);
            transition: background 0.3s;
            padding: 0.6rem 1.5rem;
        }
        .navbar-custom .navbar-brand {
            font-weight: 800;
            font-size: 1.5rem;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .navbar-custom .navbar-brand img {
            height: 2.25rem;
            width: auto;
        }
        .navbar-custom .nav-link {
            color: var(--text-secondary) !important;
            font-weight: 500;
            font-size: 0.95rem;
            margin: 0 0.6rem;
            transition: 0.2s;
            border-radius: 0.375rem;
        }
        .navbar-custom .nav-link:hover {
            color: var(--accent-1) !important;
            background: rgba(59,110,255,0.08);
        }

        /* ====== BUTTONS ====== */
        .btn-outline-glass {
            border: 1px solid var(--border-glass);
            background: rgba(255,255,255,0.06);
            color: var(--text-secondary);
            border-radius: 2.5rem;
            padding: 0.4rem 1.4rem;
            font-weight: 600;
            transition: 0.25s;
            backdrop-filter: blur(4px);
            text-decoration: none;
            font-size: max(0.9rem, var(--fs-min, 11px));
        }
        .btn-outline-glass:hover {
            background: var(--accent-1);
            color: #fff;
            border-color: var(--accent-1);
            box-shadow: 0 8px 30px var(--glow-1);
            transform: translateY(-2px);
        }

        .btn-primary-glass {
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            color: #fff;
            border: none;
            border-radius: 2.5rem;
            padding: 0.4rem 1.6rem;
            font-weight: 600;
            box-shadow: 0 8px 30px var(--glow-1);
            transition: 0.25s;
            text-decoration: none;
            font-size: max(0.9rem, var(--fs-min, 11px));
        }
        .btn-primary-glass:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px var(--glow-1);
            color: #fff;
        }

        /* ====== THEME TOGGLE ====== */
        .theme-toggle-wrapper {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            background: var(--bg-card);
            backdrop-filter: blur(16px) saturate(1.6);
            padding: 2px 0.5rem 2px 0.375rem;
            border-radius: 2.5rem;
            border: 1px solid var(--border-glass);
            margin-left: 0.5rem;
        }
        .theme-toggle {
            position: relative;
            width: 2.375rem;
            height: 1.25rem;
            background: var(--toggle-bg);
            border-radius: 2.5rem;
            cursor: pointer;
            transition: background 0.3s;
            flex-shrink: 0;
            border: 1px solid var(--border-glass);
        }
        .theme-toggle .dot {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 0.875rem;
            height: 0.875rem;
            background: var(--toggle-dot);
            border-radius: 50%;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        .dark-theme .theme-toggle .dot {
            transform: translateX(18px);
        }
        .theme-toggle .icon {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: max(0.6rem, var(--fs-min, 11px));
            color: var(--text-muted);
            transition: opacity 0.3s;
            pointer-events: none;
        }
        .theme-toggle .icon-sun { left: 0.1875rem; opacity: 1; }
        .theme-toggle .icon-moon { right: 0.1875rem; opacity: 0.3; }
        .dark-theme .theme-toggle .icon-sun { opacity: 0.3; }
        .dark-theme .theme-toggle .icon-moon { opacity: 1; }
        .theme-label {
            font-size: max(0.6rem, var(--fs-min, 11px));
            font-weight: 500;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }

        /* ====== HERO ====== */
        .hero-section {
            padding: 5rem 0 3.75rem;
            text-align: center;
            position: relative;
        }
        .hero-section .badge {
            background: var(--glow-1);
            color: var(--accent-1);
            border: 1px solid var(--glow-1);
            padding: 0.3rem 1.2rem;
            border-radius: 2.5rem;
            font-size: max(0.75rem, var(--fs-min, 11px));
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            backdrop-filter: blur(4px);
            display: inline-block;
            margin-bottom: 1.5rem;
        }
        .hero-section h1 {
            font-size: 3.8rem;
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 1rem;
            color: var(--text-primary);
            background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-1) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero-section .subhead {
            font-size: 1.25rem;
            color: var(--text-secondary);
            max-width: 43.75rem;
            margin: 0 auto 2rem;
            line-height: 1.7;
        }
        .hero-cta {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
        }
        .hero-illustration {
            display: flex;
            justify-content: center;
            margin-top: 3rem;
        }
        @media (max-width: 640px) {
            .hero-illustration { margin-top: 2rem; }
        }
        .hero-cta .btn {
            padding: 0.7rem 2.5rem;
            border-radius: 2.5rem;
            font-weight: 600;
            transition: 0.25s;
            font-size: 1rem;
        }
        .hero-cta .btn-primary {
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            border: none;
            box-shadow: 0 8px 30px var(--glow-1);
            color: #fff;
        }
        .hero-cta .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 40px var(--glow-1);
        }
        .hero-cta .btn-outline {
            border: 1px solid var(--border-glass);
            background: rgba(255,255,255,0.05);
            color: var(--text-secondary);
            backdrop-filter: blur(4px);
        }
        .hero-cta .btn-outline:hover {
            background: var(--accent-1);
            color: #fff;
            border-color: var(--accent-1);
        }

        /* ====== FEATURES ====== */
        .features-section {
            padding: 3.75rem 0;
        }
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }
        .section-title h2 {
            font-size: 2.6rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--text-primary), var(--accent-2));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .section-title p {
            color: var(--text-secondary);
            max-width: 37.5rem;
            margin: 0.5rem auto 0;
            font-size: 1.1rem;
        }
        .feature-card {
            background: var(--bg-card);
            backdrop-filter: blur(16px) saturate(1.4);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-md);
            padding: 2rem 1.5rem;
            text-align: center;
            height: 100%;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-card);
        }
        .feature-card:hover {
            transform: translateY(-8px);
            background: var(--bg-card-hover);
            box-shadow: 0 20px 60px -10px rgba(0,0,0,0.15);
            border-color: rgba(255,255,255,0.2);
        }
        .feature-card .icon {
            font-size: 3rem;
            color: var(--accent-1);
            margin-bottom: 1rem;
            display: inline-block;
        }
        .feature-card h5 {
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            font-size: 1.2rem;
        }
        .feature-card p {
            font-size: 0.95rem;
            color: var(--text-secondary);
            margin-bottom: 0;
        }

        /* ============================================================
           PRICING
           ============================================================ */
        .pricing-section {
            padding: 3.75rem 0 5rem;
        }
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.2rem;
            align-items: stretch;
        }
        @media (max-width: 992px) {
            .pricing-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.2rem;
            }
        }
        @media (max-width: 576px) {
            .pricing-grid {
                grid-template-columns: 1fr;
                max-width: 25rem;
                margin: 0 auto;
            }
        }

        .pricing-card {
            background: var(--bg-card);
            backdrop-filter: blur(16px) saturate(1.4);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-card);
            position: relative;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
            height: 100%;
            overflow: visible;
            padding: 1.5rem 1.25rem 1.25rem;
        }
        .pricing-card:hover {
            transform: translateY(-4px);
            background: var(--bg-card-hover);
            border-color: rgba(255,255,255,0.25);
            box-shadow: 0 20px 60px -10px rgba(0,0,0,0.15);
        }
        .pricing-card.featured {
            border: 2px solid var(--accent-1);
            transform: scale(1.02);
            box-shadow: 0 20px 60px rgba(59,110,255,0.2);
        }
        .pricing-card.featured:hover {
            transform: scale(1.02) translateY(-4px);
        }
        .pricing-card .badge-featured {
            background: var(--accent-1);
            color: #fff;
            font-size: max(0.6rem, var(--fs-min, 11px));
            padding: 0.1875rem 1rem;
            border-radius: 2.5rem;
            position: absolute;
            top: -0.75rem;
            right: 1rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            z-index: 5;
            box-shadow: 0 4px 12px rgba(59,110,255,0.3);
            white-space: nowrap;
        }
        .pricing-card .plan-name {
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 0.1rem;
            color: var(--text-primary);
        }
        .pricing-card .plan-sub {
            font-size: max(0.7rem, var(--fs-min, 11px));
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        .pricing-card .price {
            font-size: 2.4rem;
            font-weight: 800;
            color: var(--accent-1);
            margin: 0.4rem 0 0.15rem;
            line-height: 1.15;
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 2px;
        }
        .pricing-card .price small {
            font-size: max(0.85rem, var(--fs-min, 11px));
            font-weight: 500;
            color: var(--text-muted);
            margin-left: 2px;
        }
        .pricing-card .price .price-usd {
            width: 100%;
            order: 10;
            margin-top: 1px;
        }
        .pricing-card .price .original-price {
            font-size: max(0.78rem, var(--fs-min, 11px));
            font-weight: 500;
            color: var(--text-muted);
            text-decoration: line-through;
            display: block;
            width: 100%;
            order: 20;
            margin-top: 2px;
        }
        .pricing-card .price .discount-badge {
            order: 5;
        }
        .pricing-card .features-list {
            list-style: none;
            padding: 0;
            margin: 0.5rem 0 1rem;
            text-align: left;
            flex: 1;
        }
        .pricing-card .features-list li {
            padding: 0.2rem 0;
            color: var(--text-secondary);
            font-size: max(0.75rem, var(--fs-min, 11px));
            display: flex;
            align-items: center;
            gap: 0.375rem;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }
        .pricing-card .features-list li:last-child {
            border-bottom: none;
        }
        .pricing-card .features-list li .bi-check-circle {
            color: var(--accent-4);
            font-size: max(0.9rem, var(--fs-min, 11px));
            flex-shrink: 0;
        }
        .pricing-card .features-list li .bi-x-circle {
            color: var(--accent-5);
            font-size: max(0.9rem, var(--fs-min, 11px));
            flex-shrink: 0;
        }
        .pricing-card .features-list li .feature-label {
            flex: 1;
        }
        .pricing-card .features-list li .feature-value {
            font-size: max(0.6rem, var(--fs-min, 11px));
            color: var(--text-muted);
            background: var(--bg-secondary);
            padding: 0 0.375rem;
            border-radius: 0.75rem;
            font-weight: 500;
        }
        .pricing-card .btn {
            width: 100%;
            padding: 0.4rem;
            font-weight: 600;
            border-radius: 2.5rem;
            margin-top: auto;
            font-size: max(0.8rem, var(--fs-min, 11px));
        }
        .pricing-card .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* ====== TESTIMONIALS ====== */
        .testimonial-section {
            padding: 3.75rem 0 5rem;
        }
        .testimonial-card {
            background: var(--bg-card);
            backdrop-filter: blur(16px) saturate(1.4);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            height: 100%;
            box-shadow: var(--shadow-card);
            transition: all 0.3s ease;
        }
        .testimonial-card:hover {
            background: var(--bg-card-hover);
            transform: translateY(-4px);
        }
        .testimonial-card .stars {
            color: #fbbf24;
            margin-bottom: 0.5rem;
        }
        .testimonial-card p {
            font-size: max(0.9rem, var(--fs-min, 11px));
            color: var(--text-secondary);
            font-style: italic;
            line-height: 1.6;
        }
        .testimonial-card .author {
            font-weight: 700;
            color: var(--text-primary);
            margin-top: 1rem;
        }
        .testimonial-card .position {
            color: var(--text-muted);
            font-size: max(0.8rem, var(--fs-min, 11px));
        }
        .testimonial-card .admin-reply {
            margin-top: 1rem;
            padding: 0.75rem 0.9rem;
            background: var(--bg-card);
            border-left: 3px solid var(--accent-2);
            border-radius: var(--radius-sm);
        }
        .testimonial-card .admin-reply .admin-reply-label {
            color: var(--accent-2);
            font-weight: 700;
            font-size: max(0.72rem, var(--fs-min, 11px));
            text-transform: uppercase;
            letter-spacing: 0.03em;
            margin-bottom: 0.25rem;
        }
        .testimonial-card .admin-reply p {
            font-size: max(0.85rem, var(--fs-min, 11px));
            font-style: normal;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 0;
        }

        /* ====== CONTACT SECTION ====== */
        .contact-section {
            padding: 3.75rem 0 2.5rem;
        }
        .contact-icon {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 50%;
            background: var(--bg-card);
            border: 1px solid var(--border-glass);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-1);
            font-size: 1rem;
            flex-shrink: 0;
            transition: 0.2s;
        }
        .contact-icon:hover {
            background: var(--accent-1);
            color: #fff;
            border-color: var(--accent-1);
        }
        .social-link {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 50%;
            background: var(--bg-card);
            border: 1px solid var(--border-glass);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            text-decoration: none;
            transition: 0.2s;
            font-size: max(0.9rem, var(--fs-min, 11px));
        }
        .social-link:hover {
            background: var(--accent-1);
            color: #fff;
            border-color: var(--accent-1);
            transform: translateY(-3px);
        }
        #contactFormFeedback .alert {
            padding: 0.5rem 0.75rem;
            border-radius: var(--radius-sm);
            margin: 0;
        }
        .form-glass {
            background: rgba(255,255,255,0.08);
            border: 1px solid var(--border-glass);
            color: var(--text-primary);
            border-radius: var(--radius-sm);
            padding: 0.7rem 1rem;
            backdrop-filter: blur(4px);
            transition: 0.2s;
            width: 100%;
        }
        .form-glass:focus {
            background: rgba(255,255,255,0.15);
            border-color: var(--accent-1);
            box-shadow: 0 0 0 3px var(--glow-1);
            color: var(--text-primary);
            outline: none;
        }
        .dark-theme .form-glass {
            background: rgba(255,255,255,0.04);
        }
        .dark-theme .form-glass:focus {
            background: rgba(255,255,255,0.10);
        }

        /* ====== MODAL (Testimonial only) ====== */
        .modal-content {
            background: var(--bg-card);
            backdrop-filter: blur(32px) saturate(1.8);
            -webkit-backdrop-filter: blur(32px) saturate(1.8);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-lg);
            box-shadow: 0 40px 100px rgba(0,0,0,0.3);
            color: var(--text-primary);
        }
        .modal-header, .modal-footer {
            border-color: var(--border-glass);
        }
        .modal .form-glass {
            background: rgba(255,255,255,0.08);
            border: 1px solid var(--border-glass);
            color: var(--text-primary);
            border-radius: var(--radius-sm);
            padding: 0.7rem 1rem;
            backdrop-filter: blur(4px);
            transition: 0.2s;
        }
        .modal .form-glass:focus {
            background: rgba(255,255,255,0.15);
            border-color: var(--accent-1);
            box-shadow: 0 0 0 3px var(--glow-1);
            color: var(--text-primary);
            outline: none;
        }
        .modal .form-glass::placeholder {
            color: var(--text-muted);
            opacity: 0.6;
        }
        .modal .btn-primary-glass {
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            color: #fff;
            border: none;
            border-radius: var(--radius-sm);
            padding: 0.7rem;
            font-weight: 600;
            width: 100%;
            transition: 0.25s;
            box-shadow: 0 8px 30px var(--glow-1);
        }
        .modal .btn-primary-glass:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px var(--glow-1);
            color: #fff;
        }

        .rating-stars input[type="radio"] {
            display: none;
        }
        .rating-stars label {
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--text-muted);
            transition: 0.2s;
        }
        .rating-stars input:checked ~ label,
        .rating-stars input:checked + label {
            color: #fbbf24;
        }
        .rating-stars:hover label:hover ~ label {
            color: var(--text-muted);
        }
        .rating-stars:hover label {
            color: #fbbf24;
        }

        /* ====== FLOATING PRO BADGE ====== */
        .pro-floating-badge {
            position: fixed;
            bottom: 1.875rem;
            right: 1.875rem;
            z-index: 9999;
            background: var(--bg-card);
            backdrop-filter: blur(24px) saturate(1.8);
            -webkit-backdrop-filter: blur(24px) saturate(1.8);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-lg);
            box-shadow: 0 20px 60px rgba(59,110,255,0.3);
            padding: 1.2rem 1.5rem;
            max-width: 21.25rem;
            width: 100%;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            transform: translateY(0) scale(1);
            opacity: 1;
            border-left: 4px solid var(--accent-1);
            color: var(--text-primary);
        }
        .pro-floating-badge.hidden {
            display: none;
        }
        .pro-floating-badge .badge-icon {
            font-size: 1.8rem;
            margin-right: 0.5rem;
        }
        .pro-floating-badge .badge-title {
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 0.2rem;
            color: var(--accent-1);
        }
        .pro-floating-badge .badge-text {
            font-size: max(0.85rem, var(--fs-min, 11px));
            color: var(--text-secondary);
            line-height: 1.4;
            margin-bottom: 0.5rem;
        }
        .pro-floating-badge .badge-close {
            position: absolute;
            top: 0.5rem;
            right: 0.75rem;
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0 0.25rem;
            line-height: 1;
            transition: 0.2s;
        }
        .pro-floating-badge .badge-close:hover {
            color: var(--accent-5);
            transform: scale(1.2);
        }
        .pro-floating-badge .btn {
            padding: 0.4rem 1rem;
            font-weight: 600;
            border-radius: 2.5rem;
            font-size: max(0.8rem, var(--fs-min, 11px));
        }
        @media (max-width: 576px) {
            .pro-floating-badge {
                bottom: 0.9375rem;
                right: 0.9375rem;
                left: 0.9375rem;
                max-width: none;
                padding: 1rem;
                border-radius: var(--radius-md);
            }
            .pro-floating-badge .badge-title {
                font-size: 1rem;
            }
            .pro-floating-badge .badge-text {
                font-size: max(0.8rem, var(--fs-min, 11px));
            }
        }

        /* ====== FOOTER ====== */
        .footer {
            padding: 1.875rem 0 1.25rem;
            border-top: 1px solid var(--border-glass);
            background: var(--bg-card);
            backdrop-filter: blur(12px);
            margin-top: 2.5rem;
        }
        .footer p {
            color: var(--text-muted);
            font-size: max(0.9rem, var(--fs-min, 11px));
            margin: 0;
        }
        .footer a {
            color: var(--accent-2);
            text-decoration: none;
        }
        .footer a:hover {
            text-decoration: underline;
        }

        /* ============================================================
           DARK THEME OVERRIDES
           ============================================================ */
        .dark-theme .modal-content {
            background: rgba(0, 0, 0, 0.70);
            backdrop-filter: blur(40px);
            border: 1px solid rgba(255,255,255,0.10);
        }
        .dark-theme .modal .form-glass {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.12);
            color: var(--text-primary);
        }
        .dark-theme .modal .form-glass:focus {
            background: rgba(255,255,255,0.10);
            border-color: var(--accent-1);
            box-shadow: 0 0 0 3px var(--glow-1);
        }

        /* ============================================================
           RESPONSIVE
           ============================================================ */
        @media (max-width: 992px) {
            .hero-section h1 { font-size: 3rem; }
            .hero-section .subhead { font-size: 1rem; }
            .navbar-custom .nav-link { font-size: max(0.85rem, var(--fs-min, 11px)); margin: 0 0.3rem; }
            .pricing-card.featured { transform: none; }
            .pricing-card.featured:hover { transform: translateY(-4px); }
            .pricing-card .price { font-size: 2rem; }
            .referral-banner { font-size: max(0.85rem, var(--fs-min, 11px)); margin: 0 0.625rem 0.9375rem; padding: 0.625rem 1rem; }
        }
        @media (max-width: 768px) {
            .hero-section h1 { font-size: 2.4rem; }
            .hero-section .subhead { font-size: 0.95rem; }
            .hero-cta .btn { width: 100%; }
            .navbar-custom .navbar-brand { font-size: 1.2rem; }
            .navbar-custom .navbar-brand img { height: 1.75rem; }
            .theme-label { display: none; }
            .landing-wrapper { padding-top: 3.75rem; }
            .section-title h2 { font-size: 2rem; }
            .pricing-grid { gap: 1rem; }
            .contact-section .row { gap: 1.5rem; }
            .referral-banner { font-size: max(0.8rem, var(--fs-min, 11px)); padding: 0.625rem 0.875rem; }
            .referral-banner .close-banner { width: 1.5rem; height: 1.5rem; font-size: max(0.8rem, var(--fs-min, 11px)); right: 0.625rem; }
        }
        @media (max-width: 576px) {
            .hero-section h1 { font-size: 1.8rem; }
            .hero-section .subhead { font-size: max(0.85rem, var(--fs-min, 11px)); }
            .feature-card, .pricing-card, .testimonial-card { padding: 1rem; }
            .modal-dialog { margin: 0.5rem; }
            .pricing-card .price { font-size: 1.8rem; }
            .pricing-card .features-list li { font-size: max(0.7rem, var(--fs-min, 11px)); }
            .contact-section .glass-card { padding: 1.25rem !important; }
            .referral-banner { font-size: max(0.75rem, var(--fs-min, 11px)); padding: 0.5rem 0.75rem; margin: 0 0.375rem 0.75rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
            .referral-banner .close-banner { width: 1.375rem; height: 1.375rem; font-size: max(0.7rem, var(--fs-min, 11px)); right: 0.5rem; }
        }

        /* ====== UTILITY ====== */
        .fade-up {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeUp 0.8s ease forwards;
        }
        @keyframes fadeUp {
            to { opacity: 1; transform: translateY(0); }
        }
        .delay-1 { animation-delay: 0.1s; }
        .delay-2 { animation-delay: 0.2s; }
        .delay-3 { animation-delay: 0.3s; }
        .delay-4 { animation-delay: 0.4s; }

/* Floating Pro badge must never be wider than the screen */
@media (max-width: 575.98px) {
    .pro-floating-badge { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; max-width: none; min-width: 0; }
}

/* Hero pill badge: wrap on phones instead of running off-screen */
@media (max-width: 575.98px) {
    .badge { white-space: normal; max-width: 100%; text-align: center; line-height: 1.35; }
}




/* ============================================================
   HERO SCENE  -  animated Melhik ship moored at sea
   Everything below is motion-safe: see the prefers-reduced-motion block.
   ============================================================ */
.hero-scene-wrap {
    --sky-top:#FFD9A3; --sky-bot:#FFF4E2; --sea-top:#2F7C85; --sea-bot:#0B2E33; --seabed:#082A2E;
    position: relative; width: 100%; max-width: 46rem; margin: 0 auto;
    border-radius: 1.6rem; box-shadow: 0 1.5rem 3.5rem rgba(11,46,51,.28), 0 0 0 1px var(--border-glass);
    transform: translateZ(0); translate: 0 var(--sy, 0px);
}
.dark-theme .hero-scene-wrap {
    --sky-top:#04121A; --sky-bot:#154349; --sea-top:#1B5B63; --sea-bot:#051A1D; --seabed:#04161A;
    box-shadow: 0 1.5rem 3.5rem rgba(0,0,0,.55), 0 0 0 1px var(--border-glass), 0 0 4rem rgba(20, 145, 127,.12);
}
.hero-scene { display:block; width:100%; height:auto; border-radius:1.6rem; overflow:hidden; }
.hero-scene * { transform-box: view-box; }
.hero-scene .mk-frame { stroke: rgba(255,255,255,.18); stroke-width: 1.5; pointer-events:none; }
.hero-scene .mk-vignette { fill: none; pointer-events:none; }

/* day / night */
.hero-scene .mk-sun, .hero-scene .mk-moon, .hero-scene .mk-stars { transition: opacity .8s ease; }
.hero-scene .mk-moon, .hero-scene .mk-stars { opacity: 0; }
.dark-theme .hero-scene .mk-sun { opacity: 0; }
.dark-theme .hero-scene .mk-moon, .dark-theme .hero-scene .mk-stars { opacity: 1; }
.hero-scene .mk-star { fill:#fff; animation: mkTwinkle 3.2s ease-in-out infinite; animation-delay: var(--d); }
.hero-scene .mk-rays { animation: mkSpin 60s linear infinite; transform-box: fill-box; transform-origin: center; }
.hero-scene .mk-breathe { animation: mkBreathe 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-scene .mk-cloud { fill:#fff; opacity:.55; }
.dark-theme .hero-scene .mk-cloud { fill:#9FC4CC; opacity:.16; }
.hero-scene .mk-cloud-in { animation: mkDrift var(--t,70s) linear infinite; animation-delay: var(--dl,0s); }
.hero-scene .mk-c1 { --t:90s; --dl:-30s; } .hero-scene .mk-c2 { --t:120s; --dl:-80s; }
.hero-scene .mk-c3 { --t:75s; --dl:-10s; }  .hero-scene .mk-c4 { --t:105s; --dl:-55s; }
.hero-scene .mk-gull { color:#35505A; animation: mkFly var(--t) linear infinite; translate: var(--x) var(--y); }
.dark-theme .hero-scene .mk-gull { color:#CFE3E6; opacity:.7; }
.hero-scene .mk-g2 { animation-delay:-9s; }

/* parallax layers (individual `translate` property: never fights the keyframe transforms) */
.hero-scene .mk-par { transition: translate .25s ease-out; }
.hero-scene .mk-par-1 { translate: calc(var(--mx,0) * -3px)  calc(var(--my,0) * -2px); }
.hero-scene .mk-par-2 { translate: calc(var(--mx,0) * -6px)  calc(var(--my,0) * -3px); }
.hero-scene .mk-par-3 { translate: calc(var(--mx,0) * 4px)   calc(var(--my,0) * 1px); }
.hero-scene .mk-par-4 { translate: calc(var(--mx,0) * 8px)   calc(var(--my,0) * 2px); }
.hero-scene .mk-par-5 { translate: calc(var(--mx,0) * 12px)  calc(var(--my,0) * 2px); }

/* sea */
.hero-scene .mk-wave { transform-box: fill-box; }
.hero-scene .mk-w-far   { fill:url(#mkWFar); animation: mkWave 46s linear infinite; }
.hero-scene .mk-w-mid   { fill:url(#mkWMid); animation: mkWave 30s linear infinite reverse; }
.hero-scene .mk-w-front { fill:url(#mkWFront); animation: mkWave 18s linear infinite; }
.hero-scene .mk-crest   { fill:none; stroke:#CFF1F2; stroke-opacity:.5; stroke-width:1.6; animation: mkWave 18s linear infinite; }
.hero-scene .mk-rays-water polygon { fill:#fff; opacity:.05; animation: mkShaft 7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: top center; }
.hero-scene .mk-rays-water polygon:nth-child(2) { animation-delay:-2.5s; } .hero-scene .mk-rays-water polygon:nth-child(3) { animation-delay:-4.5s; }
.hero-scene .mk-seabed { fill: var(--seabed); }
.hero-scene .mk-ripple { fill:none; stroke:#D9F4F5; stroke-width:1.3; opacity:0; transform-box: fill-box; transform-origin: center; animation: mkRipple 4.5s ease-out infinite; }
.hero-scene .mk-ripple-2 { animation-delay: -2.25s; }

/* the ship */
.hero-scene .mk-ship { transform-origin: 370px 284px; animation: mkBob 5.5s ease-in-out infinite alternate; }
.hero-scene .mk-flag { transform-box: fill-box; transform-origin: left center; }
.hero-scene .mk-lamp { animation: mkFlicker 2.4s ease-in-out infinite; }
.hero-scene .mk-window { fill:#FFD98A; animation: mkGlow 3.4s ease-in-out infinite; }
.hero-scene .mk-window-2 { animation-delay:-1.2s; }
.hero-scene .mk-porthole { fill:#FFD98A; stroke:#3C1E0B; stroke-width:1; animation: mkGlow 4s ease-in-out infinite; }
.hero-scene .mk-porthole-2 { animation-delay:-1.7s; }
.hero-scene .mk-tib-a { fill:var(--accent-1); } .hero-scene .mk-tib-b { fill:#F8F4EE; }
.hero-scene .mk-nameplate { fill:#FFF3DC; letter-spacing:.06em; }
.hero-scene .mk-chain { fill:none; stroke:#D8C9AA; stroke-width:2.4; stroke-dasharray:4 2.5; stroke-linecap:round; opacity:.9; }

/* anchor + life under the surface */
.hero-scene .mk-anchor-seabed { animation: mkAnchorRock 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 20%; }
.hero-scene .mk-pulse { fill:none; stroke:var(--accent-3); stroke-width:1.6; opacity:0; transform-box: fill-box; transform-origin:center; animation: mkPulse 3.2s ease-out infinite; }
.hero-scene .mk-pulse-2 { animation-delay:-1.6s; }
.hero-scene .mk-weed path { fill:#1F8A5B; opacity:.85; }
.dark-theme .hero-scene .mk-weed path { fill:#157A52; }
.hero-scene .mk-weed { animation: mkSway 3.6s ease-in-out infinite alternate; animation-delay:var(--d); transform-box: fill-box; transform-origin: bottom center; }
.hero-scene .mk-bubble { fill:none; stroke:#E7FAFA; stroke-width:1; opacity:0; animation: mkRise var(--t) ease-in infinite; animation-delay:var(--dl); }
.hero-scene .mk-fish { fill:var(--accent-1); translate: 0 var(--y); }
.hero-scene .mk-fish-in { animation: mkSwim var(--t) linear infinite; animation-delay:var(--dl); transform: scale(var(--s)); }
.hero-scene .mk-fish-r { fill:#F4D9A8; }
.hero-scene .mk-fish-r .mk-fish-in { animation-name: mkSwimR; }
.hero-scene .mk-tail { transform-box: fill-box; transform-origin:right center; animation: mkTail .5s ease-in-out infinite alternate; }

@keyframes mkWave   { to { transform: translateX(-720px); } }
@keyframes mkBob    { 0% { transform: translateY(-3px) rotate(-1.5deg); } 100% { transform: translateY(3.5px) rotate(1.3deg); } }
@keyframes mkSpin   { to { transform: rotate(360deg); } }
@keyframes mkBreathe{ 0%,100% { transform: scale(.94); opacity:.8; } 50% { transform: scale(1.08); opacity:1; } }
@keyframes mkTwinkle{ 0%,100% { opacity:.25; } 50% { opacity:1; } }
@keyframes mkDrift  { from { transform: translateX(-140px); } to { transform: translateX(860px); } }
@keyframes mkFly    { from { transform: translateX(-60px) translateY(0); } 50% { transform: translateX(380px) translateY(-14px); } to { transform: translateX(800px) translateY(4px); } }
@keyframes mkShaft  { from { opacity:.03; transform: skewX(-4deg); } to { opacity:.11; transform: skewX(5deg); } }
@keyframes mkRipple { 0% { opacity:.6; transform: scale(.82); } 100% { opacity:0; transform: scale(1.22); } }
@keyframes mkFlicker{ 0%,100% { opacity:.55; transform: scale(.9); } 40% { opacity:1; transform: scale(1.1); } 70% { opacity:.7; } }
@keyframes mkGlow   { 0%,100% { opacity:.65; } 50% { opacity:1; } }
@keyframes mkAnchorRock { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes mkPulse  { 0% { opacity:.7; transform: scale(.7); } 100% { opacity:0; transform: scale(3.2); } }
@keyframes mkSway   { from { transform: skewX(-9deg); } to { transform: skewX(9deg); } }
@keyframes mkRise   { 0% { opacity:0; transform: translate(0,0) scale(.7); } 15% { opacity:.8; } 100% { opacity:0; transform: translate(6px,-70px) scale(1.25); } }
@keyframes mkSwim   { from { transform: translateX(-60px) scale(var(--s)); } to { transform: translateX(790px) scale(var(--s)); } }
@keyframes mkSwimR  { from { transform: translateX(790px) scale(calc(var(--s) * -1), var(--s)); } to { transform: translateX(-60px) scale(calc(var(--s) * -1), var(--s)); } }
@keyframes mkTail   { from { transform: scaleX(.55); } to { transform: scaleX(1.1); } }

/* the hero container is a row flexbox: stack the scene and its caption */
.hero-illustration-live { flex-direction: column; align-items: center; }

/* the Ge'ez word, floating on its own little sea */
.melhik-caption { display:flex; flex-direction:column; align-items:center; gap:.15rem; margin-top:1.1rem; user-select:none; }
.mk-glyphs { display:inline-flex; gap:.18em; font-family:'Noto Sans Ethiopic',sans-serif; font-weight:700; font-size:clamp(2.2rem, 7vw, 3.4rem); line-height:1.1;
    -webkit-box-reflect: below -.12em linear-gradient(transparent 55%, rgba(255,255,255,.22)); }
.mk-glyphs span {
    display:inline-block;
    background: linear-gradient(100deg, var(--accent-1) 0%, var(--accent-3) 35%, #fff2cf 50%, var(--accent-3) 65%, var(--accent-1) 100%);
    background-size: 250% 100%; -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
    animation: mkRiseIn .9s cubic-bezier(.2,.8,.2,1) both, mkBobLetter 3.4s ease-in-out infinite, mkShine 5s linear infinite;
    animation-delay: calc(var(--i) * .14s + .3s), calc(var(--i) * .32s + 1.3s), calc(var(--i) * .22s);
    filter: drop-shadow(0 .25rem .6rem var(--glow-1));
}
.mk-sub { font-size:max(.8rem, var(--fs-min,11px)); letter-spacing:.22em; text-transform:uppercase; color:var(--text-muted); opacity:.9; animation: mkFadeIn 1.2s 1.6s both; }
@keyframes mkRiseIn   { from { opacity:0; transform: translateY(1.2em) scale(.8); filter: blur(8px); } to { opacity:1; transform:none; filter: blur(0); } }
@keyframes mkBobLetter{ 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-.14em) rotate(2deg); } }
@keyframes mkShine    { to { background-position: -250% 0; } }
@keyframes mkFadeIn   { from { opacity:0; transform: translateY(.5rem); } to { opacity:.9; transform:none; } }

/* pause when off-screen / tab hidden (JS toggles .is-paused) */
.hero-scene-wrap.is-paused *, .melhik-caption.is-paused * { animation-play-state: paused !important; }

@media (max-width: 575.98px) {
    .hero-scene-wrap { border-radius: 1.1rem; }
    .hero-scene, .hero-scene-wrap { border-radius: 1.1rem; }
    .hero-scene .mk-rays-water, .hero-scene .mk-g2, .hero-scene .mk-c4 { display:none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-scene *, .melhik-caption *, .mk-glyphs span { animation: none !important; transition: none !important; }
    .mk-glyphs span, .mk-sub { opacity: 1; }
}

/* ============================================================
   PAGE MOTION  (scroll reveals, spotlight cards, progress bar ...)
   JS adds .mk-js to <html> early; without JS everything stays visible.
   ============================================================ */
html { scroll-behavior: smooth; }

/* scroll-triggered reveal (replaces the "animate everything on page load" behaviour) */
.mk-js .fade-up {
    opacity: 0;
    transform: translate(var(--fx, 0), var(--fy, 2.2rem)) scale(var(--fsc, 1));
    animation: mkFailsafe .01s linear 3.5s forwards;         /* if the JS ever fails, content still appears */
    transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--sd, 0s);
    will-change: opacity, transform;
}
.mk-js .fade-up.in-view { opacity: 1; transform: none; animation: none; will-change: auto; }
@keyframes mkFailsafe { to { opacity: 1; transform: none; } }
@media (min-width: 768px) {
    .mk-from-left  { --fx: -2.6rem; --fy: 0; }
    .mk-from-right { --fx:  2.6rem; --fy: 0; }
    .mk-from-below { --fy: 3rem; --fsc: .96; }
}

/* section titles draw an underline when they arrive */
.section-title h2::after {
    content: ""; display: block; width: 4rem; height: .22rem; margin: .7rem auto 0; border-radius: .2rem;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    transition: width 1s cubic-bezier(.2,.7,.2,1) .35s;
}
.mk-js .section-title:not(.in-view) h2::after { width: 0; }

/* hero headline: reveal, then a slow shimmer */
.hero-section h1 {
    background-image: linear-gradient(100deg, var(--text-primary) 0%, var(--accent-1) 25%, var(--text-primary) 50%, var(--accent-1) 75%, var(--text-primary) 100%);
    background-size: 200% 100%;
    animation: mkH1In 1.1s cubic-bezier(.2,.8,.2,1) both, mkShineText 9s linear 1.2s infinite;
}
@keyframes mkH1In { from { opacity: 0; transform: translateY(.5em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes mkShineText { to { background-position: 100% 0; } }
.hero-section .badge { animation: mkBadge 3.2s ease-in-out infinite; }
@keyframes mkBadge { 0%,100% { box-shadow: 0 0 0 0 var(--glow-1); } 50% { box-shadow: 0 0 0 .6rem transparent; } }

/* buttons: light sweep + lift */
.btn-primary-glass, .hero-cta .btn-primary, .pricing-card .btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary-glass::after, .hero-cta .btn-primary::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.42) 50%, transparent 70%);
    transform: translateX(-130%); transition: transform .75s ease;
}
.btn-primary-glass:hover::after, .hero-cta .btn-primary:hover::after { transform: translateX(130%); }
.hero-cta .btn { transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.hero-cta .btn:hover { transform: translateY(-.2rem); }
.hero-cta .btn:active { transform: translateY(0) scale(.98); }

/* nav */
.navbar-custom { transition: box-shadow .35s ease, background .5s ease, padding .35s ease; }
.navbar-custom.is-scrolled { box-shadow: 0 .6rem 2rem rgba(0,0,0,.16); }
.navbar-custom .nav-link { position: relative; }
.navbar-custom .nav-link::after {
    content: ""; position: absolute; left: 50%; bottom: .1rem; width: 0; height: 2px; border-radius: 2px;
    background: var(--accent-1); transition: width .3s ease, left .3s ease;
}
.navbar-custom .nav-link:hover::after { width: 60%; left: 20%; }

/* cards: cursor spotlight + gentle 3D tilt (desktop pointers only; JS sets the variables) */
.feature-card, .testimonial-card, .pricing-card { position: relative; }
.feature-card::before, .testimonial-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    background: radial-gradient(15rem circle at var(--mx, 50%) var(--my, 50%), var(--glow-1), transparent 62%);
    transition: opacity .3s ease;
}
.feature-card:hover::before, .testimonial-card:hover::before { opacity: 1; }
.feature-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.feature-card:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-.35rem); }
.feature-card .icon { transition: transform .45s cubic-bezier(.3,1.6,.5,1); animation: mkIconFloat 5s ease-in-out infinite; }
.feature-card:hover .icon { transform: translateY(-.2rem) rotate(-7deg) scale(1.1); animation-play-state: paused; }
@keyframes mkIconFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -.18rem; } }

/* featured plan: rotating conic border */
@property --mk-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.pricing-card.featured::before {
    content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--mk-angle), transparent 0 62%, var(--accent-1), var(--accent-3), transparent 98%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: mkSpinAngle 5s linear infinite;
}
@keyframes mkSpinAngle { to { --mk-angle: 360deg; } }

/* scroll progress + cursor glow (created by JS) */
.mk-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 2000; pointer-events: none;
    transform-origin: left center; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent-1), var(--accent-3)); }
.mk-cursor-glow { position: fixed; left: 0; top: 0; width: 30rem; height: 30rem; margin: -15rem 0 0 -15rem; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, var(--glow-1), transparent 65%); pointer-events: none; opacity: 0; transition: opacity .5s ease; will-change: transform; }
.mk-cursor-glow.on { opacity: .85; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mk-js .fade-up { opacity: 1; transform: none; transition: none; animation: none; }
    .hero-section h1 { animation: none; }
    .hero-section .badge, .feature-card .icon, .pricing-card.featured::before { animation: none; }
    .mk-progress, .mk-cursor-glow { display: none; }
    .section-title h2::after { transition: none; }
    .bg-blob, .referral-banner { animation: none !important; }
}

/* rigging must read on both the light and the night sky */
.hero-scene .mk-rig { stroke: #7a5a3a; stroke-opacity: .65; }
.dark-theme .hero-scene .mk-rig { stroke: #F8F4EE; stroke-opacity: .55; }

/* lighter effects on touch devices (battery / low-end Android) */
@media (pointer: coarse) {
    .mk-glyphs { -webkit-box-reflect: none; }
    .mk-glyphs span { filter: none; }
    .hero-scene .mk-par { transition: none; }
}

/* ============================================================
   HERO LAYOUT: copy on the left, the Melhik scene on the right
   ============================================================ */
.hero-section { text-align: left; padding: 6rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero-section h1 { font-size: clamp(2.3rem, 4.3vw, 3.7rem); }
.hero-section .subhead { margin-left: 0; margin-right: 0; max-width: 34rem; font-size: clamp(1rem, 1.35vw, 1.2rem); }
.hero-cta { justify-content: flex-start; }
.hero-cta .btn { padding: 0.7rem 1.9rem; }
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {            /* soft glow behind the scene */
    content: ""; position: absolute; inset: 6% -4% -2% -4%; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow-1), transparent 72%); filter: blur(1.5rem);
}
.hero-illustration-live { margin-top: 0; }
.melhik-caption { align-items: center; }

/* floating feature chips around the scene */
.mk-chip {
    position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem; border-radius: 62rem;
    background: var(--bg-card); border: 1px solid var(--border-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card); color: var(--text-primary); font-size: max(0.78rem, var(--fs-min, 11px)); font-weight: 600; white-space: nowrap;
    animation: mkChipFloat 6.5s ease-in-out infinite;
}
.mk-chip i { color: var(--accent-1); }
.mk-chip-1 { top: -0.8rem; left: 4%; }
.mk-chip-2 { top: 34%; right: -0.6rem; animation-delay: -2.2s; }
.mk-chip-3 { top: 52%; left: -0.6rem; animation-delay: -4.1s; }
@keyframes mkChipFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.5rem; } }
.hero-visual.is-paused .mk-chip { animation-play-state: paused; }

@media (min-width: 1200px) { .mk-chip-2 { right: -1.4rem; } .mk-chip-3 { left: -1.6rem; } }

/* ================================================================
 * LARGE-SCREEN POLISH (≥1440px / ≥1920px)
 * FIX: the landing nav was squeezed inside Bootstrap's 1320px
 * container on wide monitors, leaving 300px+ of dead margin on each
 * side. These rules widen the container, give the nav links room to
 * breathe, and cap section content for readability.
 * ================================================================ */
@media (min-width: 1440px) {
    .navbar-custom { padding: 0.7rem 2rem; }
    .navbar-custom .container { max-width: 1400px; }
    .navbar-custom .nav-link { margin: 0 0.85rem; font-size: 1rem; }
    .navbar-custom .navbar-brand { font-size: 1.6rem; }
    /* Section content gets a wider max-width so it fills the canvas
       without stretching line lengths past readability. */
    .lp-section { padding-left: 2rem; padding-right: 2rem; }
    .hero-grid { gap: clamp(2.5rem, 5vw, 5rem); }
}
@media (min-width: 1600px) {
    .navbar-custom .container { max-width: 1560px; }
    .navbar-custom .nav-link { margin: 0 1.1rem; }
    .lp-section { padding-left: 3rem; padding-right: 3rem; }
}
@media (min-width: 1920px) {
    .navbar-custom .container { max-width: 1760px; }
    .navbar-custom .nav-link { margin: 0 1.35rem; font-size: 1.05rem; }
    .navbar-custom .navbar-brand { font-size: 1.7rem; }
    .lp-section { padding-left: 4rem; padding-right: 4rem; }
    /* Flatten the hero mock's 3D tilt on very wide screens so it
       reads as a product shot rather than a dramatic angle. */
    .lp-mock { transform: rotateY(-3deg) rotateX(1deg); }
}

@media (max-width: 991.98px) {
    .hero-section { text-align: center; padding: 5rem 0 3rem; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .hero-section .subhead { margin: 0 auto 1.8rem; }
    .hero-cta { justify-content: center; }
    .hero-visual { max-width: 38rem; margin: 0 auto; width: 100%; }
    .mk-chip-2 { right: 0.3rem; } .mk-chip-3 { left: 0.3rem; }
}
@media (max-width: 575.98px) { .mk-chip { font-size: max(0.72rem, var(--fs-min, 11px)); padding: 0.3rem 0.65rem; } .mk-chip-1 { left: 2%; } }
@media (prefers-reduced-motion: reduce) { .mk-chip { animation: none; } }
