:root {
    /* Color Palette - Light Theme */
    --bg-white: #ffffff;
    --bg-surface: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.1);
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-border: rgba(0, 0, 0, 0.08);
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    
    /* Spacing */
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Helpers */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn-primary {
    background: var(--grad-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-primary.lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-secondary.lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container img {
    height: 75px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo-container img {
    height: 60px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    perspective: 1000px;
}

.glass-card {
    background: var(--bg-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.main-preview {
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.main-preview:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

/* Dashboard Mock */
.dashboard-mock {
    height: 400px;
    display: flex;
}

.mock-sidebar {
    width: 60px;
    background: var(--bg-surface);
    border-right: 1px solid var(--glass-border);
}

.mock-content {
    flex: 1;
    padding: 2rem;
}

.mock-header {
    height: 20px;
    width: 150px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mock-item {
    height: 120px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Features Section */
.features {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.feature-card > * {
    position: relative;
    z-index: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.icon-box.cyan { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.icon-box.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.icon-box.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-box.blue { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.icon-box.green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.icon-box.rose { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Split Layouts (Admin & Mobile) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
    padding: 8rem 0;
}

.split-layout.reverse {
    direction: ltr; /* Ensure text remains LTR */
}

.split-layout.reverse .layout-visual {
    order: -1;
}

.layout-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.layout-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

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

.panel-preview {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent);
}

/* Phone Mockup */
.phone-mockup {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: #0f172a;
    border: 8px solid #334155;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.2);
    transform: rotateY(15deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    padding: 2rem 1.5rem;
}

.app-header {
    height: 40px;
    background: var(--bg-surface);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.app-balance {
    background: var(--grad-primary);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.app-balance span { font-size: 0.8rem; opacity: 0.8; }
.app-balance h3 { font-size: 1.75rem; margin: 0.5rem 0 1rem; }

.btn-pay {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.app-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 2rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    opacity: 0.2;
    border-radius: 50%;
}

/* Contact CTA */
.contact-cta {
    padding: 8rem 0;
}

.cta-card {
    background: var(--grad-primary);
    border-radius: 40px;
    padding: 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-card h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-card p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: white;
}

.cta-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.cta-form input::placeholder { color: rgba(255, 255, 255, 0.6); }

.cta-form button {
    background: white;
    color: var(--primary);
    box-shadow: none;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand img {
    height: 35px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    color: var(--text-muted);
}

.footer-links ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links i {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.social-links i:hover {
    color: var(--primary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3.5rem; }
    .split-layout { gap: 3rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .hero .container, .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions { justify-content: center; }
    .hero-content p { margin: 0 auto 2.5rem; }
    
    .hero-visual { margin-top: 4rem; }
    .split-layout.reverse .layout-visual { order: 0; }
    
    .feature-list { align-items: center; }
    
    .cta-card { padding: 3rem 1.5rem; }
    .cta-card h2 { font-size: 2.5rem; }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-brand p { margin: 0 auto; }
}
