/* Saddle - Light mode, designer-targeted */
:root {
  --fg: #0a0a0a;
  --fg-secondary: #525252;
  --fg-tertiary: #a3a3a3;
  --bg: #fafafa;
  --white: #ffffff;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --violet: #7c3aed;
  --violet-light: #f5f3ff;
  --green: #16a34a;
  --green-light: #f0fdf4;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  color: var(--fg);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 15px;
}

/* Nav */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 32px;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--fg-secondary); text-decoration: none;
  font-weight: 500; transition: color 120ms;
}
.nav-links a:hover { color: var(--fg); }
.nav-github {
  padding: 6px 14px; background: var(--fg);
  color: var(--white) !important; border-radius: 6px;
  font-size: 13px !important; font-weight: 600;
}

/* Shared */
.section-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
h2 {
  font-size: 36px; font-weight: 700; letter-spacing: -0.025em;
  text-align: center; color: var(--fg); margin-bottom: 12px;
}
.section-sub {
  font-size: 16px; color: var(--fg-secondary); text-align: center;
  max-width: 480px; margin: 0 auto 48px; line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all 120ms; cursor: pointer; border: none;
}
.btn-primary { background: var(--fg); color: var(--white); }
.btn-primary:hover { background: #262626; }
.btn-secondary {
  background: var(--white); color: var(--fg);
  border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-secondary:hover { border-color: #ccc; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; border-radius: 10px; }

/* === HERO === */
.hero { padding: 140px 32px 0; text-align: center; }
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 4px 12px;
  background: var(--violet-light); color: var(--violet);
  border-radius: 20px; font-size: 12px; font-weight: 600;
  margin-bottom: 20px; letter-spacing: 0.02em;
}
.hero h1 {
  font-size: 52px; font-weight: 750; letter-spacing: -0.035em;
  line-height: 1.08; margin-bottom: 16px; color: var(--fg);
}
.hero-sub {
  font-size: 17px; color: var(--fg-secondary); line-height: 1.6;
  max-width: 520px; margin: 0 auto 28px;
}
.hero-actions { display: flex; gap: 10px; justify-content: center; }

/* Demo intro */
.hero-demo-intro {
  max-width: 1040px; margin: 40px auto 16px; text-align: center;
}
.hero-demo-intro p {
  font-size: 14px; color: var(--fg-tertiary); font-weight: 500;
}

/* Demo showcase */
.hero-showcase {
  max-width: 1040px; margin: 0 auto; position: relative;
}

/* Flow explanation */
.hero-flow-explain {
  max-width: 760px; margin: 32px auto 80px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hfe-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: 10px; flex: 1;
}
.hfe-num {
  width: 24px; height: 24px; background: var(--fg); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.hfe-step strong { font-size: 13px; color: var(--fg); }
.hfe-step span { font-size: 12px; color: var(--fg-secondary); }
.hfe-arrow { font-size: 18px; color: var(--fg-tertiary); flex-shrink: 0; }

/* Mini app screen preview */
.app-screen-preview {
  max-width: 640px; margin: 0 auto 80px; text-align: center;
}
.asp-label {
  font-size: 13px; color: var(--fg-tertiary); font-weight: 500;
  margin-bottom: 12px;
}
.asp-browser {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.asp-chrome {
  height: 32px; background: #f5f5f5; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
}
.asp-dots { display: flex; gap: 5px; }
.asp-dots span { width: 9px; height: 9px; border-radius: 50%; }
.asp-dots span:nth-child(1) { background: #ff5f57; }
.asp-dots span:nth-child(2) { background: #febc2e; }
.asp-dots span:nth-child(3) { background: #28c840; }
.asp-url {
  flex: 1; text-align: center; font-size: 11px; color: #888;
  background: #fff; border-radius: 4px; padding: 3px 10px;
  border: 1px solid var(--border);
}
.asp-page { padding: 0; background: #fff; }
.asp-page-nav {
  padding: 10px 24px; display: flex; justify-content: space-between;
  align-items: center; border-bottom: 1px solid var(--border-light);
}
.asp-logo { font-size: 14px; font-weight: 700; color: var(--fg); }
.asp-links { display: flex; gap: 16px; font-size: 12px; color: var(--fg-tertiary); }
.asp-page-hero {
  padding: 40px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.asp-h { font-size: 22px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.asp-p { font-size: 13px; color: var(--fg-tertiary); margin-bottom: 8px; }
.asp-ctas { display: flex; gap: 8px; }
.asp-btn-primary {
  padding: 10px 20px; border-radius: 8px; border: none;
  font-size: 14px; font-weight: 600; color: #fff;
  background: #2563eb; font-family: inherit; cursor: default;
  transition: all 0.2s ease;
}
.asp-btn-secondary {
  padding: 10px 20px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff;
  font-size: 14px; font-weight: 500; color: var(--fg-secondary);
  font-family: inherit; cursor: default;
}
.asp-hint {
  margin-top: 12px; font-size: 12px; color: var(--fg-tertiary);
  font-style: italic;
}

/* === FEATURES === */
.features { padding: 100px 0; background: var(--bg); border-top: 1px solid var(--border-light); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  padding: 24px; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 150ms, box-shadow 150ms;
}
.feature-card:hover { border-color: #ccc; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.feature-icon {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; margin-bottom: 14px;
}
.feature-icon.blue { background: var(--blue-light); color: var(--blue); }
.feature-icon.violet { background: var(--violet-light); color: var(--violet); }
.feature-icon.green { background: var(--green-light); color: var(--green); }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--fg-secondary); line-height: 1.6; }

/* === HOW IT WORKS === */
.how-it-works { padding: 100px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-num {
  width: 28px; height: 28px; background: var(--fg); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--fg-secondary); line-height: 1.6; }

/* === TECH / DOWNLOAD / FOOTER === */
.tech-stack { padding: 60px 0; background: var(--bg); border-top: 1px solid var(--border-light); }
.tech-grid { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tech-item {
  padding: 6px 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--fg-secondary);
}
.download { padding: 100px 0; text-align: center; }
.download-actions { display: flex; gap: 10px; justify-content: center; }
.footer { padding: 32px 0; text-align: center; border-top: 1px solid var(--border-light); }
.footer p { font-size: 13px; color: var(--fg-tertiary); margin-bottom: 4px; }
.footer a { font-size: 13px; color: var(--fg-secondary); text-decoration: none; }
.footer a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-flow-explain { flex-direction: column; }
  .hfe-arrow { transform: rotate(90deg); }
}
