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

:root {
    --om-bg: #f8f9fb;
    --om-surface: #ffffff;
    --om-text: #0f1117;
    --om-text-secondary: #5f6b7a;
    --om-text-tertiary: #9ba4b0;
    --om-green: #3b82f6;
    --om-green-light: #eff6ff;
    --om-blue: #3b82f6;
    --om-blue-light: #eff6ff;
    --om-purple: #8b5cf6;
    --om-purple-light: #f5f3ff;
    --om-amber: #f59e0b;
    --om-amber-light: #fffbeb;
    --om-border: #e8ecf1;
    --om-border-light: #f1f3f6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--om-bg);
    color: var(--om-text);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    margin: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
    background: rgba(248, 249, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--om-text);
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.logo-ollama {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ollama::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--om-border);
    border-radius: 6px;
}

.logo-llama {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.15);
}

.logo-llama.large {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--om-text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-home {
    padding: 6px 14px;
    background: var(--om-blue-light);
    color: var(--om-blue);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.nav-home:hover {
    background: var(--om-blue);
    color: white;
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 0;
    overflow: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -30%;
    right: -5%;
    width: 60%;
    height: 130%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.03) 50%, transparent 70%);
    animation: gradientPulse 10s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.ambient-particles {
    position: absolute;
    inset: 0;
}

.ambient-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    animation: floatDot linear infinite;
}

@keyframes floatDot {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-80vh); opacity: 0; }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--om-surface);
    border: 1px solid var(--om-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--om-text-secondary);
    margin-bottom: 24px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--om-green);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.hero-accent {
    color: var(--om-green);
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--om-text-secondary);
    margin-bottom: 32px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-sublabel {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
}

.btn-primary {
    background: var(--om-green);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.btn-disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--om-green);
    padding: 10px 0;
}

.btn-ghost:hover {
    color: #2563eb;
}

.hero-compat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--om-text-tertiary);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.mockup-card {
    width: 100%;
    max-width: 580px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    animation: mockupFloat 6s ease-in-out infinite;
}

.mockup-card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    display: block;
}

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

.mockup-placeholder {
    display: flex;
    height: 380px;
    background: var(--om-surface);
}

.mockup-sidebar-mock {
    width: 60px;
    background: var(--om-border-light);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mock-menu-item {
    width: 32px;
    height: 32px;
    background: var(--om-border);
    border-radius: var(--radius-sm);
}

.mock-menu-item.active {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.mockup-main-mock {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.mock-chat-header {
    height: 36px;
    background: var(--om-border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    width: 40%;
}

.mock-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-msg {
    height: 40px;
    border-radius: var(--radius-sm);
    width: 70%;
}

.mock-msg.msg-user {
    background: rgba(59, 130, 246, 0.1);
    align-self: flex-end;
}

.mock-msg.msg-assistant {
    background: var(--om-border-light);
    width: 85%;
}

.mock-input-bar {
    height: 40px;
    background: var(--om-border-light);
    border-radius: 999px;
    margin-top: 12px;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--om-green);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

.how-it-works {
    padding: 0 0 100px;
}

.how-it-works .section-label,
.how-it-works .section-title {
    text-align: center;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-card {
    background: var(--om-surface);
    border: 1px solid var(--om-border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-base);
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.work-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
}

.work-green .work-icon { background: var(--om-green-light); color: var(--om-green); }
.work-blue .work-icon { background: var(--om-blue-light); color: var(--om-blue); }
.work-purple .work-icon { background: var(--om-purple-light); color: var(--om-purple); }

.work-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.work-card p {
    font-size: 14px;
    color: var(--om-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.work-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--om-text-tertiary);
}

.work-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.work-green .work-tag-dot { background: var(--om-green); }
.work-blue .work-tag-dot { background: var(--om-blue); }
.work-purple .work-tag-dot { background: var(--om-purple); }

.features {
    padding: 0 0 100px;
}

.features .section-label,
.features .section-title {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--om-surface);
    border: 1px solid var(--om-border-light);
    border-radius: var(--radius-xl);
    padding: 20px;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-preview {
    background: var(--om-border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-simple {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.model-preview {
    gap: 8px;
}

.model-icon-row {
    display: flex;
    gap: 8px;
}

.model-icon-row span {
    flex: 1;
    height: 32px;
    background: var(--om-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--om-border);
}

.chat-preview {
    gap: 6px;
}

.chat-bubble {
    height: 16px;
    background: var(--om-surface);
    border-radius: 8px;
    width: 60%;
}

.chat-bubble.dark {
    background: rgba(59, 130, 246, 0.1);
    align-self: flex-end;
    width: 50%;
}

.prompt-preview {
    gap: 8px;
}

.prompt-card-mock {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: var(--om-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--om-border-light);
}

.prompt-card-mock span:first-child {
    flex: 1;
    height: 8px;
    background: var(--om-border);
    border-radius: 4px;
}

.prompt-card-mock span:last-child {
    width: 20px;
    height: 8px;
    background: var(--om-border);
    border-radius: 4px;
}

.prompt-card-mock.active {
    border-color: rgba(59, 130, 246, 0.3);
}

.monitor-preview {
    gap: 6px;
}

.monitor-bar {
    height: 10px;
    background: var(--om-border);
    border-radius: 999px;
    width: 80%;
}

.monitor-bar.green {
    background: rgba(59, 130, 246, 0.2);
    width: 55%;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13px;
    color: var(--om-text-secondary);
    line-height: 1.5;
}

.philosophy {
    padding: 0 0 100px;
}

.philosophy-container {
    background: var(--om-surface);
    border: 1px solid var(--om-border-light);
    border-radius: var(--radius-2xl);
    padding: 48px;
}

.philosophy-main {
    text-align: center;
    margin-bottom: 40px;
}

.philosophy-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 500px;
    margin: 0 auto;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.philosophy-item {
    text-align: center;
}

.philosophy-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.philosophy-icon-green { background: var(--om-green-light); color: var(--om-green); }
.philosophy-icon-blue { background: var(--om-blue-light); color: var(--om-blue); }
.philosophy-icon-purple { background: var(--om-purple-light); color: var(--om-purple); }
.philosophy-icon-amber { background: var(--om-amber-light); color: var(--om-amber); }

.philosophy-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.philosophy-item p {
    font-size: 13px;
    color: var(--om-text-secondary);
    line-height: 1.5;
}

.ollama-section {
    padding: 0 0 100px;
}

.ollama-card {
    background: var(--om-surface);
    border: 1px solid var(--om-border-light);
    border-radius: var(--radius-2xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ollama-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ollama-visual img {
    max-width: 100%;
    width: 550px;
    height: auto;
}

.ollama-content .section-label {
    margin-bottom: 16px;
}

.ollama-content .section-title {
    margin-bottom: 16px;
}

.ollama-description {
    font-size: 15px;
    color: var(--om-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.final-cta {
    padding: 0 0 60px;
}

.cta-card {
    background: var(--om-surface);
    border: 1px solid var(--om-border-light);
    border-radius: var(--radius-2xl);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-llama .logo-ollama {
    width: 80px;
    height: 80px;
}

.cta-llama .logo-ollama::before {
    width: 72px;
    height: 72px;
    border-radius: 12px;
}

.cta-text {
    flex: 1;
}

.cta-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 15px;
    color: var(--om-text-secondary);
    max-width: 400px;
}

.cta-action {
    flex-shrink: 0;
}

.footer {
    margin-top: 60px;
    border-top: 1px solid var(--om-border);
    padding: 48px 0 24px;
    background: var(--om-surface);
}

.footer-content {
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    margin-bottom: 4px;
}

.footer-logo .logo-ollama {
    width: 32px;
    height: 32px;
}

.footer-logo .logo-ollama::before {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-logo .logo-llama {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.footer-name {
    font-size: 15px;
    font-weight: 600;
}

.footer-descriptor {
    font-size: 14px;
    color: var(--om-text-secondary);
    line-height: 1.6;
    max-width: 260px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--om-border-light);
}

.footer-copyright {
    font-size: 13px;
    color: var(--om-text-tertiary);
}

.footer-heart {
    font-size: 13px;
    color: var(--om-text-tertiary);
}

.heart {
    color: #ef4444;
}

.robot {
    display: inline-block;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-compat {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .mockup-card {
        max-width: 480px;
    }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ollama-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ollama-visual img {
        width: 400px;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
    }

    .cta-subtitle {
        max-width: 100%;
    }
}

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

    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .mockup-card {
        max-width: 100%;
    }

    .mockup-placeholder {
        height: 280px;
    }

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

    .philosophy-container {
        padding: 32px 24px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ollama-card {
        padding: 32px 24px;
    }

    .cta-card {
        padding: 32px 24px;
        flex-direction: column;
        text-align: center;
    }

    .cta-icon {
        width: 60px;
        height: 60px;
    }

    .cta-subtitle {
        max-width: 100%;
    }

    .cta-action {
        width: 100%;
    }

    .cta-action .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mockup-card,
    .ambient-dot,
    .hero-gradient,
    .status-dot {
        animation: none;
    }
}
