:root {
  --bg-primary: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-element: #f3f4f6;
  
  --text-main: #111827;
  --text-body: #4b5563;
  --text-muted: #9ca3af;
  
  --brand-green: #208a4e;
  --brand-green-light: #e8f4ec;
  --brand-green-hover: #1b7341;
  
  --border-light: #e5e7eb;
  --border-subtle: rgba(0, 0, 0, 0.05);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.06);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; transition: all 0.2s; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand-green); color: #fff; }
.btn-primary:hover { background: var(--brand-green-hover); }
.btn-secondary { background: #fff; color: var(--text-main); border-color: var(--border-light); }
.btn-secondary:hover { background: var(--bg-subtle); }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-icon { padding: 8px; background: transparent; border: 1px solid var(--border-light); color: var(--text-body); }

/* Typography */
.text-green { color: var(--brand-green); }
.text-center { text-align: center; }
.mt { margin-top: 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); z-index: 100;
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: 0.05em; }
.brand-icon { color: var(--brand-green); }
.nav-links { display: flex; gap: 32px; font-weight: 500; font-size: 14px; color: var(--text-body); }
.nav-links a:hover { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.maker-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 700;
}
.maker-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Hero */
.hero {
  max-width: 1200px; margin: 80px auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  background: var(--brand-green-light); color: var(--brand-green);
  border: 1px solid rgba(32,138,78,0.2); border-radius: 99px; font-size: 12px; font-weight: 600; margin-bottom: 24px;
}
.hero-title { font-size: 56px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-subtitle { font-size: 18px; color: var(--text-body); margin-bottom: 32px; max-width: 440px; }
.hero-feature-tags { display: flex; gap: 16px; margin-bottom: 40px; }
.feature-tag { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border-light); border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--text-body); }
.feature-tag svg { color: var(--brand-green); }
.hero-cta-group { display: flex; gap: 16px; margin-bottom: 16px; }
.sys-req { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.hero-right { display: flex; justify-content: center; align-items: flex-start; }
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  background: white;
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Bento Grid */
.bento-section { max-width: 1200px; margin: 100px auto; padding: 0 24px; }
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.bento-card {
  background: var(--bg-primary); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.bento-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon { width: 48px; height: 48px; background: var(--bg-subtle); color: var(--brand-green); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; border: 1px solid var(--border-light); }
.card-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card-text p { font-size: 14px; color: var(--text-body); margin-bottom: 24px; }
.card-graphic { flex: 1; display: flex; align-items: flex-end; justify-content: center; margin-top: 24px; }

/* Mini graphics inside bento */
.ui-element { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 12px; width: 100%; margin-top: auto; }
.ui-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 12px; color: var(--text-muted); background: #fff; box-shadow: var(--shadow-sm); }
.ui-search .arrow { margin-left: auto; }
.ui-doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 8px; box-shadow: var(--shadow-sm); background: #fff; }
.ui-doc-item strong { display: block; font-size: 13px; color: var(--text-main); }
.ui-doc-item span { font-size: 11px; color: var(--text-muted); }

.filter-tabs { display: flex; gap: 4px; width: 100%; justify-content: center; align-items: center; padding: 6px; border: 1px solid var(--border-light); border-radius: 99px; background: #fff; box-shadow: var(--shadow-sm); }
.filter-tabs span { font-size: 10px; font-weight: 600; padding: 4px 12px; border-radius: 99px; color: var(--text-muted); }
.filter-tabs span.active { background: var(--brand-green-light); color: var(--brand-green); }

.preview-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border-light); border-radius: 12px; width: 100%; box-shadow: var(--shadow-sm); background: #fff; }
.mock-thumb { width: 64px; height: 40px; background: #27272a; border-radius: 4px; }
.preview-item strong { display: block; font-size: 13px; margin-bottom: 4px; }
.preview-item span { font-size: 11px; color: var(--text-muted); }

.kbd-graphic { justify-content: center; align-items: flex-end; gap: 12px; width: 100%; }
.kbd-graphic kbd { padding: 8px 16px; background: #fff; border: 1px solid var(--border-light); border-bottom-width: 3px; border-radius: 8px; font-size: 16px; font-family: monospace; font-weight: 700; color: var(--text-main); box-shadow: var(--shadow-sm); }

.ignore-apps { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 12px; width: 100%; padding: 16px; border: 1px solid var(--border-light); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.app-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; }
.app-icon { width: 16px; height: 16px; border-radius: 4px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.app-icon.blue { background: #007aff; }
.app-icon.black { background: #111; }
.toggle { width: 32px; height: 18px; background: var(--brand-green); border-radius: 99px; position: relative; }
.toggle::after { content: ''; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }

.pause-menu { flex-direction: column; align-items: stretch; justify-content: flex-end; width: 100%; border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--border-light); background: #fff; }
.menu-item:last-child { border-bottom: none; }
.menu-item.green { color: var(--brand-green); }
.badge-on { margin-left: auto; font-size: 11px; color: var(--brand-green); }

/* Local First */
.local-first-section { max-width: 1200px; margin: 100px auto; padding: 0 24px; }
.local-container { display: flex; align-items: center; gap: 64px; }
.local-graphic { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }
.diagram { display: flex; align-items: center; gap: 48px; position: relative; }
.sqlite-cylinder { position: relative; width: 160px; height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.layer { width: 160px; height: 48px; background: var(--brand-green); border-radius: 50%; position: absolute; border: 2px solid rgba(255,255,255,0.4); box-shadow: 0 10px 20px rgba(32,138,78,0.2); }
.layer.top { top: 10px; z-index: 3; display: flex; align-items: center; justify-content: center; background: #2db368; }
.layer.middle { top: 38px; z-index: 2; background: var(--brand-green); }
.layer.bottom { top: 66px; z-index: 1; background: var(--brand-green-hover); box-shadow: 0 20px 40px rgba(32,138,78,0.4); }
.sqlite-cylinder .label { position: absolute; bottom: 0; font-weight: 800; color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.3); z-index: 4; font-size: 18px; }

.connectors { display: flex; flex-direction: column; gap: 16px; position: relative; }
.connectors::before {
  content: ''; position: absolute; left: -24px; top: 10%; height: 80%; width: 24px;
  border-left: 2px dashed var(--border-light); border-top: 2px dashed var(--border-light); border-bottom: 2px dashed var(--border-light);
  border-radius: 12px 0 0 12px; z-index: -1;
}
.node { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; padding: 10px 20px; border: 1px dashed var(--border-light); border-radius: 99px; background: #fff; box-shadow: var(--shadow-sm); z-index: 2; }
.node svg { color: var(--text-muted); }

.local-text { flex: 1; }
.badge-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; color: var(--brand-green); font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.local-text h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.local-text .desc { font-size: 16px; color: var(--text-body); margin-bottom: 32px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.check-item { display: flex; gap: 12px; }
.check-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.check-item span { font-size: 12px; color: var(--text-muted); }
.bottom-lock-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--brand-green); font-weight: 500; }

/* Pro Section */
.pro-section { background: var(--bg-subtle); padding: 80px 0; margin: 100px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.pro-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; gap: 64px; }
.pro-left { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.pro-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #fff; border: 1px solid var(--border-light); border-radius: 99px; font-size: 12px; font-weight: 600; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.pro-left h2 { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.pro-left p { font-size: 16px; color: var(--text-body); margin-bottom: 32px; }

.pro-right-grid { flex: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pro-card { background: #fff; padding: 24px; border-radius: 16px; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.icon-circle { width: 40px; height: 40px; background: var(--brand-green-light); color: var(--brand-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-bottom: 16px; }
.pro-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pro-card p { font-size: 13px; color: var(--text-body); margin-bottom: 24px; flex: 1; }
.demo-box { font-size: 12px; padding: 12px; background: var(--bg-subtle); border-radius: 8px; font-weight: 600; display: flex; justify-content: space-between; }
.demo-box.dashed { border: 1px dashed var(--brand-green); color: var(--brand-green); text-align: center; justify-content: center; }
.demo-box .val { font-family: monospace; }
.demo-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.demo-row .box { padding: 6px 12px; border: 1px solid var(--border-light); border-radius: 6px; }
.demo-dict strong { display: block; font-size: 13px; margin-bottom: 4px; }
.demo-dict span { font-size: 11px; color: var(--text-muted); }

/* Workflow */
.workflow-section { max-width: 1000px; margin: 100px auto; padding: 0 24px; }
.workflow-section h2 { margin-bottom: 64px; }
.timeline { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.step { flex: 1; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 2; }
.step-num { width: 24px; height: 24px; background: var(--brand-green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.icon-sq { width: 48px; height: 48px; border: 1px solid var(--border-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: var(--shadow-sm); }
.step .info strong { display: block; font-size: 15px; margin-bottom: 6px; }
.step .info span { font-size: 13px; color: var(--text-muted); display: block; max-width: 180px; }
.line { flex: 0.5; height: 1px; border-top: 2px dashed var(--border-light); margin-top: 12px; }

/* Bottom CTA */
.bottom-cta { max-width: 800px; margin: 100px auto; padding: 80px 24px; text-align: center; background: var(--bg-subtle); border-radius: 24px; border: 1px solid var(--border-light); }
.bottom-cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.bottom-cta p { font-size: 16px; color: var(--text-body); }
.bottom-cta .req { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.sec-text { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-top: 24px; }

/* Shared Sections */
.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading .badge-tag { margin-bottom: 12px; }
.section-heading h2 { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.section-heading p { color: var(--text-body); font-size: 16px; }
.card-icon.small { width: 40px; height: 40px; margin-bottom: 18px; }

/* Security */
.security-section { max-width: 1200px; margin: 100px auto; padding: 0 24px; }
.security-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.security-card {
  min-height: 230px; background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.security-card.primary { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.security-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.security-card p { color: var(--text-body); font-size: 14px; }
.security-topline { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-green); font-size: 13px; font-weight: 700; margin-bottom: 28px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 6px var(--brand-green-light); }
.storage-stack { display: grid; gap: 12px; margin-top: 32px; }
.storage-stack div {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: 10px;
}
.storage-stack strong { font-size: 14px; }
.storage-stack span { font-size: 12px; color: var(--text-muted); }

/* Maker */
.maker-section { max-width: 1200px; margin: 100px auto; padding: 0 24px; }
.maker-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 320px at 84% 20%, rgba(32,138,78,0.34), transparent 64%),
    linear-gradient(135deg, #101820 0%, #17241d 100%);
  padding: 48px;
  color: #fff;
}
.maker-copy h2 {
  max-width: 640px;
  margin: 14px 0;
  font-size: 34px;
  line-height: 1.16;
}
.maker-copy p {
  max-width: 620px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
}
.maker-brand {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.maker-brand img {
  width: min(100%, 220px);
  height: auto;
  filter: drop-shadow(0 24px 56px rgba(0,0,0,0.32));
}

/* Pricing */
.pricing-section { background: var(--bg-subtle); padding: 80px 24px; margin: 100px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.pricing-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.price-card.featured { border-color: rgba(32,138,78,0.35); box-shadow: 0 16px 36px rgba(32,138,78,0.08); }
.plan-label { display: inline-flex; padding: 4px 10px; border-radius: 99px; background: var(--brand-green-light); color: var(--brand-green); font-size: 12px; font-weight: 700; margin-bottom: 18px; }
.price-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.price { font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.price span { font-size: 14px; color: var(--text-muted); font-weight: 700; margin-left: 4px; }
.price-options { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.price-options .price { margin-bottom: 0; }
.price.lifetime { font-size: 28px; }
.plan-desc { color: var(--text-body); font-size: 14px; margin-bottom: 24px; }
.price-card ul { list-style: none; display: grid; gap: 12px; }
.price-card li { position: relative; padding-left: 24px; font-size: 14px; color: var(--text-body); }
.price-card li::before { content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-green); }

/* FAQ */
.faq-section { max-width: 900px; margin: 100px auto; padding: 0 24px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  background: #fff; border: 1px solid var(--border-light); border-radius: 12px;
  padding: 0 20px; box-shadow: var(--shadow-sm);
}
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 15px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: right; color: var(--brand-green); font-weight: 800; }
.faq-list details[open] summary::after { content: '-'; }
.faq-list p { color: var(--text-body); font-size: 14px; padding-bottom: 20px; max-width: 680px; }

/* Changelog */
.changelog-section { max-width: 900px; margin: 100px auto; padding: 0 24px; }
.release-list { border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.release-item { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px; border-bottom: 1px solid var(--border-light); }
.release-item:last-child { border-bottom: none; }
.release-item span { color: var(--brand-green); font-size: 13px; font-weight: 800; }
.release-item strong { display: block; font-size: 16px; margin-bottom: 6px; }
.release-item p { color: var(--text-body); font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-subtle);
  padding: 32px 24px;
}
.footer-inner,
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-brand img {
  width: 28px;
  height: 28px;
}
.footer-brand strong,
.footer-brand span {
  display: block;
}
.footer-brand span,
.footer-bottom {
  color: var(--text-body);
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 18px;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 700;
}
.footer-links a:hover { color: var(--text-main); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.text-footer {
  max-width: 760px;
  margin: 48px auto 32px;
  padding: 0 24px;
  color: var(--text-body);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero, .local-container, .pro-container { grid-template-columns: 1fr; flex-direction: column; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .pro-right-grid { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; gap: 32px; }
  .line { display: none; }
  .security-grid, .pricing-grid { grid-template-columns: 1fr; }
  .security-card.primary { grid-row: auto; }
  .maker-card { grid-template-columns: 1fr; padding: 32px; }
  .footer-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .maker-link span { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 40px; }
  .section-heading h2 { font-size: 28px; }
  .check-grid { grid-template-columns: 1fr; }
  .release-item { grid-template-columns: 1fr; gap: 8px; }
}
