/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a14;
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* =============================================
   BACKGROUND BLOBS
   ============================================= */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    animation: floatBlob 10s ease-in-out infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6c63ff, #a855f7);
    top: -120px;
    left: -120px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec4899, #f43f5e);
    top: 40%;
    right: -100px;
    animation-delay: 3s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #06b6d4, #3b82f6);
    bottom: -80px;
    left: 30%;
    animation-delay: 6s;
}

@keyframes floatBlob {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, 20px) scale(1.08);
    }
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* =============================================
   HEADER
   ============================================= */
.header {
    text-align: center;
    margin-bottom: 56px;
}

.badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.18);
    border: 1px solid rgba(108, 99, 255, 0.4);
    color: #a78bfa;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.header p {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* =============================================
   BILLING TOGGLE
   ============================================= */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 999px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: color 0.3s;
    cursor: pointer;
    user-select: none;
}

.toggle-label.active {
    color: #e2e8f0;
}

.save-tag {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 4px;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.switch input:checked+.slider {
    background: linear-gradient(135deg, #6c63ff, #a855f7);
}

.switch input:checked+.slider::before {
    transform: translateX(22px);
}

/* =============================================
   CARDS WRAPPER
   ============================================= */
.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
    align-items: start;
}

/* =============================================
   CARD
   ============================================= */
.card {
    position: relative;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1),
        box-shadow 0.35s cubic-bezier(.4, 0, .2, 1),
        border-color 0.35s;
    animation: cardFadeIn 0.6s ease both;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Staggered animation */
#card-basic {
    animation-delay: 0.05s;
}

#card-business {
    animation-delay: 0.15s;
}

#card-premium {
    animation-delay: 0.25s;
}

#card-advance {
    animation-delay: 0.35s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popular Card */
.card-popular {
    background: linear-gradient(145deg, rgba(108, 99, 255, 0.18), rgba(168, 85, 247, 0.14));
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.2), 0 20px 60px rgba(0, 0, 0, 0.35);
}

.card-popular:hover {
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.35), 0 30px 80px rgba(0, 0, 0, 0.5);
    border-color: rgba(168, 85, 247, 0.65);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6c63ff, #ec4899);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 18px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

/* =============================================
   CARD TOP
   ============================================= */
.plan-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 10px;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
}

/* =============================================
   PRICE BLOCK
   ============================================= */
.price-block {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.currency {
    font-size: 1.4rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1;
    margin-bottom: 8px;
}

.amount {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.card-popular .amount {
    background: linear-gradient(135deg, #ffffff, #f0abfc);
    -webkit-background-clip: text;
    background-clip: text;
}

.period {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 10px;
}

/* =============================================
   FEATURES LIST
   ============================================= */
.features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.features li {
    font-size: 0.92rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features li .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.features li .cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.features li:has(.check) {
    color: #e2e8f0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    border: none;
    outline: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #6c63ff, #ec4899);
    color: #fff;
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c73ff, #f06292);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5);
    transform: translateY(-3px);
}

.btn-primary:active,
.btn-outline:active {
    transform: translateY(0);
}

/* =============================================
   FOOTER NOTE
   ============================================= */
.footer-note {
    text-align: center;
    margin-top: 48px;
    color: #475569;
    font-size: 0.875rem;
}

.footer-note strong {
    color: #94a3b8;
}

/* =============================================
   TOAST
   ============================================= */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #6c63ff, #ec4899);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.4);
    opacity: 0;
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
    z-index: 999;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-wrapper {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 28px 24px 24px;
    }

    .header h1 {
        font-size: 1.8rem;
    }
}