/* CSS Variables & Theme Configuration */
:root {
    /* Colors */
    --bg-dark: #07090f;
    --bg-panel: rgba(20, 24, 38, 0.6);
    --bg-panel-hover: rgba(30, 36, 56, 0.8);

    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-glow: rgba(79, 70, 229, 0.4);

    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.4);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-text: linear-gradient(to right, #818cf8, #22d3ee);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle noise texture or radial gradient background */
    background-image: radial-gradient(circle at top center, rgba(30, 35, 60, 0.5) 0%, var(--bg-dark) 50%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(4px);
    width: 100%;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

/* Animations */
@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(7, 9, 15, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    z-index: 102;
    /* ensure clickable above layer */
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Decorative Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.3);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.2);
    top: 40%;
    right: -50px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Sections Global */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Problem Section */
.problem {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 10, 30, 1) 50%, var(--bg-dark) 100%);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.problem-card {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-fast);
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.problem-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 16px;
}

.problem-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.problem-card strong {
    color: white;
}

.problem-stat {
    text-align: center;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(79, 70, 229, 0.25);
}

.problem-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
}

.problem-stat .stat-text {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.problem-transition {
    text-align: center;
    margin-bottom: 50px;
}

.problem-transition p {
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.problem-proof {
    padding: 48px;
}

.proof-header {
    margin-bottom: 32px;
}

.proof-industry {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
    margin-left: 8px;
}

.proof-industry.health {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.proof-industry.home {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.proof-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.proof-header h3 {
    font-size: 1.5rem;
}

.proof-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.proof-before,
.proof-after {
    text-align: center;
}

.proof-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.proof-before .proof-value {
    color: var(--text-muted);
}

.proof-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.proof-arrow {
    display: flex;
    align-items: center;
}

.proof-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin: 0;
    font-style: italic;
}

.proof-quote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

/* Industries Section */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.industry-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.industry-card:hover {
    transform: translateY(-10px);
    background: var(--bg-panel-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.home-icon {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.health-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.prof-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.industry-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.industry-list {
    list-style: none;
    margin: 24px 0;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.industry-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 28px;
    color: #cbd5e1;
}

.industry-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.try-now-btn {
    margin-top: auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition-fast);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* Integrations Section */
.integration-banner {
    display: flex;
    align-items: center;
    padding: 60px;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.integration-content {
    flex: 1;
}

.integration-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tools-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
    align-items: flex-start;
}

.tool-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 80px;
}

.tool-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    transition: var(--transition-fast);
}

.tool-logo:hover img {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.tool-logo span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

.integration-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 250px;
}

.center-ai-node {
    width: 80px;
    height: 80px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 10;
    box-shadow: 0 0 30px var(--primary-glow);
    animation: float 4s ease-in-out infinite;
}

.pulse-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* CTA Section */
.pattern-bg {
    background-color: var(--bg-panel);
    background-image: radial-gradient(var(--bg-panel-hover) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-form {
    max-width: 500px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-form input,
.cta-form select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.cta-form input:focus,
.cta-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.field-error {
    display: none;
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 6px;
    padding-left: 4px;
}

.field-error.visible {
    display: block;
}

.cta-form input.input-error {
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 20px;
    background: #04050a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.85rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-fast);
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.demo-chat-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 80%;
    font-size: 0.9rem;
}

.msg.ai {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg.user {
    background: var(--primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.demo-call-btn {
    width: 100%;
}

/* Utility Animations */
.animate-up,
.fade-in,
.slide-up {
    opacity: 0;
    transform: translateY(30px);
}

.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 150px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .integration-banner {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .tools-tags {
        justify-content: center;
    }

    .tools-logos {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

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

    .problem-stat .stat-number {
        font-size: 2.5rem;
    }

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

    .problem-proof {
        padding: 30px 24px;
    }

    .proof-metrics {
        gap: 24px;
    }

    .proof-value {
        font-size: 2.2rem;
    }
}