/* ========================================
   FARMASCALE LANDING PAGE - ENTERPRISE DESIGN v3.0
   Sober, Modern, Sophisticated
   ======================================== */

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== ENTERPRISE COLORS ========== */
:root {
    --enterprise-blue: #002060;
    --enterprise-blue-dark: #001440;
    --accent-aqua: #BAF56B;
    --accent-aqua-dark: #9FD956;
}

/* ========== CHAT BUBBLE BUTTONS ========== */
.chat-bubble-btn {
    position: relative;
    border-radius: 20px 20px 20px 4px; /* Speech bubble shape */
    box-shadow: 4px 4px 0px 0px rgba(0, 32, 96, 0.2); /* Solid shadow */
    transition: all 0.3s ease;
}

.chat-bubble-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px rgba(0, 32, 96, 0.3);
}

.chat-bubble-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px rgba(0, 32, 96, 0.2);
}

/* Chat bubble tail effect */
.chat-bubble-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--enterprise-blue);
    transform: translateY(100%) translateX(-2px);
}

/* ========== ANIMATIONS ========== */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up-delayed {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== UTILITY CLASSES ========== */
.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-fade-in-delayed {
    animation: fade-in 1.5s ease-out 0.3s both;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out;
}

.animate-slide-up-delayed {
    animation: slide-up-delayed 1s ease-out 0.2s both;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

/* ========== PAIN FLOW ITEMS ========== */
.pain-flow-item {
    transition: all 0.3s ease;
}

.pain-flow-item:hover {
    transform: translateX(10px);
}

/* ========== CYCLE ANIMATION ========== */
.cycle-arrow {
    pointer-events: none;
}

.arrow-path-1,
.arrow-path-2,
.arrow-path-3,
.arrow-path-4,
.arrow-path-5 {
    animation: draw-arrow 1.5s ease-out forwards;
}

.arrow-path-1 {
    animation-delay: 0.5s;
}

.arrow-path-2 {
    animation-delay: 2s;
}

.arrow-path-3 {
    animation-delay: 3.5s;
}

.arrow-path-4 {
    animation-delay: 5s;
}

.arrow-path-5 {
    animation-delay: 6.5s;
}

@keyframes draw-arrow {
    to {
        stroke-dashoffset: 0;
    }
}

/* Cycle repeats */
.cycle-arrow {
    animation: cycle-repeat 10s ease-in-out 8s infinite;
}

@keyframes cycle-repeat {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.cycle-node {
    animation: node-pulse 2s ease-in-out infinite;
}

@keyframes node-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Override for positioned nodes */
.cycle-node.absolute.top-0 {
    animation: node-pulse-top 2s ease-in-out infinite;
}

@keyframes node-pulse-top {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* ========== SCROLLBAR CUSTOMIZATION ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--enterprise-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-aqua);
}

/* ========== SECTION SPECIFIC STYLES ========== */

/* Hero Section underline effect */
.relative span .absolute {
    animation: expand-underline 0.8s ease-out 0.5s both;
}

@keyframes expand-underline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ========== DIFFERENTIAL CARDS (Dark) ========== */
.differential-card {
    transition: all 0.3s ease;
    cursor: default;
}

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

/* ========== BENEFIT CARDS ========== */
.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
}

/* ========== FAQ ACCORDION ========== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 32, 96, 0.1);
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.show {
    max-height: 500px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ========== DASHBOARD ENTERPRISE STYLE ========== */
.dashboard-container {
    background: #002060;
    border: 1px solid rgba(186, 245, 107, 0.2);
}

.dashboard-metric {
    background: rgba(186, 245, 107, 0.1);
    border: 2px solid rgba(186, 245, 107, 0.3);
    transition: all 0.3s ease;
}

.dashboard-metric:hover {
    background: rgba(186, 245, 107, 0.15);
    border-color: var(--accent-aqua);
    transform: scale(1.02);
}

.metric-value {
    color: var(--accent-aqua);
    font-weight: 900;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    #hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .chat-bubble-btn {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }
    
    .pain-flow-item:hover {
        transform: none;
    }
    
    .differential-card,
    .benefit-card {
        transform: none !important;
    }
    
    /* Mobile Font Size Adjustments */
    h1 {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.4;
    }
    
    .cycle-node {
        width: 60px !important;
        height: 60px !important;
    }
    
    .cycle-node i {
        font-size: 1.5rem !important;
    }
    
    .cycle-node span {
        font-size: 0.625rem !important;
    }
}

/* ========== HOVER EFFECTS ========== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 32, 96, 0.15);
}

/* ========== FOCUS STATES (Accessibility) ========== */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 3px solid var(--accent-aqua);
    outline-offset: 2px;
}

/* ========== LOADING ANIMATION ========== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--enterprise-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========== SUCCESS MESSAGE ========== */
.success-message {
    background: linear-gradient(135deg, #00A859, #008A47);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    animation: slide-up 0.5s ease-out;
    box-shadow: 0 10px 30px rgba(0, 168, 89, 0.3);
}

.success-message i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

/* ========== PRINT STYLES ========== */
@media print {
    header,
    #backToTop,
    #demo {
        display: none;
    }
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== ENTERPRISE BADGE ========== */
.enterprise-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(186, 245, 107, 0.1);
    border: 1px solid var(--accent-aqua);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-aqua);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== COMING SOON SECTION ========== */
.coming-soon-card {
    position: relative;
    overflow: hidden;
}

.coming-soon-card::before {
    content: 'EM BREVE';
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--accent-aqua);
    color: var(--enterprise-blue);
    font-size: 0.625rem;
    font-weight: 900;
    padding: 4px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(186, 245, 107, 0.3);
}

/* ========== END OF STYLES ========== */
