:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --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-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* --- bg-gradient-blue --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* --- MAIN CONTENT --- */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 1.5rem;
    /* Smaller font on mobile */
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.2;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1rem;
    color: var(--text-medium);
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .hero p {
        font-size: 1.125rem;
    }
}

/* Grid Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .card-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    /* Smaller padding on mobile */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 640px) {
    .card {
        padding: 2rem;
        gap: 1.5rem;
    }
}

/* Responsive Layout for very small screens (iPhone SE, etc) */
@media (max-width: 380px) {
    .card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-action {
        justify-content: center;
    }
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

/* Background Icon Decoration */
.card-bg-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    opacity: 0.05;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover .card-bg-icon {
    opacity: 0.15;
}

.card-bg-icon svg {
    width: 96px;
    height: 96px;
}

/* Card Icon Box */
.icon-box {
    flex-shrink: 0;
    width: 56px;
    /* Smaller icon box on mobile */
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

@media (min-width: 640px) {
    .icon-box {
        width: 64px;
        height: 64px;
    }
}

.card:hover .icon-box {
    transform: scale(1.1);
}

.icon-box svg {
    width: 28px;
    height: 28px;
}

@media (min-width: 640px) {
    .icon-box svg {
        width: 32px;
        height: 32px;
    }
}

/* Gradients */
.bg-gradient-indigo {
    background: linear-gradient(135deg, rgb(204, 44, 204), #9333ea);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #f6d43b, #d4d006);
}

.bg-gradient-darkblue {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #10b981, #16a34a);
}

/* Content */
.card-content {
    flex: 1;
    z-index: 10;
}

.card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    transition: color 0.2s;
}

@media (min-width: 640px) {
    .card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

.card:hover h3 {
    color: var(--primary-color);
}

.card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .card p {
        font-size: 0.95rem;
    }
}

.card-action {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.2s;
}

.card:hover .card-action {
    color: var(--primary-color);
}

.card-action svg {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.card:hover .card-action svg {
    transform: translateX(4px);
}

/* Bottom Bar */
.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(to right, #6366f1, #9333ea);
    transition: width 0.5s ease-out;
}

.card:hover .bottom-bar {
    width: 100%;
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 100px);
    /* Center horizontally, push down */
    background-color: #0f172a;
    color: white;
    padding: 12px 20px;
    border-radius: 9999px;
    /* Pill shape on mobile */
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    width: max-content;
    max-width: 90%;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .toast {
        left: auto;
        right: 24px;
        transform: translateY(100px);
        border-radius: 8px;
        /* Box shape on desktop */
        font-size: 1rem;
    }
}

.toast.show {
    opacity: 1;
}

@media (min-width: 768px) {
    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .toast.show {
        transform: translate(-50%, 0);
    }
}

.toast-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    /* Green 400 */
    border-radius: 50%;
    flex-shrink: 0;
}
svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}