/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@300;400;600;700&display=swap');

/* Variables */
:root {
    --bg-dark: #07090f;
    --bg-dark-secondary: #0f121d;
    --primary-neon: #00f0ff;
    --primary-neon-dim: rgba(0, 240, 255, 0.15);
    --secondary-neon: #8a2be2;
    --secondary-neon-dim: rgba(138, 43, 226, 0.15);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(20, 25, 40, 0.5);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Noto Sans Sinhala', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: floatOrb 10s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--secondary-neon-dim);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--primary-neon-dim);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: rgba(0, 240, 255, 0.1);
    animation-duration: 15s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.text-neon {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon-dim);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-text {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: #fff;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }
.p-4 { padding: 2rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.mx-4 { margin-left: 2rem; margin-right: 2rem; }
.rounded { border-radius: 16px; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-neon), #5b1eb5);
    color: white;
    box-shadow: 0 0 20px var(--secondary-neon-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--primary-neon);
    box-shadow: inset 0 0 10px var(--primary-neon-dim), 0 0 15px var(--primary-neon-dim);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.3), 0 0 25px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-neon);
    transition: width 0.3s;
    box-shadow: 0 0 8px var(--primary-neon);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge-animated {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-highlight);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-neon);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--primary-neon-dim); }
    70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--secondary-neon-dim);
    border: 1px solid var(--glass-border);
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Sections General */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-neon-dim);
}

/* Features Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top right, var(--secondary-neon-dim), transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-neon-dim);
}

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

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.glow-icon {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

/* Analytics Section */
.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.check-list i {
    margin-top: 5px;
    font-size: 1.1rem;
}

.feature-visual {
    flex: 1;
    height: 400px;
    border-radius: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20,25,40,0.8), rgba(10,12,20,0.9));
}

.visual-placeholder i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.05);
}

.floating-badge {
    position: absolute;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--glass-highlight);
    animation: float 4s ease-in-out infinite;
}

.floating-badge i {
    color: var(--primary-neon);
    font-size: 1.2rem;
}

.badge-1 {
    bottom: -20px;
    right: -20px;
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.4);
}

.badge-2 {
    top: -20px;
    left: -20px;
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    animation-delay: 1s;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-neon);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.15);
}

.pricing-card.popular {
    border-color: var(--secondary-neon);
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.1) 0%, rgba(20, 25, 40, 0.5) 100%);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.1);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--secondary-neon), #5b1eb5);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px var(--secondary-neon-dim);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: white;
}

.pricing-card .price span {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.features-list i {
    color: var(--primary-neon);
}

.mt-auto { margin-top: auto; }

.agent-addon {
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-color: rgba(255, 255, 255, 0.1);
}

.addon-icon i {
    font-size: 3rem;
    color: var(--primary-neon);
}

.addon-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.addon-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.addon-price {
    min-width: 200px;
    text-align: right;
}

.ap-item {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.ap-item span {
    color: var(--text-muted);
    font-weight: 400;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 4rem;
    background: rgba(10, 12, 20, 0.8);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    margin-right: 0.5rem;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--primary-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-neon-dim);
    border-color: var(--primary-neon);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.hover-underline:hover {
    text-decoration: underline;
}

.feedback-instructions {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    border-left: 2px solid var(--primary-neon);
    padding-left: 10px;
    margin-top: 12px;
}

.feedback-instructions span {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.feedback-instructions ol {
    margin: 8px 0 0 0;
    padding-left: 18px;
    list-style-type: decimal;
}

.feedback-instructions ol li {
    display: list-item;
    margin-bottom: 6px;
    color: var(--text-muted);
    list-style-type: decimal;
}

.footer-bank {
    padding: 1.5rem;
    border-radius: 16px;
}

.footer-bank h4 {
    margin-bottom: 1rem;
    color: var(--secondary-neon);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a:hover {
    color: var(--primary-neon);
}

.app-screenshot {
    max-width: 100%;
    max-height: 400px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-highlight);
    object-fit: contain;
}

/* Animations (Scroll Reveal) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-h1 {
        font-size: 2.8rem;
    }

    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    .settings-layout {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .settings-visual {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 12, 20, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .agent-addon {
        flex-direction: column;
        text-align: center;
    }
    
    .addon-price {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}
