/* Divolt CMS Public Stylesheet
   Brand: Carbon #0B0D10, Blue #2D6BFF, Inter / Source Serif 4 / IBM Plex Mono
*/

:root {
    /* Dark editorial palette — ported from the original divoltbtc.com */
    --color-black: #0A0A0A;
    --color-coal: #111111;
    --color-line: #1E1E1E;
    --color-carbon: #0A0A0A;
    --color-blue: #2D6BFF;
    --color-ion: #2D6BFF;
    --color-ion-hover: #4A80FF;
    --color-surface: #0A0A0A;   /* body background */
    --color-text: #F5F5F4;      /* off-white body text */
    --color-muted: #8A8A8A;     /* grey */
    --color-dim: #555555;       /* dim labels */
    --color-border: #1E1E1E;    /* hairline */
    --color-bg: #111111;        /* raised panels (coal) */
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;
    --max-width: 1200px;
    --max-reading: 720px;
    --gutter: clamp(20px, 4vw, 40px);
    --color-divolt-blue: #2D6BFF;
    --color-graphite: #25282D;
    --color-steel: #747A84;
    --color-mist: #DDE1E7;
}

/* --- Layout container ---
   Historically .container had no CSS rule so page content rendered flush-left
   at 0px padding on every viewport. Fixed below. */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-inline: var(--gutter);
    width: 100%;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--color-ion); color: #fff; }

/* Film grain overlay — signature texture from the original site */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.15;
    font-weight: 400;
    margin-bottom: 0.5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.01em; }

p { margin-bottom: 1em; }
a { color: var(--color-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-ion-hover); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* Scroll reveal — tagged on every .cms-section by cms-reveal.js */
.cms-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.cms-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .cms-reveal { opacity: 1; transform: none; transition: none; }
}

/* Container */
.cms-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Section spacing */
.cms-section {
    padding: clamp(72px, 12vh, 150px) 0;
    position: relative;
}

.cms-section + .cms-section {
    border-top: 1px solid var(--color-border);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 0;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    border: 1px solid var(--color-text);
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-black);
    border-color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-ion);
    border-color: var(--color-ion);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong, rgba(245, 245, 244, 0.25));
}

.btn-secondary:hover {
    background: var(--color-text);
    color: var(--color-black);
    border-color: var(--color-text);
    text-decoration: none;
}

.btn + .btn {
    margin-left: 0.75rem;
}

/* Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-carbon);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header__logo:hover {
    text-decoration: none;
}

.site-header__logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.site-header__nav {
    display: flex;
    gap: 2rem;
}

.site-header__nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.site-header__nav a:hover {
    color: #fff;
    text-decoration: none;
}

.site-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.site-header__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s, opacity 0.2s;
}

.site-header__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header__toggle.open span:nth-child(2) {
    opacity: 0;
}
.site-header__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Site Footer */
.site-footer {
    background: var(--color-carbon);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.site-footer__brand {
    margin-bottom: 2.5rem;
}

.site-footer__logo {
    margin-bottom: 0.75rem;
}

.site-footer__logo-img {
    height: 24px;
    width: auto;
    display: block;
}

.site-footer__tagline {
    font-size: 0.875rem;
    margin: 0;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.site-footer__col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.site-footer__col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.site-footer__col a:hover {
    color: #fff;
    text-decoration: none;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.site-footer__bottom p {
    font-size: 0.75rem;
    margin: 0;
}

/* Dark section variant */
.cms-section.section-dark {
    background: var(--color-carbon);
    color: #fff;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.section-dark h2, .section-dark h3 {
    color: #fff;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.75);
}

.section-dark .feature-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.section-dark .feature-icon {
    color: var(--color-blue);
}

.section-dark .feature-link {
    color: var(--color-blue);
}

.section-dark .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.section-dark .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* CTA heading image (logo-as-heading) */
.cta-heading-image {
    height: 52px;
    width: auto;
    margin: 0 auto 1rem;
}

/* Section label / eyebrow (mono, wide-tracked, with leading rule) */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--color-dim);
    margin-bottom: 1.5rem;
}
.section-label::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--color-line);
}
.section-dark .section-label,
.cms-hero .section-label { color: var(--color-muted); }

/* Hero subline fix */
.cms-hero__subline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cms-hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cms-hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Features subheading */
.features-subheading {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-dark .features-subheading {
    color: rgba(255, 255, 255, 0.65);
}

/* Two-column features for commercial offerings */
.features-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Product visual placeholder */
.product-visual-placeholder {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    margin: 2rem 0;
}

/* Hero */
.cms-hero {
    text-align: center;
    padding: clamp(96px, 20vh, 200px) 0;
    background: var(--color-black);
    color: var(--color-text);
}

.cms-hero--large { min-height: 92svh; display: grid; place-items: center; }
.cms-hero--full { min-height: 100svh; display: grid; place-items: center; }

.cms-hero h1 {
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(42px, 7.2vw, 84px);
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* Serif tagline inside hero subline reads editorial, like the old site */
.cms-hero__subline em,
.cms-hero .tag {
    font-family: var(--font-heading);
    font-style: italic;
}

.cms-hero .hero-sub {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 640px;
    margin: 0 auto 2rem;
}

/* Text */
.cms-text .text-body {
    max-width: 720px;
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: clamp(24px, 3vw, 40px);
    background: var(--color-coal);
    border: 1px solid var(--color-line);
    border-radius: 0;
    transition: background 0.35s ease, transform 0.35s ease;
}

.feature-card:hover {
    background: #16181d;
    transform: translateY(-3px);
}

.feature-card h3 { color: var(--color-text); }
.feature-card p { color: var(--color-muted); }

.feature-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--color-ion);
}

.feature-icon__svg {
    width: 30px;
    height: 30px;
    display: block;
}

.feature-link {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-ion);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    padding: 2rem;
    background: var(--color-coal);
    border: 1px solid var(--color-line);
    border-radius: 0;
    text-align: center;
}

.pricing-featured {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 2px var(--color-blue);
}

.pricing-price {
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 1rem 0;
}

.pricing-card ul {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

/* CTA */
.cms-cta {
    text-align: center;
    background: var(--color-bg);
    padding: 5rem 0;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    padding: 1.5rem;
    border-left: 3px solid var(--color-blue);
    background: var(--color-bg);
    border-radius: 0 0.5rem 0.5rem 0;
}

.testimonial-card cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--color-muted);
    font-size: 0.875rem;
}

/* FAQ */
.faq-list {
    max-width: 720px;
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

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

.faq-answer {
    padding-top: 0.75rem;
    color: var(--color-muted);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item figcaption {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

/* Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 1.5rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-blue);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.team-role {
    color: var(--color-muted);
    font-size: 0.875rem;
}

.team-bio {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Logos */
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.logo-item img {
    max-height: 48px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.logo-item img:hover {
    opacity: 1;
}

/* Timeline */
.timeline-list {
    max-width: 720px;
    margin-top: 2rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-blue);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.3rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-blue);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--color-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Code */
.code-block {
    background: var(--color-carbon);
    color: #E5E7EB;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 1.5rem;
}

.code-caption {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: 0.75rem;
}

/* Custom HTML */
.cms-custom_html {
    overflow: hidden;
}

/* Fallback */
.cms-fallback {
    background: var(--color-bg);
}

/* Blog index */
.blog-index { padding: 4rem 0; }
.blog-index__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.blog-index__subtitle {
    color: var(--color-slate);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.blog-card {
    background: var(--color-carbon);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.blog-card__image { aspect-ratio: 16/9; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.blog-card__category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-blue);
    margin-bottom: 0.5rem;
}
.blog-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--color-blue); }
.blog-card__excerpt {
    color: var(--color-slate);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--color-slate);
    flex-wrap: wrap;
}
.blog-card__meta span::before, .blog-card__meta time::before {
    content: "\b7";
    margin-right: 0.75rem;
}
.blog-card__meta > :first-child::before { content: none; margin: 0; }
.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-slate);
    padding: 4rem 0;
}

/* Blog post */
.blog-post__header {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-post__category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-blue);
    margin-bottom: 1rem;
}
.blog-post__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 720px;
}
.blog-post__excerpt {
    color: var(--color-slate);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 1.5rem;
}
.blog-post__meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-slate);
    flex-wrap: wrap;
}
.blog-post__meta span::before, .blog-post__meta time::before {
    content: "\b7";
    margin-right: 0.75rem;
}
.blog-post__meta > :first-child::before { content: none; margin: 0; }
.blog-post__hero { padding: 2.5rem 0; }
.blog-post__hero .container {
    /* Keep hero within reading-column width so it feels composed with the body,
       not full-bleed. Modern security-blog aesthetic (Vercel/Stripe Press). */
    max-width: 980px;
}
.blog-post__hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(45, 107, 255, 0.14);
    box-shadow:
        0 1px 2px rgba(11, 13, 16, 0.04),
        0 8px 32px -4px rgba(11, 13, 16, 0.10);
    background: var(--color-carbon);
}
.blog-post__body {
    max-width: var(--max-reading);
    margin: 0 auto;
    padding: 2rem var(--gutter) 3rem;
}

/* --- TL;DR callout block ---
   The first .cms-section.cms-text in a blog body is treated as the
   "read-this-first" summary: Divolt-Blue left-border, muted bg, and an
   eyebrow-mono "TL;DR" label in place of the serif H2. */
.blog-post__body .cms-section.cms-text:first-of-type .text-body {
    border-left: 3px solid var(--color-divolt-blue);
    background: rgba(45, 107, 255, 0.04);
    padding: 1.4rem 1.75rem;
    border-radius: 0 10px 10px 0;
    margin-bottom: 2rem;
}
.blog-post__body .cms-section.cms-text:first-of-type .text-body h2:first-child {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-divolt-blue);
    margin: 0 0 0.9rem 0;
    font-weight: 600;
    line-height: 1.3;
}
.blog-post__body .cms-section.cms-text:first-of-type .text-body ul,
.blog-post__body .cms-section.cms-text:first-of-type .text-body ol {
    margin: 0 0 0 1.1rem;
    padding-left: 0;
}
.blog-post__body .cms-section.cms-text:first-of-type .text-body li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.blog-post__body .cms-section.cms-text:first-of-type .text-body li:last-child {
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .blog-post__body .cms-section.cms-text:first-of-type .text-body {
        padding: 1.1rem 1.1rem;
    }
    .blog-post__body .cms-section.cms-text:first-of-type .text-body ul,
    .blog-post__body .cms-section.cms-text:first-of-type .text-body ol {
        margin-left: 0.9rem;
    }
}
.blog-post__footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--gutter) 4rem;
}
.blog-post__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.blog-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(45, 107, 255, 0.1);
    color: var(--color-blue);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ========== SLIDER / CAROUSEL ========== */

.cms-slider { padding: 4rem 0; }
.cms-slider__heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}
.cms-slider__track {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 360px;
}
.cms-slider__slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.cms-slider__slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}
.cms-slider__image {
    flex: 0 0 50%;
    max-width: 50%;
    overflow: hidden;
}
.cms-slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cms-slider__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: var(--color-carbon);
}
.cms-slider__label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-blue);
    margin-bottom: 0.75rem;
}
.cms-slider__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.cms-slider__body {
    color: var(--color-slate);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
.cms-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0 0;
}
.cms-slider__arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--color-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cms-slider__arrow:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    background: rgba(45, 107, 255, 0.08);
}
.cms-slider__dots {
    display: flex;
    gap: 8px;
}
.cms-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.cms-slider__dot.active {
    background: var(--color-blue);
    transform: scale(1.2);
}
.cms-slider__dot:hover { background: rgba(45, 107, 255, 0.5); }

@media (max-width: 768px) {
    .cms-slider__slide { flex-direction: column; }
    .cms-slider__image { flex: none; max-width: 100%; height: 200px; }
    .cms-slider__content { padding: 1.5rem; }
    .cms-slider__title { font-size: 1.25rem; }
    .cms-slider__track { min-height: auto; }
}

/* ========== BLOG SKINS ========== */

/* --- Editorial (default): serif headings, accent bar, classic feel --- */
.blog-skin--editorial .blog-post__header {
    border-left: 4px solid var(--color-blue);
    padding-left: 2rem;
}
.blog-skin--editorial .blog-post__title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.blog-skin--editorial .blog-post__body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
}
.blog-skin--editorial .blog-post__excerpt {
    font-style: italic;
    border-left: 3px solid var(--color-blue);
    padding-left: 1rem;
}

/* --- Magazine: full-width hero, bold category pill, gradient header --- */
.blog-skin--magazine .blog-post__header {
    background: linear-gradient(180deg, rgba(45, 107, 255, 0.08) 0%, transparent 100%);
    padding: 5rem 0 3rem;
    text-align: center;
    border-bottom: none;
}
.blog-skin--magazine .blog-post__title {
    font-size: 3rem;
    max-width: 840px;
    margin: 0 auto 1rem;
    text-wrap: balance;
}
.blog-skin--magazine .blog-post__excerpt {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    text-align: center;
}
.blog-skin--magazine .blog-post__meta {
    justify-content: center;
}
.blog-skin--magazine .blog-post__category {
    background: var(--color-blue);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
}
.blog-skin--magazine .blog-post__hero-img {
    border-radius: 0;
    max-height: 560px;
}
.blog-skin--magazine .blog-post__body {
    font-size: 1.08rem;
    line-height: 1.85;
    max-width: 700px;
}

/* --- Minimal: stripped, lots of white space, understated --- */
.blog-skin--minimal .blog-post__header {
    padding: 6rem 0 2rem;
    border-bottom: none;
    text-align: center;
}
.blog-skin--minimal .blog-post__title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    max-width: 600px;
    margin: 0 auto 0.75rem;
}
.blog-skin--minimal .blog-post__category {
    color: var(--color-slate);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.blog-skin--minimal .blog-post__excerpt {
    display: none;
}
.blog-skin--minimal .blog-post__meta {
    justify-content: center;
    font-size: 0.8rem;
}
.blog-skin--minimal .blog-post__hero {
    max-width: 640px;
    margin: 0 auto;
}
.blog-skin--minimal .blog-post__hero-img {
    border-radius: 4px;
    max-height: 400px;
}
.blog-skin--minimal .blog-post__body {
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.9;
}
.blog-skin--minimal .blog-tag {
    background: transparent;
    border: 1px solid rgba(45, 107, 255, 0.2);
}

/* --- Technical: monospace accents, sidebar TOC feel, code-friendly --- */
.blog-skin--technical .blog-post__header {
    border-bottom: 2px solid var(--color-blue);
    padding: 3rem 0 1.5rem;
}
.blog-skin--technical .blog-post__category {
    font-family: 'IBM Plex Mono', monospace;
    background: rgba(45, 107, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
}
.blog-skin--technical .blog-post__title {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.blog-skin--technical .blog-post__meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
}
.blog-skin--technical .blog-post__body {
    max-width: 760px;
    font-size: 0.95rem;
    line-height: 1.75;
}
.blog-skin--technical .blog-tag {
    font-family: 'IBM Plex Mono', monospace;
    background: rgba(45, 107, 255, 0.08);
    border-radius: 4px;
    font-size: 0.72rem;
}

/* Blog variant (old) */
.page-blog .cms-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem var(--gutter);
}

/* Legal variant */
.page-legal .cms-legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem var(--gutter);
}

/* Landing variant */
.page-landing .cms-section {
    padding: 5rem 0;
}

.page-landing .cms-hero {
    padding: 8rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .cms-section { padding: 3rem 0; }
    .cms-hero { padding: 4rem 0; }
    .cms-hero h1 { font-size: 2.25rem; }

    .page-landing .cms-hero { padding: 5rem 0; }
    .page-landing .cms-section { padding: 3rem 0; }

    .site-header__toggle {
        display: flex;
    }

    .site-header__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-carbon);
        flex-direction: column;
        padding: 1rem var(--gutter) 1.5rem;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-header__nav.open {
        display: flex;
    }

    .site-header__nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .btn + .btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .features-cols-2 {
        grid-template-columns: 1fr;
    }

    .site-footer__links {
        grid-template-columns: 1fr 1fr;
    }
    .blog-index__title { font-size: 1.75rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-post__title { font-size: 1.75rem; }
    .blog-post__header { padding: 2rem 0 1.5rem; }
}

/* ============================================================
   Dark-editorial refinements — ported from original divoltbtc.com
   ============================================================ */

/* Editorial mono nav */
.site-header__nav a {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(245, 245, 244, 0.7);
}
.site-header__nav a:hover { color: #fff; }

/* Footer column headings as mono eyebrows */
.site-footer__col h4 {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-dim);
    font-weight: 500;
}
.site-footer__tagline { font-family: var(--font-heading); font-style: italic; color: var(--color-muted); }

/* Section dividers as hairlines in the editorial line colour */
.cms-section + .cms-section { border-top: 1px solid var(--color-line); }

/* Light-act inversion — the old "flagship" white section.
   Add css_class "section-light" to any section for high-contrast. */
.cms-section.section-light {
    background: var(--color-text);
    color: var(--color-black);
}
.section-light h1, .section-light h2, .section-light h3,
.section-light h4, .section-light h5, .section-light h6 { color: var(--color-black); }
.section-light p { color: #3c3c3a; }
.section-light .section-label { color: #9a9a96; }
.section-light .section-label::before { background: #d9d9d5; }
.section-light .feature-card,
.section-light .pricing-card,
.section-light .testimonial-card { background: #fff; border-color: #e5e5e1; }
.section-light .feature-card h3 { color: var(--color-black); }
.section-light .feature-card p { color: #4a4a48; }
.section-light .btn-primary { background: var(--color-black); color: var(--color-text); border-color: var(--color-black); }
.section-light .btn-primary:hover { background: var(--color-ion); border-color: var(--color-ion); color: #fff; }
.section-light .btn-secondary { color: var(--color-black); border-color: var(--color-black); }
.section-light .btn-secondary:hover { background: var(--color-black); color: var(--color-text); }

/* Ion-accent helper for inline emphasis in copy */
.text-body .ion, .ion { color: var(--color-ion); }
