:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-deep: #0d1117;
  --border: #d0d7de;
  --border-soft: #e7eaee;
  --text: #1f2328;
  --muted: #6e7781;
  --accent: #0969da;
  --accent-hover: #0860ca;
  --accent-soft: #ddf4ff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

code {
  font-family: SFMono-Regular, Consolas, Menlo, monospace;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { font-size: 14px; padding: 7px 14px; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Hero domain accent */
.hero-domain { color: var(--accent); white-space: nowrap; }

/* Hero demo window */
.hero-demo {
  margin: 56px auto 0;
  max-width: 920px;
  padding: 0 12px;
}
.hero-window {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(15,23,42,0.16);
  overflow: hidden;
  text-align: left;
}
.hero-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.hero-dot:nth-child(1) { background: #ff5f57; }
.hero-dot:nth-child(2) { background: #ffbd2e; }
.hero-dot:nth-child(3) { background: #28c93f; }
.hero-url {
  margin-left: auto; margin-right: auto;
  font-size: 12px; color: var(--muted);
  font-family: SFMono-Regular, Menlo, monospace;
}
.hero-app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 360px;
}
.hero-app-list {
  border-right: 1px solid var(--border-soft);
  background: var(--bg);
  padding: 0;
}
.hero-app-list-head {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
  letter-spacing: 0.02em;
}
.hero-app-list-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.hero-app-list-item.on { background: var(--accent-soft); }
.hero-app-from { font-size: 13px; font-weight: 600; }
.hero-app-subj { font-size: 13px; margin-top: 1px; color: var(--text); }
.hero-app-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.hero-app-msg { padding: 22px 26px; }
.hero-app-msg-subj { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.hero-app-msg-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hero-app-msg-meta strong { color: var(--text); font-weight: 500; }
.hero-app-msg-body { margin-top: 18px; font-size: 14px; line-height: 1.6; }
.hero-app-msg-body p { margin: 0 0 12px; }
.hero-app-msg-pill {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

/* "How it works" list */
.how-list { padding-left: 18px; margin: 14px 0 26px; color: var(--muted); }
.how-list li { margin-bottom: 10px; line-height: 1.6; }
.how-list strong { color: var(--text); font-weight: 600; }

/* Beta CTA row */
.beta-cta-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-ghost-dark {
  background: transparent;
  color: white;
  border: 1px solid #313b46;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.06); }

/* Buttons */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 120ms ease, transform 80ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px 90px;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 auto 22px;
  max-width: 820px;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Features */
.features {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 80px 32px;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}
.grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 600;
}
.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Composer section */
.composer-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.composer-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.composer-copy p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.composer-mock { display: flex; justify-content: center; }
.mock-window {
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d7de;
}
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #ffbd2e; }
.mock-dot:nth-child(3) { background: #28c93f; }
.mock-title {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}
.mock-body {
  padding: 26px 28px 28px;
}
.mock-h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.mock-p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
.mock-callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 16px;
}
.mock-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text);
}
.mock-list li { margin-bottom: 4px; }

/* Beta */
.beta {
  background: var(--bg-deep);
  color: white;
  padding: 90px 32px;
}
.beta-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.beta-card h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: white;
}
.beta-card p {
  color: #adbac7;
  font-size: 17px;
  margin: 0 0 28px;
  line-height: 1.6;
}
.beta-card .btn-primary {
  background: white;
  color: var(--bg-deep);
  border-color: white;
}
.beta-card .btn-primary:hover { background: #e7eaee; border-color: #e7eaee; }
.beta-meta {
  font-size: 13px;
  color: #768390;
  margin: 22px 0 0;
}

/* Footer */
.foot {
  border-top: 1px solid var(--border-soft);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); text-decoration: none; }
.foot-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.foot-sep { color: var(--border); }
.foot-meta {
  margin: 0;
  font-size: 12px;
  color: var(--border);
  max-width: 540px;
  margin: 8px auto 0;
}

/* Responsive */
@media (max-width: 800px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-actions .nav-cta:first-child { display: none; }
  .hero { padding: 56px 20px 64px; }
  .features, .beta { padding: 64px 20px; }
  .composer-section {
    padding: 64px 20px;
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-app { grid-template-columns: 1fr; }
  .hero-app-list { border-right: 0; border-bottom: 1px solid var(--border-soft); }
}
