* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    background-image: 
        radial-gradient(at 20% 30%, rgba(0, 255, 136, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(0, 255, 136, 0.05) 0px, transparent 50%);
    min-height: 100vh;
    color: #e0e0e0;
}

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

header {
    color: #00ff88;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #b0b0b0;
}

main {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: #00ff88;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.hero p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.cta-button {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #00ffaa 0%, #00dd7a 100%);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #1f1f1f 0%, #151515 100%);
    border: 1px solid rgba(0, 255, 136, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    color: #999;
}

.demo {
    background: linear-gradient(145deg, #1f1f1f 0%, #151515 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.15);
    margin-bottom: 3rem;
}

.demo h2 {
    text-align: center;
    color: #00ff88;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.subscription {
    background: linear-gradient(145deg, #1f1f1f 0%, #151515 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    text-align: center;
}

.subscription h2 {
    color: #00ff88;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 2rem;
}

.subscription p {
    color: #b0b0b0;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stripe-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Subscribe Page */
.subscription-main {
    background: linear-gradient(145deg, #1f1f1f 0%, #151515 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    text-align: center;
    max-width: 600px;
    margin: 4rem auto;
}

.subscription-main h2 {
    color: #00ff88;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.subscription-main > p {
    color: #b0b0b0;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.benefits-list {
    text-align: left;
    margin: 2rem auto 3rem;
    max-width: 400px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.check-icon {
    color: #00ff88;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.back-link {
    margin-top: 2rem;
}

.back-link a {
    color: #00ff88;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-link a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.demo-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-input input {
    flex: 1;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: #0a0a0a;
    color: #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.demo-input input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.demo-input button {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.demo-input button:hover {
    background: linear-gradient(135deg, #00ffaa 0%, #00dd7a 100%);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

.memory-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.memory-item {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.memory-item:hover {
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.15);
    transform: translateX(5px);
}

.memory-text {
    flex: 1;
    color: #e0e0e0;
}

.memory-time {
    font-size: 0.85rem;
    color: #666;
}

footer {
    text-align: center;
    color: #666;
    margin-top: 3rem;
    opacity: 0.8;
}

/* Authentication Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-box {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.2);
    max-width: 450px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #00ff88;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.auth-header .tagline {
    color: #999;
    font-size: 1rem;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #00ff88;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-subtitle {
    color: #999;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: #0a0a0a;
    color: #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group small {
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #999;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    accent-color: #00ff88;
}

.checkbox-label.terms {
    margin-bottom: 1.5rem;
}

.checkbox-label a {
    color: #00ff88;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.forgot-password {
    color: #00ff88;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.auth-button {
    width: 100%;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #00ffaa 0%, #00dd7a 100%);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 6px;
    border-left: 3px solid #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.success-message {
    color: #00ff88;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 6px;
    border-left: 3px solid #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: none;
}

.success-message:not(:empty) {
    display: block;
}

.switch-form {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.switch-form a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.oauth-section {
    margin-top: 2rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #666;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 255, 136, 0.2);
}

.divider span {
    padding: 0 1rem;
}

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

.oauth-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: #0a0a0a;
    color: #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.oauth-button:hover:not(:disabled) {
    border-color: rgba(0, 255, 136, 0.5);
    background: #1a1a1a;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.oauth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.oauth-button.google {
    color: #e0e0e0;
}

.oauth-button.github {
    color: #e0e0e0;
}

/* Logos */
.logo {
    height: 120px;
    width: auto;
    margin-right: 1rem;
}

.auth-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.header-logo-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User Menu in Header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-controls {
    display: flex;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: #00ff88;
    font-size: 0.9rem;
    opacity: 0.9;
}

.sign-in-btn,
.sign-out-btn {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sign-in-btn:hover,
.sign-out-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    main {
        padding: 1.5rem;
    }

    .demo-input {
        flex-direction: column;
    }

    .auth-box {
        padding: 2rem;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .oauth-buttons {
        flex-direction: column;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
}
