:root {
  --bg: #07070a;
  --bg-2: #0d0d12;
  --panel: #111118;
  --panel-2: #161620;
  --border: #1f1f2a;
  --border-2: #2a2a38;
  --text: #f4f4f6;
  --muted: #8a8a99;
  --muted-2: #5f5f70;
  --accent: #ff6a3d;
  --accent-2: #ff9a3d;
  --grad: linear-gradient(135deg, #ff5a3d 0%, #ff8a3d 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 90, 61, 0.18) 0%, rgba(255, 138, 61, 0.12) 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: var(--text); background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h2 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 600; }
h3 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 17px; line-height: 1.35; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 12px; color: var(--muted); }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 600px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7, 7, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-name { font-size: 15px; letter-spacing: -0.005em; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 106, 61, 0.35);
  position: relative;
}
.brand-mark-inner {
  width: 16px; height: 12px;
  background: #fff;
  clip-path: polygon(0 20%, 70% 20%, 70% 0, 100% 25%, 100% 75%, 70% 100%, 70% 80%, 0 80%);
  opacity: 0.95;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 106, 61, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-direction: column;
  line-height: 1.1;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(255, 106, 61, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-sub { font-size: 11px; font-weight: 400; opacity: 0.85; margin-top: 2px; }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--border-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 50% -100px, rgba(255, 106, 61, 0.18), transparent 60%),
    radial-gradient(600px 400px at 80% 20%, rgba(255, 138, 61, 0.1), transparent 60%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 28px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(255,106,61,0.8); }
.hero-title {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 920px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-ctas.center { justify-content: center; }
.hero-meta {
  margin-top: 24px;
  display: flex; gap: 10px; align-items: center;
  font-size: 13px; color: var(--muted-2);
  font-family: 'JetBrains Mono', monospace;
}
.hero-meta .sep { opacity: 0.5; }

/* ---------- App mock ---------- */
.hero-mock {
  margin-top: 80px;
  position: relative;
  perspective: 2400px;
}
.hero-glow {
  position: absolute;
  inset: -40px -20px auto -20px;
  height: 60%;
  background: radial-gradient(60% 60% at 50% 30%, rgba(255, 106, 61, 0.2), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.window {
  position: relative;
  z-index: 1;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 20px 40px rgba(255, 106, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.window-chrome {
  display: flex; gap: 8px;
  padding: 14px 16px;
  background: #111;
  border-bottom: 1px solid var(--border);
}
.window-chrome span { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.window-body { padding: 36px 44px 48px; min-height: 560px; }
.app-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.app-brand { display: flex; gap: 14px; align-items: center; }
.app-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  position: relative;
  box-shadow: 0 8px 24px rgba(255,106,61,0.35);
}
.app-icon::after {
  content: "";
  position: absolute;
  inset: 10px 8px;
  background: #fff;
  clip-path: polygon(0 20%, 70% 20%, 70% 0, 100% 25%, 100% 75%, 70% 100%, 70% 80%, 0 80%);
}
.app-title { font-size: 17px; font-weight: 600; }
.app-subtitle { font-size: 13px; color: var(--muted); }
.app-version { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted-2); }
.app-body { text-align: center; padding: 56px 0 0; }
.app-h { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.app-p { color: var(--muted); margin: 0 0 40px; }
.app-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; max-width: 680px; margin: 0 auto 48px;
  text-align: left;
}
.app-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.app-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.app-card-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  margin-bottom: 16px;
}
.app-card-icon svg { width: 20px; height: 20px; }
.app-card-title { font-weight: 600; margin-bottom: 4px; font-size: 15px; }
.app-card-sub { font-size: 13px; color: var(--muted); }
.app-recent { max-width: 680px; margin: 0 auto; text-align: left; }
.app-recent-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.app-recent-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.app-recent-row .muted { color: var(--muted-2); font-size: 13px; }
.app-foot {
  margin-top: 48px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------- Problem mess grid ---------- */
.mess-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.mess-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s var(--ease);
}
.mess-card:hover { transform: translateY(-2px); }
.mess-card > span { font-size: 26px; display: block; margin-bottom: 10px; }
.mess-card > div { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.mess-card > small { font-size: 12px; color: var(--muted-2); }
.arrow {
  text-align: center;
  font-size: 28px;
  color: var(--accent);
  margin: 16px 0;
}
.solution {
  background: var(--grad-soft);
  border: 1px solid rgba(255, 106, 61, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.solution-badge {
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  background: var(--grad);
  border-radius: 10px;
  white-space: nowrap;
}
.solution-text { color: var(--text); font-size: 16px; flex: 1; min-width: 260px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.step:hover { border-color: var(--border-2); transform: translateY(-2px); }
.step-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.step p { margin-bottom: 18px; }
.tick { list-style: none; padding: 0; margin: 0; }
.tick li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.tick li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.feature:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature p { font-size: 14px; margin: 0; }

/* ---------- Why local ---------- */
.local {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pillar {
  padding: 28px 0 28px 24px;
  border-left: 2px solid var(--accent);
}
.pillar h4 { margin-bottom: 10px; }
.pillar p { margin: 0; font-size: 14px; }

/* ---------- Built for ---------- */
.built {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.built-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.built-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.built-frame {
  margin: 0 auto 24px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 106, 61, 0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.built-frame::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}
.built-label {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.portrait .built-frame { width: 90px; height: 160px; }
.landscape .built-frame { width: 200px; height: 112px; }
.square .built-frame { width: 140px; height: 140px; }
.built-card p { font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 12px 0 0; font-size: 15px; }

/* ---------- Hood ---------- */
.hood { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hood-grid { display: flex; flex-direction: column; max-width: 820px; }
.hood-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  gap: 24px;
  flex-wrap: wrap;
}
.hood-row:last-child { border-bottom: none; }
.hood-k { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.02em; }
.hood-v { color: var(--text); text-align: right; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 300px at 50% 50%, rgba(255, 106, 61, 0.12), transparent 60%),
    var(--bg);
  text-align: center;
}
.cta-inner { max-width: 720px; }
.cta h2 { font-size: 48px; }
.cta p { font-size: 18px; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-meta {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  align-items: center;
}
.footer-meta a { color: var(--muted); transition: color 0.2s var(--ease); }
.footer-meta a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-title { font-size: 44px; }
  h2 { font-size: 34px; }
  .cta h2 { font-size: 36px; }
  .steps, .feature-grid, .pillars, .built { grid-template-columns: 1fr 1fr; }
  .mess-grid { grid-template-columns: repeat(3, 1fr); }
  .app-cards { grid-template-columns: 1fr; }
  .window-body { padding: 24px 20px 32px; min-height: 0; }
  .app-h { font-size: 28px; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 36px; }
  h2 { font-size: 28px; }
  .cta h2 { font-size: 30px; }
  .steps, .feature-grid, .pillars, .built { grid-template-columns: 1fr; }
  .mess-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding-top: 60px; }
}
