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

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-primary: #f5f5f4;
    --bg-secondary: #ffffff;
    --accent: #1a1a1a;
    --border: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f5f5f4;
        --text-secondary: #a0a0a0;
        --bg-primary: #1a1a1a;
        --bg-secondary: #252525;
        --accent: #f5f5f4;
        --border: rgba(255, 255, 255, 0.1);
    }
}

html {
    font-size: 16px;
}

body {
    font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 24px 0;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.logo-line {
    stroke: var(--text-primary);
    stroke-width: 12;
    stroke-linecap: butt;
    fill: none;
}

.line-1 {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-rtl 0.4s ease forwards 0.3s;
}

.line-2 {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw-ltr-half 0.3s ease forwards 0.7s;
}

.line-3 {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-ltr 0.4s ease forwards 1.0s;
}

.line-4 {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw-rtl-half 0.3s ease forwards 1.4s;
}

.line-5 {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-ltr 0.4s ease forwards 1.7s;
}

@keyframes draw-rtl {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-ltr {
    from {
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-ltr-half {
    from {
        stroke-dashoffset: 50;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-rtl-half {
    from {
        stroke-dashoffset: 50;
    }
    to {
        stroke-dashoffset: 0;
    }
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    font-size: 14px;
    text-decoration: none;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    padding: 24px 0;
}

.hero {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.1s forwards;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.tagline {
    font-size: clamp(16px, 2.5vw, 18px);
    color: var(--text-secondary);
    max-width: 560px;
}

.install {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.install h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.install-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.install-subtext a {
    color: var(--text-secondary);
}

.install-steps {
    list-style: decimal;
    padding-left: 20px;
}

.install-steps li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    padding-left: 8px;
}

.install-steps li::marker {
    color: var(--text-primary);
    font-weight: 500;
}

.install-steps a {
    color: var(--text-secondary);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    margin-top: 6px;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
}

.copy-btn:hover code {
    opacity: 0.7;
}

.copy-btn code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

.copy-icon {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.copy-btn:hover .copy-icon {
    color: var(--text-primary);
}

.copy-btn.copied .copy-icon {
    color: var(--text-primary);
}

.features {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.features p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.features strong {
    color: var(--text-primary);
    font-weight: 500;
}

footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fadeIn 0.6s ease 0.4s forwards;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-inner a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-logo-icon .logo-line {
    stroke: var(--text-secondary);
    animation-delay: 0.5s;
}

.footer-logo-icon .line-1 { animation-delay: 0.5s; }
.footer-logo-icon .line-2 { animation-delay: 0.9s; }
.footer-logo-icon .line-3 { animation-delay: 1.2s; }
.footer-logo-icon .line-4 { animation-delay: 1.6s; }
.footer-logo-icon .line-5 { animation-delay: 1.9s; }

.separator {
    margin: 0 8px;
    opacity: 0.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .page {
        padding: 0 16px;
    }

    main {
        gap: 32px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

