:root {
    --accent: #e5484d;
    --accent-soft: rgba(229, 72, 77, 0.12);
    --accent-ring: rgba(229, 72, 77, 0.45);
    --bg: #0e0d12;
    --bg-elevated: #161519;
    --bg-card: #1c1b21;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --text: #f5f4f7;
    --text-dim: #a5a3ad;
    --text-faint: #6b6973;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --max-width: 1140px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #faf9fb;
        --bg-elevated: #ffffff;
        --bg-card: #ffffff;
        --border: rgba(0, 0, 0, 0.07);
        --border-strong: rgba(0, 0, 0, 0.12);
        --text: #1a1a1f;
        --text-dim: #5c5a64;
        --text-faint: #8a8893;
    }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
    font-feature-settings: "ss01", "cv11";
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}

.nav-brand img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
    padding: 96px 0 80px;
    text-align: center;
}

.hero-logo {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    margin: 0 auto 32px;
    box-shadow: 0 24px 60px -20px rgba(229, 72, 77, 0.35);
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 18px;
    background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 60%, transparent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .tagline {
    font-size: 22px;
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 40px;
    letter-spacing: -0.01em;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 11px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px -8px var(--accent-ring);
}

.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px var(--accent-ring); }

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    color: var(--text);
    border-radius: 11px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--border-strong);
    transition: background 0.15s ease;
}

.cta-secondary:hover { background: var(--bg-card); }

.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.install-block {
    margin: 32px auto 0;
    max-width: 480px;
}

.install-block .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 8px;
    text-align: left;
}

.terminal {
    position: relative;
    background: #161520;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.55);
}

.terminal pre {
    margin: 0;
    padding: 20px 56px 20px 22px;
    overflow-x: auto;
    font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 13.5px;
    line-height: 1.85;
    color: #e6e4ec;
    background: transparent;
}

.terminal code {
    font-family: inherit;
    background: transparent;
    color: inherit;
}

.terminal .tk-prompt { color: #5b596b; user-select: none; }
.terminal .tk-cmd    { color: #e5484d; font-weight: 600; }
.terminal .tk-sub    { color: #c8c6d8; }
.terminal .tk-flag   { color: #f1c069; }
.terminal .tk-arg    { color: #7dd3a0; }

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #a5a3b5;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    padding: 0;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.copy-btn:active { transform: scale(0.94); }

.copy-btn .icon-check { display: none; }
.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-check { display: block; }

.copy-btn.copied {
    background: rgba(125, 211, 160, 0.18);
    border-color: rgba(125, 211, 160, 0.4);
    color: #7dd3a0;
}

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

.section-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 56px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.15s ease;
}

.feature:hover { border-color: var(--border-strong); }

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 18px;
}

.feature h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.feature p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.5;
}

/* Screenshots */
.shots {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.shot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
}

.shot:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
.shot:nth-child(even) .shot-text { order: 2; }
.shot:nth-child(even) .shot-image { order: 1; }

.shot-text { padding: 48px; }

.shot-text h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.shot-text p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
}

.shot-image {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shot-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    aspect-ratio: 2560 / 1600;
}

.shot-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.18s ease-out;
    will-change: transform;
    transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {
    .shot-frame { cursor: zoom-in; }
    .shot-frame.zooming img { transform: scale(2.4); transition: transform 0.05s linear; }
}

/* Privacy callout */
.privacy {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.privacy .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.privacy h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.privacy p {
    color: var(--text-dim);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto 22px;
    line-height: 1.6;
}

.privacy a {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
}

.privacy a:hover { text-decoration: underline; }

/* Footer */
footer {
    padding: 56px 0 64px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
}

footer .links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

footer .links a {
    color: var(--text-dim);
    transition: color 0.15s ease;
}

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

/* Privacy policy page */
.policy {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px;
}

.policy h1 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.policy .updated {
    color: var(--text-faint);
    font-size: 14px;
    margin-bottom: 40px;
}

.policy h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 40px 0 12px;
}

.policy p, .policy ul {
    color: var(--text-dim);
    margin-bottom: 16px;
    font-size: 15.5px;
    line-height: 1.65;
}

.policy ul { padding-left: 22px; }
.policy ul li { margin-bottom: 6px; }
.policy strong { color: var(--text); }
.policy a { color: var(--accent); }
.policy a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
    .hero h1 { font-size: 40px; }
    .hero .tagline { font-size: 18px; }
    .section { padding: 64px 0; }
    .section-title { font-size: 30px; }
    .features { grid-template-columns: 1fr; }
    .shot, .shot:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .shot:nth-child(even) .shot-text { order: 2; }
    .shot:nth-child(even) .shot-image { order: 1; }
    .shot-text { padding: 32px; }
    .nav-links { gap: 16px; font-size: 13px; }
    .privacy { padding: 32px 24px; }
}
