/* 
  PriceSpy CSS 
  Theme: Clean B2B SaaS, Dark Mode, Neo-Cyber, High Contrast
*/

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --border-color: #2a2a2a;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --accent-green: #95BF47; /* Shopify Green */
    --accent-green-dim: rgba(149, 191, 71, 0.15);
    
    --accent-blue: #3b82f6;
    
    --font-sans: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4vw;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
}

.logo img {
    width: 28px;
    height: 28px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--text-main);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px; /* Slight rounding for a cleaner look */
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
    border: 1px solid var(--text-main);
}

.btn-primary:hover {
    background: #d1d5db;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 4vw;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--accent-green);
    background: var(--accent-green-dim);
    color: var(--accent-green);
    margin-bottom: 2rem;
    border-radius: 20px;
}

.blinking-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.target-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.target-title span {
    color: var(--accent-green);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* --- Hero Graphic (Realistic Popup Mockup) --- */
.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-wrapper {
    background: linear-gradient(120deg, #1e1b4b 0%, #0f172a 100%);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.popup-frame {
    width: 360px;
    background: #ffffff; /* Extension popups are usually white */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    pointer-events: none; /* purely visual */
}

/* Extension Mockup Scaffolding mimicking popup.css */
.popup-frame .container { display: flex; flex-direction: column; gap: 12px; padding: 16px; font-family: 'Inter', sans-serif;}
.mock-ext-header { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: white; padding: 16px; border-radius: 8px; }
.mock-ext-header .header-top { display: flex; justify-content: space-between; align-items: center; }
.mock-ext-header h1 { font-size: 1.25rem; font-weight: 700; margin: 0; color: white;}
.mock-ext-header .subtitle { font-size: 12px; color: rgba(255,255,255,0.7); display: block; margin-top: 4px;}

.section-heading { font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 8px; margin-top: 8px;}

.tracked-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    gap: 12px;
    margin-bottom: 8px;
}
.item-img { width: 44px; height: 44px; border-radius: 6px; background: #f8fafc; overflow: hidden; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.item-name { font-size: 0.8rem; font-weight: 600; color: #0f172a; line-height: 1.2; }
.item-price-row { display: flex; align-items: center; gap: 8px; }
.item-price { font-size: 0.85rem; font-weight: 700; color: #334155; }

.badge-drop { background: #dcfce7; color: #15803d; padding: 2px 6px; border-radius: 12px; font-size: 10px; font-weight: 700; }
.discount-badge { background: #fef3c7; color: #92400e; padding: 2px 6px; border-radius: 4px; font-size: 10px; }

.history-section { background: white; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.history-header-row { padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.history-list { display: grid; grid-template-columns: 50px 1fr 60px; width: 100%; }
.history-item { display: contents; }
.history-cell { padding: 8px 12px; font-size: 0.75rem; color: #334155; border-bottom: 1px solid #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-date { color: #64748b; }
.drop { color: #15803d; font-weight: 700; text-align: right; }

.btn-check { background: white; color: #334155; border: 2px solid #e2e8f0; width: 100%; padding: 8px; margin-top: 4px; font-weight: 600; font-size: 12px; border-radius: 6px; text-align: center; }

/* --- Features Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
    padding: 4rem 4vw;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.bento-box h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.bento-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bento-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.block-title {
    color: var(--accent-green);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.feature-large {
    grid-column: span 2;
}

.feature-wide {
    grid-column: span 3;
}

.step-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.step-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
}

.step-num {
    position: absolute;
    top: -15px;
    left: 1.5rem;
    background: var(--accent-green);
    color: #000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
}

.step-card h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.step-card p {
    font-size: 0.9rem;
}

.icon-cube {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 4vw;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    margin-top: 4rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 4vw;
        gap: 3rem;
    }
    
    .target-title {
        font-size: 3.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .feature-large, .feature-wide, .feature-small {
        grid-column: span 1;
    }

    .step-process {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}
