/* ==========================================================================
   Design Tokens & Resets
   ========================================================================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --text-primary: #1a1d20;
    --text-muted: #6c757d;
    --accent: #06b6d4; /* Teal / Cyan */
    --accent-blue: #3b82f6; /* Neon Blue */
    --accent-purple: #8b5cf6; /* Muted Purple */
    --accent-amber: #f59e0b; /* Amber */
    --accent-green: #10b981; /* Emerald Green */
    --accent-red: #ef4444; /* Deep Red */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-tertiary);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-bold {
    color: var(--text-primary);
}

.logo-light {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
}

.nav-btn-outline {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.nav-btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.04) 0%, rgba(255, 255, 255, 0) 50%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background-color: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: #343a40;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* ==========================================================================
   App Mockup
   ========================================================================== */
.app-window {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
}

.app-titlebar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    user-select: none;
}

.app-title-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.app-window-controls {
    display: flex;
    gap: 12px;
    color: #a0aec0;
    font-size: 10px;
}

.control-btn:hover {
    color: var(--text-primary);
    cursor: pointer;
}

.control-btn.close:hover {
    color: var(--accent-red);
}

.app-body {
    padding: 16px;
    background-color: #ffffff;
}

.app-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.info-group {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 12px;
    font-weight: 600;
}

.badge-running {
    background-color: rgba(6, 182, 212, 0.08);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.app-progress-section {
    margin-bottom: 16px;
}

.progress-bar-container {
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.bold-pct {
    font-weight: 700;
    color: var(--text-primary);
}

.app-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.dashboard-card {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.card-value {
    font-size: 14px;
    font-weight: 700;
}

.card-sub {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
}

.text-cyan { color: var(--accent); }
.text-green { color: var(--accent-green); }
.text-purple { color: var(--accent-purple); }
.text-amber { color: var(--accent-amber); }

.app-canvas-container {
    display: flex;
    flex-direction: column;
}

.canvas-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.live-block-grid {
    background-color: #121214;
    border-radius: 6px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 2px;
    height: 90px;
    overflow: hidden;
}

.live-block-cell {
    background-color: #1a1a1e;
    border-radius: 1px;
    aspect-ratio: 1;
    transition: background-color 0.2s ease;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

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

.feature-card {
    background-color: var(--bg-primary);
    border: 1px solid rgba(0,0,0,0.02);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card-desc {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================================================
   Comparison Section
   ========================================================================== */
.comparison-section {
    padding: 100px 0;
}

.comparison-table-wrapper {
    background-color: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.comparison-table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    font-size: 15px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.feature-name {
    font-weight: 500;
}

.check-green { color: var(--accent-green); }
.cross-red { color: var(--accent-red); }

/* ==========================================================================
   Pricing Section & Shopify Product card
   ========================================================================== */
.pricing-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

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

.pricing-card {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.pricing-badge {
    background-color: rgba(6, 182, 212, 0.08);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pricing-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 24px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    margin-right: 4px;
}

.price {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.period {
    color: var(--text-muted);
    font-size: 14px;
    margin-left: 6px;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.pricing-features {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    text-align: left;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

#shopify-buy-button-container {
    width: 100%;
}

/* ==========================================================================
   Slide-out Cart & Overlays
   ========================================================================== */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--bg-primary);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--bg-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.close-cart-btn:hover {
    color: var(--text-primary);
}

.cart-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
}

.item-price {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.item-qty {
    font-size: 14px;
    color: var(--text-muted);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    z-index: 1001;
    display: none;
}

.cart-overlay.open {
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--bg-tertiary);
    padding: 40px 0;
    background-color: var(--bg-primary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

/* ==========================================================================
   Responsiveness
   ========================================================================== */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 38px;
        letter-spacing: -1px;
    }
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    .navbar-container {
        padding: 0 16px;
    }
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
