/* QuantumShelf Brand Colors & Variables */
:root {
    /* Primary Colors - Quantum Theme */
    --primary-900: #1a0a2e;
    --primary-800: #2d1b4e;
    --primary-700: #4a2c7a;
    --primary-600: #6b3fa0;
    --primary-500: #8b5cf6;  /* Main brand purple */
    --primary-400: #a78bfa;
    --primary-300: #c4b5fd;
    --primary-200: #ddd6fe;
    --primary-100: #ede9fe;

    /* Accent Colors - Electric Blue */
    --accent-600: #0891b2;
    --accent-500: #06b6d4;  /* Cyan accent */
    --accent-400: #22d3ee;
    --accent-300: #67e8f9;

    /* Neutral Colors */
    --gray-900: #0f0f14;
    --gray-800: #1a1a24;
    --gray-700: #2a2a3a;
    --gray-600: #4a4a5a;
    --gray-500: #6b6b7b;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;

    /* Semantic Colors */
    --success: #10b981;
    --error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
    --gradient-dark: linear-gradient(180deg, var(--gray-900) 0%, var(--primary-900) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 6rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--gray-900);
    color: var(--gray-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    gap: 1rem;
}

.nav-container .logo {
    margin-right: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--primary-500);
    border-radius: 8px;
    color: var(--primary-400);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.nav-cta:hover {
    background: var(--primary-500);
    color: var(--white);
}

.nav-discord {
    padding: 0.625rem 1.25rem;
    background: #5865F2;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.nav-discord:hover {
    background: #4752C4;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: var(--gradient-glow);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    color: var(--primary-400);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.platform-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid;
}

.platform-badge.available {
    background: rgba(46, 213, 115, 0.15);
    border-color: rgba(46, 213, 115, 0.4);
    color: #2ed573;
}

.platform-badge.available svg {
    color: #2ed573;
}

.platform-badge.coming-soon {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--gray-400);
}

.platform-badge.coming-soon svg {
    color: var(--gray-500);
}

.hero-signup {
    max-width: 480px;
}

.signup-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.email-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-base);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.email-input::placeholder {
    color: var(--gray-500);
}

.email-input.error {
    border-color: var(--error);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.form-note {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-box {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(8px);
}

.grid-item {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 12px;
    opacity: 0.6;
    animation: pulse 3s infinite ease-in-out;
}

.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.4s; }
.grid-item:nth-child(4) { animation-delay: 0.6s; }
.grid-item:nth-child(5) { animation-delay: 0.8s; opacity: 1; }
.grid-item:nth-child(6) { animation-delay: 1s; }
.grid-item:nth-child(7) { animation-delay: 1.2s; }
.grid-item:nth-child(8) { animation-delay: 1.4s; }
.grid-item:nth-child(9) { animation-delay: 1.6s; }

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.visual-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: glow 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Showcase Section */
.showcase {
    padding: var(--section-padding) 0;
    background: var(--gray-900);
    overflow-x: hidden;
    width: 100%;
}

.showcase .container {
    overflow-x: hidden;
}

.showcase-items {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
    max-width: 100%;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 100%;
}

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse > * {
    direction: ltr;
}

.showcase-content {
    max-width: 100%;
}

.showcase-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.showcase-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.showcase-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.showcase-features li {
    font-size: 1rem;
    color: var(--gray-300);
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.showcase-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-400);
    font-weight: 700;
    font-size: 1.125rem;
}

.showcase-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--gray-700);
    transition: var(--transition-base);
    width: 100%;
    max-width: 100%;
}

.showcase-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 80px rgba(139, 92, 246, 0.2);
}

.showcase-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}

/* Features Section */
.features {
    padding: var(--section-padding) 0;
    background: var(--gray-900);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-400);
    font-size: 1.125rem;
    margin-bottom: 4rem;
}

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

.feature-card {
    padding: 2rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 16px;
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary-500);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    color: var(--primary-400);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.feature-card p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--primary-900);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    pointer-events: none;
}

.cta-box {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-box > p {
    color: var(--gray-300);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.cta-form {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--gray-300);
    font-size: 0.9375rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-600);
    border-radius: 4px;
    position: relative;
    transition: var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.trust-badges {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.trust-badges span {
    display: block;
    margin-bottom: 0.75rem;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.badge-item {
    color: var(--gray-400);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--gray-800);
    border-top: 1px solid var(--gray-700);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 4rem 1.5rem 3rem;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-top: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 20px;
    padding: 3rem;
    max-width: 400px;
    text-align: center;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    color: var(--success);
    margin: 0 auto 1.5rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.modal-content p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.modal-content .btn {
    width: 100%;
}

/* Error Toast */
.error-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--error);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.error-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Button States */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-signup {
        max-width: 100%;
    }

    .signup-form {
        flex-direction: column;
    }

    .hero-visual {
        display: none;
    }

    .showcase .container {
        overflow-x: hidden;
    }

    .showcase-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        overflow-x: hidden;
    }

    .showcase-item.reverse {
        direction: ltr;
    }

    .showcase-items {
        gap: 4rem;
        width: 100%;
        overflow-x: hidden;
    }

    .showcase-item {
        width: 100%;
        overflow-x: hidden;
    }

    .showcase-content,
    .showcase-image {
        width: 100%;
        max-width: 100%;
    }

    .showcase-image img {
        width: 100% !important;
        max-width: 100% !important;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .platform-badges {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .showcase-content h3 {
        font-size: 1.5rem;
    }

    .showcase-content p {
        font-size: 1rem;
    }

    .showcase .container {
        padding: 0 1rem;
        overflow-x: hidden;
    }

    .showcase-items {
        gap: 3rem;
        width: 100%;
        padding: 0;
        overflow-x: hidden;
    }

    .showcase-item {
        width: 100%;
        padding: 0;
        overflow-x: hidden;
    }

    .showcase-content,
    .showcase-image {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .showcase-image img {
        max-width: 100vw !important;
    }

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

    .form-row {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .nav-discord {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .showcase .container {
        padding: 0 0.75rem;
        overflow-x: hidden;
    }

    .showcase-content h3 {
        font-size: 1.25rem;
    }

    .showcase-items {
        gap: 2rem;
        width: 100%;
        overflow-x: hidden;
    }

    .showcase-item {
        width: 100%;
        overflow-x: hidden;
    }

    .showcase-content,
    .showcase-image {
        width: 100%;
        max-width: 100%;
    }

    .showcase-image img {
        max-width: calc(100vw - 1.5rem) !important;
    }

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

    .badges {
        flex-wrap: wrap;
        gap: 1rem;
    }
}
