:root {
    --bg: #ffffff;
    --bg-alt: #f4f7fb;
    --bg-dark: #0e2c52;
    --bg-dark-deep: #091d38;
    --text: #101826;
    --text-muted: #55647a;
    --border: #e3e8f0;
    --primary: #1b4f8f;
    --primary-dark: #123761;
    --primary-bright: #3f7dd1;
    --primary-tint: #e8f0fb;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Public Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    text-wrap: balance;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

ul {
    list-style: none;
}

code {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9em;
    color: var(--primary-dark);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(16, 24, 38, 0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 21px;
    letter-spacing: -0.02em;
    color: var(--text);
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

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

.author-credits {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

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

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.nav-toggle-btn span {
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.2s;
}

.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 15px;
}

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

.nav-links .btn-primary {
    color: #fff;
}

/* Buttons */
.btn-primary,
.btn-cta {
    background-color: var(--primary);
    color: #fff;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-block;
}

.btn-primary:hover,
.btn-cta:hover {
    background-color: var(--primary-dark);
}

.btn-cta {
    padding: 16px 34px;
    font-size: 16px;
}

.btn-secondary {
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 15.5px 34px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
}

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

.badge-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 5px;
    margin-left: 10px;
}

/* Hero Section */
.hero {
    padding: 96px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -280px;
    right: -220px;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, var(--primary-tint) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.badge {
    background: var(--primary-tint);
    color: var(--primary-dark);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 22px;
    display: inline-block;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.4rem);
    line-height: 1.14;
    margin-bottom: 22px;
    color: var(--text);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 16px;
    max-width: 56ch;
}

.hero-content p:last-of-type {
    margin-bottom: 36px;
}

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

.spec-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spec-chips .chip {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 8px;
}

.image-wrapper {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(16, 24, 38, 0.1);
    background: var(--bg-alt);
}

.image-wrapper img {
    max-width: 100%;
    display: block;
}

/* Section header */
.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 64px;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.section-header h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
}

/* Features */
.features {
    padding: 104px 0;
    background-color: var(--bg);
}

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

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 36px 32px;
    border-radius: 16px;
    transition: 0.25s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(16, 24, 38, 0.08);
    transform: translateY(-3px);
}

.f-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.f-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* Screenshots Section */
.screenshots {
    padding: 104px 0;
    background-color: var(--bg-alt);
}

.screenshot-carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.screenshot-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(16, 24, 38, 0.06);
}

.screenshot-item img {
    max-width: 100%;
    display: block;
}

.sc-label {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    border-top: 1px solid var(--border);
}

/* Auto Preview */
.auto-preview {
    padding: 108px 0;
    background-color: var(--bg);
}

.auto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.auto-content h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    margin-bottom: 22px;
}

.auto-content h2 span {
    color: var(--primary);
}

.auto-content > p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 46ch;
}

.check-list {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-list li {
    font-size: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
    flex-shrink: 0;
}

.media-frame {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

.media-frame .screenshot-item {
    box-shadow: none;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    text-align: center;
    color: #fff;
}

.cta-card h2 {
    font-size: clamp(2rem, 3.8vw, 2.7rem);
    margin-bottom: 16px;
    color: #fff;
}

.cta-card h2 span {
    color: var(--primary-bright);
}

.cta-card > p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    max-width: 50ch;
    margin: 0 auto;
}

.download-links {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin: 40px 0 22px;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background-color: #fff;
    color: var(--bg-dark);
}

.cta-section .btn-primary .badge-tag {
    background: rgba(14, 44, 82, 0.1);
}

.cta-section .btn-primary:hover {
    background-color: var(--primary-tint);
}

.cta-section .btn-secondary {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.cta-section .btn-secondary:hover {
    border-color: #fff;
}

.cta-section small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

/* Floating "Buy me a coffee" button */
.coffee-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
}

.coffee-float.on-dark .bmc-btn {
    background-color: #fff !important;
    color: var(--primary) !important;
}

/* Footer */
footer {
    padding: 72px 0 32px;
    background-color: var(--bg-dark-deep);
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 52px;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand .author-credits {
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    margin-top: 18px;
    max-width: 30ch;
    font-size: 14px;
}

.footer-links h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    margin-bottom: 22px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-links a,
.footer-links li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14.5px;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.footer-grid + .copyright {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Manual / legal content pages */
.content-hero,
.manual-hero {
    padding: 64px 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.content-container {
    max-width: 800px;
    margin: 56px auto;
    padding: 0 40px;
}

.manual-container {
    max-width: 900px;
    margin: 56px auto;
    padding: 0 40px;
}

.manual-section {
    margin-bottom: 72px;
}

.manual-section h2 {
    font-size: 30px;
    margin-bottom: 26px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.manual-section h3 {
    font-size: 20px;
    margin: 34px 0 16px;
    color: var(--text);
}

.manual-section p {
    font-size: 16.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.7;
}

.manual-section li {
    font-size: 15.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.manual-section li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}

.info-box {
    background: var(--primary-tint);
    border-left: 4px solid var(--primary);
    padding: 24px 26px;
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    font-weight: 600;
    color: var(--text-muted);
}

.back-link:hover {
    color: var(--primary);
}

.content-body {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.8;
}

.content-body h2,
.content-body strong {
    display: block;
    font-size: 19px;
    margin: 28px 0 14px;
    color: var(--text);
}

.content-body p {
    margin-bottom: 18px;
}

.content-body ul {
    margin-bottom: 18px;
    padding-left: 20px;
    list-style: disc;
}

.content-body a {
    color: var(--primary);
    text-decoration: underline;
}

.content-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* Animations: content is visible by default; .revealed only plays a one-off entrance */
.feature-card.revealed, .cta-card.revealed, .screenshot-item.revealed, .auto-grid.revealed {
    animation: reveal-in 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
    .feature-card.revealed, .cta-card.revealed, .screenshot-item.revealed, .auto-grid.revealed {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .auto-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .screenshot-carousel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }

    .nav-toggle:checked ~ .nav-links {
        max-height: 320px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 20px;
    }

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

    .container {
        padding: 0 20px;
    }

    .download-links {
        flex-direction: column;
        align-items: stretch;
    }

    .coffee-float {
        right: 12px;
        bottom: 12px;
        transform: scale(0.72);
        transform-origin: bottom right;
    }
}

/* ores.one additions */
.hero-image .image-wrapper img{width:100%}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center}
.stat b{display:block;font:800 2.2rem Manrope,sans-serif;color:var(--primary)}
.stat span{font-size:14px;color:var(--text-muted)}
.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.project-grid .screenshot-item{display:flex;flex-direction:column}
.project-grid .screenshot-item>img{width:100%;height:auto;flex:none;aspect-ratio:16/10;object-fit:cover}
.project-body{padding:22px 24px 26px;border-top:1px solid var(--border)}
.project-body h3{font-size:20px;margin-bottom:8px}
.project-body p{color:var(--text-muted);font-size:15px;margin-bottom:16px}
.project-body .spec-chips{margin-bottom:18px}
.project-body .links{display:flex;gap:18px;font-weight:700;font-size:14px;color:var(--primary)}
.timeline li{padding:18px 0;border-bottom:1px solid var(--border);display:flex;gap:24px}
.timeline time{font:600 12px 'IBM Plex Mono',monospace;color:var(--primary);min-width:70px;padding-top:3px}
.timeline p{color:var(--text-muted);font-size:15px}
@media(max-width:1024px){.project-grid,.stats{grid-template-columns:1fr 1fr}}
@media(max-width:768px){.project-grid{grid-template-columns:1fr}}

.feature-card .spec-chips{margin-top:18px;gap:6px}
.feature-card .spec-chips .chip{font-size:10.5px;padding:5px 9px}

html{scroll-behavior:smooth}
section,header{scroll-margin-top:84px}
@media(max-width:480px){.navbar .author-credits{display:none}.navbar .container{padding:0 20px}}
