*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a1812;
  --bg2: #0e1f17;
  --bg3: #122318;
  --green: #3ecf8e;
  --green-mid: #2aad72;
  --green-soft: rgba(62,207,142,0.14);
  --rule: rgba(62,207,142,0.10);
  --white: #eef5f1;
  --muted: rgba(238,245,241,0.48);
  --ghost: rgba(238,245,241,0.20);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --max: 780px;
  --max-wide: 1080px;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10,24,18,0.74);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-wide); margin: 0 auto; padding: 0 2rem;
  min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { display: flex; align-items: baseline; text-decoration: none; flex-shrink: 0; }
.logo-qel, .logo-tec { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.logo-qel { color: var(--white); }
.logo-tec { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: 13px; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-menu { position: relative; }
.nav-menu button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 1.25rem 0;
}
.nav-menu-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 180px; padding: .5rem; border: 1px solid var(--rule); border-radius: 8px;
  background: rgba(7,16,14,.96); box-shadow: 0 24px 60px rgba(0,0,0,.34);
  opacity: 0; pointer-events: none; transition: .2s;
}
.nav-menu:hover .nav-menu-panel, .nav-menu:focus-within .nav-menu-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-menu-panel a { display: block; padding: .65rem .75rem; border-radius: 6px; }
.nav-menu-panel a:hover { background: rgba(62,207,142,.08); }
.nav-cta, .btn-primary {
  display: inline-block; background: var(--green); color: var(--bg);
  font-size: 14px; font-weight: 600; padding: 13px 28px; border-radius: 6px;
  text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.nav-cta { padding: 9px 22px; font-size: 13px; white-space: nowrap; }
.nav-cta:hover, .btn-primary:hover { background: var(--green-mid); color: var(--white); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block; color: var(--muted); font-size: 14px; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--ghost); padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--white); }
.btn-outline {
  display: inline-block; color: var(--muted); font-size: 14px; font-weight: 500;
  border: 1px solid var(--rule); padding: 13px 28px; border-radius: 6px;
  text-decoration: none; transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: rgba(62,207,142,.4); color: var(--white); }
#hero, .listing-hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 120px 2rem 80px; overflow: hidden;
}
.listing-hero { min-height: 58vh; border-bottom: 1px solid var(--rule); }
#aurora-canvas, #cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-content, .listing-hero .inner-wide, #contact .inner { position: relative; z-index: 2; }
.hero-content { max-width: 800px; }
.eyebrow, .section-label {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green);
}
.eyebrow {
  display: inline-block; border: 1px solid rgba(62,207,142,.28); padding: 5px 16px;
  border-radius: 100px; margin-bottom: 2rem;
}
h1, h2, h3 { color: var(--white); letter-spacing: -0.02em; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(44px, 8vw, 82px); line-height: 1.05; margin-bottom: 1.75rem; }
h2 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.15; margin-bottom: 1.5rem; }
h3 { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
h1 em, h2 em { font-style: italic; color: var(--green); font-weight: 400; }
.hero-sub, .listing-hero p:not(.section-label) {
  font-size: clamp(16px, 2.2vw, 19px); line-height: 1.8; color: var(--muted);
  max-width: 620px; margin: 0 auto 2.5rem;
}
.hero-cta-row, .cta-group { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.scroll-hint { margin-top: 4rem; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ghost); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(62,207,142,.35), transparent); }
section { padding: 100px 2rem; }
.inner { max-width: var(--max); margin: 0 auto; }
.inner-wide { max-width: var(--max-wide); margin: 0 auto; }
#how, #example, #contact { background: var(--bg); border-top: 1px solid var(--rule); }
#services, #who, #insights-preview, .listing-section { background: var(--bg2); border-top: 1px solid var(--rule); }
.flow-row, .services-grid, .who-grid, .content-grid {
  display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: 12px; overflow: hidden; margin-top: 3rem;
}
.flow-row { display: flex; align-items: stretch; }
.flow-item { flex: 1; padding: 2rem 1.5rem; text-align: center; background: rgba(255,255,255,.02); border-right: 1px solid var(--rule); }
.flow-item:last-child { border-right: none; }
.flow-item.signal { background: rgba(62,207,142,.06); }
.flow-number { font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--ghost); text-transform: uppercase; margin-bottom: 8px; }
.flow-word { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.flow-item.signal .flow-word { color: var(--green); }
.how-copy { margin-top: 2.5rem; }
.how-copy p, .example-right p, .who-sub, .split-heading p { color: var(--muted); max-width: 600px; line-height: 1.85; margin-bottom: 1rem; }
.how-copy strong { color: var(--white); font-weight: 500; }
.services-grid { grid-template-columns: repeat(2, 1fr); }
.service-card, .who-card, .content-card { background: var(--bg2); transition: background .3s; }
.service-card { padding: 2.25rem 2rem; }
.service-card:hover, .who-card:hover, .content-card:hover { background: rgba(62,207,142,.045); }
.service-num { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--green); opacity: .7; margin-bottom: 1rem; }
.service-card p, .who-card p, .content-card p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.insight-routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 3rem; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.route-card { display: grid; gap: 1rem; padding: 2rem; text-decoration: none; background: var(--bg2); }
.route-card span { color: var(--green); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.route-card strong { font-family: var(--serif); font-size: 24px; line-height: 1.25; font-weight: 700; }
.example-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.big-number { font-family: var(--serif); font-size: clamp(64px, 10vw, 100px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.big-number span, .clarity-line { color: var(--green); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: .5rem; letter-spacing: .04em; }
.output-list { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 10px; }
.output-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.output-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.clarity-line { font-family: var(--serif); font-size: 22px; font-style: italic; margin-top: 1.5rem; }
.who-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.who-card { padding: 2rem 1.75rem; }
.who-card-title { font-family: var(--serif); font-size: 18px; font-weight: 700; margin-bottom: .5rem; }
#contact { padding: 130px 2rem; text-align: center; position: relative; overflow: hidden; }
#contact p { font-size: 17px; color: var(--muted); max-width: 480px; margin: 0 auto 2.5rem; }
.breadcrumbs { margin-top: 60px; padding: 1rem 2rem; background: var(--bg); border-bottom: 1px solid var(--rule); }
.breadcrumbs ol { max-width: var(--max-wide); margin: 0 auto; list-style: none; display: flex; gap: .6rem; flex-wrap: wrap; font-size: 12px; color: var(--ghost); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .6rem; color: var(--ghost); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }
.featured-content {
  display: grid; grid-template-columns: 1fr .85fr; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; margin-bottom: 2rem;
}
.featured-copy, .featured-image { background: var(--bg2); min-height: 340px; }
.featured-copy { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-copy h2 a, .content-card h3 a { text-decoration: none; }
.featured-copy p { color: var(--muted); max-width: 620px; }
.featured-image { display: grid; place-items: center; color: var(--green); text-decoration: none; font-family: var(--serif); font-size: 30px; }
.featured-image img, .card-image img, .article-image img { width: 100%; height: 100%; object-fit: cover; }
.content-tools {
  display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; margin: 2rem 0;
}
.search-box { display: grid; gap: .5rem; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.search-box input {
  width: 100%; border: 1px solid var(--rule); border-radius: 8px; padding: .85rem 1rem;
  background: rgba(7,16,14,.7); color: var(--white); outline: none;
}
.search-box input:focus { border-color: rgba(62,207,142,.45); }
.filter-groups { display: grid; gap: .75rem; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-pills button {
  border: 1px solid var(--rule); border-radius: 100px; background: transparent; color: var(--muted);
  padding: .6rem .9rem; cursor: pointer; font-size: 13px;
}
.filter-pills button:hover, .filter-pills button.is-active { color: var(--bg); background: var(--green); border-color: var(--green); }
.content-grid { grid-template-columns: repeat(3, 1fr); }
.content-card { min-height: 100%; }
.card-image {
  display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(circle at 30% 20%, rgba(62,207,142,.16), transparent 45%), var(--bg3);
  color: var(--green); text-decoration: none; font-family: var(--serif); font-size: 22px;
}
.card-body { padding: 1.5rem; }
.card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; color: var(--ghost); font-size: 12px; margin-bottom: .9rem; }
.card-meta span:not(:last-child)::after, .article-meta span:not(:last-child)::after { color: var(--ghost); }
.empty-state { border: 1px solid var(--rule); border-radius: 12px; padding: 3rem; text-align: center; background: rgba(255,255,255,.02); }
.empty-state p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.empty-state code { color: var(--green); }
.article-shell { background: var(--bg); }
.article-hero { max-width: 900px; margin: 0 auto; padding: 120px 2rem 56px; text-align: center; }
.article-hero h1 { font-size: clamp(42px, 6vw, 72px); }
.article-hero .article-meta { justify-content: center; }
.article-image { margin-top: 2.5rem; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--bg3); }
.article-layout { max-width: var(--max-wide); margin: 0 auto; padding: 0 2rem 100px; display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 4rem; align-items: start; }
.article-aside {
  position: sticky; top: 92px; display: grid; gap: 1.5rem; color: var(--muted); font-size: 14px;
  border-top: 1px solid var(--rule); padding-top: 1.5rem;
}
.aside-label { color: var(--green); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .65rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list span { border: 1px solid var(--rule); border-radius: 100px; padding: .35rem .65rem; color: var(--muted); font-size: 12px; }
.article-content { color: rgba(238,245,241,.72); font-size: 18px; line-height: 1.85; }
.article-content > * + * { margin-top: 1.35rem; }
.article-content h2, .article-content h3 { margin-top: 2.5rem; }
.article-content h2 { font-size: clamp(28px, 3vw, 38px); }
.article-content h3 { font-size: 24px; }
.article-content a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-content ul, .article-content ol { padding-left: 1.25rem; }
.article-content blockquote, .pull-quote {
  font-family: var(--serif); color: var(--white); font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25; border-left: 2px solid var(--green); padding-left: 1.5rem; margin: 2.5rem 0;
}
.callout, .content-cta {
  border: 1px solid var(--rule); border-radius: 12px; background: rgba(62,207,142,.055);
  padding: 1.5rem; margin: 2rem 0;
}
.callout strong { color: var(--white); }
.article-content table { width: 100%; border-collapse: collapse; font-size: 15px; overflow: hidden; }
.article-content th, .article-content td { border: 1px solid var(--rule); padding: .85rem; text-align: left; }
.article-content th { color: var(--white); background: rgba(62,207,142,.07); }
.metrics-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px;
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--rule); margin-bottom: 4rem;
}
.metrics-band div { background: var(--bg2); padding: 1.5rem; }
.metrics-band strong { display: block; font-family: var(--serif); font-size: 42px; color: var(--green); line-height: 1; }
.metrics-band span { color: var(--muted); font-size: 13px; }
.related-section { background: var(--bg2); border-top: 1px solid var(--rule); }
footer { background: var(--bg2); border-top: 1px solid var(--rule); padding: 2rem; }
.footer-inner { max-width: var(--max-wide); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: var(--ghost); }
#chat-toggle {
  position: fixed; bottom: 30px; right: 30px; min-height: 56px; padding: 0 22px; border: 0;
  border-radius: 999px; background: #2dd4a7; color: #02140f; font-family: var(--serif);
  font-size: 20px; cursor: pointer; z-index: 10001; box-shadow: 0 10px 30px rgba(45,212,167,.20); transition: .3s;
}
#chat-toggle:hover { transform: translateY(-2px); }
#chat-container {
  position: fixed; bottom: 110px; right: 30px; width: min(420px, 92vw); background: #07100e;
  border: 1px solid rgba(45,212,167,.12); border-radius: 18px; overflow: hidden; display: none;
  z-index: 10000; box-shadow: 0 25px 60px rgba(0,0,0,.50);
}
#chat-header { padding: 20px; border-bottom: 1px solid rgba(45,212,167,.08); display: flex; justify-content: space-between; align-items: center; }
#chat-title { font-family: var(--serif); font-size: 22px; }
#chat-close { cursor: pointer; color: #8ea29b; font-size: 24px; border: 0; background: transparent; }
#chat-messages { padding: 24px; }
.bot-message { font-family: Georgia, serif; color: #d8e3df; line-height: 1.8; font-size: 16px; }
#chat-options { padding: 0 24px 24px; display: flex; flex-wrap: wrap; gap: 10px; }
#chat-options button {
  background: transparent; border: 1px solid rgba(45,212,167,.20); color: #d8e3df;
  padding: 10px 14px; border-radius: 999px; cursor: pointer; transition: .25s; font-size: 14px;
}
#chat-options button:hover { background: #2dd4a7; color: #02140f; }
.advisor-input {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid rgba(45,212,167,.2);
  background: #12211d; color: white;
}
.is-hidden { display: none !important; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .split-heading, .featured-content, .content-tools, .article-layout { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .article-aside { position: static; }
}
@media (max-width: 700px) {
  section { padding: 72px 1.25rem; }
  #hero { padding: 100px 1.25rem 64px; }
  .listing-hero { padding: 110px 1.25rem 56px; }
  .services-grid, .example-inner, .who-grid, .insight-routes, .content-grid { grid-template-columns: 1fr; }
  .flow-row { flex-direction: column; }
  .flow-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .flow-item:last-child { border-bottom: none; }
  .nav-inner, .breadcrumbs { padding-left: 1.25rem; padding-right: 1.25rem; }
  .nav-cta { padding: 8px 14px; }
  .featured-copy, .empty-state { padding: 1.5rem; }
  .article-hero { padding: 100px 1.25rem 40px; }
  .article-layout { padding: 0 1.25rem 72px; gap: 2rem; }
  .article-content { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
