/* ==========================================================================
   CSS Reset & Variables (Modernized MKEAI Style)
   ========================================================================== */
:root {
    /* Colors - Modern, high contrast, tech-focused */
    --primary-color: #3b82f6; /* Modern Blue */
    --primary-hover: #2563eb;
    --secondary-color: #0f172a; /* Slate 900 */
    --accent-color: #8b5cf6; /* Violet */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    --border-color: #e2e8f0;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-base: 16px;
    --line-height: 1.6;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Shadows & Transitions */
    --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-glow: 0 0 20px rgba(59, 130, 246, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: var(--font-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: var(--line-height);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   Animations & Dynamic Effects
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   Layout Basics
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.bg-light { background-color: var(--bg-light); }
.bg-gradient { background: var(--bg-gradient); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-main);
    border-radius: 50%;
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
}

.icon-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ==========================================================================
   Navigation (Glassmorphism)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary-color);
    display: flex;
}

.main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
}

.main-nav.active {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Hamburger */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: none;
    cursor: pointer;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0f172a;
}

.hero-bg-animated {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 1) 100%);
    z-index: 0;
}

.hero-bg-animated::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxjaXJjbGUgY3g9IjIiIGN5PSIyIiByPSIyIiBmaWxsPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDUpIiAvPgo8L3N2Zz4=');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.inline-code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    color: #e2e8f0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Code Snippet */
.hero-code-snippet {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    width: 100%;
    max-width: 700px;
}

.code-window {
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    background: #0f172a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px; height: 12px; border-radius: 50%; margin-right: 8px;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.code-title {
    color: #64748b;
    font-size: 0.875rem;
    margin-left: auto;
    margin-right: auto;
    font-family: monospace;
}

.code-window pre {
    padding: 1.5rem;
    color: #e2e8f0;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
}

.code-window .highlight {
    color: #60a5fa;
    font-weight: bold;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1rem;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.data-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.data-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Onboarding Steps Section (MKAI Integrated)
   ========================================================================== */
.mkai-onboard {
    background-color: var(--bg-light); /* Integrating with existing theme */
}

.mkai-onboard__container {
    max-width: 1280px; /* Matching the rest of the site's max-width */
    margin: 0 auto;
    text-align: center;
}

.mkai-onboard__pill {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: #ffffff;
    background: var(--secondary-color); /* Dark navy */
    border-radius: 999px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.mkai-onboard__title {
    margin: 0;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.mkai-onboard__subtitle {
    margin: 1rem auto 3rem;
    max-width: 720px;
    font-size: 1.125rem;
    color: var(--text-muted);
}

.mkai-onboard__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.mkai-onboard__card {
    position: relative;
    background: var(--bg-main);
    border-radius: 1.25rem; /* Larger modern border radius */
    padding: 1.5rem 1.25rem;
    text-align: left;
    box-shadow: var(--shadow-md);
    min-height: 200px;
    isolation: isolate;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    will-change: transform, opacity;
    border: 1px solid var(--border-color);
}

.mkai-onboard__card.mkai-in {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.6s ease;
}

.mkai-onboard__card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px); /* Gentle hover lift */
}

.mkai-onboard__badge {
    position: absolute;
    top: 1.25rem; 
    left: 1.25rem;
    width: 2.5rem; 
    height: 2.5rem;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.mkai-onboard__card-title {
    margin: 0 0 0.75rem 0;
    padding-left: 3.5rem; /* Offset for the absolute badge */
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--secondary-color);
}

.mkai-onboard__card-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    padding-top: 1rem; /* Spacing below title/badge area */
}

.mkai-onboard__code {
    font-family: monospace;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 6px;
    word-break: break-all;
    font-size: 0.85em;
    border: 1px solid #e2e8f0;
}

@media (max-width: 1100px) {
    .mkai-onboard__grid { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 480px) {
    .mkai-onboard__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .mkai-onboard__card { transform: none !important; opacity: 1 !important; }
}

/* ==========================================================================
   Models & Apps Integration Section
   ========================================================================== */
.models-section {
    padding: 6rem 0;
    background: radial-gradient(circle at top left, rgba(236, 253, 245, 0.5) 0%, rgba(255, 255, 255, 1) 40%);
    background-color: #f8fafc; /* Fallback very light gray matching reference */
    position: relative;
    overflow: hidden;
}

.models-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827; /* Dark navy/black matching reference */
    letter-spacing: normal;
    text-align: center;
    margin-bottom: 2rem;
}

.unified-separator {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2.5rem;
}

.mb-xl {
    margin-bottom: 5rem;
}

.models-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.models-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.model-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.model-icon-wrapper:hover {
    transform: scale(1.1);
    opacity: 1;
}

.model-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.model-more-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding-left: 0.5rem;
}

/* App Grid Specific Styles */
.apps-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.apps-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.app-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.app-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.app-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.apps-footer {
    text-align: center;
    margin-top: 3rem;
    color: #6b7280;
    font-size: 0.875rem;
}

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

.feature-card {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon.blue { background: #eff6ff; color: #3b82f6; }
.feature-icon.purple { background: #faf5ff; color: #8b5cf6; }
.feature-icon.green { background: #ecfdf5; color: #10b981; }
.feature-icon.orange { background: #fff7ed; color: #f59e0b; }
.feature-icon.red { background: #fef2f2; color: #ef4444; }
.feature-icon.indigo { background: #eef2ff; color: #6366f1; }

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

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

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.pricing-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.pricing-text .lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.check-list {
    margin-bottom: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.check {
    color: #10b981;
    font-weight: bold;
    margin-right: 0.75rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
}

.glass-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 1.5rem 0;
}

.glass-card .price span { font-size: 1.5rem; vertical-align: super; }
.glass-card .price small { font-size: 1rem; color: var(--text-muted); font-weight: normal; }

.card-body ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.card-body ul li:last-child { border: none; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.quote-mark {
    font-size: 4rem;
    color: #e2e8f0;
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-family: serif;
    line-height: 1;
}

.quote {
    font-size: 1.125rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.author-info h4 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 2rem;
}

.footer-logo {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: white; }

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

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }
    .main-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: auto;
        flex-grow: 1;
        padding: 0;
        background: transparent;
        box-shadow: none;
        margin-left: 3rem;
    }
    .nav-links { flex-direction: row; gap: 2rem; }
    
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
}

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