/* =========================================================================
   NEXBOARD GOOGLE SHOWCASE - DESIGN SYSTEM & CSS
   Minimalist Dark Mode, Premium Screenshot Zoom Containers & Interactive Tabs.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #060913;
    --bg-surface: #0E1325;
    --bg-surface-hover: #151C33;
    
    --primary: #4F46E5;       /* Indigo 600 */
    --primary-light: #6366F1; /* Indigo 500 */
    --secondary: #8B5CF6;     /* Violet 500 */
    
    --accent-green: #10B981;  /* Emerald 500 */
    --accent-red: #EF4444;    /* Red 500 */
    --accent-yellow: #F59E0B; /* Amber 500 */
    
    --text-primary: #F8FAFC;  /* Slate 50 */
    --text-secondary: #94A3B8;/* Slate 400 */
    --text-muted: #64748B;    /* Slate 500 */
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 60px;
}

/* Glowing mesh circle backdrop */
body::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* =========================================================================
   HEADER
   ========================================================================= */
.header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    margin-bottom: 40px;
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand svg {
    color: var(--primary-light);
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.4));
}

.brand span {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFF, #CBD5E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 500;
}

/* =========================================================================
   TITLE & DESCRIPTION
   ========================================================================= */
.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.intro-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 16px;
}

.intro h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFF 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* =========================================================================
   INTERACTIVE SHOWCASE MODULE
   ========================================================================= */
.showcase-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.tab-btn {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}

.tab-btn:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--bg-surface-hover), rgba(79, 70, 229, 0.08));
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
}

.tab-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition);
}

.tab-btn.active .tab-icon {
    background: var(--primary-light);
    color: #FFF;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.tab-info h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tab-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Showcase Content Body (Split Screen: Left image, Right bullets) */
.showcase-content-wrapper {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 32px;
    align-items: start;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Image Showcase Window */
.screenshot-container {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #03050C;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    cursor: zoom-in;
}

.screenshot-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.screenshot-container:hover img {
    transform: scale(1.03);
}

.screenshot-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Screen options / features lists */
.details-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.details-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.details-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-item {
    display: flex;
    align-items: start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.15);
}

.option-icon {
    color: var(--accent-green);
    font-size: 1.15rem;
    margin-top: 3px;
}

.option-text h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.option-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* =========================================================================
   PURCHASE DECK
   ========================================================================= */
.purchase-card {
    background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 60%), var(--bg-surface);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.06);
}

.purchase-info h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.purchase-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
}

.purchase-action {
    text-align: right;
    flex-shrink: 0;
}

.purchase-price {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 12px;
}

.purchase-price span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    display: block;
    margin-top: -6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    color: #FFF;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45);
}

/* =========================================================================
   MODAL DIALOG / BILLING
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0D1122;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    width: 460px;
    max-width: 90%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.close-modal-btn {
    color: var(--text-secondary);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal-btn:hover {
    color: #FFF;
}

.modal-body {
    padding: 24px;
}

.checkout-summary {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-title h4 { font-size: 0.95rem; }
.summary-title p { font-size: 0.8rem; color: var(--text-secondary); }
.summary-price { font-family: 'Outfit', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--primary-light); }

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    color: #FFF;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.hidden {
    display: none !important;
}

/* Success Card inside modal */
.checkout-success {
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 1024px) {
    .showcase-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .intro h1 { font-size: 2.25rem; }
    .showcase-tabs { grid-template-columns: 1fr; }
    .purchase-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    .purchase-action {
        text-align: center;
        width: 100%;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}
