/* ==============================================
   Dubidox Corporate Site Styles
   ============================================== */

:root {
    --bg-dark: #0A0F1A;
    --bg-darker: #060910;
    --bg-card: rgba(255, 255, 255, 0.03);

    --brand-blue: #2979FF;
    --brand-glow: rgba(41, 121, 255, 0.4);

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;

    --border-color: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography utility */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.align-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 32px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-blue);
    color: white;
    border: 1px solid var(--brand-blue);
    box-shadow: 0 8px 24px rgba(41, 121, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(41, 121, 255, 0.4);
    background: #1c68e6;
    border-color: #1c68e6;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
    padding: 10px 24px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
    padding: 12px 16px;
}

.btn-text:hover {
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 100;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    height: 40px;
}

/* --- LEGAL PAGES --- */
.legal-page {
    padding: 160px 0 100px;
    background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    min-height: 100vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px;
}

.legal-container h1 {
    font-size: 3rem;
    margin-bottom: 50px;
    color: white;
    text-align: center;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: white;
    border-left: 4px solid var(--brand-blue);
    padding-left: 20px;
}

.legal-container p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 30px;
    color: #94a3b8;
}

.legal-container li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.legal-container strong {
    color: white;
}

.last-updated {
    text-align: center;
    color: var(--brand-blue);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 60px;
    display: block;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 40px 20px;
        margin: 0 15px;
        border-radius: 16px;
    }
    .legal-container h1 {
        font-size: 2rem;
    }
}


.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.nav-links a.active {
    color: white;
    border-bottom: 2px solid var(--brand-blue);
    padding-bottom: 2px;
}

.nav-links .btn {
    color: var(--text-muted);
}

.nav-links .btn:hover,
.nav-links .btn.btn-current {
    color: white;
}

/* Hero */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 140px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--brand-blue);
    top: -200px;
    right: -100px;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #7B1FA2;
    bottom: -100px;
    left: -200px;
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 5.5rem;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.accent-text {
    background: linear-gradient(135deg, #FFF, #64748B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Split Layout */
.section {
    padding: 120px 0;
    position: relative;
}

.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.sticky-side {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, border-color 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.info-card p {
    color: var(--text-muted);
}

/* Products (DubiCore) */
.dark-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(41, 121, 255, 0.1);
    color: var(--brand-blue);
    border: 1px solid rgba(41, 121, 255, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* --- JOB APPLICATION MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    padding: 50px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.app-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fg {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fg label {
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fg input,
.fg textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.fg input:focus,
.fg textarea:focus {
    outline: none;
    border-color: rgba(41, 121, 255, 0.6);
    background: rgba(15, 23, 42, 0.6);
}

.fg input:-webkit-autofill,
.fg input:-webkit-autofill:hover,
.fg input:-webkit-autofill:focus,
.fg input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 1) inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white;
}

.fg input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.3);
}

.submit-btn {
    background: var(--brand-blue);
    color: white;
    border: 1px solid var(--brand-blue);
    box-shadow: 0 8px 24px rgba(41, 121, 255, 0.25);
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #1c68e6;
    border-color: #1c68e6;
    box-shadow: 0 12px 32px rgba(41, 121, 255, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .modal-content {
        padding: 30px 20px;
    }
}


/* --- CAREER & PRODUCT PAGE UTILITIES --- */
.job-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.career-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.career-card:hover {
    transform: translateY(-5px);
    border-color: rgba(41, 121, 255, 0.4);
}

.career-card h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.career-card .meta {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.career-card .description {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-detail {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-detail h4 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-detail p {
    color: #94a3b8;
    font-size: 15px;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}


.product-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 80px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.0) 100%);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 60px;
}

.product-logo {
    height: 40px;
    margin-bottom: 24px;
}

.product-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.product-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.product-highlights {
    list-style: none;
}

.product-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #CBD5E1;
    font-weight: 500;
}

.product-highlights span {
    color: var(--brand-blue);
}

/* Mockup CSS art */
.mockup-window {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #27C93F;
}

.mockup-body {
    padding: 20px;
    display: flex;
    gap: 20px;
    height: 300px;
}

.mockup-skeleton.nav {
    width: 60px;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.mockup-skeleton.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-skeleton.graph {
    height: 140px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(41, 121, 255, 0.1), rgba(41, 121, 255, 0.02));
    border: 1px solid rgba(41, 121, 255, 0.2);
}

.mockup-skeleton.card {
    flex: 1;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* Footer */
.site-footer {
    padding: 80px 0 40px;
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-links h4 {
    color: white;
    font-size: 14px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

.socials {
    display: flex;
    gap: 16px;
}

.socials a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.socials a:hover {
    color: white;
}

/* Animations */
.hide-on-load {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media(max-width: 960px) {

    .layout-split,
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sticky-side {
        position: relative;
        top: 0;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .product-showcase {
        padding: 40px;
    }
}

@media(max-width: 640px) {
    .hero h1 {
        font-size: 3rem;
    }

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