/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-pale: #EFF6FF;
  --text: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --surface: #F9FAFB;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.90); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.nav-logo:hover { text-decoration: none; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: .92rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-github { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text) !important; }
.nav-github:hover { border-color: var(--blue-light); color: var(--blue) !important; }

/* ===== Hero ===== */
.hero { background: linear-gradient(160deg, #EFF6FF 0%, #ffffff 60%); padding: 80px 24px 60px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.hero-inner { max-width: 680px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-badge { display: inline-block; padding: 5px 14px; background: var(--blue-pale); color: var(--blue); border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.hero-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; color: var(--text); }
.hero-accent { color: var(--blue); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { font-size: .8rem; color: var(--text-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 9px; font-weight: 600; font-size: .95rem; transition: all .15s; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1D4ED8; text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* Monitor illustration */
.hero-visual { width: 100%; max-width: 600px; padding: 20px; }
.monitor-group { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.monitor { display: flex; flex-direction: column; align-items: center; }
.monitor-screen { border-radius: 8px 8px 4px 4px; border: 3px solid #D1D5DB; background: #1E293B; overflow: hidden; box-shadow: var(--shadow-lg); }
.monitor-main .monitor-screen { width: 220px; height: 140px; border-color: #9CA3AF; }
.monitor-left .monitor-screen, .monitor-right .monitor-screen { width: 150px; height: 100px; }
.monitor-stand { width: 30px; height: 16px; background: #D1D5DB; border-radius: 0 0 4px 4px; margin-top: 2px; }
.monitor-main .monitor-stand { width: 40px; height: 20px; }

.screen-content { padding: 6px; display: flex; flex-direction: column; gap: 4px; height: 100%; }
.screen-bar { height: 6px; background: #334155; border-radius: 3px; opacity: .8; }
.screen-window { background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%); border-radius: 4px; flex: 1; opacity: .7; }
.screen-window.wide { flex: 2; }
.screen-window.small { flex: 1; opacity: .5; }
.screen-a .screen-window { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.screen-c .screen-window { background: linear-gradient(135deg, #059669, #34D399); }
/* Zone illustration on main monitor */
.screen-zones { flex: 1; display: flex; gap: 3px; }
.zone { flex: 1; border-radius: 3px; opacity: .75; }
.zone-1 { background: linear-gradient(160deg, #2563EB, #3B82F6); }
.zone-2 { background: linear-gradient(160deg, #7C3AED, #A78BFA); flex: 1.5; }
.zone-3 { background: linear-gradient(160deg, #059669, #34D399); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 1.05rem; }

/* ===== Features ===== */
.features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: box-shadow .2s, border-color .2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.feature-card.feature-highlight { border-color: var(--blue-light); background: var(--blue-pale); grid-column: span 2; }
@media (max-width: 640px) { .feature-card.feature-highlight { grid-column: span 1; } }
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ===== Compare table ===== */
.compare { background: var(--surface); }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-weight: 700; background: var(--white); }
.compare-table thead th.ours { background: var(--blue-pale); color: var(--blue); }
.compare-table tbody td.ours { background: #f0f7ff; font-weight: 600; }
.compare-table tbody tr:hover td { background: var(--blue-pale); }
.compare-table tbody tr:hover td.ours { background: #dbeafe; }

/* ===== Install ===== */
.install { background: var(--white); }
.install-steps { display: flex; flex-direction: column; gap: 0; max-width: 700px; margin: 0 auto 24px; }
.install-step { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.install-step:last-child { border-bottom: none; }
.install-num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.install-body p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.install-body code { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: .85rem; color: var(--text); }
.install-options { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.install-options li { font-size: .88rem; color: var(--text-muted); }
.install-note { max-width: 700px; margin: 0 auto; background: var(--blue-pale); border: 1px solid #BFDBFE; border-radius: var(--radius); padding: 14px 18px; font-size: .88rem; color: var(--text-muted); }

/* ===== Screenshots ===== */
.screenshots { background: var(--surface); }
.screenshots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.screenshot-card { margin: 0; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #0d0d16; border: 1px solid var(--border); cursor: zoom-in; transition: transform .18s, box-shadow .18s; }
.screenshot-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.45); }
.screenshot-thumb { height: 180px; overflow: hidden; flex-shrink: 0; }
.screenshot-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screenshot-card figcaption { padding: 8px 12px; font-size: .82rem; font-weight: 500; color: var(--text-muted); background: #0d0d16; flex-shrink: 0; }

/* Lightbox */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 9999; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
#lightbox.open { display: flex; }
#lightbox #lb-img { max-width: min(92vw, 1100px); max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 16px 60px rgba(0,0,0,.7); }
#lightbox #lb-caption { color: rgba(255,255,255,.7); font-size: .9rem; }
.lb-close { position: fixed; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; opacity: .7; }
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: none; color: #fff; font-size: 2.5rem; line-height: 1; padding: 8px 16px; cursor: pointer; border-radius: 4px; transition: background .15s; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }

/* ===== Roadmap ===== */
.roadmap { background: var(--white); }
.roadmap-list { display: flex; flex-direction: column; gap: 0; max-width: 700px; margin: 0 auto; }
.roadmap-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.roadmap-item:last-child { border-bottom: none; }
.roadmap-status { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; margin-top: 4px; }
.status-done .roadmap-status { background: #22C55E; border-color: #22C55E; }
.status-active .roadmap-status { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.status-pending .roadmap-status { background: var(--white); }
.roadmap-phase { font-size: .78rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.roadmap-content h3 { font-size: 1rem; font-weight: 700; margin: 4px 0 6px; }
.roadmap-content p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
.cta p { color: var(--text-muted); max-width: 500px; font-size: 1rem; }

/* ===== Footer ===== */
.footer { background: var(--text); color: #9CA3AF; padding: 24px; font-size: .85rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer a { color: #9CA3AF; }
.footer a:hover { color: #fff; text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
  .monitor-left, .monitor-right { display: none; }
  .monitor-main .monitor-screen { width: 280px; height: 175px; }
}
