:root {
  --bg: #090821;
  --bg-elevated: #0e0e10;
  --bg-card: #141416;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #e85d04;
  --accent-soft: #f48c06;
  --accent-glow: rgba(232, 93, 4, 0.4);
  --border: rgba(255,255,255,0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

#canvas-container {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.9;
  transition: opacity 0.6s;
}
.content { position: relative; z-index: 1; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(7,7,8,0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7,7,8,0.88);
}
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--text);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.02em;
}
.logo-img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: contain; display: block;
}
.logo-text { font-weight: 600; letter-spacing: -0.02em; }
.logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border-radius: 8px; display: grid; place-items: center;
  font-family: 'Instrument Serif', serif; font-size: 1.05rem; color: #fff;
}
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 0.5rem 1.1rem; border-radius: 8px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-soft) !important; }

.chapter {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 6rem 2rem; position: relative;
}
.chapter-inner { max-width: 920px; margin: 0 auto; width: 100%; }

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 7rem 2rem 5rem;
  max-width: 1000px; margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.035em;
  margin-bottom: 1.7rem; max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--accent-soft); }
.hero-sub {
  font-size: 1.18rem; color: var(--text-muted); max-width: 38ch;
  margin-bottom: 2.6rem; font-weight: 400; line-height: 1.55;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.55rem; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: all 0.25s; border: none; cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
}

.chapter-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.3rem;
}
.chapter h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 400; line-height: 1.15; margin-bottom: 1.6rem;
  letter-spacing: -0.025em; max-width: 20ch;
}
.chapter p {
  font-size: 1.12rem; color: var(--text-muted);
  margin-bottom: 1.2rem; max-width: 48ch; line-height: 1.65;
}
.chapter p strong { color: var(--text); font-weight: 600; }
.chapter-accent-line {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 2rem 0 0; border-radius: 2px;
}

.products-chapter { padding: 5rem 2rem 7rem; max-width: 1180px; margin: 0 auto; }
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 400; margin-bottom: 0.7rem; letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 42ch; margin-bottom: 3.2rem;
}
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 1.9rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.product-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(232,93,4,0.06), transparent 40%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.product-card:hover {
  border-color: rgba(232, 93, 4, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.product-card:hover::after { opacity: 1; }
.product-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(232, 93, 4, 0.12);
  display: grid; place-items: center; margin-bottom: 1.25rem; font-size: 1.25rem;
}
.product-card h3 {
  font-size: 1.18rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.015em;
}
.product-card p {
  font-size: 0.93rem; color: var(--text-muted); flex-grow: 1;
  margin-bottom: 1.3rem; line-height: 1.55;
}
.product-link {
  font-size: 0.86rem; font-weight: 600; color: var(--accent-soft);
  display: flex; align-items: center; gap: 0.35rem;
}

.proof-chapter { padding: 7rem 2rem; max-width: 1000px; margin: 0 auto; text-align: center; }
.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3.5rem;
}
.proof-stat {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  color: var(--accent-soft); line-height: 1; margin-bottom: 0.5rem;
}
.proof-label { font-size: 0.92rem; color: var(--text-muted); }

.blog-chapter { padding: 5rem 2rem 6rem; max-width: 820px; margin: 0 auto; }
.blog-list { margin-top: 2.5rem; display: grid; gap: 1rem; }
.blog-card {
  display: block; padding: 1.45rem 1.6rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 13px; text-decoration: none; color: inherit; transition: all 0.3s;
}
.blog-card:hover {
  border-color: rgba(232, 93, 4, 0.3); transform: translateX(8px);
}
.blog-meta {
  font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.35rem; letter-spacing: 0.05em;
}
.blog-card h3 { font-size: 1.05rem; font-weight: 600; }

.final-chapter {
  min-height: 70vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 6rem 2rem;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(232, 93, 4, 0.09) 0%, transparent 70%);
}
.final-chapter h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400; margin-bottom: 1.1rem; max-width: 16ch; line-height: 1.15;
}
.final-chapter p {
  color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2.4rem; max-width: 34ch;
}

footer {
  padding: 3.5rem 2rem 2.2rem; border-top: 1px solid var(--border);
  max-width: 1100px; margin: 0 auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.8rem;
}
.footer-brand p {
  color: var(--text-muted); font-size: 0.9rem; margin-top: 0.8rem; max-width: 26ch;
}
.footer-col h4 {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem;
}
.footer-col a {
  display: block; color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; margin-bottom: 0.5rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.6rem; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-dim);
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 200; width: 0%; transition: width 0.05s linear;
}

/* Blog specific */
.page-header {
  padding: 8rem 2rem 3rem; max-width: 900px; margin: 0 auto;
}
.page-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 400; margin-bottom: 0.8rem;
}
.page-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 40ch; }

.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto 4rem; padding: 0 2rem;
}
.post-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  transition: all 0.3s; display: flex; flex-direction: column;
}
.post-card:hover {
  border-color: rgba(232,93,4,0.35); transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.post-card-img {
  aspect-ratio: 16/9; background: var(--bg-elevated);
  object-fit: cover; width: 100%;
}
.post-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.post-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.35; }
.post-card p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }

.article {
  max-width: 720px; margin: 0 auto; padding: 8rem 2rem 4rem;
}
.article h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 400;
  line-height: 1.15; margin-bottom: 1rem;
}
.article-meta {
  font-size: 0.85rem; color: var(--text-dim); margin-bottom: 2rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.article-body {
  font-size: 1.08rem; line-height: 1.75; color: var(--text-muted);
}
.article-body h2, .article-body h3 {
  font-family: 'Instrument Serif', serif; color: var(--text);
  margin: 2rem 0 0.8rem; font-weight: 400;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body a { color: var(--accent-soft); }
.article-body img { max-width: 100%; border-radius: 12px; margin: 1.5rem 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding-left: 1.2rem;
  margin: 1.5rem 0; color: var(--text); font-style: italic;
}
.article-body ul, .article-body ol { margin: 1rem 0 1.2rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }

.filters {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto 2rem; padding: 0 2rem;
}
.filter-chip {
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 0.82rem; text-decoration: none;
  transition: all 0.2s;
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--accent); color: var(--accent-soft);
  background: rgba(232,93,4,0.08);
}

.prose-page {
  max-width: 720px; margin: 0 auto; padding: 8rem 2rem 5rem;
}
.prose-page h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 400; margin-bottom: 1.5rem;
}
.prose-page p, .prose-page li {
  color: var(--text-muted); font-size: 1.08rem; line-height: 1.7; margin-bottom: 1.1rem;
}
.prose-page h2 {
  font-family: 'Instrument Serif', serif; color: var(--text);
  font-size: 1.6rem; font-weight: 400; margin: 2.2rem 0 0.8rem;
}
.prose-page strong { color: var(--text); }

@media (max-width: 800px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
