:root {
  --bg: #0c0e12;
  --bg-elevated: #13171f;
  --bg-card: #161b24;
  --bg-card-hover: #1c222e;
  --border: #252d3d;
  --border-subtle: #1c2331;
  --text: #e6edf3;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --purple: #a78bfa;
  --purple-soft: rgba(167, 139, 250, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 980px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  opacity: 0.88;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.brand-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.brand-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-elevated);
}

/* Hero Section */
.hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 660px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: #364156;
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: #081018;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover {
  background: #5ccbf9;
  border-color: #5ccbf9;
  color: #081018;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.84rem;
}

.js-app-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Grids & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: #334059;
  background: var(--bg-card-hover);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.app-icon img,
.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-hero-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.app-hero-icon {
  width: 76px;
  height: 76px;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.app-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
}

.badge-blue {
  color: var(--accent);
  background: var(--accent-soft);
}

.badge-green {
  color: var(--emerald);
  background: var(--emerald-soft);
}

.badge-amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge-purple {
  color: var(--purple);
  background: var(--purple-soft);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 6px;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
}

/* App Detail & Privacy Layout */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.feature-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.feature-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}

.feature-list span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Legal / Privacy Policy Prose */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
  color: var(--text);
}

.prose h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.policy-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 20px 0 28px;
}

.policy-summary-box h3 {
  margin-top: 0;
  color: var(--emerald);
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.policy-table th,
.policy-table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
}

.policy-table th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
}

.policy-table td {
  color: var(--text-muted);
  background: var(--bg-card);
}

/* Forms (Mailing List & Support) */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.94rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-status {
  margin-top: 12px;
  font-size: 0.88rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.visible {
  display: block;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Pipeline & SaaS Stack Strip */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.pipeline-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.pipeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: block;
}

.pipeline-step strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

.pipeline-step p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.saas-strip {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.saas-strip-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.saas-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.saas-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.saas-item:hover {
  opacity: 1;
  color: var(--text-muted);
}

.saas-item svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 720px) {
  .saas-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }
}

/* Footer */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 0.86rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0 28px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav-bar {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
