/* =========================================
   DEEPDESK.PRO — PREMIUM CRM WEBSITE
   Main stylesheet
========================================= */

/* ---------- 1. RESET & GLOBAL STYLES ---------- */

:root {
    --bg-primary: #080b12;
    --bg-secondary: #0d121c;
    --bg-card: #111927;
    --bg-card-hover: #162033;

    --border-color: rgba(148, 163, 184, 0.14);

    --text-primary: #f8fafc;
    --text-secondary: #a0aec0;
    --text-muted: #718096;

    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;

    --success: #22c55e;

    --container-width: 1200px;

    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: "DM Sans", sans-serif;

    background: var(--bg-primary);
    color: var(--text-primary);

    line-height: 1.7;
    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea {
    font-family: "DM Sans", sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

::selection {
    background: rgba(59, 130, 246, 0.35);
    color: #ffffff;
}

.container {
    width: min(
        var(--container-width),
        calc(100% - 48px)
    );

    margin-inline: auto;
}

section {
    position: relative;
    padding: 110px 0;
}

section[id] {
    scroll-margin-top: 90px;
}


/* ---------- 2. TYPOGRAPHY ---------- */

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
    font-size: 1.3rem;
}

p {
    color: var(--text-secondary);
}

.section-heading {
    max-width: 750px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 20px;
}

.section-heading p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    color: var(--accent-light);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* ---------- 3. BUTTONS ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 25px;

    border-radius: 10px;

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;

    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.btn-primary:hover {
    background: var(--accent-dark);

    transform: translateY(-2px);

    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25);
}

.btn-outline {
    background: rgba(59, 130, 246, 0.08);

    border: 1px solid rgba(96, 165, 250, 0.3);

    color: #dbeafe;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: var(--accent-light);

    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;

    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.12);
}

.btn-whatsapp:hover {
    background: #1fba59;
    transform: translateY(-2px);
}

.btn-whatsapp svg,
.btn-whatsapp img {
    width: 20px;
    height: 20px;
}


/* ---------- 4. HEADER & NAVIGATION ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(8, 11, 18, 0.88);

    border-bottom: 1px solid var(--border-color);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;
}

.brand img,
.brand-logo {
    width: 190px;
    max-height: 55px;

    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    color: #aeb8ca;

    font-size: 0.9rem;
    font-weight: 500;

    transition: color var(--transition);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;

    color: #ffffff;
    font-size: 1.5rem;
}


/* ---------- 5. HERO SECTION ---------- */

.hero {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    padding: 100px 0 90px;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 80% 30%,
            rgba(37, 99, 235, 0.12),
            transparent 45%
        ),
        var(--bg-primary);
}

.hero::before {
    content: "";

    position: absolute;
    top: -200px;
    right: -150px;

    width: 650px;
    height: 650px;

    background: rgba(37, 99, 235, 0.08);

    filter: blur(140px);
    border-radius: 50%;

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 780px;
}

.hero-content h1 {
    margin-bottom: 25px;

    font-size: clamp(3rem, 6vw, 5.1rem);
    line-height: 1.08;
}

.hero-content h1 span {
    color: var(--accent-light);
}

.hero-content p {
    max-width: 620px;

    margin-bottom: 32px;

    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;

    margin-bottom: 35px;
}

.hero-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-trust .check {
    color: var(--success);
}


/* ---------- 6. REAL DASHBOARD PREVIEW ---------- */

.hero-dashboard {
    position: relative;

    margin-top: 65px;

    padding: 10px;

    background: linear-gradient(
        145deg,
        rgba(96, 165, 250, 0.15),
        rgba(15, 23, 42, 0.8)
    );

    border: 1px solid rgba(96, 165, 250, 0.2);

    border-radius: 18px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(37, 99, 235, 0.08);
}

.hero-dashboard img {
    width: 100%;
    height: auto;

    border-radius: 10px;
}

.dashboard-caption {
    padding: 14px 18px;

    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}


/* ---------- 7. FEATURE SECTION ---------- */

.features-section {
    background: var(--bg-secondary);

    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.feature-card {
    position: relative;

    padding: 32px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);
    border-radius: 16px;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);

    background: var(--bg-card-hover);

    border-color: rgba(96, 165, 250, 0.35);
}

.feature-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    background: rgba(59, 130, 246, 0.12);

    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 12px;

    color: var(--accent-light);
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.feature-card img {
    width: 100%;
    margin-top: 25px;

    border: 1px solid var(--border-color);
    border-radius: 10px;
}


/* ---------- 8. WHATSAPP FEATURE ---------- */

.whatsapp-feature {
    position: relative;

    padding: 60px;

    display: grid;

    grid-template-columns: 1fr 1fr;
    align-items: center;

    gap: 50px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(37, 211, 102, 0.08),
            transparent 50%
        ),
        var(--bg-card);

    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: 20px;

    overflow: hidden;
}

.whatsapp-feature h2 {
    margin-bottom: 22px;
}

.whatsapp-feature p {
    margin-bottom: 25px;
}

.whatsapp-feature img {
    width: 100%;

    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.whatsapp-feature .feature-icon {
    background: rgba(37, 211, 102, 0.12);
    color: #4ade80;
}


/* ---------- 9. HOW IT WORKS ---------- */

.workflow-section {
    background: var(--bg-primary);
}

.workflow-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 60px;
}

.workflow-content h2 {
    margin-bottom: 25px;
}

.workflow-content > p {
    margin-bottom: 35px;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    padding: 22px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);
    border-radius: 12px;

    transition: border-color var(--transition);
}

.workflow-step:hover {
    border-color: rgba(96, 165, 250, 0.3);
}

.workflow-number {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(59, 130, 246, 0.12);

    border-radius: 10px;

    color: var(--accent-light);
    font-weight: 700;
}

.workflow-step h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.workflow-step p {
    font-size: 0.9rem;
}

.workflow-image {
    padding: 10px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.workflow-image img {
    width: 100%;
    border-radius: 10px;
}


/* ---------- 10. INDUSTRIES / USE CASES ---------- */

.industries-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.industry-card {
    padding: 28px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);
    border-radius: 14px;

    transition: var(--transition);
}

.industry-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(96, 165, 250, 0.3);
}

.industry-card h3 {
    margin-bottom: 12px;
}

.industry-card p {
    font-size: 0.9rem;
}


/* ---------- 11. CALL TO ACTION ---------- */

.cta-section {
    padding: 80px 0;

    background: var(--bg-secondary);
}

.cta-box {
    position: relative;

    padding: 70px 40px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(59, 130, 246, 0.18),
            transparent 65%
        ),
        var(--bg-card);

    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 20px;
}

.cta-box h2 {
    max-width: 750px;

    margin: 0 auto 20px;
}

.cta-box p {
    max-width: 600px;

    margin: 0 auto 30px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}


/* ---------- 12. FOOTER ---------- */

.site-footer {
    padding: 65px 0 25px;

    background: #070a10;

    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 45px;

    margin-bottom: 50px;
}

.footer-brand img {
    width: 190px;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-column h4 {
    margin-bottom: 20px;

    font-size: 0.95rem;
    letter-spacing: 0;
}

.footer-column a {
    display: block;

    margin-bottom: 12px;

    color: var(--text-muted);
    font-size: 0.9rem;

    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    padding-top: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 15px;

    border-top: 1px solid var(--border-color);

    color: var(--text-muted);
    font-size: 0.85rem;
}


/* ---------- 13. FLOATING WHATSAPP BUTTON ---------- */

.whatsapp-float {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 999;

    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25d366;

    border-radius: 50%;

    color: #ffffff;
    font-size: 1.8rem;

    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.whatsapp-float:hover {
    background: #1fba59;

    transform: translateY(-5px) scale(1.05);

    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-float img,
.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

.whatsapp-tooltip {
    position: absolute;

    right: 75px;

    padding: 10px 15px;

    background: #182233;

    border: 1px solid var(--border-color);
    border-radius: 8px;

    color: #ffffff;
    font-size: 0.85rem;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transform: translateX(8px);

    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


/* ---------- 14. ANIMATIONS ---------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

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

.hero-dashboard {
    animation: fadeInUp 1s ease 0.2s both;
}

.whatsapp-float {
    animation: pulse 2.5s infinite;
}


/* ---------- 15. RESPONSIVE DESIGN ---------- */

/* Tablets */

@media (max-width: 1024px) {

    section {
        padding: 85px 0;
    }

    .navbar {
        gap: 20px;
    }

    .nav-links {
        gap: 22px;
    }

    .brand img,
    .brand-logo {
        width: 160px;
    }

    .hero {
        min-height: auto;
    }

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

    .whatsapp-feature {
        padding: 40px;
        gap: 35px;
    }

    .workflow-grid {
        gap: 35px;
    }

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

    .footer-column:last-child {
        grid-column: 2 / 4;
    }
}


/* Mobile navigation */

@media (max-width: 768px) {

    .container {
        width: calc(100% - 36px);
    }

    section {
        padding: 70px 0;
    }

    .navbar {
        min-height: 70px;
    }

    .brand img,
    .brand-logo {
        width: 150px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 15px 20px 25px;

        background: #0b1019;

        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;

        padding: 14px 10px;

        border-bottom: 1px solid var(--border-color);
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-actions .btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-content h1 {
        font-size: clamp(2.6rem, 9vw, 4rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-dashboard {
        margin-top: 45px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

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

    .feature-card {
        padding: 25px;
    }

    .whatsapp-feature {
        grid-template-columns: 1fr;
        padding: 30px;
    }

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

    .workflow-image {
        order: -1;
    }

    .cta-box {
        padding: 50px 25px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column:last-child {
        grid-column: auto;
    }
}


/* Small mobile screens */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 28px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust {
        gap: 12px;
    }

    .hero-dashboard {
        padding: 5px;
        border-radius: 12px;
    }

    .feature-card {
        padding: 22px;
    }

    .whatsapp-feature {
        padding: 22px;
    }

    .workflow-step {
        padding: 18px;
        gap: 14px;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

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

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;

        right: 18px;
        bottom: 18px;
    }
}


/* ---------- 16. ACCESSIBILITY ---------- */

:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
