/* ============================================================
   Chrome History Cleaner — landing page styles
   Theme: dark, with a cyan→purple accent gradient (#00d4ff → #7c3aed)
   ============================================================ */

:root {
    --bg: #0a0b14;
    --bg-elevated: #12131f;
    --bg-card: #161827;
    --bg-code: #0d0e18;
    --border: #242741;
    --border-light: #2e3251;
    --text: #e8eaf2;
    --text-muted: #9aa0b8;
    --text-dim: #6b7090;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-grad: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --success: #34d399;
    --danger: #f87171;
    --radius: 14px;
    --radius-sm: 8px;
    --maxw: 1180px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }

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

.gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(0, 212, 255, .5);
}
.btn-primary:hover { box-shadow: 0 12px 32px -8px rgba(124, 58, 237, .6); }
.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border-light);
}
.btn-secondary:hover { border-color: var(--accent-cyan); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(10, 11, 20, .8);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}
.nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-github-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border-light);
    color: var(--text) !important;
}
.nav-github-btn:hover { border-color: var(--accent-cyan); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; }
.hero-bg-effects { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; }
.hero-orb-1 { width: 400px; height: 400px; background: var(--accent-cyan); top: -80px; left: -60px; }
.hero-orb-2 { width: 460px; height: 460px; background: var(--accent-purple); top: 40px; right: -120px; }
.hero-orb-3 { width: 320px; height: 320px; background: #2563eb; bottom: -120px; left: 40%; opacity: .25; }
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero-container {
    position: relative; z-index: 1;
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(0, 212, 255, .08); border: 1px solid rgba(0, 212, 255, .25);
    color: var(--accent-cyan); font-size: .85rem; font-weight: 500; margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.12rem; color: var(--text-muted); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; align-items: center; gap: 28px; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 1.9rem; font-weight: 800; }
.stat-label { font-size: .85rem; color: var(--text-dim); }
.stat-divider { width: 1px; height: 38px; background: var(--border-light); }

/* Hero terminal */
.terminal { background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden; }
.terminal-header { display: flex; align-items: center; padding: 12px 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.terminal-dots { display: flex; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; } .dot-yellow { background: #ffbd2e; } .dot-green { background: #27c93f; }
.terminal-title { flex: 1; text-align: center; font-size: .8rem; color: var(--text-dim); font-family: var(--mono); }
.terminal-spacer { width: 48px; }
.terminal-body { padding: 18px; font-family: var(--mono); font-size: .86rem; min-height: 280px; line-height: 1.7; }
.terminal-line { white-space: pre-wrap; word-break: break-word; }
.terminal-prompt { color: var(--accent-cyan); margin-right: 8px; }
.terminal-output { color: var(--text-muted); }
.terminal-success { color: var(--success); }
.terminal-cursor { color: var(--text); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-scroll-indicator { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-dim); font-size: .8rem; z-index: 1; animation: float 2.4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-label { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent-cyan); margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; min-width: 0; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-light); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(0, 212, 255, .1); color: var(--accent-cyan); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon-purple { background: rgba(124, 58, 237, .12); color: #a78bfa; }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Installation ---------- */
.install-card { max-width: 820px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.install-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-elevated); flex-wrap: wrap; }
.install-tab { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; background: none; border: none; color: var(--text-muted); font-family: var(--font); font-size: .92rem; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.install-tab:hover { color: var(--text); }
.install-tab.active { color: var(--text); border-bottom-color: var(--accent-cyan); }
.install-panel { display: none; padding: 24px; }
.install-panel.active { display: block; }

.code-block { background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.code-lang { font-size: .78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 6px; color: var(--text-muted); font-size: .8rem; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.copy-btn:hover { color: var(--text); border-color: var(--accent-cyan); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }
.code-block pre { padding: 16px; overflow-x: auto; }
.code-block code { font-family: var(--mono); font-size: .86rem; line-height: 1.7; color: var(--text); }
.code-comment { color: var(--text-dim); }
.code-prompt { color: var(--accent-cyan); user-select: none; }
.code-output { color: var(--text-muted); }
.code-input { color: var(--success); }
.code-success { color: var(--success); }

/* ---------- Usage ---------- */
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.usage-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; min-width: 0; }
.usage-step-number { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 14px; }
.usage-step-content h3 { font-size: 1.12rem; margin-bottom: 8px; }
.usage-step-content > p { color: var(--text-muted); font-size: .93rem; margin-bottom: 16px; }
.usage-step .code-block code { font-size: .78rem; }

/* ---------- Platforms ---------- */
.platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.platform-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; min-width: 0; transition: transform .2s ease, border-color .2s ease; }
.platform-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.platform-icon { display: grid; place-items: center; margin-bottom: 18px; color: var(--text); }
.platform-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.platform-path { font-family: var(--mono); font-size: .82rem; color: var(--text-dim); word-break: break-all; margin-bottom: 14px; }
.platform-arch { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(0, 212, 255, .08); border: 1px solid rgba(0, 212, 255, .2); color: var(--accent-cyan); font-size: .78rem; font-weight: 500; }

/* ---------- CTA ---------- */
.cta-section { padding: 60px 0 100px; }
.cta-card { position: relative; overflow: hidden; text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 70px 32px; }
.cta-bg-effects { position: absolute; inset: 0; pointer-events: none; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .3; }
.cta-orb-1 { width: 300px; height: 300px; background: var(--accent-cyan); top: -100px; left: -60px; }
.cta-orb-2 { width: 340px; height: 340px; background: var(--accent-purple); bottom: -120px; right: -60px; }
.cta-card h2 { position: relative; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.cta-card p { position: relative; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }
.cta-buttons { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-elevated); }
.footer-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: .92rem; max-width: 320px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: .92rem; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .88rem; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-cyan); }
.footer-heart { color: var(--danger); }

/* ---------- Scroll reveal (JS-gated so content shows even without JS) ---------- */
.js-enabled .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js-enabled .fade-in.visible { opacity: 1; transform: none; }
.js-enabled .animate-in { opacity: 0; transform: translateY(20px); animation: rise .7s ease forwards; }
.animate-in:nth-child(1) { animation-delay: .05s; }
.animate-in:nth-child(2) { animation-delay: .15s; }
.animate-in:nth-child(3) { animation-delay: .25s; }
.animate-in:nth-child(4) { animation-delay: .35s; }
.animate-in:nth-child(5) { animation-delay: .45s; }
.hero-terminal.animate-in { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-terminal { order: 2; }
    .features-grid, .usage-grid, .platforms-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 64px; right: 0;
        flex-direction: column; align-items: flex-start; gap: 4px;
        width: 240px; padding: 16px;
        background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 0 0 0 var(--radius);
        transform: translateX(110%); transition: transform .25s ease;
        height: calc(100vh - 64px);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { padding: 10px 4px; width: 100%; }
    .features-grid, .usage-grid, .platforms-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 18px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js-enabled .fade-in { opacity: 1; transform: none; }
}
