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

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

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

/* Glassmorphism Classes */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Cards */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.plan-type {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.93rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li::before {
    content: '✓';
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Auth Pages */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 3rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: white;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Feedback/Toasts */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    background: #10b981;
    color: white;
    transform: translateY(100px);
    transition: transform 0.3s;
    z-index: 1000;
}

.toast.error {
    background: #ef4444;
}

.toast.show {
    transform: translateY(0);
}

/* Comparison Table */
.comparison-section {
    margin-top: 8rem;
    text-align: center;
}

.comparison-table {
    width: 100%;
    margin-top: 3rem;
    border-collapse: collapse;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    font-weight: 600;
}

.comparison-table td:first-child {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
}

.check-icon {
    color: #10b981;
    font-weight: bold;
}

.cross-icon {
    color: #f43f5e;
    font-weight: bold;
}

/* Guided Quiz */
.quiz-section {
    margin: 8rem 0;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 2rem;
    border: 1px dashed rgba(99, 102, 241, 0.3);
}

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

.quiz-card {
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quiz-card:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
    border-color: var(--primary);
}

/* Trust & Steps */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 8rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.steps-list {
    list-style: none;
    margin-top: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.payment-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 0.6;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }

    .quiz-section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .hero {
        margin-bottom: 3.5rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.75rem);
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .quiz-section {
        margin: 4rem 0;
        padding: 2rem 1rem;
        border-radius: 1.5rem;
    }

    .quiz-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .quiz-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quiz-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison-section {
        margin-top: 4rem;
    }

    .comparison-section h2 {
        font-size: 1.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        min-width: 100px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        margin-top: 4rem;
    }

    .trust-grid>div:first-child {
        order: 1;
    }

    .trust-grid>div:last-child {
        order: 2;
        text-align: center !important;
    }

    .trust-grid h2 {
        font-size: 1.75rem;
        text-align: center;
    }

    .payment-icons {
        justify-content: center !important;
        margin-top: 1.5rem;
    }

    .step-item {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .step-item h4 {
        font-size: 1.1rem;
    }

    .auth-card {
        padding: 2rem 1.25rem;
    }

    .toast {
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        width: calc(100% - 2rem);
        right: auto;
        bottom: 1rem;
        text-align: center;
    }

    .toast.show {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.35rem;
    }

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

    .plan-card {
        padding: 1.75rem;
    }

    .nav-links li a {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.6rem 1rem;
    }
}