/*
Theme Name: PowerSlice Theme
Theme URI: https://powerslice.ai
Author: PowerSlice
Author URI: https://powerslice.ai
Description: Custom theme for PowerSlice.ai - AI consulting services
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: powerslice
*/

/* ==========================================================================
   CSS Custom Properties - Brand Design System
   ========================================================================== */

:root {
    /* Colors */
    --color-red: #D62828;
    --color-red-hover: #B82222;
    --color-charcoal: #1F1F1F;
    --color-dark-gray: #444444;
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-border: #E5E5E5;

    /* Typography */
    --font-primary: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --fw-regular: 400;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Layout */
    --container-max: 1200px;
    --section-padding-desktop: 120px;
    --section-padding-mobile: 60px;

    /* Border Radius */
    --radius: 5px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-white);
}

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

a {
    color: var(--color-charcoal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-red);
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--color-charcoal);
    line-height: 1.1;
}

h1 {
    font-size: 54px;
    font-weight: var(--fw-bold);
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
    font-weight: var(--fw-semibold);
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    font-weight: var(--fw-semibold);
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
    color: var(--color-dark-gray);
}

/* H2 with red underline accent */
.section-heading {
    display: inline-block;
    padding-bottom: 12px;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-red);
}

.section-heading--center {
    display: block;
    text-align: center;
}

.section-heading--center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding-desktop) 0;
}

.section--gray {
    background-color: var(--color-light-gray);
}

.section--charcoal {
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

.section--charcoal p {
    color: rgba(255, 255, 255, 0.8);
}

.grid {
    display: grid;
    gap: 32px;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--fw-semibold);
    padding: 16px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.btn--primary {
    background-color: var(--color-red);
    color: var(--color-white);
    border: 1px solid var(--color-red);
}

.btn--primary:hover {
    background-color: var(--color-red-hover);
    border-color: var(--color-red-hover);
    color: var(--color-white);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-red);
    border: 1px solid var(--color-red);
}

.btn--secondary:hover {
    background-color: var(--color-red);
    color: var(--color-white);
}

.btn--white {
    background-color: var(--color-white);
    color: var(--color-red);
    border: 1px solid var(--color-white);
}

.btn--white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-red-hover);
}

.btn--outline-white {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo img {
    height: 36px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav__link {
    font-size: 15px;
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    padding: 8px 0;
    position: relative;
}

.main-nav__link:hover,
.main-nav__link--active {
    color: var(--color-red);
}

.main-nav__link--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-red);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 120px 0 100px;
    background-color: var(--color-white);
}

.hero__content {
    max-width: 720px;
}

.hero__subtitle {
    font-size: 20px;
    color: var(--color-dark-gray);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */

.service-card {
    padding: 32px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease;
}

.service-card:hover {
    border-color: var(--color-red);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-charcoal);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-charcoal);
    fill: none;
    stroke-width: 1.5;
}

.service-card__title {
    font-size: 20px;
    font-weight: var(--fw-semibold);
    margin-bottom: 12px;
    color: var(--color-charcoal);
}

.service-card__text {
    font-size: 16px;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

/* ==========================================================================
   Industry Cards
   ========================================================================== */

.industry-card {
    padding: 40px 32px;
    text-align: center;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease;
}

.industry-card:hover {
    border-color: var(--color-red);
}

.industry-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--color-charcoal);
}

.industry-card__title {
    font-size: 18px;
    font-weight: var(--fw-semibold);
    margin-bottom: 8px;
}

.industry-card__text {
    font-size: 15px;
    color: var(--color-dark-gray);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
    text-align: center;
    padding: var(--section-padding-desktop) 0;
    background-color: var(--color-charcoal);
}

.cta-banner h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Blog / Insights Cards
   ========================================================================== */

.post-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.post-card:hover {
    border-color: var(--color-red);
}

.post-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card__body {
    padding: 24px;
}

.post-card__category {
    font-size: 13px;
    font-weight: var(--fw-semibold);
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.post-card__title {
    font-size: 20px;
    font-weight: var(--fw-semibold);
    margin-bottom: 8px;
    color: var(--color-charcoal);
}

.post-card__excerpt {
    font-size: 15px;
    color: var(--color-dark-gray);
    margin-bottom: 16px;
}

.post-card__link {
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: var(--color-red);
}

.post-card__link:hover {
    color: var(--color-red-hover);
}

/* ==========================================================================
   Entry Content (Blog Posts / Pages)
   ========================================================================== */

.entry-content h2 {
    margin-top: 40px;
}

.entry-content h3 {
    margin-top: 32px;
}

.entry-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 8px;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

.entry-content blockquote {
    border-left: 3px solid var(--color-red);
    padding: 16px 24px;
    margin: 24px 0;
    background-color: var(--color-light-gray);
    color: var(--color-dark-gray);
    font-style: italic;
}

.entry-content a {
    color: var(--color-red);
}

.entry-content a:hover {
    color: var(--color-red-hover);
}

.entry-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.entry-content pre {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.5;
}

.entry-content code {
    font-size: 15px;
    background-color: var(--color-light-gray);
    padding: 2px 6px;
    border-radius: 3px;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

/* ==========================================================================
   Focus States (Accessibility)
   ========================================================================== */

.btn:focus-visible {
    outline: 2px solid var(--color-charcoal);
    outline-offset: 2px;
}

.main-nav__link:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 4px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 1px var(--color-red);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-white);
    color: var(--color-charcoal);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 60px 0 40px;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-white);
}

.footer-copy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Problem Cards (Homepage)
   ========================================================================== */

.problem-card {
    padding: 32px;
}

.problem-card__number {
    font-size: 14px;
    font-weight: var(--fw-bold);
    color: var(--color-red);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.problem-card__title {
    font-size: 20px;
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    margin-bottom: 12px;
}

.problem-card__text {
    font-size: 16px;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

/* ==========================================================================
   Steps (How It Works)
   ========================================================================== */

.steps {
    max-width: 720px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
}

.step:last-child {
    border-bottom: none;
}

.step__number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: var(--fw-bold);
    color: var(--color-red);
    border: 2px solid var(--color-red);
    border-radius: 50%;
}

.step__title {
    font-size: 18px;
    font-weight: var(--fw-semibold);
    margin-bottom: 6px;
}

.step__text {
    font-size: 16px;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

/* ==========================================================================
   Check List (Industries)
   ========================================================================== */

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--color-dark-gray);
    line-height: 1.5;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-red);
    border-radius: 50%;
}

.check-list li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--color-red);
    border-bottom: 2px solid var(--color-red);
    transform: rotate(-45deg);
}

/* ==========================================================================
   Comparison Table (Build vs Buy)
   ========================================================================== */

.comparison-table-wrap {
    overflow-x: auto;
    margin-top: 60px;
    margin-bottom: 60px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    background-color: var(--color-light-gray);
    font-size: 15px;
}

.comparison-table td:first-child {
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
}

.comparison-table td {
    color: var(--color-dark-gray);
}

.comparison-table__highlight {
    background-color: rgba(214, 40, 40, 0.04);
}

.comparison-table__note {
    font-size: 13px;
    color: var(--color-dark-gray);
    display: block;
    margin-top: 2px;
}

.comparison-table__emphasis td {
    background-color: rgba(214, 40, 40, 0.07);
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
}

.comparison-table__emphasis td.comparison-table__highlight {
    background-color: rgba(214, 40, 40, 0.10);
}

.comparison-context {
    max-width: 720px;
    margin-top: 20px;
    font-size: 15px;
    color: var(--color-dark-gray);
    line-height: 1.7;
}

/* ==========================================================================
   Break-Even Scenario
   ========================================================================== */

.breakeven-scenario__title {
    font-size: 20px;
    font-weight: var(--fw-semibold);
    margin-bottom: 24px;
    color: var(--color-charcoal);
}

.breakeven-scenario__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .breakeven-scenario__grid {
        grid-template-columns: 1fr;
    }
}

.breakeven-scenario__card {
    padding: 28px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.breakeven-scenario__card h3 {
    font-size: 16px;
    font-weight: var(--fw-semibold);
    margin-bottom: 16px;
    color: var(--color-charcoal);
}

.breakeven-scenario__card--highlight {
    border-left: 3px solid var(--color-red);
}

.breakeven-scenario__phase-desc {
    font-size: 14px;
    color: var(--color-dark-gray);
    margin-bottom: 16px;
}

.breakeven-scenario__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
    color: var(--color-dark-gray);
}

.breakeven-scenario__row:last-child {
    border-bottom: none;
}

.breakeven-scenario__value {
    font-weight: var(--fw-bold);
    color: var(--color-charcoal);
}

.breakeven-scenario__footnote {
    margin-top: 24px;
    padding: 20px 24px;
    background-color: var(--color-light-gray);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--color-dark-gray);
    line-height: 1.7;
}

.breakeven-scenario__footnote p + p {
    margin-top: 8px;
}

/* ==========================================================================
   Break-Even Timeline
   ========================================================================== */

.breakeven-timeline__title {
    font-size: 18px;
    font-weight: var(--fw-semibold);
    margin-bottom: 24px;
    color: var(--color-charcoal);
}

.breakeven-timeline__track {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .breakeven-timeline__track {
        grid-template-columns: 1fr;
    }
}

.breakeven-timeline__phase {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakeven-timeline__phase--build {
    background-color: rgba(214, 40, 40, 0.06);
    border-right: 1px solid var(--color-border);
}

.breakeven-timeline__phase--breakeven {
    background-color: rgba(214, 40, 40, 0.03);
    border-right: 1px solid var(--color-border);
}

.breakeven-timeline__phase--expand {
    background-color: var(--color-light-gray);
}

.breakeven-timeline__label {
    font-size: 14px;
    font-weight: var(--fw-bold);
    color: var(--color-charcoal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakeven-timeline__desc {
    font-size: 14px;
    color: var(--color-dark-gray);
    line-height: 1.5;
}

/* ==========================================================================
   ROI Calculator
   ========================================================================== */

.roi-calculator__inputs,
.roi-calculator__results {
    padding: 32px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.roi-calculator__inputs h3,
.roi-calculator__results h3 {
    margin-bottom: 24px;
}

.roi-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.roi-result:last-child {
    border-bottom: none;
}

.roi-result--total {
    border-top: 2px solid var(--color-charcoal);
    border-bottom: none;
    margin-top: 8px;
    padding-top: 20px;
}

.roi-result__label {
    font-size: 15px;
    color: var(--color-dark-gray);
}

.roi-result--total .roi-result__label {
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    font-size: 16px;
}

.roi-result__value {
    font-size: 20px;
    font-weight: var(--fw-bold);
    color: var(--color-charcoal);
}

.roi-result__value--green {
    color: #2E7D32;
}

.roi-result__value--red {
    color: var(--color-red);
}

/* ==========================================================================
   Industry Detail Sections
   ========================================================================== */

.industry-detail {
    padding-bottom: 64px;
    border-bottom: 1px solid var(--color-border);
}

.industry-detail:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Engagement Model
   ========================================================================== */

.engagement-level__header {
    margin-bottom: 20px;
}

.engagement-level__tag {
    display: inline-block;
    font-size: 13px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-red);
    margin-bottom: 12px;
}

.engagement-level__desc {
    max-width: 640px;
    font-size: 17px;
    color: var(--color-dark-gray);
    line-height: 1.7;
}

.engagement-level__outcome {
    margin-top: 32px;
    padding: 20px 24px;
    background-color: rgba(214, 40, 40, 0.04);
    border-left: 3px solid var(--color-red);
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--color-charcoal);
    max-width: 640px;
}

.cta-banner__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Data Visuals (V6.3)
   ========================================================================== */

.data-visual {
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.data-visual img {
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.data-visual__caption {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

/* ==========================================================================
   Editorial Images (V6.3)
   ========================================================================== */

.editorial-image {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
}

.editorial-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.05);
    border-radius: var(--radius);
}

/* ==========================================================================
   Insight Cards
   ========================================================================== */

.insight-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.insight-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.insight-card__title a {
    color: var(--color-charcoal);
    text-decoration: none;
}

.insight-card__title a:hover {
    color: var(--color-red);
}

.insight-card__excerpt {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.insight-card__link {
    color: var(--color-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.insight-card__link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Framework Diagram (V6.3)
   ========================================================================== */

.framework-diagram {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
}

.framework-diagram__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
    padding: 0 8px;
}

.framework-diagram__number {
    width: 44px;
    height: 44px;
    border: 2px solid var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: var(--fw-bold);
    color: var(--color-red);
    margin-bottom: 12px;
}

.framework-diagram__label {
    font-size: 15px;
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    margin-bottom: 4px;
}

.framework-diagram__desc {
    font-size: 13px;
    color: var(--color-dark-gray);
    line-height: 1.4;
    max-width: 130px;
}

.framework-diagram__connector {
    width: 40px;
    height: 2px;
    background-color: var(--color-border);
    margin-top: 22px;
    flex-shrink: 0;
}

/* ==========================================================================
   Stack Diagram (V6.3)
   ========================================================================== */

.stack-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stack-diagram__side {
    flex: 1;
}

.stack-diagram__label {
    font-size: 14px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-charcoal);
    margin-bottom: 16px;
    text-align: center;
}

.stack-diagram__boxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stack-diagram__box {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--color-dark-gray);
    text-align: center;
    background-color: var(--color-white);
}

.stack-diagram__box--friction {
    border-color: var(--color-red);
    color: var(--color-red);
    border-style: dashed;
}

.stack-diagram__box--unified {
    border-color: var(--color-charcoal);
    color: var(--color-charcoal);
    font-weight: var(--fw-semibold);
}

.stack-diagram__box--owned {
    background-color: rgba(214, 40, 40, 0.06);
    border-color: var(--color-red);
    color: var(--color-red);
    font-weight: var(--fw-semibold);
}

.stack-diagram__arrow {
    color: var(--color-dark-gray);
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    .section {
        padding: var(--section-padding-mobile) 0;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero__subtitle {
        font-size: 17px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Mobile Nav */
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateY(-110%);
        transition: transform 0.3s ease;
        gap: 16px;
    }

    .main-nav.is-open {
        transform: translateY(0);
    }

    .main-nav__list {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .main-nav__link {
        font-size: 17px;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .site-header .container {
        height: 64px;
    }

    .cta-banner {
        padding: var(--section-padding-mobile) 0;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }

    .framework-diagram {
        flex-wrap: wrap;
        gap: 16px;
    }

    .framework-diagram__connector {
        display: none;
    }

    .framework-diagram__step {
        min-width: calc(50% - 16px);
    }

    .stack-diagram {
        flex-direction: column;
        gap: 24px;
    }

    .stack-diagram__arrow {
        transform: rotate(90deg);
    }

    .editorial-image img {
        height: 240px;
    }
}
