:root {
    --brand-blue: #2563eb;
    --brand-blue-light: #3b82f6;
    --brand-blue-dark: #1d4ed8;
    --brand-accent: #06b6d4;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-body: #475569;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --gradient-primary: linear-gradient(135deg, var(--brand-blue), var(--brand-accent));
    --gradient-light: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.18), 0 10px 10px -5px rgba(15, 23, 42, 0.08);
    --fs-hero: clamp(2.5rem, 5vw, 3.6rem);
    --fs-h2: clamp(2rem, 4vw, 2.75rem);
    --fs-h3: clamp(1.4rem, 3vw, 1.8rem);
    --fs-body: 1.05rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

[id] {
    scroll-margin-top: 100px;
}

/* ========== HEADER ========== */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    padding: 4px;
}

.wordmark {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.wm-accent {
    color: var(--brand-blue);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--brand-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--brand-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    display: inline-block;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    transition: all .3s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-brand {
    background: var(--gradient-primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
}

.btn-outline:hover {
    background: var(--brand-blue);
    color: var(--bg-white);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger i {
    font-size: 2rem;
    color: var(--text-dark);
}

/* ========== HERO ========== */

.hero {
    padding: 100px 0 80px;
    background: var(--gradient-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
    gap: 3rem;
    align-items: center;
}

.hero-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-blue-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: var(--fs-hero);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 650px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trust-badge i {
    color: var(--brand-blue);
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card {
    border-radius: 18px;
    border: 1px solid var(--border-light);
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow-xl);
    background: var(--bg-white);
}

.hero-card-primary h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.hero-card-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.hero-card-primary ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.hero-card-primary li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.hero-card-primary i {
    color: var(--brand-blue);
}

.hero-card-secondary {
    max-width: 280px;
    margin-left: auto;
    opacity: 0.95;
}

/* ========== SECTIONS GENERAL ========== */

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header .tagline {
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.section-header h2 {
    font-size: var(--fs-h2);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-body);
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ========== CARDS ========== */

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-blue-light);
}

.card .icon {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-body);
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--brand-blue);
    font-weight: 600;
}

.card-link:hover {
    text-decoration: underline;
}

/* ========== WHY AI ========== */

#why-ai {
    background-color: var(--bg-white);
}

#why-ai .grid-2 {
    align-items: center;
    gap: 3rem;
}

#why-ai h2 {
    font-size: var(--fs-h2);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

#why-ai p {
    margin-bottom: 2rem;
}

#why-ai ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#why-ai ul li {
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.05rem;
    font-weight: 500;
}

#why-ai ul li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    color: var(--brand-blue);
}

#why-ai-image {
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: radial-gradient(circle at top left, #e0f2fe, #eff6ff, #f9fafb);
    padding: 1.5rem;
}

.why-ai-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.stat-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.3);
    margin-bottom: 0.3rem;
}

.stat-number {
    font-weight: 800;
    font-size: 1rem;
    color: var(--brand-blue-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.why-ai-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ========== SERVICES & SOLUTIONS ========== */

#services {
    background: var(--bg-white);
}

.service-category {
    margin-bottom: 4rem;
}

.service-category:last-of-type {
    margin-bottom: 0;
}

.service-category h3 {
    font-size: var(--fs-h3);
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* ========== WHY HOPEMAT ========== */

#why-hopemat {
    background: var(--bg-light);
}

/* ========== CASE STUDIES ========== */

#case-studies {
    background: var(--bg-white);
}

.case-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.case-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.case-list i {
    color: var(--brand-blue);
}

/* ========== PROCESS ========== */

#process {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.process-step {
    position: relative;
    padding-left: 3.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-left: 2px dashed var(--border-medium);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 0 16px 16px 0;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: -25px;
    top: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: var(--brand-blue);
    color: white;
    border: 4px solid var(--bg-light);
    transition: all 0.3s ease;
}

.process-step:hover {
    background: var(--bg-white);
    border-color: var(--brand-blue);
}

.process-step:hover::before {
    background: var(--brand-blue-dark);
    transform: scale(1.05);
    border-color: var(--bg-white);
}

/* ========== ENGAGEMENT ========== */

#engagement {
    background: var(--bg-white);
}

.engagement-note {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== TESTIMONIALS ========== */

#testimonials {
    background: var(--bg-light);
}

.testimonials-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.testimonial {
    scroll-snap-align: start;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    min-height: 210px;
}

.testimonial p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 1.25rem;
}

.testimonial h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.testimonial span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== CLIENTS ========== */

#clients {
    background: var(--bg-white);
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.client-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.client-logo img {
    width: 140px;
    height: 60px;
    border-radius: 8px;
    background-color: #e2e8f0;
    object-fit: cover;
}

.clients-note a {
    color: var(--brand-blue);
    font-weight: 600;
}

.clients-note a:hover {
    text-decoration: underline;
}

/* ========== AI ASSISTANT CHAT ========== */

#ai-assistant {
    background: var(--gradient-light);
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
}

.chat-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header p {
    margin: 0.25rem 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.chat-messages {
    padding: 2rem;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f9fafb;
}

.chat-message {
    max-width: 80%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.chat-message.bot {
    background: var(--bg-light);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-message.user {
    background: var(--brand-blue);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 1rem 2rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-input-area {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chat-options button {
    background: transparent;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-options button:hover {
    background: var(--brand-blue);
    color: white;
}

.chat-input-field {
    display: flex;
    gap: 0.75rem;
}

.chat-input-field input {
    flex-grow: 1;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

.chat-input-field input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.chat-input-field button {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
}

.hidden {
    display: none !important;
}

/* ========== FOOTER ========== */

footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

footer h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

footer a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: white;
}

.footer-profile-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: rgba(248, 250, 252, 0.9);
    font-size: 0.85rem;
}

.footer-profile-link:hover {
    background: rgba(148, 163, 184, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========== UTILITIES & EFFECTS ========== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.on {
    opacity: 1;
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chat-messages {
        height: 320px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 80px;
    }
}
