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

:root {
    --bg-color: #ffffff;
    --text-main: #202124;
    --text-muted: #5f6368;
    --google-blue: #1967d2;
    --google-red: #ea4335;
    --google-yellow: #fbbc05;
    --google-green: #34a853;
    --card-bg: #f8f9fa;
    --card-radius: 32px;
    --font-family: 'Google Sans', 'Product Sans', 'Roboto', Arial, Helvetica, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    padding: 24px;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 24px;
}

/* Pinwheel Icon - Google One Style */
.pinwheel-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 28px;
    position: relative;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.blade {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
}

.blade-blue {
    background: var(--google-blue);
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

.blade-red {
    background: var(--google-red);
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(45deg);
}

.blade-yellow {
    background: var(--google-yellow);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
}

.blade-green {
    background: var(--google-green);
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-135deg);
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Features Section - 3D Stacked Carousel */
.features-section {
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 320px;
    perspective: 1000px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-card {
    position: absolute;
    width: 280px;
    left: 50%;
    margin-left: -140px;
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Card positions */
.feature-card.prev-2 {
    transform: translateX(-220px) scale(0.75);
    opacity: 0;
    z-index: 1;
}

.feature-card.prev {
    transform: translateX(-180px) scale(0.85);
    opacity: 0.5;
    z-index: 2;
}

.feature-card.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.feature-card.next {
    transform: translateX(180px) scale(0.85);
    opacity: 0.5;
    z-index: 2;
}

.feature-card.next-2 {
    transform: translateX(220px) scale(0.75);
    opacity: 0;
    z-index: 1;
}

/* Default hidden state */
.feature-card:not(.active):not(.prev):not(.next):not(.prev-2):not(.next-2) {
    opacity: 0;
    transform: scale(0.7);
    z-index: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid #5f6368;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(95, 99, 104, 0.3);
}

.indicator.active {
    background: #5f6368;
}

/* Feature Icons */
.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-icon.orange svg {
    color: #f9ab00;
}

.feature-icon.blue svg {
    color: var(--google-blue);
}

.feature-icon.green svg {
    color: var(--google-green);
}

.feature-icon.red svg {
    color: var(--google-red);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

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

/* Pricing Section */
.pricing-section {
    text-align: center;
}

.pricing-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

/* Animated Gradient Border Keyframes */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pricing-card-wrapper {
    position: relative;
    padding: 3px;
    border-radius: 16px;
    background: linear-gradient(90deg,
            var(--google-blue),
            var(--google-red),
            var(--google-yellow),
            var(--google-green),
            var(--google-blue));
    background-size: 300% 100%;
    animation: gradientMove 4s ease infinite;
}

.pricing-card {
    position: relative;
    padding: 20px 12px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 13px;
    transition: background-color 0.2s ease;
}

.pricing-card:hover {
    background: #fafafa;
}

/* Card Action Button (Blue + button) */
.card-action-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--google-blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(25, 103, 210, 0.3);
}

.card-action-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.card-action-btn:hover {
    background: #1557b0;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(25, 103, 210, 0.4);
}

.card-action-btn:active {
    transform: scale(0.95);
}

.storage-size {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.price .currency {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--google-blue);
}

.price .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--google-blue);
    letter-spacing: -0.5px;
}

.period {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.discount-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--google-green);
    font-size: 0.75rem;
    font-weight: 500;
}

.discount-badge svg {
    width: 14px;
    height: 14px;
    fill: var(--google-green);
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 16px;
    }

    .header h1 {
        font-size: 1.625rem;
    }

    /* Mobile Carousel Fix */
    .features-section {
        overflow: hidden;
    }

    .carousel-container {
        height: 300px;
    }

    .feature-card {
        width: 240px;
        margin-left: -120px;
        padding: 24px 20px;
    }

    .feature-card.prev {
        transform: translateX(-140px) scale(0.8);
        opacity: 0.4;
    }

    .feature-card.next {
        transform: translateX(140px) scale(0.8);
        opacity: 0.4;
    }

    .feature-card.prev-2,
    .feature-card.next-2 {
        opacity: 0;
    }

    .feature-card p {
        font-size: 0.875rem;
    }

    .pricing-section h2 {
        font-size: 1.25rem;
    }

    .price .amount {
        font-size: 1.375rem;
    }
}

/* Tablet styles */
@media (min-width: 601px) and (max-width: 900px) {
    .header h1 {
        font-size: 1.875rem;
    }

    .carousel-container {
        max-width: 360px;
    }
}