:root {
    --bg-dark: #0c0d12;
    --bg-panel: #13151c;
    --text-main: #ededed;
    --text-muted: #888888;
    --accent: #ffffff;
    --accent-fg: #000000;
    --border: #222222;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #ffffff;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

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

a {
    transition: color 0.15s ease;
}

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

.container-sm {
    max-width: 700px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 13, 18, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.logo-img {
    height: 24px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

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

.github-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main) !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
}

.btn-primary:hover {
    background: #e5e5e5;
}

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

.btn-secondary:hover {
    background: var(--bg-panel);
}

.hero {
    padding-top: 100px;
    padding-bottom: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 32px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-section {
    padding-bottom: 80px;
    padding-top: 16px;
}

.preview-wrapper {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-panel);
    padding: 8px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 1);
}

.preview-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--border);
}

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 0;
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--text-main);
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.cta-actions {
    margin-top: 32px;
}

.footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    padding: 48px 0;
    background: var(--bg-dark);
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 48px;
}

.logo-img-small {
    height: 24px;
    width: auto;
}

.footer-desc {
    margin-top: 12px;
    font-size: 0.85rem;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-right a:hover {
    color: var(--text-main);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.fade-up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 600px) {
    .nav-links a:not(.github-link) {
        display: none;
    }

    .hero {
        padding-top: 60px;
    }
}