/* ============================================================
   Cyntropic - Custom Styles
   Built on Bootstrap 5.2.3 (loaded via CDN)
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
    --cy-primary: #0d6efd;
    --cy-primary-dark: #0b5ed7;
    --cy-dark: #1a1a2e;
    --cy-gray-900: #212529;
    --cy-gray-700: #495057;
    --cy-gray-500: #6c757d;
    --cy-gray-200: #e9ecef;
    --cy-gray-100: #f8f9fa;
    --cy-white: #ffffff;
    --cy-section-spacing: 5rem;
    --cy-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Base / Typography --- */
body {
    font-family: var(--cy-font-family);
    color: var(--cy-gray-700);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--cy-gray-900);
    font-weight: 700;
}

/* --- Navbar (light, modern, sticky) --- */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--cy-gray-700);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--cy-primary);
}

/* --- Hero Section (light background) --- */
.hero-section {
    /* padding: 7rem 0 5rem; */
    background: linear-gradient(135deg, #fdfdfe 0%, #f8f9fa 100%);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

.hero-section .lead {
    font-size: 1.2rem;
    color: var(--cy-gray-500);
    max-width: 540px;
}

/* --- Trust Badges Bar --- */
.trust-badges {
    background: var(--cy-white);
    border-top: 1px solid var(--cy-gray-200);
    padding: 1.5rem 0;
}

.trust-badges .badge-item {
    color: var(--cy-gray-500);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-badges .badge-item i {
    font-size: 1.1rem;
    color: var(--cy-primary);
}

/* --- Feature Icon (light outline style) --- */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    border: 2px solid var(--cy-primary);
    color: var(--cy-primary);
    font-size: 1.5rem;
    background: transparent;
    transition: all 0.25s ease;
}

.feature-icon:hover,
.card:hover .feature-icon {
    background: var(--cy-primary);
    color: var(--cy-white);
}

/* --- Section Spacing --- */
section {
    padding: var(--cy-section-spacing) 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header .section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cy-primary);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--cy-gray-500);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Flow Diagram (visual pipeline) --- */
.flow-diagram {
    background: var(--cy-gray-100);
    border-radius: 1rem;
    padding: 2rem 1rem;
}

.flow-node {
    padding: 0.75rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.flow-node-square {
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flow-node-input {
    background: var(--cy-white);
    border: 1px solid var(--cy-gray-200);
    color: var(--cy-gray-700);
}

.flow-node-core {
    background: var(--cy-white);
    color: var(--cy-primary);
    border: 1px dashed var(--cy-primary);
    font-weight: 500;
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flow-node-step {
    background: var(--cy-white);
    color: var(--cy-gray-700);
    border: 1px dashed var(--cy-gray-500);
    font-weight: 500;
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flow-node-review {
    background: var(--cy-white);
    border: 2px solid var(--cy-primary);
    color: var(--cy-primary);
    font-weight: 600;
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flow-node-output {
    background: var(--cy-white);
    border: 1px solid var(--cy-gray-200);
    color: var(--cy-gray-700);
}

.flow-bucket {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
}

.flow-bucket-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cy-gray-500);
}

/* --- Flow Connector Arrow --- */
.flow-connector {
    display: flex;
    align-items: center;
    padding: 0 0.25rem;
}

.flow-connector-line {
    width: 2.5rem;
    height: 2px;
    background: var(--cy-gray-500);
    position: relative;
}

.flow-connector-line::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left: 6px solid var(--cy-gray-500);
}

/* Animated flowing dots on connector */
.flow-connector-animated {
    background: repeating-linear-gradient(
        90deg,
        var(--cy-gray-700) 0px,
        var(--cy-gray-700) 4px,
        transparent 4px,
        transparent 10px
    );
    background-size: 200% 100%;
    animation: flowDots 1.5s linear infinite;
}

.flow-connector-animated::after {
    border-left-color: var(--cy-gray-700);
}

@keyframes flowDots {
    0% { background-position: 100% 0; }
    100% { background-position: 0% 0; }
}

/* Pulsing glow on Cyntropic AI bucket */
.flow-bucket-highlight {
    border: 2px dotted var(--cy-gray-700);
    animation: bucketPulse 2s ease-in-out infinite;
}

@keyframes bucketPulse {
    0%, 100% { box-shadow: 0 0 8px 2px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 20px 8px rgba(37, 99, 235, 0.35); }
}

/* --- ROI Calculator --- */
.roi-calculator {
    border: 1px solid var(--cy-gray-200);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.roi-result-card {
    background: var(--cy-gray-100);
}

.roi-result-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.12));
}

/* --- Process Flow Timeline --- */
.process-flow {
    position: relative;
}

.process-step {
    position: relative;
}

.process-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--cy-primary);
    color: var(--cy-white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

/* Connector line between steps on large screens */
@media (min-width: 992px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 1.25rem;
        right: -1px;
        width: 2rem;
        height: 2px;
        background: var(--cy-gray-200);
        z-index: 1;
    }
}

/* --- Cards (modern, subtle shadow) --- */
.card {
    border: 1px solid var(--cy-gray-200);
    border-radius: 0.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card-body h5 {
    font-weight: 700;
}

/* --- Image Placeholder Classes --- */
/* Fixed-dimension containers so layout is stable regardless of image source */
.img-600x400 {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 600 / 400;
    object-fit: cover;
}

.img-1300x700 {
    width: 100%;
    max-width: 1300px;
    aspect-ratio: 1300 / 700;
    object-fit: cover;
}

.img-600x350 {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 600 / 350;
    object-fit: cover;
}

.img-700x350 {
    width: 100%;
    max-width: 700px;
    height: auto;
    aspect-ratio: 700 / 350;
    object-fit: cover;
}

.img-150x150 {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.img-40x40 {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Card-level image placeholder (full-width within card) */
.card-img-top.img-600x350 {
    max-width: 100%;
    border-radius: 0.75rem 0.75rem 0 0;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--cy-primary);
    color: var(--cy-white);
    border-radius: 1rem;
}

.cta-section h2 {
    color: var(--cy-white);
}

.cta-section .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
}

/* --- Comparison Cards (subtle outline style) --- */
.compare-card-traditional {
    background: var(--cy-white);
    border: 1px solid #e5e7eb;
    border-left: 3px solid #ef4444;
    box-shadow: none;
}

.compare-card-cyntropic {
    background: var(--cy-white);
    border: 1px solid #e5e7eb;
    border-left: 3px solid #22c55e;
    box-shadow: none;
}

.compare-card-traditional:hover,
.compare-card-cyntropic:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* --- FAQ Accordion (modern) --- */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.02);
    color: var(--cy-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--cy-gray-200);
}

.accordion-item {
    border: 1px solid var(--cy-gray-200);
    border-radius: 0.5rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

/* --- Contact / Lead Gen Form --- */
.lead-form .form-control {
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--cy-gray-200);
}

.lead-form .form-control:focus {
    border-color: var(--cy-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* --- Big Footer (enterprise style) --- */
.footer {
    background: var(--cy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 5rem;
    padding-bottom: 0;
}

.footer h5 {
    color: var(--cy-white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer a:hover {
    color: var(--cy-white);
}

.footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cy-white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer .footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 320px;
    line-height: 1.7;
}

.footer .footer-links li {
    margin-bottom: 0.6rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-right: 0.5rem;
    transition: all 0.25s ease;
}

.footer .social-links a:hover {
    background: var(--cy-primary);
    border-color: var(--cy-primary);
    color: var(--cy-white);
}

/* --- Logo C accent --- */
.logo-c {
    color: var(--cy-primary);
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3.5rem;
}

.footer-bottom p,
.footer-bottom a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Buttons (modern refinements) --- */
.btn {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.65rem 1.75rem;
    transition: all 0.25s ease;
}

.btn-lg {
    padding: 0.85rem 2.25rem;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--cy-primary);
    border-color: var(--cy-primary);
}

.btn-primary:hover {
    background-color: var(--cy-primary-dark);
    border-color: var(--cy-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

/* --- Testimonial Section --- */
.testimonial-section {
    background: var(--cy-white);
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--cy-gray-700);
    line-height: 1.8;
}

/* --- Blog / Resources Cards --- */
.bg-featured-blog {
    min-height: 350px;
    background-size: cover;
    background-position: center;
}

/* --- Page Header (for subpages) --- */
.page-header {
    background: var(--cy-gray-100);
    padding: 4rem 0 3rem;
}

/* --- Smooth scroll offset for sticky navbar --- */
html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

/* --- Utility: Light background sections --- */
.bg-light {
    background-color: #fdfdfe !important;
}

.bg-light-subtle {
    background-color: var(--cy-gray-100);
}

/* --- Responsive tweaks --- */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 5rem 0 3rem;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .footer {
        padding-top: 3rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* --- Newsletter CTA in footer --- */
.footer .newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cy-white);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.footer .newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer .newsletter-form .form-control:focus {
    border-color: var(--cy-primary);
    box-shadow: none;
}
