/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --brand-primary: #818bf9;
    --brand-dark: #1f1b4d;
    --brand-light: #e0e7fd;
    --brand-light-bg: #F3F4F6;
    --emerald: #10B981;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --red-300: #FCA5A5;
    --red-500: #EF4444;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--gray-600);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

.text-primary {
    color: var(--brand-primary);
}

.text-emerald {
    color: var(--emerald);
}

.btn {
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: #6b71d6;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-primary);
    padding: 0.5rem 1rem;
    border: 2px solid var(--brand-primary);
}

.btn-secondary:hover {
    background: var(--brand-primary);
    color: var(--white);
    border-color: var(--brand-primary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.icon-sm {
    width: 20px;
    height: 20px;
}

.icon-xs {
    width: 14px;
    height: 14px;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(21, 18, 54, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 2.5rem;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--brand-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-primary);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--brand-light);
    cursor: pointer;
}

.mobile-menu {
    background: var(--brand-dark);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu-content {
    padding: 0.5rem 1rem 1.5rem;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem;
    color: var(--brand-light);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--white);
    background: rgba(124, 58, 237, 0.1);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: var(--brand-dark);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--brand-dark), transparent, var(--brand-dark));
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(233, 213, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-demo {
    width: 100%;
    max-width: 56rem;
    position: relative;
}

.floating-mascot {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    display: none;
    animation: bounce-slow 3s ease-in-out infinite;
}

.mascot-image {
    width: 4rem;
    height: 4rem;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(129, 139, 249, 0.5));
}

@media (min-width: 1024px) {
    .hero {
        padding: 12rem 0 8rem;
    }
    
    .hero-content {
        flex-direction: row;
        gap: 5rem;
    }
    
    .hero-text {
        flex: 1;
        text-align: left;
    }
    
    .hero-demo {
        flex: 1;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .floating-mascot {
        display: block;
    }
}

/* ============================================
   Interactive Demo
   ============================================ */
.demo-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.demo-toolbar {
    background: #1f1b4d;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.demo-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-filename {
    font-weight: 600;
    color: var(--brand-light);
}

.demo-badge {
    font-size: 0.75rem;
    background: rgba(124, 58, 237, 0.2);
    color: var(--brand-primary);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.demo-toolbar-right {
    display: flex;
    gap: 0.5rem;
}

.demo-table-container {
    overflow-x: auto;
}

.demo-table {
    width: 100%;
    font-size: 0.875rem;
    text-align: left;
}

.demo-table thead {
    background: #1f1b4d;
    color: var(--brand-primary);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.demo-table th {
    padding: 1rem;
    font-weight: 500;
}

.demo-table tbody {
    background: var(--brand-dark);
}

.demo-table tbody tr {
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    transition: background 0.3s ease;
}

.demo-table tbody tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

.demo-table td {
    padding: 1rem;
    font-family: 'Courier New', monospace;
    color: var(--brand-light);
}

.demo-table td.error {
    color: var(--red-300);
    background: rgba(239, 68, 68, 0.1);
}

.demo-table td.success {
    color: var(--brand-light);
}

.demo-table td .null-value {
    font-style: italic;
    color: rgba(255, 255, 255, 0.2);
}

.demo-status {
    background: #1f1b4d;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: rgba(233, 213, 255, 0.5);
    display: flex;
    justify-content: space-between;
}

.status-success {
    color: var(--emerald) !important;
}

/* Status Icons */
.status-icon {
    width: 1rem;
    height: 1rem;
}

.status-error {
    color: #FCA5A5;
}

.status-success-icon {
    color: #34D399;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-light {
    background: rgba(245, 243, 255, 0.3);
}

.section-white {
    background: var(--white);
}

.section-dark {
    background: var(--brand-dark);
    color: var(--white);
}

.section-dark .section-label {
    color: var(--brand-primary);
}

.section-dark .section-title {
    color: var(--white);
}

.section-dark .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.section-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 33.333%;
    height: 100%;
    background: rgba(124, 58, 237, 0.05);
    transform: skewX(-12deg);
    transform-origin: top right;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--brand-primary);
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
    line-height: 1.2;
}

.section-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto;
}

.section-audience {
    font-size: 1rem;
    color: var(--brand-primary);
    font-weight: 600;
    max-width: 48rem;
    margin: 1.5rem auto 0;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* ============================================
   Comparison Grid
   ============================================ */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.comparison-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-100);
    transition: all 0.5s ease;
}

.comparison-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-0.5rem);
}

.comparison-number {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 3rem;
    height: 3rem;
    background: var(--brand-primary);
    color: var(--white);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
    transition: transform 0.3s ease;
}

.comparison-card:hover .comparison-number {
    transform: scale(1.1) rotate(12deg);
}

.comparison-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    color: var(--brand-dark);
}

.comparison-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-100);
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.section-dark .feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.section-dark .feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 30px rgba(129, 139, 249, 0.2);
}

.section-dark .feature-title,
.section-dark .feature-card h3 {
    color: var(--white);
}

.section-dark .feature-description,
.section-dark .feature-card p {
    color: rgba(255, 255, 255, 0.8);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card .feature-icon svg {
    width: 2rem;
    height: 2rem;
    stroke: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.8;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Implementation Section
   ============================================ */
.implementation-container {
    position: relative;
}

.connector-line {
    display: none;
}

.implementation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.implementation-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.7s ease;
}

.implementation-step.active {
    transform: scale(1.05);
    opacity: 1;
}

.implementation-step.inactive {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.step-icon-container {
    position: relative;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.7s ease;
    border: 4px solid var(--gray-100);
    background: var(--white);
    animation: float 6s ease-in-out infinite;
}

.implementation-step.active .step-icon-container {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.step-icon-container svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: var(--gray-400);
    transition: all 0.5s ease;
}

.implementation-step.active .step-icon-container svg {
    stroke: var(--white);
    transform: scale(1.1);
}

.step-number {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    border: 2px solid var(--white);
    background: var(--gray-200);
    color: var(--gray-600);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.implementation-step.active .step-number {
    background: var(--white);
    color: var(--brand-primary);
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--brand-primary);
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0;
}

.implementation-step.active .pulse-ring {
    opacity: 0.2;
}

.implementation-step h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    transition: color 0.5s ease;
    color: var(--gray-400);
}

.implementation-step.active h3 {
    color: var(--brand-dark);
}

.implementation-step p {
    font-size: 0.875rem;
    line-height: 1.8;
    transition: color 0.5s ease;
    color: var(--gray-400);
}

.implementation-step.active p {
    color: var(--gray-600);
}

.step-arrow {
    display: block;
    margin-top: 2rem;
    color: rgba(124, 58, 237, 0.3);
}

.step-arrow svg {
    transform: rotate(90deg);
}

@media (min-width: 768px) {
    .step-arrow svg {
        transform: rotate(0deg);
    }
}

@media (min-width: 1024px) {
    .connector-line {
        display: block;
        position: absolute;
        top: 3rem;
        left: 0;
        width: 100%;
        height: 0.25rem;
        background: var(--gray-100);
        border-radius: 9999px;
    }
    
    .connector-beam {
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, transparent, var(--brand-primary), transparent);
        animation: shimmer 3s ease-in-out infinite;
        opacity: 0.8;
    }
    
    .implementation-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .step-arrow {
        display: none;
    }
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: #F3F4F6;
    padding: 5rem 0;
}

.cta-card {
    background: #1f1b4d;
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(129, 139, 249, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(31, 27, 77, 0.3);
    text-align: center;
    max-width: 80rem;
    margin: 0 auto;
}

.cta-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(129, 139, 249, 0.2);
    filter: blur(60px);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.cta-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(224, 231, 253, 0.7);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.cta-button {
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(129, 139, 249, 0.2);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(129, 139, 249, 0.3);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3rem;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1f1b4d;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    height: 2rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-tagline {
    margin-top: 0.75rem;
    color: rgba(233, 213, 255, 0.4);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(233, 213, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(233, 213, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--brand-primary);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: rgba(233, 213, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-social:hover {
    color: var(--brand-primary);
}

.footer-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.monk-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.monk-bar-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.monk-bar-intro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.monk-bar-label {
    font-size: 0.625rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

.monk-bar-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.monk-bar-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 150px;
}

.monk-bar-step-desc {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.monk-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.monk-bar-item:hover {
    background: var(--white);
    border-color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(129, 139, 249, 0.3);
}

.monk-bar-item-active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 4px 15px rgba(129, 139, 249, 0.4);
}

.monk-bar-item-active:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
}

.monk-bar-logo {
    height: 1.25rem;
    width: auto;
    transition: all 0.3s ease;
}

.monk-bar-item-active .monk-bar-logo {
    filter: brightness(0) invert(1);
}

.monk-bar-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    height: 44px;
}

.monk-bar-cta {
    color: var(--brand-primary);
    font-size: 0.95rem;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(233, 213, 255, 0.05);
    padding-top: 2rem;
}

.footer-bottom p {
    color: rgba(233, 213, 255, 0.3);
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-brand {
        text-align: left;
    }
    
    .footer-right {
        align-items: flex-end;
    }
    
    .monk-bar-flow {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .monk-bar-arrow {
        display: none;
    }
    
    .monk-bar-flow {
        gap: 0.75rem;
    }
    
    .monk-bar-item {
        padding: 0.5rem 1rem;
    }
    
    .monk-bar-logo {
        height: 1rem;
    }
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(31, 27, 77, 0.1);
    border-color: var(--brand-primary);
}

.pricing-card-featured {
    border-color: var(--brand-primary);
    border-width: 3px;
    box-shadow: 0 10px 30px rgba(129, 139, 249, 0.15);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--brand-primary);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-600);
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--brand-dark);
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--gray-600);
}

.pricing-custom {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-custom {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--gray-700);
}

.pricing-icon {
    flex-shrink: 0;
    display: block;
}

.pricing-features .feature-icon {
    flex-shrink: 0;
    color: var(--brand-primary);
    fill: currentColor;
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ============================================
   Contact Modal
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 27, 77, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray-400);
    transition: color 0.3s ease;
    border-radius: 0.5rem;
}

.modal-close:hover {
    color: var(--brand-dark);
    background: var(--gray-100);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(129, 139, 249, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

@media (max-width: 640px) {
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

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

.zoom-in {
    animation: zoom-in 0.3s ease-out;
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Processing state */
.processing {
    cursor: wait !important;
    opacity: 0.5;
}

/* ============================================
   New Sections Styles
   ============================================ */

/* Short Context Section - Two Cards Vertical */
.context-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.context-card {
    padding: 2.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .context-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.context-card-problem {
    background: var(--white);
    border-left: 5px solid #ef4444;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.context-card-problem:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateX(4px);
}

.context-card-solution {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #6366f1 100%);
    border-left: 5px solid var(--white);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(129, 139, 249, 0.4);
}

.context-card-solution:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 40px rgba(129, 139, 249, 0.5);
}

.context-card-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.context-card-problem .context-card-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.context-card-solution .context-card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.context-card-content {
    flex: 1;
}

.context-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.context-card-problem .context-card-title {
    color: #ef4444;
}

.context-card-solution .context-card-title {
    color: var(--white);
}

.context-card-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
}

.context-card-problem .context-card-text {
    color: var(--gray-700);
}

.context-card-solution .context-card-text {
    color: rgba(255, 255, 255, 0.95);
}

/* Who It's For Section */
.who-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .who-grid {
        grid-template-columns: 1fr;
    }
}

.who-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.who-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 8px 24px rgba(129, 139, 249, 0.15);
    transform: translateY(-2px);
}

.who-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--brand-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.who-card p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.5;
    margin: 0;
    padding-top: 0.5rem;
}

/* What It Does Section */
.what-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.what-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 180px;
}

.what-number {
    width: 48px;
    height: 48px;
    background: var(--brand-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.what-step p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.what-arrow {
    font-size: 1.5rem;
    color: var(--brand-primary);
    font-weight: 300;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .what-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .what-arrow {
        transform: rotate(90deg);
    }
}

/* Typical Use Case Section */
.usecase-timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.usecase-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gray-300) 75%, var(--brand-primary) 75%);
}

.usecase-item {
    position: relative;
    padding: 1rem 0 1rem 1.5rem;
}

.usecase-marker {
    position: absolute;
    left: -1.5rem;
    top: 1.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 2px solid var(--white);
}

.usecase-problem .usecase-marker {
    background: var(--gray-400);
}

.usecase-solution .usecase-marker {
    background: var(--brand-primary);
    width: 16px;
    height: 16px;
    left: -1.6rem;
}

.usecase-content p {
    margin: 0;
    color: var(--gray-700);
    font-size: 1.1rem;
    line-height: 1.5;
}

.usecase-solution .usecase-content p {
    color: var(--brand-dark);
}

/* How It Fits Section */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.flow-step {
    flex-shrink: 0;
}

.flow-box {
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    min-width: 150px;
}

.flow-box-highlight {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(129, 139, 249, 0.3);
}

.flow-mascot {
    width: 32px;
    height: 32px;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--brand-primary);
    font-weight: 300;
}

.flow-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

/* Stage Signal Section */
.stage-signal-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stage-signal-quote {
    font-family: 'Lora', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--brand-primary);
    font-weight: 700;
}

.stage-signal-text {
    margin: 0;
    padding-top: 1.5rem;
    color: var(--brand-dark);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: 'Lora', serif;
}

@media (max-width: 768px) {
    .stage-signal-quote {
        font-size: 3rem;
    }
    
    .stage-signal-text {
        font-size: 1.5rem;
    }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Demo Highlight Animation */
.demo-highlight {
    animation: highlightPulse 1.5s ease;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(129, 139, 249, 0);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(129, 139, 249, 0.3);
    }
}

/* MonkSuite Section */
.monk-suite-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.monk-suite-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 180px;
}

.monk-suite-box {
    width: 140px;
    height: 70px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.monk-suite-box:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 8px 24px rgba(129, 139, 249, 0.2);
    transform: translateY(-2px);
}

.monk-suite-box-highlight {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 8px 24px rgba(129, 139, 249, 0.3);
}

.monk-suite-box-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(129, 139, 249, 0.4);
}

.monk-suite-logo {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

.monk-suite-box-highlight .monk-suite-logo {
    filter: brightness(0) invert(1);
}

.monk-suite-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.monk-suite-arrow {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-top: 1.25rem;
}

.monk-suite-cta {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-700);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .monk-suite-flow {
        gap: 1.5rem;
    }
    
    .monk-suite-arrow {
        display: none;
    }
    
    .monk-suite-step {
        width: calc(50% - 1rem);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .monk-suite-step {
        width: 100%;
    }
}

/* Subpages Styles */
.navbar-light {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.navbar-dark-static {
    background: var(--brand-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-dark-static .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark-static .nav-link:hover {
    color: var(--white);
}

.page-content {
    padding-top: 120px;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
}

.page-body {
    max-width: 800px;
    margin: 0 auto;
}

.page-body h2 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-body h2:first-child {
    margin-top: 0;
}

.page-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.page-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-body li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.page-body a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}

.page-body a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-content {
        padding-top: 100px;
    }
}
