/* --- Import Font & Global Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color-start: #14B8A6; /* Teal-500 */
    --primary-color-end: #06B6D4;   /* Cyan-500 */
    --primary-hover: #0F766E;      /* Teal-700 */
    
    --background-start: #F0F9FF; /* Sky-50 */
    --background-end: #F8FAFC;   /* Slate-50 */
    
    --card-background: rgba(255, 255, 255, 0.7);
    --card-border: rgba(226, 232, 240, 0.8);
    
    --text-primary: #0F172A;   /* Slate-900 */
    --text-secondary: #475569; /* Slate-600 */
    --text-heading-gradient: linear-gradient(45deg, var(--primary-color-start), var(--primary-color-end));
    
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.07);
    --border-radius: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global Styles & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-display: swap; /* Tambahan untuk performa */
    background-image: radial-gradient(circle at top left, var(--background-start), var(--background-end) 150%);
    color: var(--text-primary);
    line-height: 1.7;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Layout Container --- */
.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* --- Animasi Halus --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-hero, .how-it-works {
    animation: fadeIn 0.8s ease-out forwards;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
}

h1.main-title {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
    font-weight: 800;
    text-align: center;
    background: var(--text-heading-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

p.subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.15rem;
}

a {
    color: var(--primary-color-start);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--primary-hover);
}

/* --- Landing Page Sections --- */
.landing-hero {
    background: var(--card-background);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    margin-bottom: 4rem;
    text-align: center;
}

.cta-area {
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-image: linear-gradient(45deg, var(--primary-color-start), var(--primary-color-end));
    color: white !important;
    border: none;
    padding: 16px 32px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 15px rgba(20, 184, 166, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(20, 184, 166, 0.3);
    color: white;
}
.cta-button:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 15px rgba(20, 184, 166, 0.2);
}

.switch-form {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- How It Works Section --- */
.how-it-works {
    padding: 2rem 0;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: var(--text-heading-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: 0 5px 10px rgba(20, 184, 166, 0.2);
}
.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.step-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Other General Styles --- */
.auth-form, .profile-card, .share-link-box, .pesan-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem auto;
    max-width: 500px;
}
.auth-form h1, .profile-card h1 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}
input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    background-color: var(--background-end);
}
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color-start);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
    background-color: white;
}
textarea {
    resize: vertical;
    min-height: 120px;
}
button {
    width: 100%;
    background-image: linear-gradient(45deg, var(--primary-color-start), var(--primary-color-end));
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px rgba(20, 184, 166, 0.1);
}
button:hover {
    background-image: linear-gradient(45deg, var(--primary-hover), #0495a8);
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(20, 184, 166, 0.15);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
    }
    .landing-hero {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    .auth-form, .profile-card, .share-link-box, .pesan-container {
        padding: 1.5rem;
    }
    h1.main-title {
        letter-spacing: -1px;
    }
    p.subtitle {
        font-size: 1.05rem;
    }
}