:root {
    /* Color Palette */
    --primary-color: #0f172a;
    /* Almost Black */
    --primary-light: #1e293b;
    /* Slightly lighter black */
    --secondary-color: #f8fafc;
    /* Soft Gray */
    --accent-color: #6989a6;
    /* User Requested Blue/Gray */
    --accent-hover: #547391;
    /* Darker accent */
    --text-main: #000000;
    /* True black */
    --text-muted: #475569;
    /* Slate */
    --white: #ffffff;
    --success: #10b981;
    /* Green for checkmarks/growth */

    /* Variables */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-med: 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--secondary-color);
}

.bg-dark {
    background-color: var(--primary-color);
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    z-index: -1;
}

.bg-primary {
    background-color: var(--primary-light);
}

.bg-white {
    background-color: var(--white);
}

.text-white,
.text-white h2,
.text-white p {
    color: var(--white) !important;
}

.text-gray {
    color: var(--text-muted);
}

.center {
    text-align: center;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.border-radius-lg {
    border-radius: var(--border-radius-lg);
}

.overflow-hidden {
    overflow: hidden;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.align-center {
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn i {
    margin-left: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-light {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover,
.hover-up:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-med);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo i {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 768px) {

    .nav-links,
    .nav-btn,
    .login-btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: #0f172a;
    /* Fallback */
    overflow: hidden;
}

.hero.bg-texture {
    background-color: #000000;
    background-image: url('assets/background-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105, 137, 166, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Dashboard Mockup (Hero Visual) */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-med);
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-mockup {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.mockup-header {
    background-color: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ef4444;
}

.dot.yellow {
    background-color: #f59e0b;
}

.dot.green {
    background-color: #10b981;
}

.mockup-body {
    padding: 1.5rem;
}

.stat-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    flex: 1;
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--success);
}

.chart-placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 150px;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.bar {
    flex: 1;
    background-color: var(--accent-light, #93c5fd);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.bar:last-child {
    background-color: var(--accent-color);
}

/* Section Header */
.section-header {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

/* Solution Section */
.feature-list {
    margin-top: 2.5rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-list i {
    font-size: 2rem;
    color: #60a5fa;
    margin-top: 0.25rem;
}

.feature-list h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-list p {
    color: #cbd5e1;
    margin-bottom: 0;
}

.automation-flow {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
}

.flow-step {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flow-step.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    transform: scale(1.05);
}

.flow-step.success {
    background-color: var(--success);
    border-color: var(--success);
}

.flow-arrow {
    color: #64748b;
    font-size: 1.5rem;
    margin: 1rem 0;
}

/* Process Timeline */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 0 0 6px var(--white), var(--shadow-sm);
    z-index: 1;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

/* Case Study */
.case-study-image {
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.case-study-content {
    padding: 3rem;
}

.metrics-grid {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.testimonial {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--text-main);
    border-left: 2px solid #cbd5e1;
    padding-left: 1.5rem;
    margin-top: 2rem;
}

.testimonial cite {
    display: block;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--white);
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-question i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* CTA / Calendar */
.cta-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
    opacity: 0.9;
}

.calendar-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    color: var(--text-main);
    text-align: left;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cal-header h4 {
    margin-bottom: 0;
    font-size: 1.125rem;
}

.cal-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: default;
}

.cal-day:not(.text-gray) {
    background-color: #f1f5f9;
}

.cal-day.available {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.cal-day.available:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Footer */
.footer {
    background-color: #000000;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: #94a3b8;
    padding: 5rem 0 2rem;
}

.footer-grid h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
}

/* Custom High-Converting Styles */
.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-texture {
    background-color: #000000;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    position: relative;
    z-index: 1;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.text-dark {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.dark-nav {
    background-color: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-nav .nav-links a {
    color: #e2e8f0 !important;
}

.dark-nav .logo img {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

/* Glass & Mockups Updated */
.dark-glass {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-mockup {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-header {
    background-color: #1e293b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dark-stat {
    background-color: #1e293b !important;
}

/* Pipeline */
.pipeline-visual {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pipe-stage {
    background-color: #1e293b;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pipe-stage i {
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

.success-pipe {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
    font-weight: 600;
}

/* Timeline dark mode updates */
.dark-text-timeline::before {
    background-color: #cbd5e1 !important;
}

/* Dark Cards */
.dark-card {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-card h3 {
    color: var(--white);
}

/* Automations Grid */
.automation-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.automation-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.automation-pill i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.automation-pill span {
    font-weight: 500;
}

/* Chat Mockup */
.chat-mockup {
    background: #0f172a;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-lg);
    max-width: 80%;
    font-size: 0.9rem;
}

.chat-msg.pt {
    background-color: #1e293b;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-msg.ai {
    background-color: rgba(105, 137, 166, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(105, 137, 166, 0.3);
}

.chat-msg.success-msg {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .case-study-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .process-timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 4rem;
    }

    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .metrics-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
}