:root {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --card: #1a2436;
  --border: #2b3a52;
  --text: #e5e9f0;
  --text-muted: #94a3b8;
  --accent: #6ee7b7;
  --accent-dark: #10b981;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

nav.site-nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #05231a;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.hero {
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(110, 231, 183, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero p.lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

h2 {
  font-size: 30px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-lede {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 0 48px;
}

.section-head {
  text-align: center;
}

.section-head .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.usp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}

.usp-card .icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.usp-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.usp-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(110, 231, 183, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.price {
  font-size: 52px;
  font-weight: 700;
  margin: 8px 0 4px;
}

.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card .trial {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-card li {
  padding: 7px 0;
  border-top: 1px solid var(--border);
}

.pricing-card li:first-child {
  border-top: none;
}

.pricing-card li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

footer.site {
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 13px;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 20px;
}

footer.site a:hover {
  color: var(--accent);
}

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-page h1 {
  font-size: 32px;
}

.legal-page h2 {
  font-size: 20px;
  margin-top: 40px;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 15px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  color: var(--text-muted);
}

.notice {
  background: rgba(110, 231, 183, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Interactive demo widget (mimics the real app's window, sidebar + light content pane) */
.demo-frame {
  display: flex;
  align-items: stretch;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.demo-sidebar {
  flex-shrink: 0;
  width: 176px;
  background: #171f2e;
  padding: 18px 12px;
  display: none;
}

.demo-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 0 8px;
  margin-bottom: 18px;
}

.demo-sidebar-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  color: #05231a;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-nav-item {
  font-size: 12px;
  color: var(--text-muted);
  padding: 7px 8px;
  border-radius: 6px;
}

.demo-nav-item.active {
  background: #263047;
  color: var(--text);
}

.demo-main {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  color: #171717;
}

@media (min-width: 640px) {
  .demo-sidebar {
    display: block;
  }
}

.demo-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  background: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
}

.demo-tab {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #737373;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  font-family: inherit;
}

.demo-tab.active {
  background: #ffffff;
  color: #171717;
}

.demo-panel {
  padding: 20px;
}

.demo-panel[hidden] {
  display: none;
}

.demo-hint {
  font-size: 12px;
  color: #a3a3a3;
  margin: 0 0 14px;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.demo-table th {
  text-align: left;
  padding: 8px 10px;
  color: #737373;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #e5e5e5;
  white-space: nowrap;
}

.demo-table th:hover {
  color: #171717;
}

.demo-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #171717;
}

.demo-table td.muted {
  color: #a3a3a3;
}

.demo-table th:first-child {
  width: 32px;
}

.demo-icon-cell {
  border-left: 4px solid transparent;
  text-align: center;
  font-size: 15px;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.demo-hint a {
  color: var(--accent-dark);
  font-weight: 600;
}

.demo-badge {
  background: #f5f5f5;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #404040;
}

.demo-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.demo-col {
  flex-shrink: 0;
  width: 180px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px;
  min-height: 60px;
  transition: outline-color 0.15s;
  outline: 2px dashed transparent;
  outline-offset: -4px;
}

.demo-col.drag-over {
  outline-color: var(--accent-dark);
  background: #eefdf6;
}

.demo-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #737373;
  margin: 0 0 8px;
}

.demo-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-left: 3px solid #d4d4d4;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.demo-card:active {
  cursor: grabbing;
}

.demo-card.dragging {
  opacity: 0.4;
}

.demo-card .num {
  font-weight: 600;
  color: #171717;
}

.demo-card .title {
  color: #525252;
  margin-top: 2px;
}

.demo-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.demo-shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.demo-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.demo-shot figcaption {
  margin-top: 10px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .demo-shots {
    grid-template-columns: 1fr;
  }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-inner p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 640px;
}

.cookie-banner-inner a {
  color: var(--accent);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  nav.site-nav {
    display: none;
  }
  h1 {
    font-size: 32px;
  }
  .usp-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
