:root {
  --bg-hero: #080d19;
  --bg-hero-grad: radial-gradient(ellipse 75% 60% at 50% 18%, #13203d 0%, #090e1a 68%, #060911 100%);
  --bg-window: #12151e;
  --bg-sidebar: #0e1118;
  --bg-list: #11141c;
  --bg-popover: #0b0e16;
  --border-hairline: rgba(148, 163, 184, 0.14);
  --border-card: rgba(148, 163, 184, 0.22);
  --text-bright: #f8fafc;
  --text-mid: #94a3b8;
  --text-dim: #64748b;
  --accent-blue: #1d8cf8;
  --accent-blue-btn: linear-gradient(180deg, #2b8ff9 0%, #1773e6 100%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

.mono {
  font-family: var(--font-mono);
}

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

/* Dark Hero Stage */
.hero-stage {
  background: var(--bg-hero);
  background-image: var(--bg-hero-grad);
  color: var(--text-bright);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

/* Compact Header */
.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 2px;
}

.brand-grid span {
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: #38bdf8;
}

.brand-grid span:nth-child(2),
.brand-grid span:nth-child(3) {
  background: #2563eb;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 120ms ease;
}

.nav-links a:hover {
  opacity: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12.5px;
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 120ms ease;
}

.btn--top {
  padding: 5px 12px;
  font-size: 11.5px;
  background: var(--accent-blue-btn);
  color: #ffffff;
}

.btn--primary {
  background: var(--accent-blue-btn);
  border-color: rgba(96, 165, 250, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(29, 140, 248, 0.35);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

/* Tight, Single-Line Hero Copy */
.hero-copy {
  text-align: center;
  margin: 22px auto 18px;
}

.hero-title {
  font-size: clamp(24px, 2.75vw, 33px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #ffffff;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(18px, 2.05vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
}

.hero-lead {
  margin: 9px auto 14px;
  max-width: 570px;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.48;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-cli-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 4px 6px 4px 10px;
  border-radius: 6px;
  background: rgba(11, 15, 25, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.hero-cli-bar__tag {
  font-size: 9.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
}

.hero-cli-bar__cmd {
  font-size: 11px;
  color: #e2e8f0;
  user-select: all;
}

.hero-cli-bar__copy {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.hero-cli-bar__copy:hover {
  color: #ffffff;
  border-color: #38bdf8;
}

.hero-reassurance {
  margin-top: 7px;
  font-size: 10.5px;
  color: #64748b;
}

/* Compact App Window (Cropped at bottom fold like reference) */
.showcase-wrap {
  max-width: 790px;
  margin: 14px auto 0;
  position: relative;
}

.app-window {
  background: var(--bg-window);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 48px 185px 1fr;
  height: 268px;
  position: relative;
  overflow: visible;
}

.app-rail {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-hairline);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 10px 0 0 0;
}

.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  color: #64748b;
  padding: 5px 4px;
  border-radius: 6px;
  width: 40px;
}

.rail-item--active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.app-list {
  background: var(--bg-list);
  border-right: 1px solid var(--border-hairline);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.app-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
}

.tiny-btn {
  font-size: 9px;
  background: #2563eb;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.app-search {
  font-size: 9.5px;
  color: #64748b;
  background: #0b0e15;
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 4px 7px;
}

.color-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot--red { background: #ef4444; }
.dot--orange { background: #f97316; }
.dot--yellow { background: #eab308; }
.dot--green { background: #22c55e; }
.dot--blue { background: #3b82f6; }
.dot--purple { background: #a855f7; }

.note-item {
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 5px;
  padding: 6px 7px;
}

.note-item__title {
  font-size: 9.5px;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note-item__body {
  font-size: 8.5px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}

/* Editor Area */
.app-editor {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.editor-header {
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #e2e8f0;
}

.editor-header__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-pill {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-hairline);
  color: #94a3b8;
  background: #0d1017;
}

.mini-pill--danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
}

.editor-tags-bar {
  height: 22px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: #64748b;
}

.editor-code {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.55;
  color: #94a3b8;
  position: relative;
  flex: 1;
}

.ln {
  color: #475569;
  display: inline-block;
  width: 16px;
  user-select: none;
}

/* Delicate Glowing Flow Nodes + Popover */
.flow-nodes {
  position: absolute;
  left: 135px;
  top: 96px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 15;
}

.flow-pill {
  font-size: 9.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(11, 15, 25, 0.92);
  color: #e2e8f0;
  text-align: center;
  line-height: 1.2;
}

.flow-pill--purple {
  border: 1px solid rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.flow-pill--cyan {
  border: 1px solid rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.22);
}

.flow-pill--green {
  border: 1px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.flow-line {
  width: 12px;
  height: 1px;
  background: rgba(148, 163, 184, 0.45);
}

.aipp-card {
  position: absolute;
  right: 48px;
  bottom: 0;
  width: 215px;
  background: #0b0e17;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 12px 14px 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.85);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-unlock-wrap {
  position: absolute;
  right: -34px;
  top: 102px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 25;
}

/* Compact White Bottom Section */
.features-section {
  background: #ffffff;
  padding: 24px 0 20px;
}

.features-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-icon {
  color: #334155;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.feature-desc {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.42;
}

.trust-bar {
  padding: 14px 0 18px;
  border-top: 1px solid #f1f5f9;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Cloudflare-style 6-Digit Email OTP Modal */
.otp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 17, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.otp-backdrop[hidden] { display: none; }

.otp-dialog {
  width: 100%;
  max-width: 410px;
  background: #0d121f;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 20px 22px;
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.otp-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.otp-dialog__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
}
.otp-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
}
.otp-dialog__desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.48;
}
.otp-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.otp-step[hidden] { display: none; }
.otp-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #64748b;
}
.otp-input {
  width: 100%;
  height: 38px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #080b14;
  color: #f8fafc;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}
.otp-input--code {
  letter-spacing: 0.35em;
  font-size: 16px;
  text-align: center;
  font-weight: 600;
}
.otp-btn { width: 100%; height: 38px; }
.otp-key-box {
  background: #080b14;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 11px;
  color: #38bdf8;
  word-break: break-all;
}
.otp-msg {
  font-size: 11.5px;
  color: #38bdf8;
  min-height: 16px;
}
.otp-foot {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 9px;
  font-size: 10.5px;
  color: #64748b;
  text-align: center;
}

