/* LucraLab article pages — shared stylesheet.
   Core rules extracted from the site's existing inline CSS (rune/dental) so
   article pages match the site exactly; article-* rules are the long-form
   content layer. */

:root {
  --bg-deep:     #0d0b1a;
  --bg-navy:     #161327;
  --bg-card:     #1a1630;
  --bg-card-2:   #221c3d;
  --bg-border:   #2a2545;
  --grad-start:  #CA3DEB;
  --grad-mid:    #764AED;
  --grad-end:    #3DC0F0;
  --violet:      #764AED;
  --cyan:        #3DC0F0;
  --magenta:     #CA3DEB;
  --deep-blue:   #2E4C9B;
  --white:       #FFFFFF;
  --off-white:   #E8E4F0;
  --muted:       #7068a0;
  --ghost:       #2e2a4a;
  --bad-red:     #ff3f5f;
  --good-green:  #3DC0F0;
  --grad:        linear-gradient(135deg, #CA3DEB 0%, #764AED 50%, #3DC0F0 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  background: var(--bg-navy);
  color: var(--off-white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--violet); color: white; }

h1, h2, .section-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.05;
  color: var(--white);
}

h3, h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--white);
}

p, li { font-family: 'Roboto', sans-serif; font-weight: 400; color: var(--off-white); }

a { color: inherit; text-decoration: none; }

.gradient-text {
  background: linear-gradient(135deg, #CA3DEB 0%, #764AED 50%, #3DC0F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  background: linear-gradient(135deg, #CA3DEB 0%, #764AED 50%, #3DC0F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  display: inline-block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.btn-gradient {
  background: linear-gradient(135deg, #CA3DEB 0%, #764AED 50%, #3DC0F0 100%);
  color: white;
  border: none;
  padding: 18px 38px;
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-block;
  position: relative;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(202, 61, 235, 0.42);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--bg-border);
  color: var(--off-white);
  padding: 17px 36px;
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px var(--violet);
  color: white;
}

.btn-cta-on-grad {
  background: white;
  color: var(--violet);
  border: none;
  padding: 20px 44px;
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-block;
  background-clip: padding-box;
}

.btn-cta-on-grad:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(13, 11, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  width: 28px;
  height: 30px;
}

.wordmark {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--cyan); }

.nav-links a.nav-product {
  background: linear-gradient(135deg, #CA3DEB, #3DC0F0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid var(--bg-border);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a.nav-product:hover {
  border-color: var(--violet);
  transform: translateY(-1px);
}

.nav-links a.nav-product.this {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px rgba(118, 74, 237, 0.35),
              0 0 18px rgba(118, 74, 237, 0.35);
}

.nav-cta {
  background: linear-gradient(135deg, #CA3DEB 0%, #764AED 50%, #3DC0F0 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(118, 74, 237, 0.45); }

/* ============ ARTICLE ============ */
.article-hero {
  padding: 180px 0 56px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--bg-border);
  text-align: center;
}

.article-hero .inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

.article-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.article-hero .lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}

.article h2 {
  font-size: clamp(21px, 2.6vw, 28px);
  letter-spacing: 0.08em;
  margin: 64px 0 20px;
  line-height: 1.2;
}

.article h2:first-child { margin-top: 0; }

.article h3 {
  font-size: 19px;
  margin: 40px 0 14px;
}

.article p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.article strong { color: var(--white); font-weight: 700; }

.article em { color: var(--off-white); }

.article a:not(.btn-gradient):not(.btn-ghost) {
  color: var(--cyan);
  border-bottom: 1px solid rgba(61, 192, 240, 0.35);
  transition: border-color 0.2s ease;
}

.article a:not(.btn-gradient):not(.btn-ghost):hover { border-bottom-color: var(--cyan); }

.article ul, .article ol {
  margin: 0 0 20px 24px;
}

.article li {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.article ul li::marker { color: var(--violet); }

.article blockquote {
  background: var(--bg-card);
  border-left: 3px solid var(--violet);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 28px 0;
}

.article blockquote p {
  font-size: 18px;
  color: var(--white);
  margin: 0;
}

.article .fineprint {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  background: var(--bg-card);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.article th {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--bg-card-2);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-border);
}

.article td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-border);
  vertical-align: top;
  line-height: 1.6;
  color: var(--off-white);
}

.article tr:last-child td { border-bottom: none; }

.article td strong { color: var(--white); }

/* FAQ */
.faq-block details {
  border-bottom: 1px solid var(--bg-border);
  padding: 24px 0;
}

.faq-block details:last-of-type { border-bottom: none; }

.faq-block summary {
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.02em;
}

.faq-block summary::-webkit-details-marker { display: none; }

.faq-block summary .plus {
  color: var(--violet);
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-block details p {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 0;
}

/* Related guides */
.related {
  border-top: 1px solid var(--bg-border);
  margin-top: 64px;
  padding-top: 48px;
}

.related h2 { margin-top: 0; }

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.related-grid a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  line-height: 1.4;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-grid a:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.related-grid a span {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* ============ CTA ============ */
.cta-section {
  background: linear-gradient(135deg, #CA3DEB 0%, #764AED 50%, #3DC0F0 100%);
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(13,11,26,0.3) 100%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  letter-spacing: 0.06em;
  color: white;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 19px;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin: 0 auto 44px;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

.cta-section .btn-cta-on-grad {
  position: relative;
  z-index: 1;
}

.cta-trust {
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  position: relative;
  z-index: 1;
}

.cta-trust span { margin: 0 18px; display: inline-block; }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-deep);
  padding: 80px 0 30px;
  border-top: 1px solid var(--bg-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .nav-brand {
  margin-bottom: 18px;
}

.footer-tagline {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--bg-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .nav { padding: 16px 28px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
  .article-hero { padding: 140px 0 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
