:root {
    --bg-start: #0f172a;
    --bg-end: #0f766e;
    --surface: #f8fafc;
    --surface-strong: #ffffff;
    --text-main: #0f172a;
    --text-soft: #475569;
    --primary: #0f766e;
    --secondary: #1d4ed8;
    --accent: #f59e0b;
    --border-soft: rgba(255, 255, 255, 0.25);
    --shadow-strong: 0 24px 60px rgba(2, 8, 23, 0.25);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.12);
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    background: var(--surface);
    color: var(--text-main);
    overflow-x: hidden;
}

#landingPage {
    min-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.45s ease;
    background: radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.25), transparent 34%),
        linear-gradient(140deg, var(--bg-start) 0%, #0b3e7a 50%, var(--bg-end) 100%);
}

#landingPage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(transparent 2%, rgba(0, 0, 0, 0.95) 26%);
    pointer-events: none;
}

#landingPage.fade-out {
    opacity: 0;
}

body.modal-active #landingPage {
    opacity: 0.65;
}

body.login-active #landingPage {
    opacity: 0.72;
}

body.modal-active #landingPage .header,
body.modal-active #landingPage .hero-section,
body.modal-active #landingPage .about-section {
    filter: blur(6px);
}

body.login-active #landingPage .header,
body.login-active #landingPage .hero-section,
body.login-active #landingPage .about-section {
    filter: blur(4px);
}

.header,
.hero-section,
.about-section {
    position: relative;
    z-index: 2;
}

.header {
    width: fit-content;
    margin: 1.5rem auto 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    animation: slideDown 0.65s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo {
    width: 160px;
    height: 68px;
    background: transparent;
    object-fit: contain;
    padding: 0;
    border-radius: 0;
}

.brand-group {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.company-name {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.02em;
}

.company-meta {
    font-size: 0.82rem;
    color: rgba(241, 245, 249, 0.85);
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.3);
    color: #ecfeff;
    font-size: 0.83rem;
    border: 1px solid rgba(148, 251, 236, 0.25);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.2);
}

.hero-section {
    width: min(1180px, calc(100% - 3rem));
    margin: 1.4rem auto 0;
    padding: 3.4rem 0 4.6rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

.hero-content {
    animation: slideRight 0.8s ease;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.14);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 1.12;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1.1rem;
    max-width: 13ch;
}

.hero-tagline {
    font-size: clamp(1.01rem, 1.5vw, 1.2rem);
    color: rgba(241, 245, 249, 0.92);
    line-height: 1.75;
    max-width: 60ch;
    margin-bottom: 1.4rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 2rem;
}

.hero-points span {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
    color: #ecfeff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.3);
}

.cta-button {
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
    color: #0f172a;
    padding: 0.95rem 1.6rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.33);
    filter: brightness(1.02);
}

.hero-illustration {
    animation: slideLeft 0.85s ease;
}

.hero-card {
    border-radius: 26px;
    padding: 1.4rem;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-strong);
}

.hero-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: #0f172a;
}

.hero-card ul {
    list-style: none;
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.hero-card li {
    font-size: 0.92rem;
    color: #334155;
    padding-left: 1.2rem;
    position: relative;
}

.hero-card li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--secondary);
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.hero-card img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.08), rgba(29, 78, 216, 0.08));
    padding: 0.9rem;
}

.about-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
    border-radius: 32px 32px 0 0;
    padding: 3.5rem 0 4.5rem;
    animation: fadeIn 0.8s ease;
}

.about-head,
.features-grid {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
}

.about-head {
    margin-bottom: 1.8rem;
}

.about-title {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    color: #0f172a;
    margin-bottom: 0.8rem;
}

.about-description {
    max-width: 72ch;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--surface-strong);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.65);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    box-shadow: var(--shadow-soft);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
}

.feature-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 0.7rem;
}

.feature-title {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

.feature-description {
    color: #475569;
    line-height: 1.65;
    font-size: 0.92rem;
}

#loadingScreen {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(145deg, #0f172a 0%, #0f766e 100%);
}

#loadingScreen.active {
    display: flex;
}

.loader {
    width: 66px;
    height: 66px;
    border-radius: 999px;
    border: 5px solid rgba(248, 250, 252, 0.22);
    border-top-color: #f8fafc;
    animation: spin 0.85s linear infinite;
}

#loginPage {
    min-height: 100%;
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.45s ease;
    background: transparent;
    z-index: 900;
}

#loginPage::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#loginPage.active {
    display: flex;
    opacity: 1;
}

#loginPage.active::before {
    opacity: 1;
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#loginPage.modal-open::before {
    opacity: 1;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

#loginPage.modal-open .login-container {
    filter: blur(4px);
    opacity: 0.75;
    transform: scale(0.985);
}

.login-container {
    width: min(660px, 100%);
    position: relative;
    z-index: 1;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 26px;
    padding: 2.1rem;
    box-shadow: var(--shadow-strong);
    animation: scaleIn 0.35s ease;
}

.login-header {
    margin-bottom: 1.4rem;
    text-align: center;
}

.login-title {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.login-subtitle {
    font-size: 0.98rem;
    color: #475569;
}

.role-buttons {
    display: grid;
    gap: 0.8rem;
}

.role-button {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.role-button:hover {
    border-color: #0f766e;
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.access-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1300;
}

.access-modal.active {
    display: flex;
}

.access-modal-card {
    width: min(540px, 100%);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #dbe2ea;
    padding: 1.4rem;
    position: relative;
    box-shadow: var(--shadow-strong);
    animation: scaleIn 0.25s ease;
}

.access-modal-close {
    position: absolute;
    top: 0.55rem;
    right: 0.8rem;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.access-modal-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.access-modal-card h3 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 0.55rem;
}

.access-modal-card p {
    color: #475569;
    line-height: 1.65;
    font-size: 0.95rem;
}

.access-modal-meta {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.45rem;
    color: #334155;
    font-size: 0.86rem;
}

.access-modal-actions {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.access-modal-actions .role-button {
    justify-content: center;
    font-weight: 700;
    padding: 0.75rem;
}

.role-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.role-text {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
}

.back-button {
    margin-top: 1.2rem;
    text-align: center;
}

.back-link {
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #0b4f49;
}

.landing-footer {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    text-align: center;
}

.footer-text {
    text-align: center;
    color: rgba(241, 245, 249, 0.9);
    font-size: 0.88rem;
    font-weight: 500;
}

.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 16px 28px rgba(10, 110, 56, 0.35);
    z-index: 1400;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(10, 110, 56, 0.45);
}

.wa-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

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

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

@media (max-width: 1024px) {
    .header-pill {
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding-top: 2rem;
    }

    .hero-title {
        max-width: 17ch;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header,
    .hero-section,
    .about-head,
    .features-grid,
    .landing-footer {
        width: calc(100% - 1.5rem);
    }

    .header {
        padding: 0.8rem;
        margin-top: 0.75rem;
    }

    .logo {
        width: 108px;
        height: 46px;
    }

    .company-name {
        font-size: 0.88rem;
    }

    .company-meta {
        font-size: 0.72rem;
    }

    .hero-section {
        padding: 1.3rem 0 3rem;
    }

    .hero-tagline {
        margin-bottom: 1.1rem;
    }

    .hero-points {
        margin-bottom: 1.2rem;
    }

    .hero-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .about-section {
        border-radius: 24px 24px 0 0;
        padding: 2.3rem 0 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .access-modal-actions {
        grid-template-columns: 1fr;
    }

    .login-container {
        padding: 1.35rem;
        border-radius: 18px;
    }

    .wa-float {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
    }
}
