
:root {
    --primary: #031B4E;
    --secondary: #F57C00;
    --accent: #2196F3;
    --light: #F7F9FC;
    --text: #1E293B;
    --paragraph: #64748B;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
/*==================================
NAV ACTIONS
==================================*/

.nav-actions{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:nowrap;
    white-space:nowrap;
    flex:0 0 auto;
}

/*==================================
PREMIUM LANGUAGE DROPDOWN
==================================*/

.language-dropdown{
    position:relative;
}

.language-btn{

    display:flex;
    align-items:center;
    gap:10px;

    padding:12px 18px;

    border-radius:50px;

    border:none;

    cursor:pointer;

    font-family:'Poppins',sans-serif;
    font-size:15px;
    font-weight:600;

    transition:.35s;

}

/* Hero Navigation */

header:not(.scrolled) .language-btn{

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(18px);

    color:#fff;

    border:1px solid rgba(255,255,255,.15);

}

/* After Scroll */

header.scrolled .language-btn{

    background:#fff;

    color:#031B4E;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

}

.language-btn:hover{

    transform:translateY(-2px);

}

.language-btn .fa-globe{

    color:#F57C00;

    font-size:17px;

}

.language-btn .fa-chevron-down{

    font-size:12px;

    transition:.35s;

}

.language-btn.active .fa-chevron-down{

    transform:rotate(180deg);

}

/*========================*/

.language-menu{

    position:absolute;

    top:60px;

    right:0;

    width:210px;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 20px 45px rgba(0,0,0,.12);

    opacity:0;

    visibility:hidden;

    transform:translateY(15px);

    transition:.35s;

    z-index:9999;

}

.language-menu.show{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.language-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px 20px;

    cursor:pointer;

    font-weight:600;

    color:#031B4E;

    transition:.3s;

}

.language-item:hover{

    background:#F8FAFC;

    color:#F57C00;

    padding-left:28px;

}

.language-item.active{

    background:#031B4E;

    color:#fff;

}

.language-item i{

    opacity:0;

}

.language-item.active i{

    opacity:1;

}

/*==================================
MOBILE
==================================*/

@media(max-width:991px){

    .nav-actions{

        gap:10px;
        justify-content:flex-end;

    }

    .quote-btn{

        display:none;

    }

    .language-dropdown{
        width: auto;
    }

    .language-btn{

        padding:10px 14px;

        font-size:14px;

    }

    .language-menu{

        width:90vw;
        max-width:260px;
        right:10px;
    }

}

.lang-btn:hover {
    transform: translateY(-1px);
}

.lang-btn.active,
.lang-btn:hover {
    background: white;
    color: var(--primary);
}

.lang-btn.active {
    font-weight: 700;
}

.menu {
    transition: 0.35s ease;
    flex: 1 1 auto;
}

.menu.active {
    left: 0;
}

.hamburger {
    z-index: 10001;
}

@media (max-width: 991px) {
    .menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 260px;
        height: calc(100vh - 90px);
        overflow-y: auto;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 24px;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
    }

    .menu li {
        margin: 0;
    }

    .menu li a {
        color: var(--primary);
        padding: 14px 0;
        display: block;
    }

    .quote-btn {
        display: none;
    }

    .lang-switcher {
        margin-left: 0;
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-top: 16px;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        margin-top: 20px;
    }
}

.whatsapp {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    z-index: 9999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp:hover {
    transform: translateY(-3px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp {
    animation: pulse 2.2s infinite;
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 10002;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
}

.chatbot-toggle i {
    font-size: 32px;
}

.chatbot-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 96px;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 10001;
}

.chatbot-container.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1rem;
}

.chatbot-header small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
}

.chatbot-header button {
    border: none;
    background: transparent;
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.chatbot-body {
    flex: 1;
    min-height: 220px;
    overflow-y: auto;
    padding: 18px;
    background: #f8fafc;
}

.chatbot-message {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-end;
}

.chatbot-message.bot {
    justify-content: flex-start;
}

.chatbot-message.user {
    justify-content: flex-end;
}

.chatbot-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.chatbot-message.bot .chatbot-bubble {
    background: #e2e8f0;
    color: #0f172a;
    border-radius: 20px 20px 20px 4px;
}

.chatbot-message.user .chatbot-bubble {
    background: var(--secondary);
    color: white;
    border-radius: 20px 20px 4px 20px;
}

.chatbot-input {
    display: flex;
    gap: 10px;
    border-top: 1px solid #e2e8f0;
    padding: 14px 16px;
    background: white;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.95rem;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.chatbot-input button {
    padding: 0 20px;
    border-radius: 999px;
    background: var(--secondary);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.chatbot-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbot-message.typing .chatbot-bubble {
    font-style: italic;
    opacity: 0.75;
}

@media (max-width: 640px) {
    .chatbot-container {
        right: 12px;
        bottom: 92px;
        width: min(100%, 340px);
        max-height: calc(100vh - 110px);
    }

    .chatbot-input {
        flex-direction: column;
        align-items: stretch;
    }

    .chatbot-input input,
    .chatbot-input button {
        width: 100%;
    }
}

@media (max-width: 991px) {
    header nav {
        gap: 12px;
        min-height: 80px;
    }

    .logo {
        min-width: 0;
        flex: 1 1 auto;
    }

    .logo h2 {
        font-size: 20px;
        line-height: 1.1;
    }

    .logo img {
        height: 46px;
    }

    .nav-actions {
        margin-left: auto;
        gap: 8px;
    }

    .quote-btn {
        display: none;
    }

    .language-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .menu {
        width: min(86vw, 280px);
        padding: 24px 20px;
    }

    .menu li a {
        padding: 12px 0;
        font-size: 16px;
    }

    section {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    .logo h2 {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .logo img {
        height: 42px;
    }

    .language-menu {
        right: 0;
        width: min(88vw, 230px);
    }

    .whatsapp {
        right: 14px;
        bottom: 14px;
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .chatbot-toggle {
        right: 14px;
        bottom: 14px;
        width: 60px;
        height: 60px;
    }

    .chatbot-container {
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        bottom: 86px;
    }
}

@media (max-width: 480px) {
    header nav {
        height: 76px;
    }

    .logo h2 {
        font-size: 16px;
    }

    .logo img {
        height: 38px;
    }

    .language-btn {
        padding: 9px 10px;
        gap: 6px;
    }

    .language-btn span {
        font-size: 12px;
    }

    .menu {
        top: 76px;
        height: calc(100dvh - 76px);
    }

    .menu li a {
        font-size: 15px;
    }

    section {
        padding: 60px 0;
    }
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(3, 27, 78, 0.16);
    border: 1px solid rgba(3, 27, 78, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.3s ease;
    z-index: 1000;
}

header.scrolled .nav-dropdown .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.nav-dropdown .dropdown-menu a:hover {
    background: rgba(245, 124, 0, 0.1);
    color: var(--secondary);
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(245, 124, 0, 0.16);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-left: 6px;
}

.nav-cta {
    background: var(--secondary);
    color: white;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(245, 124, 0, 0.2);
}

.nav-cta:hover {
    background: var(--primary);
    color: white;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.auth-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-panel {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(3, 27, 78, 0.12);
    padding: 34px;
}

.auth-panel h1,
.auth-panel h2,
.auth-panel h3 {
    color: var(--primary);
}

.auth-panel p {
    color: var(--paragraph);
    margin-bottom: 16px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #dbeafe;
    margin-bottom: 12px;
    font-size: 15px;
}

.auth-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.12);
}

.auth-btn {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    background: var(--secondary);
    color: white;
    cursor: pointer;
}

.auth-btn:hover {
    background: var(--primary);
}

.auth-secondary-btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: white;
    color: var(--primary);
    font-weight: 700;
    margin-top: 10px;
}

.auth-side {
    background: linear-gradient(135deg, var(--primary) 0%, #12479a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-illustration {
    max-width: 520px;
}

.auth-illustration .pill {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.password-row {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--secondary);
    cursor: pointer;
}

.strength-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0 14px;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--secondary);
    transition: width 0.25s ease;
}

.notice {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.notice.error {
    background: #fef2f2;
    color: #b91c1c;
}

.notice.success {
    background: #ecfdf3;
    color: #166534;
}

.ai-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #031B4E 0%, #0c2f74 45%, #104b9f 100%);
    color: white;
}

.ai-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.ai-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.1;
    color: white;
    margin-bottom: 18px;
}

.ai-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 24px;
}

.ai-hero .hero-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 24px;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.ai-tool-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(3, 27, 78, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(3, 27, 78, 0.14);
}

.ai-tool-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245,124,0,0.16), rgba(33,150,243,0.16));
    color: var(--secondary);
    font-size: 24px;
    margin-bottom: 16px;
}

.ai-tool-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.ai-tool-card p {
    margin-bottom: 16px;
}

.ai-tool-card .tool-btn {
    background: var(--primary);
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.ai-tool-card .tool-btn:hover {
    background: var(--secondary);
}

.builder-shell {
    padding: 120px 0 80px;
    background: #f8fbff;
}

.builder-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(3, 27, 78, 0.08);
    padding: 28px;
}

.builder-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
}

.builder-step {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}

.builder-step.active {
    background: var(--secondary);
}

.builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.builder-grid .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.builder-grid label {
    font-weight: 700;
    color: var(--primary);
}

.builder-grid input,
.builder-grid textarea,
.builder-grid select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    font-size: 15px;
}

.builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.builder-actions button {
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.builder-actions .primary {
    background: var(--secondary);
    color: white;
}

.builder-actions .secondary {
    background: #f8fafc;
    color: var(--primary);
}

.doc-output {
    margin-top: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    background: #fcfdff;
}

.doc-output h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: #f8fbff;
}

.sidebar {
    background: linear-gradient(180deg, var(--primary) 0%, #113b82 100%);
    color: white;
    padding: 24px 18px;
}

.sidebar a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 8px;
    font-weight: 600;
}

.sidebar a.active,
.sidebar a:hover {
    background: rgba(255,255,255,0.16);
}

.dashboard-main {
    padding: 28px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0 26px;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 16px 35px rgba(3, 27, 78, 0.08);
}

.table-wrap {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 16px 35px rgba(3, 27, 78, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

th {
    background: #f8fafc;
}

.mobile-drawer-toggle {
    display: none;
}

@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-side {
        display: none;
    }

    .ai-hero-grid,
    .builder-grid,
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .ai-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-shell {
        min-height: auto;
    }

    .sidebar {
        display: none;
    }

    .mobile-drawer-toggle {
        display: inline-flex;
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .ai-tools-grid,
    .dashboard-cards,
    .form-row {
        grid-template-columns: 1fr;
    }

    .ai-hero {
        padding-top: 120px;
    }

    .builder-card,
    .auth-panel {
        padding: 24px;
    }

    .dashboard-main {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .auth-panel {
        padding: 20px;
    }

    .ai-tool-card,
    .dashboard-card,
    .builder-card {
        padding: 18px;
    }
}
