:root {
    --background: #f0e7ff; /* lavender muda pastel */
    --foreground: #3b2a72; /* ungu gelap */
    --card: #ffffffcc; /* putih transparan dengan blur */
    --card-foreground: #4b367c;
    --primary: #c084fc; /* ungu pastel cerah */
    --primary-foreground: #fff;
    --secondary: #dbeafe; /* biru muda soft */
    --secondary-foreground: #3730a3;
    --muted: #e0d7f7;
    --muted-foreground: #7c3aedcc;
    --accent: #fbcfe8; /* pink soft */
    --accent-foreground: #831843;
    --destructive: #f87171; /* merah muda cerah */
    --destructive-foreground: #fff0f0;
    --border: #d8b4fe; /* ungu muda */
    --input: #f3e8ff;
    --ring: #a78bfa; /* ungu blur */
    --radius: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #d6bcfa, #fbcfe8 90%);
    color: var(--foreground);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: saturate(180%) blur(20px);
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInAnime 0.8s forwards;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow:
        0 8px 24px rgba(199, 144, 255, 0.3),
        0 0 12px rgba(248, 208, 255, 0.5);
    backdrop-filter: blur(12px);
    padding: 2rem;
}

@keyframes fadeInAnime {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideDownAnime 0.8s forwards;
    opacity: 0;
    transform: translateY(-25px);
}

@keyframes slideDownAnime {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fbc7ff, #8b5cf6, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px #d8b4feaa);
}

.subtitle {
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-style: italic;
    font-size: 1.15rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow:
        0 0 12px rgba(199, 144, 255, 0.4),
        inset 0 0 12px rgba(255, 255, 255, 0.4);
    border: 1.5px solid var(--primary);
    opacity: 0;
    transform: translateY(25px);
    transition: transform 0.3s ease;
    backdrop-filter: saturate(180%) blur(10px);
}

.card:hover {
    transform: translateY(15px) scale(1.03);
    box-shadow:
        0 0 20px #b986f7,
        inset 0 0 15px #d3b3ff;
}

.card-left {
    animation: slideUpAnime 0.6s 0.2s forwards;
}

.card-right {
    animation: slideUpAnime 0.6s 0.4s forwards;
}

@keyframes slideUpAnime {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    background: rgba(199, 144, 255, 0.1);
    padding: 1.8rem;
    border-bottom: 1.5px solid var(--primary);
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    filter: drop-shadow(0 0 4px #a78bfa);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-description {
    color: var(--muted-foreground);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.5;
}

.card-content {
    padding: 2rem 2rem 1.5rem 2rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(199, 144, 255, 0.1);
    border-top: 1.5px solid var(--primary);
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--primary);
}

input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 2px solid var(--input);
    background: var(--background);
    color: var(--foreground);
    font-size: 1.1rem;
    font-weight: 500;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(199, 144, 255, 0.1);
}

input::placeholder {
    color: var(--muted-foreground);
    font-style: italic;
}

input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 12px 3px rgba(199, 144, 255, 0.6);
    background: #faf5ff;
}

input.error {
    border-color: var(--destructive);
    box-shadow: 0 0 10px 2px rgba(248, 113, 113, 0.6);
}

.error-message {
    color: var(--destructive);
    font-size: 0.9rem;
    margin-top: 0.6rem;
    animation: shakeAnime 0.4s;
}

@keyframes shakeAnime {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

button {
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(199, 144, 255, 0.3);
    backdrop-filter: saturate(180%) blur(10px);
    color: var(--primary-foreground);
    border: none;
    background: var(--primary);
    filter: drop-shadow(0 0 6px #c084fc);
    user-select: none;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
}

button:hover:not(:disabled) {
    background: #d8b4fe;
    color: var(--foreground);
    transform: translateY(-3px);
    box-shadow:
        0 0 25px #d8b4fe,
        0 8px 30px rgba(199, 144, 255, 0.5);
}

button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(199, 144, 255, 0.4);
}

.feature {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(25px);
    filter: drop-shadow(0 0 4px #c084fcaa);
}

.feature:nth-child(1) { animation: slideLeftAnime 0.6s 0.5s forwards; }
.feature:nth-child(2) { animation: slideLeftAnime 0.6s 0.6s forwards; }
.feature:nth-child(3) { animation: slideLeftAnime 0.6s 0.7s forwards; }

@keyframes slideLeftAnime {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    background: linear-gradient(135deg, #fbc7ff, #a78bfa);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px #d8b4feaa;
    filter: drop-shadow(0 0 6px #c084fcaa);
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.15);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: #f0e7ff;
    filter: drop-shadow(0 0 2px #fff);
}

.feature-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--primary);
    filter: drop-shadow(0 0 4px #c084fc);
}

.feature-content p {
    color: var(--muted-foreground);
    font-size: 1rem;
    font-style: italic;
}

.how-it-works {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(199, 144, 255, 0.15);
    border-radius: var(--radius);
    border: 1.5px solid var(--primary);
    opacity: 0;
    animation: fadeInAnime 0.6s 0.8s forwards;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 0 10px #c084fcaa;
}

.how-it-works h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    filter: drop-shadow(0 0 4px #a78bfa);
}

.how-it-works ol {
    padding-left: 1.8rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    font-style: italic;
}

.how-it-works li {
    margin-bottom: 0.7rem;
}

.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow:
        0 0 20px #c084fcaa,
        0 8px 24px rgba(199, 144, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
    max-width: 380px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 5px solid #34d399;
}

.toast-error {
    border-left: 5px solid #f87171;
}

.toast-icon {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 3px #a78bfa);
}

.toast-success .toast-icon {
    color: #34d399;
}

.toast-error .toast-icon {
    color: #f87171;
}

.toast-message {
    font-size: 1rem;
}

.spinner {
    animation: spinAnime 1.2s linear infinite;
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 3px #a78bfa);
}

@keyframes spinAnime {
    to { transform: rotate(360deg); }
}

.success-icon {
    color: #34d399;
    margin-right: 0.6rem;
    width: 18px;
    height: 18px;
    animation: scaleInAnime 0.3s;
}

@keyframes scaleInAnime {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.pulse {
    animation: pulseAnime 2.5s infinite;
}

@keyframes pulseAnime {
    0% { box-shadow: 0 0 0 0 rgba(199, 144, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(199, 144, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(199, 144, 255, 0); }
}

.download-card {
    margin-top: 2rem;
    animation: slideUpAnime 0.6s 0.6s forwards;
    opacity: 0;
    transform: translateY(25px);
}

.hover-effect:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 40px rgba(199, 144, 255, 0.25),
        0 0 20px #c084fcaa;
}
