:root {
    --primary: #1a6be0;
    --primary-light: #4a8cf0;
    --primary-dark: #0f55bd;
    --container: 1100px;
    --radius: 1.25rem;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --background: #ffffff;
    --foreground: #121212;
    --text-muted: #5f6368;
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --navbar-bg: rgba(255, 255, 255, 0.72);
    --card-bg: #ffffff;
    --hero-gradient: rgba(26, 107, 224, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #0c0d12;
        --foreground: #f5f5f7;
        --text-muted: #a0a3ab;
        --glass: rgba(255, 255, 255, 0.04);
        --glass-border: rgba(255, 255, 255, 0.1);
        --navbar-bg: rgba(12, 13, 18, 0.72);
        --card-bg: #16181f;
        --hero-gradient: rgba(26, 107, 224, 0.18);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 0.92em; }

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

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 10;
    background: var(--navbar-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; }
.logo img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.95rem; }
.nav-links > a:not(.btn) { color: var(--text-muted); transition: color var(--transition); }
.nav-links > a:not(.btn):hover { color: var(--foreground); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 600;
    transition: transform var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--glass); border: 1px solid var(--glass-border); }
.btn-large { padding: 0.85rem 1.6rem; font-size: 1.05rem; }
.btn-lang {
    border: 1px solid var(--glass-border); background: transparent; color: var(--foreground);
    border-radius: 999px; padding: 0.3rem 0.8rem; font: inherit; font-size: 0.85rem; cursor: pointer;
}

/* Hero */
.hero {
    padding: 6rem 0 5rem;
    background: radial-gradient(60% 60% at 75% 30%, var(--hero-gradient), transparent 70%);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.badge {
    display: inline-block; padding: 0.3rem 0.85rem; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 1.25rem; text-wrap: balance; }
.hero h1 .accent { color: var(--primary); white-space: nowrap; }
.subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.brew {
    margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.55rem 0.9rem; border-radius: 0.7rem;
    background: var(--glass); border: 1px solid var(--glass-border); font-size: 0.9rem;
}
.brew { max-width: 100%; overflow-x: auto; }
.brew code { user-select: all; white-space: nowrap; }
.hero-content { min-width: 0; }
.brew .prompt { color: var(--text-muted); }

/* Hero mockup: Mac notification → iPhone notification */
.flow { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.mac-noti, .phone {
    background: var(--card-bg); border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.mac-noti { width: 230px; border-radius: 16px; padding: 0.8rem 0.9rem; font-size: 0.8rem; }
.noti-head { display: flex; align-items: center; gap: 0.45rem; color: var(--text-muted); font-size: 0.72rem; margin-bottom: 0.35rem; }
.noti-head .app-dot { width: 18px; height: 18px; border-radius: 5px; background: #2aabee; display: grid; place-items: center; color: #fff; font-size: 0.6rem; font-weight: 700; }
.noti-title { font-weight: 600; }
.noti-body { color: var(--text-muted); }
.arrow { color: var(--primary); font-size: 1.8rem; font-weight: 700; }
.phone {
    width: 200px; height: 360px; border-radius: 34px; padding: 3.2rem 0.65rem 0;
    background: linear-gradient(160deg, #1a6be0, #6f3fd8); position: relative;
}
.phone::before {
    content: ""; position: absolute; top: 0.7rem; left: 50%; transform: translateX(-50%);
    width: 70px; height: 20px; border-radius: 12px; background: #000;
}
.phone .clock { color: #fff; text-align: center; font-size: 2.6rem; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.phone .mac-noti { width: 100%; border-radius: 14px; box-shadow: none; background: rgba(255, 255, 255, 0.85); color: #121212; border: none; }
.phone .noti-head, .phone .noti-body { color: #555; }

/* Sections */
section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card {
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 1.6rem; transition: transform var(--transition), border-color var(--transition);
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(26, 107, 224, 0.35); }
.feature-card .icon { font-size: 1.6rem; margin-bottom: 0.8rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--glass-border); }
.step .num {
    width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff;
    display: grid; place-items: center; font-weight: 700; margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

.privacy { background: var(--glass); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.privacy ul { max-width: 46rem; margin: 0 auto; list-style: none; display: grid; gap: 0.9rem; }
.privacy li { padding-left: 1.8rem; position: relative; color: var(--text-muted); }
.privacy li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.privacy li strong { color: var(--foreground); }

/* Footer */
.footer { padding: 3rem 0; border-top: 1px solid var(--glass-border); }
.footer .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.footer-brand img { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 1.25rem; color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--foreground); }
.footer-copy { width: 100%; color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 860px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding-top: 3.5rem; }
    .hero .container { grid-template-columns: 1fr; }
    .flow { transform: scale(0.9); }
    .nav-links > a:not(.btn), .nav-links > span { display: none; }
}
@media (max-width: 520px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero h1 .accent { white-space: normal; }
    .flow { flex-direction: column; }
    .arrow { transform: rotate(90deg); }
}
