/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
    --primary:      #1E3A8A;
    --primary-dark: #152d6e;
    --secondary:    #10B981;
    --accent:       #F59E0B;
    --bg:           #F8FAFC;
    --card:         #FFFFFF;
    --text:         #1F2937;
    --muted:        #6B7280;
    --border:       #E5E7EB;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { text-decoration: none; }
ul { list-style: none; }

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-primary {
    background: var(--secondary);
    color: #fff;
}
.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}
.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.25);
}

/* ── Section labels & titles ───────────────────────────────────────────── */
.section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 12px;
}
.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 48px;
    max-width: 560px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 96px 24px;
    color: #fff;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 99px;
    margin-bottom: 24px;
}
.hero-text h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    max-width: 440px;
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: rgba(255,255,255,0.55); }

/* App window mockup */
.app-window {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 380px;
    margin: 0 auto;
}
.window-bar {
    background: #f0f0f0;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green  { background: #28C840; }
.window-body { padding: 20px; background: #F8FAFC; }
.mock-header {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: center;
}
.mock-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.mock-tile {
    border-radius: 10px;
    padding: 18px 12px;
    text-align: center;
    font-size: 22px;
    line-height: 1.5;
    color: #fff;
    font-weight: 600;
}
.mock-tile small { font-size: 11px; display: block; }
.mock-tile.blue   { background: #7C3AED; }
.mock-tile.green  { background: #059669; }
.mock-tile.amber  { background: #D97706; }
.mock-tile.teal   { background: #0E7490; }

/* ── Features ──────────────────────────────────────────────────────────── */
.features {
    padding: 96px 24px;
    background: var(--card);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: all 0.25s;
}
.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30,58,138,0.1);
}
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── Security ──────────────────────────────────────────────────────────── */
.security {
    padding: 96px 24px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf7 100%);
}
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.security-card {
    background: var(--card);
    border-radius: 14px;
    padding: 28px 24px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.security-icon { font-size: 30px; margin-bottom: 12px; }
.security-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.security-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── CTA Banner ────────────────────────────────────────────────────────── */
.cta-section {
    background: var(--primary);
    padding: 80px 24px;
    text-align: center;
    color: #fff;
}
.cta-inner h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta-inner p  { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 32px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 56px 24px 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand .logo { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ── Download Page — Hero ──────────────────────────────────────────────── */
.download-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 96px 24px;
    text-align: center;
    color: #fff;
}
.download-hero-inner { max-width: 640px; margin: 0 auto; }
.dl-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 99px;
    margin-bottom: 20px;
}
.download-hero h1 { font-size: 52px; font-weight: 900; margin-bottom: 16px; }
.download-hero p  { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.dl-req { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 16px; }

/* ── Download Page — Features ──────────────────────────────────────────── */
.dl-features {
    padding: 96px 24px;
    background: var(--card);
}
.dl-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.dl-feature-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.2s;
}
.dl-feature-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(30,58,138,0.08);
}
.dl-feature-icon { font-size: 30px; flex-shrink: 0; }
.dl-feature-item h3 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.dl-feature-item p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Download Page — Install Steps ────────────────────────────────────── */
.install-section {
    padding: 96px 24px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf7 100%);
}
.steps-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.step {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 36px;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.step-body { padding-top: 8px; }
.step-body h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.step-body p  { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.step-body p:last-child { margin-bottom: 0; }
.step-optional {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    background: var(--border);
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 8px;
    vertical-align: middle;
}
.substeps {
    margin: 10px 0 10px 20px;
    color: var(--text);
}
.substeps li { font-size: 14px; margin-bottom: 6px; line-height: 1.6; }
.step-tip {
    background: #fff;
    border-left: 3px solid var(--secondary);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: var(--text);
    margin-top: 10px;
}
.step-warn {
    background: #FFFBEB;
    border-left: 3px solid var(--accent);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: var(--text);
    margin-top: 8px;
}
code {
    background: var(--bg);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    border: 1px solid var(--border);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-inner          { grid-template-columns: 1fr; }
    .hero-visual         { display: none; }
    .features-grid       { grid-template-columns: repeat(2, 1fr); }
    .security-grid       { grid-template-columns: repeat(2, 1fr); }
    .dl-features-grid    { grid-template-columns: 1fr; }
    .footer-inner        { grid-template-columns: 1fr; }
    .footer-links        { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .hero-text h1        { font-size: 36px; }
    .download-hero h1    { font-size: 36px; }
    .section-title       { font-size: 26px; }
    .features-grid       { grid-template-columns: 1fr; }
    .security-grid       { grid-template-columns: 1fr; }
    .footer-links        { grid-template-columns: 1fr; }
    .nav-links           { gap: 16px; }
    .nav-links li:not(:last-child) { display: none; }
}
