:root {
  --bg-body: #050816;
  --bg-elevated: #0b1020;
  --bg-card: #111827;
  --border-subtle: #1f2937;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-hover: #1d4ed8;
  --danger: #f97373;
  --max-width: 1120px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #111827 0, #020617 50%, #020617 100%);
  color: var(--text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

/* Layout */

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

@media (min-width: 1024px) {
  .container {
    padding: 32px 0 64px;
  }
}

/* Top nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main); /* prevents visited purple */
}

.nav-brand:visited {
  color: var(--text-main);
}

.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  /* Remove the old gold/orange glow */
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-title {
  display: flex;
  flex-direction: column;
}

.nav-title span:first-child {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-title strong {
  font-size: 0.98rem;
  /* Slightly brighter, readable purple (close to the confidence accent) */
  color: #b38cff;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.9);
}

.nav-links a.nav-cta {
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
}

.nav-links a.nav-cta:hover {
  border-color: rgba(148, 163, 184, 0.9);
}

.nav-links a.active {
  color: #e5e7eb;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), #4f46e5);
}

/* Buttons */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: white;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #4338ca);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.7);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.38);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(209, 213, 219, 0.9);
}

/* Hero & sections */

.hero {
  padding: 40px 0 28px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.95));
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-title {
  font-size: clamp(2rem, 3vw + 1.2rem, 2.7rem);
  line-height: 1.08;
  margin: 0 0 10px;
}

.hero-title span.highlight {
  background-image: linear-gradient(to right, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 0.78rem;
  color: var(--accent);
}

/* Hero card */

.hero-card {
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.28), var(--bg-card));
  border-radius: 26px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero-card-inner {
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.2), #020617);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 16px 18px 18px;
}

.hero-app-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.hero-app-name strong {
  font-size: 0.92rem;
}

.hero-screenshot {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(to bottom, #020617, #020617);
  border: 1px solid rgba(31, 41, 55, 0.95);
}

.hero-screenshot-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-screenshot-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.hero-screenshot-metrics div {
  display: inline-flex;
  flex-direction: column;
}

.hero-screenshot-metrics span:first-child {
  color: var(--text-muted);
}

.hero-screenshot-metrics strong {
  font-size: 0.95rem;
}

/* Generic sections */

.section {
  padding: 18px 0 8px;
}

.section + .section {
  border-top: 1px solid rgba(31, 41, 55, 0.8);
  margin-top: 16px;
}

.section-header {
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.3rem;
  margin: 0 0 4px;
}

.section-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 620px;
}

/* Cards & grids */

.grid-3 {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.95);
  color: var(--text-muted);
}

/* Two-column layout for content pages */

.page-header {
  padding-top: 36px;
  padding-bottom: 18px;
}

.page-title {
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.page-lede {
  max-width: 640px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.page-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .page-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  }
}

.list {
  padding-left: 18px;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.list li + li {
  margin-top: 4px;
}

/* FAQ */

.faq-group {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 11px 13px 11px;
}

.faq-q {
  font-size: 0.94rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.faq-a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Table-like list (changelog & pricing) */

.table-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 14px 14px 10px;
  font-size: 0.88rem;
}

.table-box h3 {
  font-size: 0.96rem;
  margin: 0 0 6px;
}

.table-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.table-box li + li {
  margin-top: 3px;
}

/* Forms */

.form {
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.form-label {
  display: block;
  margin-bottom: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 9px 10px;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.9rem;
}

.form-input:focus,
.form-textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 16px 20px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-logo {
  height: 40px; 
  width: auto;
  margin-bottom: 8px;
  opacity: 0.85;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  
  display: flex;
  flex-direction: column;   /* footer logo on top, text under it */
  align-items: center;
  text-align: center;
  gap: 6px;
}

/* Navigation logo size override */
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

/* Hero logo */
.hero-logo-wrap {
  margin-bottom: 12px;
}

.hero-logo-img {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
}

/* Guide category chips */
.badge-guide {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.8);
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Category color accents */
.badge-labor {
  border-color: #f97316;
  color: #fed7aa;
}

.badge-pricing {
  border-color: #38bdf8;
  color: #bae6fd;
}

.badge-business {
  border-color: #22c55e;
  color: #bbf7d0;
}

.badge-materials {
  border-color: #a855f7;
  color: #e9d5ff;
}

.badge-cnc {
  border-color: #eab308;
  color: #fef08a;
}

/* Guides filter bar */
.guides-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.08s ease;
}

.filter-chip:hover {
  background: rgba(31, 41, 55, 0.95);
  border-color: var(--accent);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  border-color: transparent;
  color: #f9fafb;
}

/* Hide filtered-out guides */
.guide-card.is-hidden {
  display: none;
}

