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

:root {
    --primary-red: #B91C1C;
    --maroon: #7F1D1D;
    --deep-maroon: #4C1D1D;
    --cream: #FEF7ED;
    --off-white: #FEFAF9;
    --warm-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #6B7280;
    
    --font-serif: 'Crimson Text', serif;
    --font-sans: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--warm-white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

/* Header */
.header {
    background: var(--warm-white);
    border-bottom: 1px solid var(--cream);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-brand h1 {
    font-size: 1.75rem;
    color: var(--primary-red);
    font-weight: 600;
    margin: 0;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: var(--cream);
}

.hamburger-line {
    width: 1.25rem;
    height: 2px;
    background: var(--text-dark);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-line:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-4px);
}

.hamburger-line:nth-child(2) {
    transform: translate(-50%, -50%);
}

.hamburger-line:nth-child(3) {
    transform: translate(-50%, -50%) translateY(4px);
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--maroon);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: white;
}

.btn-primary.large, .btn-secondary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--cream) 100%);
}

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

.hero-title {
    font-size: 3.5rem;
    color: var(--deep-maroon);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
}

.collection-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    transform: rotate(2deg);
}

.collection-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-4px);
}

.collection-card:nth-child(1) {
    transform: rotate(-3deg);
}

.collection-card:nth-child(2) {
    transform: rotate(1deg) translateY(2rem);
}

.collection-card:nth-child(3) {
    transform: rotate(-1deg) translateY(1rem);
    grid-column: 1 / -1;
}

.card-image {
    height: 8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.collection-card:nth-child(1) .card-image {
    background-image: url('./images/watch-optimized.jpg');
}

.collection-card:nth-child(2) .card-image {
    background-image: url('./images/pokemon-optimized.jpg');
}

.collection-card:nth-child(3) .card-image {
    background-image: url('./images/art-optimized.jpg');
}

.card-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.value {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--warm-white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--deep-maroon);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--off-white);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature h3 {
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: var(--cream);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Early Access Section */
.early-access {
    padding: 6rem 0;
    background: var(--warm-white);
}

.early-access-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.early-access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.early-access-benefits {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.early-access-benefits h3 {
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 1.5rem;
}

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

.benefits-list li {
    padding: 0.75rem 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.2rem;
}

.signup-form {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(185, 28, 28, 0.1);
}

.signup-form h3 {
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input:not([type="checkbox"]),
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(185, 28, 28, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group select {
    /* Remove Safari/iOS styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Add custom dropdown arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    
    /* Fix Safari text color */
    color: var(--text-dark);
}

.form-group select option {
    color: var(--text-dark);
    background: white;
}

.form-group input:not([type="checkbox"]):focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.checkbox-label input[type="checkbox"] {
    /* Remove default styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Force small size for all browsers */
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    
    border: 1px solid rgba(185, 28, 28, 0.3);
    border-radius: 3px;
    background: white;
    cursor: pointer;
    position: relative;
    margin: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
    
    /* Additional Safari fixes */
    -webkit-transform: scale(1);
    transform: scale(1);
}

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

.checkbox-label input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

/* Success Page Styles */
.success-section {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--cream) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.success-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-lg);
}

.success-title {
    font-size: 3rem;
    color: var(--deep-maroon);
    margin-bottom: 1rem;
}

.success-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.success-details {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    text-align: left;
}

.success-details h3 {
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 1.5rem;
    text-align: center;
}

.next-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    padding: 0.75rem 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
}

.next-steps li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.2rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-share {
    text-align: center;
}

.social-share p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Success Toast Styles */
.success-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.toast-content {
    background: white;
    border: 1px solid var(--primary-red);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.toast-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-message h4 {
    font-size: 1.1rem;
    color: var(--maroon);
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.toast-message p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.toast-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.toast-close:hover {
    background: var(--cream);
    color: var(--primary-red);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--primary-red) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

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

.cta .btn-primary:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--deep-maroon);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    text-align: center;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--cream);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--cream);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        gap: 0;
        width: 100%;
        z-index: 100;
    }
    
    .nav-links.nav-open {
        display: flex;
    }
    
    .nav-links a,
    .nav-links button {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--cream);
        text-align: center;
        width: 100%;
    }
    
    .nav-links a:last-child,
    .nav-links button:last-child {
        border-bottom: none;
    }
    
    .nav-links .btn-primary {
        background: transparent;
        color: var(--primary-red);
        border: none;
        box-shadow: none;
        margin: 0;
        font-size: 1rem;
        font-weight: 500;
    }
    
    .nav-links .btn-primary:hover {
        background: var(--cream);
        transform: none;
        box-shadow: none;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .collection-preview {
        transform: none;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .collection-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .collection-card {
        transform: none !important;
    }
    
    .collection-card:nth-child(3) {
        grid-column: 1 / -1;
        width: 70%;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .early-access-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .early-access-benefits,
    .signup-form {
        margin-bottom: 2rem;
    }
    
    .success-title {
        font-size: 2.5rem;
    }
    
    .success-details {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .success-actions {
        gap: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .success-toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .toast-content {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary.large, .btn-secondary.large {
        width: 100%;
        max-width: 300px;
    }
}