/* ==========================================
   LADLI LIFE CHAT - MAIN STYLESHEET
========================================== */

:root {
    --orange: #ff7900;
    --orange-dark: #ed4b13;
    --purple: #7627e8;
    --pink: #ed3e86;
    --navy: #171b43;
    --text: #343b55;
    --muted: #737b91;
    --background: #fffaf6;
    --white: #ffffff;
    --border: #eee8e5;
    --shadow: 0 16px 45px rgba(39, 27, 65, 0.09);
    --gradient: linear-gradient(120deg, #ff8a00, #f0444f 55%, #9226ec);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

[hidden] {
    display: none !important;
}


/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name strong {
    font-size: 25px;
    letter-spacing: -1px;
    font-weight: 850;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-name small {
    margin-top: 4px;
    font-size: 16px;
    color: var(--purple);
    font-weight: 650;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: var(--text);
    font-size: 14px;
    padding: 10px 0;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* BUTTONS */

.btn {
    min-height: 46px;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 50px;
    border: 1px solid transparent;
    font-weight: 650;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--gradient);
    box-shadow: 0 8px 22px rgba(239, 83, 39, 0.19);
}

.btn-primary:hover {
    box-shadow: 0 12px 28px rgba(239, 83, 39, 0.28);
}

.btn-outline {
    background: var(--white);
    color: var(--orange-dark);
    border-color: var(--orange);
}

.btn-large {
    min-height: 54px;
    padding: 14px 25px;
    font-size: 15px;
}

.btn-white {
    background: var(--white);
    color: var(--orange-dark);
}

.admin-btn {
    white-space: nowrap;
}


/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 88% 40%, #ffe2c3 0%, transparent 42%),
        linear-gradient(120deg, #fffaf6 0%, #fff7f0 50%, #fff0f5 100%);
    padding: 76px 0 82px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    align-items: center;
    gap: 55px;
}

.eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: #ffeadb;
    color: #d84b15;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 22px;
}

.eyebrow span {
    color: var(--purple);
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(36px, 4.3vw, 59px);
    font-weight: 850;
    letter-spacing: -2px;
    line-height: 1.15;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h2 {
    margin-top: 18px;
    font-size: clamp(21px, 2.5vw, 29px);
    line-height: 1.5;
}

.hero-description {
    margin-top: 16px;
    max-width: 570px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.9;
}

.trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.trust-points span {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #f4e7df;
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 12px;
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.small-note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
}


/* CHAT PREVIEW */

.hero-visual {
    min-height: 460px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
}

.decor {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.decor-one {
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg, #ff9b26, #f24c8e);
    opacity: 0.88;
    right: 5%;
    top: 9%;
}

.decor-two {
    width: 190px;
    height: 190px;
    background: #8a42ee;
    opacity: 0.16;
    left: 0;
    bottom: 3%;
}

.chat-preview {
    width: min(100%, 350px);
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 65px rgba(46, 25, 63, 0.2);
    border: 1px solid #f0e9f1;
    transform: rotate(1deg);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 19px;
    border-bottom: 1px solid var(--border);
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-brand img {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.preview-brand div,
.floating-badge div {
    display: flex;
    flex-direction: column;
}

.preview-brand strong {
    font-size: 14px;
}

.preview-brand small,
.floating-badge small {
    font-size: 11px;
    color: var(--muted);
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #26b66b;
    box-shadow: 0 0 0 4px #e2f8eb;
}

.preview-body {
    padding: 23px 17px;
    min-height: 285px;
    background: #fcfaff;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 15px;
}

.message small {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    opacity: 0.75;
}

.received {
    align-self: flex-start;
    background: var(--white);
    border: 1px solid #eeeaf4;
    border-bottom-left-radius: 4px;
}

.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #8738ec, #a43be0);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.photo-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
}

.photo-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: #fff0e3;
    border-radius: 10px;
    font-size: 21px;
}

.photo-preview strong,
.photo-preview small {
    display: block;
}

.photo-preview strong {
    font-size: 12px;
}

.photo-preview small {
    font-size: 10px;
    color: var(--muted);
}

.preview-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 17px;
    color: #9a9bad;
    font-size: 12px;
}

.send-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: grid;
    place-items: center;
}

.floating-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--white);
    border: 1px solid #f4eeee;
    border-radius: 15px;
    padding: 13px 16px;
    box-shadow: var(--shadow);
}

.floating-badge > span {
    font-size: 24px;
}

.floating-badge strong {
    font-size: 12px;
}

.badge-top {
    top: 7%;
    left: -4%;
}

.badge-bottom {
    bottom: 5%;
    right: -5%;
}


/* FEATURES */

.section-padding {
    padding: 78px 0;
}

.section-heading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 38px;
}

.section-label {
    display: inline-block;
    color: var(--orange-dark);
    font-weight: 750;
    font-size: 11px;
    letter-spacing: 1.7px;
}

.section-heading h2,
.cta-box h2 {
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.35;
    margin-top: 8px;
}

.section-heading p,
.cta-box p {
    color: var(--muted);
    margin-top: 10px;
    font-size: 14px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 26px 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 57px;
    height: 57px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    font-size: 25px;
    margin-bottom: 20px;
}

.feature-icon.orange {
    background: #fff0df;
}

.feature-icon.purple {
    background: #f0e8ff;
}

.feature-icon.pink {
    background: #ffe7f0;
}

.feature-icon.green {
    background: #e1f8e9;
}

.feature-card h3 {
    font-size: 17px;
    margin-bottom: 9px;
}

.feature-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}


/* CALL TO ACTION */

.cta-section {
    padding: 10px 0 75px;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 42px;
    border-radius: 25px;
    color: var(--white);
    background: var(--gradient);
}

.cta-box .section-label,
.cta-box p {
    color: rgba(255, 255, 255, 0.88);
}

.cta-box h2 {
    font-size: clamp(23px, 3vw, 32px);
}


/* FOOTER */

.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-bottom: 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
}

.footer-brand .brand-name strong {
    font-size: 19px;
}

.footer-brand .brand-name small {
    font-size: 12px;
}

.footer-inner > p,
.footer-links a {
    font-size: 12px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
}


/* MODALS */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 20px;
    background: rgba(20, 19, 43, 0.64);
    backdrop-filter: blur(7px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.login-modal,
.welcome-modal {
    position: relative;
    width: min(100%, 450px);
    background: var(--white);
    border-radius: 25px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
    animation: modal-enter 0.3s ease;
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 13px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    background: #f5f3f7;
    color: var(--navy);
    font-size: 25px;
    line-height: 1;
}

.modal-logo,
.welcome-logo {
    width: 75px;
    height: 75px;
    margin: 0 auto 15px;
}

.modal-logo img,
.welcome-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-modal h2,
.welcome-modal h2 {
    font-size: 27px;
    margin: 7px 0;
    line-height: 1.35;
}

.login-modal > p,
.welcome-modal > p {
    font-size: 13px;
    color: var(--muted);
}

.login-option {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 15px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
}

.login-option:hover {
    border-color: var(--orange);
    background: #fffaf5;
}

.option-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.public-icon {
    background: #fff0df;
}

.admin-icon {
    background: #f0e8ff;
}

.option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-text strong {
    font-size: 14px;
}

.option-text small {
    color: var(--muted);
    font-size: 11px;
}

.option-arrow {
    color: var(--orange-dark);
    font-size: 22px;
}

.modal-footer-text {
    margin-top: 20px;
}


/* WELCOME INSTALL MODAL */

.welcome-overlay {
    z-index: 1100;
}

.welcome-modal {
    overflow: hidden;
    padding: 35px 32px 30px;
}

.welcome-modal > *:not(.welcome-decoration):not(.modal-close) {
    position: relative;
    z-index: 1;
}

.welcome-modal h3 {
    font-size: 18px;
    margin: 12px 0;
}

.welcome-modal > p {
    line-height: 1.8;
}

.device-row {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    margin: 23px 0;
    padding: 16px 8px;
    background: #f7f5ff;
    border-radius: 17px;
}

.device-row span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 23px;
}

.device-row small {
    color: var(--text);
    font-size: 11px;
}

.install-button {
    width: 100%;
    min-height: 51px;
}

.install-message {
    margin-top: 10px;
    font-size: 12px;
    color: var(--purple);
}

.later-button {
    margin-top: 15px;
    padding: 8px 15px;
    border: 0;
    background: transparent;
    color: var(--purple);
    font-weight: 650;
    font-size: 13px;
}

.welcome-decoration {
    position: absolute;
    bottom: -70px;
    left: -10%;
    width: 120%;
    height: 95px;
    background: var(--gradient);
    opacity: 0.9;
    border-radius: 50% 50% 0 0;
}


/* MOBILE BOTTOM NAVBAR */

.bottom-navbar {
    display: none;
}


/* ACCESSIBILITY */

button:focus-visible,
a:focus-visible {
    outline: 3px solid #8a42ee;
    outline-offset: 4px;
}


/* TABLET */

@media (max-width: 1050px) {
    .desktop-nav {
        gap: 15px;
    }

    .header-inner {
        gap: 15px;
    }

    .hero-grid {
        gap: 30px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .badge-top {
        left: 0;
    }

    .badge-bottom {
        right: 0;
    }
}


/* MOBILE */

@media (max-width: 760px) {
    body {
        padding-bottom: 70px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .header-inner {
        min-height: 70px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand-name strong {
        font-size: 21px;
    }

    .brand-name small {
        font-size: 13px;
    }

    .desktop-nav {
        display: none;
    }

    .header-actions {
        gap: 7px;
    }

    .header-actions .btn {
        min-height: 39px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .admin-btn {
        display: none;
    }

    .hero {
        padding: 48px 0 52px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero h1 {
        font-size: clamp(35px, 9vw, 47px);
        letter-spacing: -1.3px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .trust-points {
        gap: 7px;
    }

    .trust-points span {
        font-size: 10px;
        padding: 7px 9px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        flex: 1;
        padding: 12px 13px;
        font-size: 12px;
    }

    .hero-visual {
        min-height: 400px;
        margin-top: 8px;
    }

    .chat-preview {
        width: min(82%, 340px);
    }

    .decor-one {
        width: 270px;
        height: 270px;
        right: 8%;
    }

    .decor-two {
        width: 130px;
        height: 130px;
    }

    .floating-badge {
        padding: 10px 12px;
    }

    .badge-top {
        top: 3%;
        left: 0;
    }

    .badge-bottom {
        bottom: 2%;
        right: 0;
    }

    .section-padding {
        padding: 55px 0;
    }

    .section-heading {
        margin-bottom: 27px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .feature-card {
        padding: 22px;
    }

    .feature-icon {
        margin-bottom: 13px;
    }

    .cta-section {
        padding-bottom: 45px;
    }

    .cta-box {
        padding: 28px 23px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-box .btn {
        width: 100%;
    }

    .footer {
        padding: 22px 0 15px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .bottom-navbar {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 2px;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 500;
        min-height: 67px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--border);
        box-shadow: 0 -5px 22px rgba(25, 20, 50, 0.06);
        backdrop-filter: blur(14px);
    }

    .bottom-link {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        border: 0;
        background: transparent;
        color: var(--muted);
    }

    .bottom-link > span {
        font-size: 22px;
        line-height: 1.2;
    }

    .bottom-link small {
        font-size: 10px;
    }

    .bottom-link.active {
        color: var(--orange-dark);
    }

    .bottom-start {
        flex-shrink: 0;
        width: 47px;
        height: 47px;
        margin: -25px 4px 0;
        border: 4px solid var(--white);
        border-radius: 50%;
        background: var(--gradient);
        color: var(--white);
        font-size: 29px;
        line-height: 1;
        box-shadow: 0 5px 15px rgba(239, 83, 39, 0.25);
    }

    .login-modal,
    .welcome-modal {
        padding: 29px 22px 25px;
        border-radius: 22px;
    }

    .welcome-modal h2,
    .login-modal h2 {
        font-size: 24px;
    }

    .modal-overlay {
        padding: 14px;
    }
}


/* SMALL MOBILE */

@media (max-width: 380px) {
    .container {
        width: calc(100% - 24px);
    }

    .brand {
        gap: 5px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .brand-name strong {
        font-size: 18px;
    }

    .brand-name small {
        font-size: 11px;
    }

    .header-actions .btn {
        padding: 7px 9px;
        font-size: 11px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .floating-badge strong {
        font-size: 10px;
    }

    .floating-badge small {
        font-size: 9px;
    }

    .device-row {
        margin: 17px 0;
    }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}