/* ==========================================================================
   BARQY POS - Complete Master Stylesheet (CSS3)
   Brand: BARQY POS
   Domain: barqypos.abc.com
   Tagline: "Your Counter, Simply Smarter."
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Brand Color Palette */
    --bg-dark: #0B0F19;
    --bg-dark-secondary: #111827;
    --bg-dark-card: #1F2937;
    --bg-light: #FFFFFF;
    --bg-light-alt: #F9FAFB;
    --bg-light-card: #FFFFFF;
    
    /* Gold & Amber Brand Accents */
    --gold-primary: #F59E0B;
    --gold-hover: #D97706;
    --gold-light: #FEF3C7;
    --gold-glow: rgba(245, 158, 11, 0.25);
    
    /* Text Colors */
    --text-primary-dark: #F9FAFB;
    --text-muted-dark: #9CA3AF;
    --text-primary-light: #111827;
    --text-muted-light: #6B7280;
    
    /* UI Status Colors */
    --success: #10B981;
    --success-bg: #ECFDF5;
    --info: #3B82F6;
    --border-dark: rgba(255, 255, 255, 0.1);
    --border-light: #E5E7EB;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 10px 30px -10px rgba(245, 158, 11, 0.4);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary-dark);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.accent-text {
    color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   3. BUTTONS & UI COMPONENTS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #0B0F19;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary-dark);
    border-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

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

.btn-light:hover {
    background: var(--bg-dark-secondary);
    color: var(--gold-primary);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 1.1rem 2.25rem;
    font-size: 1.1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dark);
    transition: var(--transition);
}

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

.nav-spacer {
    height: 80px;
}

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

.logo-icon-badge {
    width: 44px;
    height: 44px;
}

.logo-icon-badge svg {
    width: 100%;
    height: 100%;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.logo-tagline {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted-dark);
    font-weight: 400;
    margin-top: -3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link.active::after, .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    background: radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(31, 41, 55, 0.8) 0%, transparent 60%);
    overflow: hidden;
}

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

.hero-badge-wrap {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted-dark);
    margin-bottom: 2.25rem;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-trust-list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-dark);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted-dark);
}

.trust-item svg {
    color: var(--gold-primary);
}

.hero-preview-container {
    position: relative;
}

.hero-mockup-frame {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-dark-card);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(245, 158, 11, 0.15);
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: var(--transition);
}

.hero-mockup-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-mockup-frame img {
    border-radius: calc(var(--radius-lg) - 4px);
    width: 100%;
}

.hero-floating-tag {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--bg-dark-secondary);
    border: 1px solid var(--gold-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tag-icon {
    width: 42px;
    height: 42px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   6. LIGHT SECTION WRAPPER & EDITIONS SELECTOR
   -------------------------------------------------------------------------- */
.section-light {
    background-color: var(--bg-light-alt);
    color: var(--text-primary-light);
    padding: 6rem 0;
}

.section-light h2, .section-light h3, .section-light h4 {
    color: var(--text-primary-light);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.section-header .section-tag {
    color: var(--gold-hover);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-header .section-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-header .section-subtitle {
    color: var(--text-muted-light);
    font-size: 1.1rem;
}

/* Dynamic Edition Tabs */
.edition-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #FFFFFF;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-muted-light);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--gold-primary);
    color: var(--text-primary-light);
}

.tab-btn.active {
    background: var(--bg-dark);
    border-color: var(--gold-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-gold);
}

.tab-btn.active svg {
    color: var(--gold-primary);
}

/* Dynamic Edition Content Grid */
.edition-content-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.edition-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
}

.edition-meta h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.edition-cat-title {
    color: var(--gold-hover);
    font-weight: 600;
    margin-bottom: 1rem;
}

.edition-desc {
    color: var(--text-muted-light);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.version-toggle-wrap {
    display: inline-flex;
    background: var(--bg-light-alt);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.version-toggle-btn {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    background: none;
    border-radius: calc(var(--radius-md) - 2px);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted-light);
}

.version-toggle-btn.active {
    background: var(--gold-primary);
    color: #0B0F19;
    box-shadow: var(--shadow-sm);
}

.feature-check-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
}

.feature-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary-light);
}

.feature-check-item svg {
    color: var(--gold-hover);
    flex-shrink: 0;
    margin-top: 3px;
}

.price-display-box {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.price-main {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary-light);
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted-light);
    font-size: 1.25rem;
}

.price-period {
    color: var(--text-muted-light);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   7. DARK FEATURES SECTION
   -------------------------------------------------------------------------- */
.section-dark {
    background-color: var(--bg-dark);
    padding: 6rem 0;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(245, 158, 11, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted-dark);
    font-size: 0.975rem;
}

/* --------------------------------------------------------------------------
   8. PRICING PAGE & MATRIX
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.pricing-card.popular {
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.popular-badge-top {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-primary);
    color: #0B0F19;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.pricing-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pricing-card-edition {
    color: var(--gold-hover);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pricing-price-wrap {
    margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   9. CHECKOUT PAGE STYLES
   -------------------------------------------------------------------------- */
.checkout-section {
    padding: 4rem 0 6rem;
    background: var(--bg-light-alt);
    color: var(--text-primary-light);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.checkout-box {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.925rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary-light);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-light-alt);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary-light);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

/* Coupon Box */
.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.btn-coupon {
    background: var(--bg-dark);
    color: #FFFFFF;
    border: none;
    padding: 0 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-coupon:hover {
    background: var(--gold-hover);
    color: #0B0F19;
}

.coupon-status-msg {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.coupon-status-msg.success {
    color: var(--success);
}

.coupon-status-msg.error {
    color: #EF4444;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.summary-row.total {
    border-bottom: none;
    padding-top: 1.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary-light);
}

/* --------------------------------------------------------------------------
   10. ORDER SUCCESS & DOWNLOAD PAGE
   -------------------------------------------------------------------------- */
.success-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.success-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--success);
}

.download-hero-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   11. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.25rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary-light);
}

.faq-answer {
    padding: 0 1.75rem 1.5rem;
    color: var(--text-muted-light);
    font-size: 1rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   12. FOOTER STYLES
   -------------------------------------------------------------------------- */
.footer {
    background: #070910;
    padding: 5rem 0 2.5rem;
    border-top: 1px solid var(--border-dark);
    color: var(--text-muted-dark);
}

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

.footer-desc {
    margin: 1.25rem 0 1.5rem;
    font-size: 0.925rem;
    line-height: 1.6;
}

.windows-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #FFFFFF;
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted-dark);
    font-size: 0.925rem;
}

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

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

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-trust-list {
        justify-content: center;
    }

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-dark-secondary);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-dark);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-menu.open {
        clip-path: circle(140% at 100% 0);
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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