/* Hotkey Haven — Landing Page */
/* Inspired by Linear, Vercel, Raycast */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: #050505;
    color: #a1a1aa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ Nav ============ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 15px; font-weight: 600; color: #fafafa; text-decoration: none;
    display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em;
}
.nav-logo svg { opacity: 0.7; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #71717a; text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: #fafafa; }
.nav-btn { padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.nav-btn-ghost { color: #d4d4d8; border: 1px solid rgba(255,255,255,0.08); }
.nav-btn-ghost:hover { border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.03); color: #fafafa; }
.nav-btn-primary { background: #fafafa; color: #09090b; border: none; }
.nav-btn-primary:hover { background: #e4e4e7; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: #a1a1aa; border-radius: 1px; transition: all 0.3s; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
    text-decoration: none; border: none; cursor: pointer; transition: all 0.15s; line-height: 1;
}
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: #fafafa; color: #09090b; }
.btn-primary:hover { background: #e4e4e7; }
.btn-ghost { background: transparent; color: #d4d4d8; border: 1px solid rgba(255,255,255,0.1); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); color: #fafafa; }
.btn-google {
    background: #fff; color: #09090b; width: 100%; padding: 11px 20px; border-radius: 8px;
    font-size: 14px; font-weight: 500; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.15s;
}
.btn-google:hover { background: #f4f4f5; }

/* ============ Hero ============ */
.hero {
    padding: 140px 24px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Subtle radial glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, rgba(16,185,129,0.04) 40%, transparent 70%);
    pointer-events: none;
}
.hero-inner { max-width: 680px; margin: 0 auto; position: relative; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 500;
    color: #a1a1aa; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 24px; letter-spacing: 0.01em;
}
.hero-title {
    font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em;
    line-height: 1.05; color: #fafafa; margin-bottom: 16px;
}
.hero-sub {
    font-size: 17px; color: #71717a; max-width: 480px; margin: 0 auto 32px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Product Preview ============ */
.hero-preview {
    max-width: 900px; margin: 64px auto 0; position: relative;
}
.preview-window {
    background: #0a0a0a; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}
.preview-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.04);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.preview-dots span:first-child { background: rgba(239,68,68,0.5); }
.preview-dots span:nth-child(2) { background: rgba(234,179,8,0.5); }
.preview-dots span:nth-child(3) { background: rgba(34,197,94,0.5); }
.preview-title { font-size: 12px; color: #52525b; font-weight: 500; flex: 1; text-align: center; }

.preview-body { display: flex; min-height: 280px; }
.preview-sidebar {
    width: 240px; padding: 12px; border-right: 1px solid rgba(255,255,255,0.04);
    display: flex; flex-direction: column; gap: 2px; overflow: hidden;
}
.pm-section {
    font-size: 10px; font-weight: 600; color: #3f3f46; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 8px 10px 4px; margin-top: 4px;
}
.pm-section:first-child { margin-top: 0; }
.preview-macro {
    display: flex; align-items: center; gap: 8px; padding: 6px 10px;
    border-radius: 6px; font-size: 12px; color: #71717a; cursor: default; transition: background 0.15s;
}
.preview-macro.active { background: rgba(255,255,255,0.05); color: #e4e4e7; }
.pm-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pm-dot.green { background: #10b981; }
.pm-dot.blue { background: #3b82f6; }
.pm-dot.purple { background: #a78bfa; }
.pm-dot.amber { background: #f59e0b; }
.pm-key {
    margin-left: auto; font-size: 10px; font-family: 'SF Mono', 'Fira Code', monospace;
    color: #52525b; background: rgba(255,255,255,0.04); padding: 2px 6px; border-radius: 4px;
}

/* Detail pane (right side of preview) */
.preview-detail {
    flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px;
}
.pd-header { display: flex; align-items: center; gap: 10px; }
.pd-macro-name { font-size: 15px; font-weight: 600; color: #e4e4e7; }
.pd-type-badge {
    font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: #3b82f6; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.15);
    padding: 3px 8px; border-radius: 5px;
}
.pd-mapping {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04); border-radius: 8px;
}
.pd-device-label { font-size: 12px; color: #71717a; font-weight: 500; }
.pd-mapping .pm-key { margin-left: 0; font-size: 11px; padding: 3px 8px; }
.pd-preview-text { flex: 1; }
.pd-preview-label {
    font-size: 10px; font-weight: 600; color: #3f3f46; text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 8px;
}
.pd-preview-content {
    font-size: 12px; line-height: 1.6; color: #a1a1aa;
    padding: 12px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04); border-radius: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Profile Switcher Demo */
.profile-switcher-demo {
    max-width: 520px; margin: 28px auto 0; text-align: center;
}
.ps-label {
    font-size: 12px; color: #52525b; font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 12px;
}
.ps-tabs {
    display: flex; gap: 4px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 4px;
}
.ps-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 12px; border-radius: 7px; font-size: 12px; font-weight: 500;
    color: #52525b; cursor: default; transition: all 0.3s ease;
}
.ps-tab.active {
    background: rgba(255,255,255,0.06); color: #d4d4d8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.ps-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ps-hotkey {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 12px; font-size: 13px; color: #71717a;
}
.ps-hotkey kbd {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 11px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px; padding: 3px 8px; color: #a1a1aa;
}
.ps-stack {
    display: flex; flex-direction: column; gap: 4px;
    margin-top: 14px; max-width: 340px; margin-left: auto; margin-right: auto;
}
.ps-row {
    display: flex; align-items: center; gap: 12px;
    padding: 7px 12px; border-radius: 7px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}
.ps-row kbd {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 11px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px; padding: 3px 8px; color: #a1a1aa; min-width: 36px; text-align: center;
}
.ps-action {
    font-size: 13px; color: #71717a; transition: color 0.3s ease;
}
.ps-action.changed {
    color: #e4e4e7;
}
.ps-fixed { color: #52525b !important; }
.ps-arrow { color: #52525b; }
.ps-next { color: #a78bfa; font-weight: 500; }

/* Fade bottom of preview window for depth */
.preview-window { position: relative; }
.preview-window::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(transparent, #0a0a0a); pointer-events: none; border-radius: 0 0 12px 12px;
}

/* ============ Social Proof Strip ============ */
.proof {
    padding: 64px 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.proof-inner {
    max-width: 800px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 40px;
}
.proof-item { text-align: center; }
.proof-num { display: block; font-size: 28px; font-weight: 700; color: #fafafa; letter-spacing: -0.02em; line-height: 1; }
.proof-label { display: block; font-size: 12px; color: #52525b; margin-top: 4px; font-weight: 500; }
.proof-sep { width: 1px; height: 32px; background: rgba(255,255,255,0.06); }

/* ============ Steps ============ */
.steps { padding: 80px 24px; }
.steps-grid {
    max-width: 900px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 16px;
}
.step {
    padding: 28px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04); border-radius: 12px;
    display: flex; flex-direction: column;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,0.04); color: #71717a; margin-bottom: 14px;
}
.step h3 { font-size: 15px; font-weight: 600; color: #fafafa; margin-bottom: 6px; }
.step p { font-size: 13px; color: #71717a; line-height: 1.6; flex: 1; }
.step-arrow { font-size: 20px; color: #3f3f46; display: flex; align-items: center; flex-shrink: 0; }

/* ============ Sections ============ */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-label {
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    color: #6366f1; text-align: center; margin-bottom: 8px;
}
.section-title {
    font-size: clamp(28px, 4vw, 36px); font-weight: 700; color: #fafafa;
    text-align: center; letter-spacing: -0.03em; margin-bottom: 8px;
}
.section-sub { font-size: 15px; color: #71717a; text-align: center; margin-bottom: 48px; }

/* ============ Features Bento Grid ============ */
.features { padding: 100px 24px; }
.bento {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.bento-card {
    padding: 28px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04); border-radius: 12px;
    transition: border-color 0.2s;
    display: flex; flex-direction: column;
}
.bento-card:hover { border-color: rgba(255,255,255,0.08); }
.bento-icon { margin-bottom: 16px; color: #71717a; }
.bento-card h3 { font-size: 15px; font-weight: 600; color: #fafafa; margin-bottom: 6px; }
.bento-card p { font-size: 13px; color: #71717a; line-height: 1.6; flex: 1; }

/* ============ Pricing ============ */
.pricing { padding: 100px 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.price-card {
    padding: 32px 28px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04); border-radius: 12px;
    text-align: center; position: relative;
}
.price-card-featured { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.03); }
.price-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: #6366f1; color: #fff; padding: 3px 12px; border-radius: 100px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.price-tier { font-size: 13px; font-weight: 600; color: #71717a; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.price-amount { font-size: 48px; font-weight: 700; color: #fafafa; line-height: 1; margin-bottom: 4px; letter-spacing: -0.03em; }
.price-currency { font-size: 22px; vertical-align: super; font-weight: 600; color: #52525b; }
.price-cents { font-size: 20px; font-weight: 600; color: #52525b; }
.price-period { font-size: 13px; color: #52525b; margin-bottom: 28px; }
.price-features { list-style: none; text-align: left; margin-bottom: 28px; }
.price-features li {
    padding: 7px 0; font-size: 13px; color: #a1a1aa;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-left: 20px; position: relative;
}
.price-features li::before { content: "\2713"; position: absolute; left: 0; color: #52525b; font-size: 12px; }
.price-card-featured .price-features li::before { color: #6366f1; }

/* ============ FAQ ============ */
.faq { padding: 100px 24px; }
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.04); }
.faq-question {
    width: 100%; background: none; border: none; padding: 18px 0;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    text-align: left; color: #d4d4d8; font-size: 14px; font-weight: 500; transition: color 0.15s;
}
.faq-question:hover { color: #fafafa; }
.faq-icon { font-size: 18px; color: #52525b; transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: #6366f1; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 16px; }
.faq-answer p { color: #71717a; font-size: 13px; line-height: 1.7; }

/* ============ Final CTA ============ */
.final-cta {
    padding: 100px 24px; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.final-cta h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; color: #fafafa; letter-spacing: -0.03em; margin-bottom: 8px; }
.final-cta p { font-size: 15px; color: #71717a; margin-bottom: 28px; }

/* ============ Footer ============ */
.footer { padding: 32px 24px; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-logo { font-size: 14px; font-weight: 600; color: #71717a; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #3f3f46; text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: #a1a1aa; }
.footer-copy { font-size: 12px; color: #27272a; }

/* ============ Auth Modal ============ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px); display: none; align-items: center;
    justify-content: center; z-index: 200;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #0a0a0a; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 36px; width: 100%; max-width: 400px; position: relative;
}
.modal-close {
    position: absolute; top: 14px; right: 18px; background: none;
    border: none; color: #52525b; font-size: 22px; cursor: pointer; transition: color 0.15s;
}
.modal-close:hover { color: #fafafa; }
.modal-title { font-size: 20px; font-weight: 700; color: #fafafa; margin-bottom: 4px; }
.modal-sub { color: #52525b; font-size: 13px; margin-bottom: 24px; }
.last-used-method { margin-bottom: 12px; }
.last-used-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
    border-radius: 6px; font-size: 11px; font-weight: 600; color: #818cf8;
}
.btn-google.last-used, .auth-form .btn-primary.last-used { position: relative; border: 2px solid rgba(99,102,241,0.3); }
.last-used-label {
    position: absolute; top: -10px; right: 12px; background: #0a0a0a;
    padding: 0 6px; font-size: 10px; font-weight: 600; color: #818cf8;
}
.modal-divider { display: flex; align-items: center; margin: 18px 0; color: #27272a; font-size: 12px; }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.04); }
.modal-divider span { padding: 0 12px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-input {
    width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; color: #fafafa;
    font-size: 14px; outline: none; transition: border-color 0.15s;
}
.auth-input::placeholder { color: #3f3f46; }
.auth-input:focus { border-color: rgba(99,102,241,0.4); }
.modal-switch { text-align: center; margin-top: 18px; font-size: 13px; color: #52525b; }
.modal-switch a { color: #818cf8; text-decoration: none; font-weight: 500; }
.modal-switch a:hover { text-decoration: underline; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 56px; left: 0; right: 0;
        background: rgba(5,5,5,0.95); backdrop-filter: blur(16px);
        padding: 16px 24px 24px; flex-direction: column; gap: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .nav-links.open { display: flex; }
    .hero { padding: 120px 20px 0; }
    .hero-sub { font-size: 15px; }
    .hero-cta .btn { width: 100%; max-width: 260px; }
    .preview-sidebar { display: none; }
    .preview-body { min-height: 200px; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-arrow { display: none; }
    .bento { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .proof-inner { flex-wrap: wrap; gap: 24px; }
    .proof-sep { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .hero { padding: 100px 16px 0; }
    .hero-title { font-size: 36px; }
    .features, .pricing, .faq, .steps, .final-cta { padding: 60px 16px; }
    .proof { padding: 40px 16px; }
    .bento-card, .step, .price-card { padding: 22px; }
    .modal { margin: 16px; padding: 28px; }
}
