/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-bg: #F5FFFA; /* Mint Cream */
    --glass-surface: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.4);
    --accent: #CCFF00; /* Electric Lime */
    --text-heading: #044D29; /* Dark Forest */
    --text-body: #4A5568; /* Slate Grey */
    --text-light: #718096;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-serif: 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Effects */
    --glass-blur: blur(20px);
    --shadow-sm: 0 4px 6px rgba(4, 77, 41, 0.1);
    --shadow-md: 0 10px 25px rgba(4, 77, 41, 0.15);
    --shadow-lg: 0 20px 40px rgba(4, 77, 41, 0.2);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-full: 9999px;
}

/* ===== BASE STYLES ===== */
body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--primary-bg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/kitenge-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(167, 196, 182, 0.55);
    backdrop-filter: blur(2px);
    z-index: -1;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.serif-font {
    font-family: var(--font-serif);
    font-weight: 500;
    color: #1B261E; /* Dark Charcoal */
}

.mono-font {
    font-family: var(--font-mono);
    font-weight: 300;
}

/* ===== GLASS MORPHISM UTILITIES ===== */
.glass-pane {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-pane::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

.glass-pane:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.glass-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    color: var(--text-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.2);
}

/* ===== NAVIGATION ===== */
.glass-nav {
    position: fixed;
    top: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
}

.nav-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.glass-nav.scrolled .nav-container {
    background: rgba(255, 255, 255, 0.35);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.company-logo {
    font-size: 0.9rem;
    opacity: 0.8;
}

.divider {
    margin: 0 0.5rem;
    opacity: 0.3;
}

.product-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-glow {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px #CCFF00);
    }
    50% {
        filter: drop-shadow(0 0 15px #CCFF00);
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.logo-a {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-heading);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 120px var(--spacing-md) var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    padding: var(--spacing-xl);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(204, 255, 0, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-body);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.cta-primary {
    background: var(--accent);
    color: var(--text-heading);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
}

.cta-primary:hover {
    background: rgb(86, 139, 0);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(204, 255, 0, 0.3);
}

.cta-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-heading);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    color: var(--accent);
    gap: 1rem;
}

/* ===== HOLO CHART ===== */
.holo-chart-container {
    padding: var(--spacing-lg);
    animation: slideUp 1s ease-out 0.2s both;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.chart-legend {
    display: flex;
    gap: var(--spacing-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.holo-chart {
    width: 100%;
    height: 200px;
    margin-bottom: var(--spacing-lg);
}

.grid-line {
    stroke: rgba(4, 77, 41, 0.1);
    stroke-width: 1;
}

.data-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.data-point {
    fill: var(--accent);
    stroke: white;
    stroke-width: 2;
    animation: pulsePoint 2s infinite;
}

@keyframes pulsePoint {
    0%, 100% {
        r: 3;
    }
    50% {
        r: 5;
    }
}

/* ===== POS SIMULATOR ===== */
.pos-simulator {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #e53e3e;
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #e53e3e;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.pos-display {
    font-family: var(--font-mono);
    background: rgba(4, 77, 41, 0.05);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    border-bottom: 1px dashed rgba(4, 77, 41, 0.1);
}

.receipt-line:last-child {
    border-bottom: none;
}

.receipt-line.total {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-heading);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--accent);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.feature-card {
    padding: var(--spacing-lg);
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.feature-card:hover {
    transform: perspective(1000px) rotateX(5deg);
}

.feature-icon {
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
}

.feature-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: var(--spacing-sm);
}

.tag {
    background: rgba(4, 77, 41, 0.1);
    color: var(--text-heading);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== CTA SECTION ===== */
.cta-section {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-xl);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-lg) 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.cta-button.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.cta-note {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-tagline {
    color: var(--text-light);
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-heading);
}

.footer-column a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(4, 77, 41, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 77, 41, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal {
    width: 90%;
    max-width: 400px;
    padding: var(--spacing-xl);
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-heading);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(4, 77, 41, 0.1);
}

.modal h3 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.modal p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(4, 77, 41, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-sans);
    color: var(--text-heading);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.1);
}

.modal-note {
    font-size: 0.75rem;
    margin-top: var(--spacing-sm);
    text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        border-radius: var(--radius-md);
        padding: var(--spacing-md);
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-sm);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .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);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .cta-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .glass-nav {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .hero-content,
    .holo-chart-container,
    .feature-card,
    .cta-section {
        padding: var(--spacing-md);
    }
}