/* ==================== CUSTOM PROPERTIES ==================== */
:root {
    --primary: #208090;
    --primary-dark: #186070;
    --primary-light: #3a9bb0;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;

    --bg-dark: #1a1a2e;
    --bg-medium: #16213e;
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;

    --text: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);

    --transition: 0.3s ease;
    --max-width: 1140px;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(32, 128, 144, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.btn-white {
    background: white;
    color: var(--primary-dark);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,255,255,0.3);
}

.btn-nav {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    font-size: 0.9rem;
}
.btn-nav:hover {
    background: var(--primary-dark);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

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

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.navbar-links {
    display: flex;
    gap: 32px;
}

.navbar-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}
.navbar-links a:hover { color: white; }

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(32,128,144,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

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

.hero-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-white));
}

/* Browser Frame Mock */
.browser-frame {
    background: #1e293b;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

.browser-dots {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: #0f172a;
}
.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-content {
    padding: 0;
}

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

.mock-sidebar {
    width: 60px;
    background: #0f172a;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-menu-item {
    height: 32px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
}
.mock-menu-item.active {
    background: var(--primary);
}

.mock-main {
    flex: 1;
    padding: 20px;
    background: #1a1f36;
}

.mock-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.mock-stat-card {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}
.mock-stat-card.c1 { border-left: 3px solid var(--primary); }
.mock-stat-card.c2 { border-left: 3px solid var(--accent); }
.mock-stat-card.c3 { border-left: 3px solid #22c55e; }

.mock-stat-value {
    height: 18px;
    width: 60%;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-bottom: 6px;
}
.mock-stat-label {
    height: 10px;
    width: 80%;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}

.mock-table {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    overflow: hidden;
}

.mock-table-header {
    height: 28px;
    background: rgba(255,255,255,0.06);
}
.mock-table-row {
    height: 32px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ==================== SOCIAL PROOF ==================== */
.social-proof {
    padding: 60px 0;
    background: var(--bg-white);
}

.proof-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.proof-stat {
    text-align: center;
}

.proof-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: inline;
}
.proof-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.proof-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.proof-divider {
    width: 1px;
    height: 50px;
    background: #e5e7eb;
}

/* ==================== SECTIONS COMMON ==================== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ==================== FEATURES ==================== */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.feature-card {
    background: white;
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(32, 128, 144, 0.15);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(32,128,144,0.1), rgba(108,92,231,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-white);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    padding: 0 24px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(32,128,144,0.3);
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), rgba(32,128,144,0.2));
    flex-shrink: 0;
    margin-top: -40px;
}

/* ==================== DEEP DIVES ==================== */
.deep-dives {
    padding: 60px 0;
    background: var(--bg-light);
}

.deep-dive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.deep-dive.reverse {
    direction: rtl;
}
.deep-dive.reverse > * {
    direction: ltr;
}

.deep-dive-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(32,128,144,0.1);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deep-dive-text h2 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.deep-dive-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.deep-dive-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deep-dive-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.deep-dive-list li svg {
    width: 18px;
    height: 18px;
    color: #22c55e;
    flex-shrink: 0;
}

/* Feature Showcases */
.feature-showcase {
    background: #1e293b;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.08);
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #0f172a;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.showcase-dot.green { background: #22c55e; }
.showcase-dot.blue { background: #3b82f6; }

.showcase-title { font-weight: 600; color: white; }
.showcase-cae { margin-left: auto; font-family: monospace; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.showcase-rows {
    padding: 8px 0;
}

.showcase-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.stock-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
}
.stock-badge.low {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Invoice Showcase */
.invoice-detail { padding: 16px 20px; }

.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.invoice-row.total {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.invoice-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 0;
}

.invoice-status {
    padding: 12px 20px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

/* Phone Frame */
.phone-frame {
    width: 280px;
    margin: 0 auto;
    background: #1e293b;
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

.phone-notch {
    width: 120px;
    height: 24px;
    background: #0f172a;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 0;
}

.phone-screen {
    background: #0f172a;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
}

.phone-app-bar {
    padding: 16px 20px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.phone-scanner-area {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255,255,255,0.03);
}

.scanner-line {
    position: absolute;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
    0%, 100% { top: 30%; }
    50% { top: 70%; }
}

.phone-scan-icon {
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.15);
}

.phone-product-found {
    padding: 20px;
    background: rgba(34, 197, 94, 0.08);
    border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.phone-product-name {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.phone-product-stock {
    display: block;
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== PRICING ==================== */
.pricing {
    padding: 100px 0;
    background: var(--bg-white);
}

.pricing-cards {
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
    max-width: 420px;
    width: 100%;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
}

.pricing-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: #22c55e;
    flex-shrink: 0;
}

/* ==================== FAQ ==================== */
.faq {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all var(--transition);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(32,128,144,0.1);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 400;
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* ==================== FINAL CTA ==================== */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #0f172a;
    padding: 60px 0 30px;
    color: rgba(255,255,255,0.6);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
}

/* ==================== ANIMATIONS ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children in grids */
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.1s; }
.features-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.features-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.5rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .deep-dive { grid-template-columns: 1fr; gap: 40px; }
    .deep-dive.reverse { direction: ltr; }
    .deep-dive-visual { display: flex; justify-content: center; }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 20px 24px;
        gap: 0;
        backdrop-filter: blur(20px);
    }

    .navbar-links.open { display: flex; }
    .navbar-links a { padding: 12px 0; }
    .navbar-toggle { display: flex; }

    .navbar-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .navbar-toggle.open span:nth-child(2) { opacity: 0; }
    .navbar-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }

    .features-grid { grid-template-columns: 1fr; }

    .section-header h2 { font-size: 1.8rem; }

    .steps { flex-direction: column; gap: 24px; }
    .step-connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(to bottom, var(--primary), rgba(32,128,144,0.2));
        margin: 0 auto;
    }

    .proof-stats { flex-direction: column; gap: 24px; }
    .proof-divider { width: 60px; height: 1px; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pricing-card {
        padding: 36px 24px;
    }

    .phone-frame { width: 240px; }

    .cta-content h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; }
    .btn-lg { padding: 14px 28px; }
}
