:root {
    --accent: #4F7DFF;
    --accent-deep: #3457F1;
    --accent-soft: #D9E5FF;
    --bg-top: #F7F9FF;
    --bg-bottom: #EDF1FC;
    --text-primary: #121A28;
    --text-secondary: #66738C;
    --text-tertiary: #99A2B5;
    --card-stroke: rgba(0, 0, 0, 0.06);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(20, 30, 60, 0.06);
    --success: #33C759;
    --danger: #F24D4D;
}

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

html, body {
    background: var(--bg-bottom);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(79, 125, 255, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(132, 168, 255, 0.18), transparent 55%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

a { color: inherit; text-decoration: none; }
code {
    background: rgba(79, 125, 255, 0.10);
    color: var(--accent-deep);
    padding: 1px 6px;
    border-radius: 5px;
    font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.88em;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    background: rgba(247, 249, 255, 0.72);
    border-bottom: 1px solid var(--card-stroke);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(52, 87, 241, 0.30);
}
.brand-name {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lang-toggle {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--card-stroke);
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    font-family: inherit;
}
.lang-toggle:hover {
    background: rgba(52, 87, 241, 0.06);
    border-color: rgba(52, 87, 241, 0.35);
    transform: translateY(-1px);
}
.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(52, 87, 241, 0.30);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 87, 241, 0.40);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 0 40px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--card-stroke);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(51, 199, 89, 0.20);
}
.hero h1 {
    font-size: clamp(36px, 5.4vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.025em;
    font-weight: 700;
    max-width: 880px;
    margin: 0 auto 22px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lead {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
}

.cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 60px;
}
.cta-row.center { margin-top: 24px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    box-shadow: 0 8px 24px rgba(52, 87, 241, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(52, 87, 241, 0.45);
}
.size-hint {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* App preview window */
.hero-shot {
    margin-top: 20px;
    perspective: 1400px;
}
.window-frame {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--card-stroke);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 30px 80px rgba(20, 30, 60, 0.18);
    text-align: left;
    transform: rotateX(2deg);
    transition: transform 0.4s ease;
}
.window-frame:hover { transform: rotateX(0deg); }
.window-bar {
    height: 36px;
    background: linear-gradient(180deg, #F5F6F9, #EDEFF4);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-bottom: 1px solid var(--card-stroke);
}
.dot-mac {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-mac.red { background: #FF5F57; }
.dot-mac.yellow { background: #FEBC2E; }
.dot-mac.green { background: #28C840; }

.window-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 380px;
}
.sidebar {
    background: rgba(247, 249, 255, 0.6);
    border-right: 1px solid var(--card-stroke);
    padding: 14px 10px;
}
.sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    padding: 6px 12px 12px;
    font-weight: 600;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: default;
}
.sidebar-item .ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border-radius: 7px;
    font-size: 14px;
}
.sidebar-item.active {
    background: linear-gradient(135deg, rgba(79, 125, 255, 0.12), rgba(52, 87, 241, 0.12));
}
.row-name { font-weight: 600; font-size: 13px; }
.row-meta { font-size: 11px; color: var(--text-secondary); }

.detail { padding: 22px 26px; }
.detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.detail-head h3 { font-size: 18px; letter-spacing: -0.01em; }
.pill {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(52, 87, 241, 0.30);
}
.detail-sub {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}
.items {
    list-style: none;
    border-top: 1px solid var(--card-stroke);
}
.items li {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-stroke);
    font-size: 13px;
}
.items .check {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: white;
    font-size: 11px;
    border-radius: 5px;
    font-weight: 700;
}
.items .check.empty {
    background: transparent;
    color: var(--text-tertiary);
    border: 1.5px solid var(--text-tertiary);
}
.items .size { color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* Sections */
section.features, section.safety, section.install {
    padding: 80px 0;
}
section h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.card {
    background: white;
    border: 1px solid var(--card-stroke);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px rgba(20, 30, 60, 0.10);
}
.card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-soft), #EAF0FF);
    border-radius: 10px;
    font-size: 22px;
    margin-bottom: 14px;
}
.card h3 {
    font-size: 17px;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

/* Safety */
.safety-inner {
    max-width: 720px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--card-stroke);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}
.safety-inner h2 { text-align: left; margin-bottom: 14px; }
.safety-inner .lead { text-align: left; margin: 0 0 20px; }
.checks {
    list-style: none;
    margin-top: 20px;
}
.checks li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-stroke);
    color: var(--text-primary);
    font-size: 15px;
}
.checks li:last-child { border-bottom: none; }
.ok {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

/* Install steps */
.steps {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}
.steps li {
    display: flex;
    gap: 18px;
    background: white;
    border: 1px solid var(--card-stroke);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: var(--card-shadow);
}
.step-num {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(52, 87, 241, 0.30);
}
.steps li strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}
.steps li p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 24px 60px;
    color: var(--text-tertiary);
    font-size: 13px;
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 720px) {
    .hero { padding: 60px 0 30px; }
    .window-body { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    section.features, section.safety, section.install { padding: 56px 0; }
    .safety-inner { padding: 28px; }
}
