
/* =========================================
   Base styles
   ========================================= */

:root {
    --background: #f8f7f4;
    --surface: #ffffff;
    --text: #292b30;
    --muted: #626670;
    --accent: #365d9b;
    --border: #e5e3de;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.7;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    width: min(100% - 40px, 850px);
    margin-inline: auto;
}


/* =========================================
   Header and navigation
   ========================================= */

header {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}


/* =========================================
   Hero section
   ========================================= */

.hero {
    padding: 85px 0 75px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    text-align: left;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin: 20px 0;
}

.hero-description {
    max-width: 480px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-note {
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.8rem;
}


/* =========================================
   Buttons and actions
   ========================================= */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    border-radius: 7px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.button.primary {
    background: var(--accent);
    color: white;
}

.button.primary:hover {
    background: #294b80;
    text-decoration: none;
}

.button.secondary {
    color: var(--accent);
}

.button.secondary:hover {
    background: var(--surface);
    text-decoration: none;
}


/* =========================================
   Hero product demonstration
   ========================================= */

.hero-demo {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-card {
    padding: 23px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.035);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.demo-indicator {
    width: 8px;
    height: 8px;
    background: #7a9b78;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-card p {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Connection between journal and AI response */
.demo-connector {
    display: flex;
    justify-content: center;
    height: 12px;
}

.demo-connector span {
    width: 2px;
    background: var(--border);
}

.demo-response {
    border-color: #cbd7e8;
}

.demo-sparkle {
    color: var(--accent);
    font-size: 1rem;
}

.demo-caption {
    display: block;
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.8rem;
    font-style: italic;
}


/* =========================================
   General content sections
   ========================================= */

section.content-section {
    padding: 55px 0;
    border-top: 1px solid var(--border);
}

h2 {
    font-size: 1.7rem;
    letter-spacing: -0.5px;
    margin-top: 0;
}

.section-intro {
    color: var(--muted);
}


/* =========================================
   Features
   ========================================= */

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.feature {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.feature h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.feature p {
    margin-bottom: 0;
    color: var(--muted);
}


/* =========================================
   Workflow
   ========================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.step-number {
    color: var(--accent);
    font-weight: 700;
}



/* =========================================
   Journal storage and Markdown preview
   ========================================= */

.storage-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

.storage-panel {
    min-width: 0;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.storage-panel h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1rem;
}

/* Directory tree */

.file-tree {
    padding: 12px 0;
    font-size: 0.9rem;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: var(--text);
}

.tree-level-1 {
    padding-left: 22px;
}

.tree-level-2 {
    padding-left: 44px;
}

.tree-level-3 {
    padding-left: 66px;
}

.tree-level-4 {
    padding-left: 88px;
}

.folder-icon,
.file-icon {
    font-size: 0.95rem;
}

/* Markdown preview */

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.file-preview-header h3 {
    margin-bottom: 18px;
}

.file-type {
    margin-bottom: 18px;
    padding: 3px 8px;
    background: #eef1f6;
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.markdown-preview {
    padding: 16px;
    background: #292b30;
    color: #f8f7f4;
    border-radius: 7px;
    overflow-x: auto;
}

.markdown-preview pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.markdown-preview code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.82rem;
    line-height: 1.8;
}

.storage-note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive storage layout */

@media (max-width: 750px) {
    .storage-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Technology tags
   ========================================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* Soft steel blue tags */
.tag {
    padding: 5px 12px;
    background: rgba(71, 104, 135, 0.12);
    color: #54718d;
    border: 1px solid rgba(71, 104, 135, 0.22);
    border-radius: 20px;
    font-size: 0.85rem;
}


/* =========================================
   Get started / Code block
   ========================================= */

.code-block {
    padding: 18px;
    background: #292b30;
    color: #f8f7f4;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: Consolas, "Courier New", monospace;
}


/* =========================================
   Footer
   ========================================= */

footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}


/* =========================================
   Responsive layouts
   ========================================= */

@media (max-width: 750px) {
    .hero {
        padding: 60px 0 50px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero-description {
        margin-inline: auto;
    }

    .actions {
        justify-content: center;
    }

    .hero-demo {
        max-width: 550px;
        width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .feature-list,
    .steps {
        grid-template-columns: 1fr;
    }

    nav {
        align-items: flex-start;
    }

    .demo-card {
        padding: 20px;
    }
}
