@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   DESIGN SYSTEM — LAMIN PSIKOLOGI (Clean Clinical)
   ============================================================ */
:root {
    --primary:        #0d9488;
    --primary-light:  #14b8a6;
    --primary-dark:   #0f766e;
    --primary-bg:     #f0fdfa;
    --primary-ring:   rgba(13, 148, 136, 0.2);
    --accent:         #fbbf24;
    --accent-dark:    #f59e0b;
    --danger:         #ef4444;
    --success:        #10b981;
    --text-dark:      #0f172a;
    --text-mid:       #475569;
    --text-light:     #94a3b8;
    --bg-base:        #f8fafc;
    --bg-surface:     #ffffff;
    --border:         #e2e8f0;
    --border-focus:   #0d9488;
    /* Legacy compat */
    --primary-color:  #0d9488;
    --primary-hover:  #0f766e;
    --glass-bg:       rgba(255,255,255,0.92);
    --glass-border:   #e2e8f0;
}

* { margin:0; padding:0; box-sizing:border-box; font-family:'Outfit',sans-serif; }

body {
    background: linear-gradient(160deg,#f0fdfa 0%,#ecfeff 40%,#f8fafc 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}
body::before {
    content:'';
    position:fixed; inset:0;
    background-image: radial-gradient(circle,rgba(13,148,136,0.055) 1px,transparent 1px);
    background-size: 28px 28px;
    pointer-events:none; z-index:0;
}

.mobile-wrapper {
    width:100%; max-width:480px; margin:0 auto; min-height:100vh;
    background:var(--bg-base); position:relative; z-index:1;
    display:flex; flex-direction:column;
    padding:2rem 1.5rem; overflow-x:hidden;
    animation:fadeInUp 0.5s cubic-bezier(0.16,1,0.3,1);
}

.landing-wrapper {
    width:100%; max-width:480px; margin:0 auto; min-height:100vh;
    background:transparent; position:relative; z-index:1;
    display:flex; flex-direction:column;
    padding:0; overflow-x:hidden;
    animation:fadeInUp 0.5s cubic-bezier(0.16,1,0.3,1);
}

@keyframes fadeInUp {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Landing Layout */
.landing-content { display:flex; flex-direction:column; align-items:center; text-align:center; gap:2rem; flex:1; margin-top:2rem; }
.landing-title-container { width:100%; }
.landing-action-container { margin:2rem 0; }

.btn-capsule-glass {
    display:inline-block; padding:1rem 3rem; font-size:18px; font-weight:600;
    text-align:center; border-radius:50px; border:2px solid var(--primary);
    cursor:pointer; transition:all 0.3s ease; text-decoration:none;
    background:var(--primary); color:white;
    box-shadow:0 8px 24px var(--primary-ring);
}
.btn-capsule-glass:hover { background:var(--primary-dark); transform:translateY(-3px); box-shadow:0 14px 32px rgba(13,148,136,0.35); }

.landing-about-container {
    background:rgba(255,255,255,0.85); border:1px solid var(--border);
    border-radius:24px; padding:1.5rem; width:100%;
    box-shadow:0 4px 20px rgba(0,0,0,0.04);
}

.landing-stats-container { margin-top:auto; width:100%; }
.stats-glass-bar {
    display:flex; justify-content:space-around; align-items:center;
    background:white; border:1px solid var(--border); border-radius:50px;
    padding:15px 20px; margin-bottom:2rem;
    box-shadow:0 4px 20px rgba(0,0,0,0.05);
}
.stat-divider { width:1px; height:30px; background:var(--border); }

/* Typography */
.title-serif {
    font-family:'Playfair Display',serif; font-weight:700;
    font-size:2.2rem; line-height:1.2; text-align:center;
    color:var(--text-dark); margin-bottom:2rem;
}

/* Cards — white surface */
.glass-card-dark {
    background:var(--bg-surface); border:1px solid var(--border);
    border-radius:20px; padding:1.5rem; width:100%; margin-bottom:0;
    box-shadow:0 4px 20px rgba(0,0,0,0.06);
    transition:box-shadow 0.25s ease, transform 0.25s ease;
}
.glass-card-dark:hover { box-shadow:0 8px 30px rgba(0,0,0,0.09); transform:translateY(-2px); }

.landing-card { margin:0!important; border-radius:24px 24px 0 0!important; border-bottom:none!important; box-shadow:0 -8px 40px rgba(0,0,0,0.08)!important; }

/* Auth Tabs */
.auth-tabs { display:flex; justify-content:flex-end; gap:8px; margin-bottom:2rem; }
.auth-tab {
    padding:6px 18px; border-radius:50px; border:1px solid var(--border);
    color:var(--text-mid); font-size:14px; font-weight:500;
    background:transparent; cursor:pointer; transition:all 0.25s ease;
}
.auth-tab.active { background:var(--primary); border-color:var(--primary); color:white; box-shadow:0 4px 12px var(--primary-ring); }
.auth-tab:hover:not(.active) { background:var(--primary-bg); border-color:var(--primary-light); color:var(--primary); }

/* Form Elements */
.form-group { margin-bottom:1.2rem; width:100%; }
.form-group label { display:none; }

.capsule-input {
    width:100%; padding:0.85rem 1.4rem;
    background:var(--bg-base); border:1.5px solid var(--border); border-radius:50px;
    outline:none; font-size:14px; font-weight:500; color:var(--text-dark);
    transition:all 0.25s ease; font-family:'Outfit',sans-serif;
}
.capsule-input::placeholder { color:var(--text-light); }
.capsule-input:focus { background:white; border-color:var(--border-focus); box-shadow:0 0 0 3px var(--primary-ring); }

.capsule-textarea {
    width:100%; padding:1.2rem 1.5rem;
    background:var(--bg-base); border:1.5px solid var(--border); border-radius:20px;
    outline:none; font-size:14px; color:var(--text-dark);
    min-height:200px; resize:none; transition:all 0.25s ease;
    line-height:1.7; font-family:'Outfit',sans-serif;
}
.capsule-textarea::placeholder { color:var(--text-light); }
.capsule-textarea:focus { background:white; border-color:var(--border-focus); box-shadow:0 0 0 3px var(--primary-ring); }

/* Button */
.btn-capsule {
    display:inline-block; padding:0.8rem 2rem; font-size:15px; font-weight:600;
    text-align:center; border-radius:50px; border:2px solid var(--primary);
    cursor:pointer; transition:all 0.25s ease; text-decoration:none;
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    color:white; box-shadow:0 4px 14px var(--primary-ring);
    font-family:'Outfit',sans-serif;
}
.btn-capsule:hover { background:linear-gradient(135deg,var(--primary-dark),var(--primary)); transform:translateY(-2px); box-shadow:0 8px 22px rgba(13,148,136,0.35); }
.btn-capsule:active { transform:scale(0.97); }

/* Logo Badge */
.logo-circle {
    width:60px; height:60px;
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    border-radius:50%; display:flex; justify-content:center; align-items:center;
    position:absolute; top:2rem; right:1.5rem;
    font-size:9px; font-weight:700; color:white;
    box-shadow:0 6px 20px var(--primary-ring);
    letter-spacing:0.5px; text-align:center; line-height:1.2;
}

/* Progress Text */
.progress-text { text-align:left; font-size:14px; color:var(--text-mid); margin-bottom:2rem; margin-top:5rem; }
.progress-text strong { color:var(--text-dark); font-weight:700; font-size:24px; display:block; }

/* Stats */
.stats-container { display:flex; justify-content:space-around; padding:12px 0; border-bottom:1px solid var(--border); margin-bottom:1rem; }
.stat-item { text-align:center; }
.stat-item > span { display:block; font-size:11px; color:var(--text-mid); font-weight:500; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:4px; }
.stat-item strong { font-size:22px; font-weight:700; color:var(--primary); }
.stat-item strong span { display:inline; font-size:inherit; color:inherit; font-weight:inherit; text-transform:none; letter-spacing:normal; margin-bottom:0; }

/* Utilities */
.text-center { text-align:center; }
.mt-4 { margin-top:1.5rem; }
.mb-4 { margin-bottom:1.5rem; }
.flex { display:flex; }
.justify-between { justify-content:space-between; }
.items-center { align-items:center; }

/* Layout Toggles */
.mobile-layout-only { display:flex; flex-direction:column; flex:1; min-height:100vh; justify-content:flex-end; }
.desktop-layout-only { display:none; }

/* ============================================================
   DESKTOP (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
    body { background:linear-gradient(160deg,#f0fdfa 0%,#ecfeff 40%,#f8fafc 100%); background-attachment:fixed; }

    .mobile-wrapper { max-width:1200px; padding:4rem; background:transparent; box-shadow:none; justify-content:flex-start; }

    .landing-wrapper { width:100%; max-width:100%; padding:0; margin:0; min-height:100vh; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }

    .landing-content { flex-direction:row; justify-content:space-between; align-items:center; width:100%; max-width:1400px; margin:0 auto; flex:1; padding:0 5rem; position:relative; }

    .landing-title-container { flex:1; display:flex; justify-content:flex-start; }
    .title-serif { text-align:left; font-size:3.5rem; margin:0; color:var(--text-dark); text-shadow:none; }

    .landing-action-container { position:absolute; left:50%; top:80%; transform:translate(-50%,-50%); margin:0; }

    .landing-about-container { flex:1; max-width:350px; background:rgba(255,255,255,0.88); border:1px solid var(--border); border-radius:20px; padding:1.5rem 2rem; text-align:right; box-shadow:0 4px 20px rgba(0,0,0,0.05); }

    .about-title { text-align:right; font-size:20px; font-weight:700; margin-bottom:10px; color:var(--text-dark); }
    .about-desc { text-align:right; font-size:14px; line-height:1.6; color:var(--text-mid); }

    .landing-stats-container { width:100%; display:flex; justify-content:center; margin-bottom:3rem; }
    .stats-glass-bar { width:600px; padding:20px 40px; border-radius:50px; background:white; border:1px solid var(--border); box-shadow:0 8px 30px rgba(0,0,0,0.06); margin-bottom:0; }

    .stat-item > span { font-size:13px; }
    .stat-item strong { font-size:32px; }

    .capsule-input { padding:1.1rem 2rem; font-size:16px; }
    .btn-capsule { padding:1rem 2.5rem; font-size:18px; }

    .logo-circle { display:none!important; }
    .stats-container { padding:20px 0; margin-bottom:2rem; }

    .mobile-layout-only { display:none!important; }
    .desktop-layout-only { display:flex; flex-direction:column; justify-content:space-between; flex:1; width:100%; height:100%; }
}
