/* ====== CSS Variables ====== */
:root {
    --color-bg: #ffffff;
    --color-surface: rgba(255, 255, 255, 0.7);
    --color-border: rgba(16, 185, 129, 0.2);

    --color-primary: #10b981;
    --color-primary-dark: #059669;
    --color-primary-light: #d1fae5;

    --color-text-main: #0f172a;
    --color-text-muted: #64748b;

    --shadow-btn: 0 4px 14px rgba(16, 185, 129, 0.3);
    --shadow-btn-hover: 0 6px 20px rgba(16, 185, 129, 0.4);

    --radius-pill: 999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
.logo span {
    font-family: 'Poppins', sans-serif;
}

.text-primary {
    color: var(--color-primary);
}

/* ====== PASSWORD GATE ====== */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0f1a 0%, #0f1a2e 40%, #0d2233 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: hidden;
}

.password-overlay.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

/* Floating particles behind the box */
.pw-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pw-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--color-primary);
    animation: pw-float 8s ease-in-out infinite;
}

.pw-particle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.pw-particle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -8%;
    left: -3%;
    animation-delay: -3s;
}

.pw-particle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 60%;
    animation-delay: -5s;
}

@keyframes pw-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.password-box {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2.5rem;
    border-radius: 28px;
    text-align: center;
    max-width: 440px;
    width: 92%;
    color: white;
    position: relative;
    z-index: 2;
    animation: pw-appear 0.8s ease forwards;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

@keyframes pw-appear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pw-logo-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.pw-logo-icon i {
    font-size: 2rem;
    color: white;
}

.password-box h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.pw-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.password-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pw-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0 1.25rem;
    transition: border-color 0.3s, background 0.3s;
}

.pw-input-wrap:focus-within {
    border-color: var(--color-primary);
    background: rgba(16, 185, 129, 0.05);
}

.pw-input-wrap i {
    color: #64748b;
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.pw-input-wrap input {
    background: none;
    border: none;
    padding: 1rem 0;
    color: white;
    font-size: 1rem;
    width: 100%;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.pw-input-wrap input::placeholder {
    color: #475569;
}

.pw-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    font-family: 'Inter', sans-serif;
}

.pw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.pw-btn:active {
    transform: translateY(0);
}

.password-error {
    color: #ef4444;
    margin-top: 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.password-error.visible {
    opacity: 1;
    transform: translateY(0);
}

.pw-footer-text {
    color: #475569;
    font-size: 0.8rem;
    margin-top: 1.5rem;
}

/* Main Content hidden until password */
.main-content-hidden {
    display: none !important;
}

/* ====== LANDING PAGE ====== */

/* Background Blur Effect */
.blob-bg {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-primary-light) 0%, rgba(209, 250, 229, 0) 70%);
}

/* Header */
.minimal-nav {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo i {
    color: var(--color-primary);
    font-size: 2rem;
}

/* Main Minimal Content */
.minimal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    text-align: center;
    z-index: 10;
}

.hero-minimal {
    max-width: 800px;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--color-text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

/* CTA */
button {
    font-family: 'Inter', sans-serif;
    outline: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-btn);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.cta-pulse {
    animation: pulseGlow 2s infinite;
}

/* Features Inline */
.features-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.feature-divider {
    width: 4px;
    height: 4px;
    background-color: var(--color-border);
    border-radius: 50%;
}

/* Footer */
.minimal-footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    z-index: 10;
}

.disclaimer {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.disclaimer i {
    color: var(--color-primary);
    vertical-align: middle;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@media (max-width: 600px) {
    .features-minimal {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-divider {
        display: none;
    }
}

/* ====== Custom WhatsApp Chat Widget ====== */
.wa-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.2s;
}

.wa-floating-btn i {
    font-size: 28px;
    color: white;
}

.wa-floating-btn:hover {
    transform: scale(1.1);
}

.pulse-attention {
    animation: pulseGlow 2s infinite;
}

.wa-widget {
    position: fixed;
    bottom: 90px;
    right: 2rem;
    width: 380px;
    height: 520px;
    background-color: #efeae2;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
    transform-origin: bottom right;
}

.wa-widget.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.wa-header {
    background: linear-gradient(135deg, #065f46, #047857);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wa-info {
    display: flex;
    flex-direction: column;
}

.wa-info strong {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: white;
}

.wa-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.wa-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.wa-close:hover {
    opacity: 1;
}

.wa-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: cover;
    position: relative;
}

.wa-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    color: #667781;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

.wa-empty-state i {
    font-size: 3rem;
    opacity: 0.5;
}

.wa-empty-state p {
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wa-message {
    display: flex;
    max-width: 85%;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.3s ease forwards;
    flex-direction: column;
}

.wa-message.bot {
    align-self: flex-start;
}

.wa-message.user {
    align-self: flex-end;
}

.wa-bubble {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
    color: #111b21;
}

.wa-bubble img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 4px;
}

.bot .wa-bubble {
    background-color: white;
    border-top-left-radius: 0;
}

.user .wa-bubble {
    background-color: #dcf8c6;
    border-top-right-radius: 0;
}

.wa-time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: #999;
    margin-top: 0.25rem;
}

.wa-footer {
    background-color: #f0f0f0;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wa-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #54656f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wa-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.wa-send {
    background-color: #00a884;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
}

@media (max-width: 600px) {
    .wa-widget {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .wa-floating-btn {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .password-box {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}