/* backend/style.css */

:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-secondary: 'Outfit', sans-serif;
    
    /* Default: Night / Dark Mode Colors */
    --bg-dark: #050811;
    --bg-card: rgba(13, 20, 38, 0.65);
    --bg-nav: rgba(5, 8, 17, 0.75);
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #06b6d4; /* Cyan */
    --accent-success: #10b981; /* Emerald */
    --accent-warning: #f59e0b; /* Amber */
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-focus: #818cf8;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --grad-accent: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --glow-primary: 0 0 25px rgba(99, 102, 241, 0.2);
    --glow-secondary: 0 0 25px rgba(6, 182, 212, 0.2);
}

[data-theme="light"] {
    /* Day / Light Mode Colors */
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-nav: rgba(248, 250, 252, 0.85);
    
    --border-glass: rgba(15, 23, 42, 0.08);
    --border-focus: #4f46e5;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.08);
    --glow-secondary: 0 0 20px rgba(6, 182, 212, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

[data-theme="light"] body {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

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

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link a:hover {
    color: var(--text-primary);
}

.nav-link a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: width 0.3s ease;
}

.nav-link a:hover::after {
    width: 100%;
}

/* Theme Toggle Button Style */
.btn-theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    font-size: 18px;
}

.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Day/Night icons display configuration */
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.btn-download-nav {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    background: var(--grad-primary);
    color: white !important;
    box-shadow: var(--glow-primary);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-secondary);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary-glow {
    background: var(--grad-primary);
    color: white;
    box-shadow: var(--glow-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.45);
}

.btn-secondary-glow {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary-glow:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255,255,255,0.2);
}

.hero-metadata {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    gap: 24px;
}

.hero-metadata span code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Device Mockup */
.mock-device-container {
    display: flex;
    justify-content: center;
}

.mock-device {
    width: 300px;
    height: 600px;
    border-radius: 38px;
    border: 10px solid #1a2236;
    background: #0d121f;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mock-device::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 22px;
    background: #1a2236;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.device-screen {
    flex: 1;
    padding: 36px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.device-nav-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.device-pill {
    padding: 6px 0;
    text-align: center;
    border-radius: 6px;
    font-size: 8.5px;
    font-weight: 700;
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
}

.device-pill.active {
    background: var(--accent-primary);
    color: white;
}

.device-promo {
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
}

.device-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex: 1;
}

.device-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.device-bottom-nav {
    height: 48px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #080d1a;
}

.device-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
}

.device-nav-btn.active {
    color: var(--accent-primary);
}

/* Sections */
.features, .commissions, .catalog-showcase, .calculator-sec, .app-policies-legal {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-glass);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-secondary);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Grids */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-secondary);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--accent-secondary);
}

.feature-card h3 {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-list {
    list-style: none;
    margin-top: 16px;
}

.feature-list li {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li::before {
    content: '✓';
    color: var(--accent-secondary);
    font-weight: 700;
}

/* Tables configuration for commission info */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    overflow-x: auto;
    margin-bottom: 30px;
}

.table-title {
    font-family: var(--font-secondary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 500px;
}

.commission-table th, .commission-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 14px;
}

.commission-table th {
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.commission-table td {
    color: var(--text-secondary);
}

.commission-table tr:hover td {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.01);
}

/* Calculator wrapper */
.calc-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.calc-results {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calc-output-num {
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: 800;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    outline: none;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.btn-primary-form {
    background: var(--grad-primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--glow-primary);
}

.btn-primary-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

/* Legal and text layouts */
.legal-content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    margin-bottom: 40px;
}

.legal-content-card h3 {
    font-family: var(--font-secondary);
    font-size: 22px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content-card p, .legal-content-card ul {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.legal-content-card ul {
    margin-left: 20px;
}

/* Footer Section */
footer {
    background: #020409;
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.footer-links-col h4 {
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list li a {
    font-size: 13.5px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links-list li a:hover {
    color: var(--accent-secondary);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    background: var(--grad-emerald);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 36px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-metadata {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .calc-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple hidden layout for mobile nav */
    }
}

/* App Store & Play Store Badges */
.app-store-badges {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.store-badge {
    background: #000000;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    min-width: 155px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.store-badge:hover {
    transform: translateY(-2px);
    background: #0a0a0a;
    border-color: #555555;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.store-badge-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-badge-label {
    font-size: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.store-badge-name {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.center-badges {
    justify-content: center;
}

