/* ============================================
   THE JUNGIAN VAULT — Global Stylesheet
   Design: Obsidian.md-inspired dark theme
   ============================================ */

:root {
    /* Colors — Obsidian-inspired */
    --color-bg: #0f0f0f;
    --color-bg-elevated: #1a1a1a;
    --color-bg-card: #222222;
    --color-border: #333333;
    --color-text: #eeeeee;
    --color-text-muted: #bcbcbc;
    --color-text-dim: #888888;
    --color-accent: #a78bfa;
    --color-accent-hover: #8b5cf6;
    --color-accent-glow: rgba(167, 139, 250, 0.12);
    --color-accent-border: rgba(167, 139, 250, 0.3);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 860px;
    --container-wide: 1080px;
    --section-padding: 80px;
    --card-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

.container--wide {
    max-width: var(--container-wide);
}

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

/* ---- NAVIGATION ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-wide);
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-accent);
    color: var(--color-bg) !important;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--color-accent-hover);
    color: var(--color-bg) !important;
}

/* Hide mobile CTA on desktop, show desktop CTA */
.nav-links .nav-cta {
    display: none;
}

/* Nav Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-toggle:hover {
    color: var(--color-text);
}

.nav-dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 0 8px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 200;
    list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--color-accent-glow);
    color: var(--color-text);
}

/* Mega menu (Concepts dropdown) */
.nav-dropdown--mega {
    position: relative;
}

.nav-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px 28px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 200;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    min-width: 580px;
    padding-top: 40px;
}

.nav-mega-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: -20px;
    right: -20px;
    height: 12px;
}

.nav-dropdown--mega:hover .nav-mega-menu {
    display: grid;
}

.nav-mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-mega-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-border);
}

.nav-mega-menu a {
    display: block;
    padding: 5px 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}

.nav-mega-menu a:hover {
    color: var(--color-text);
}

/* Mobile menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

/* Hamburger → X animation when menu is open */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- HERO (Large — Landing Page) ---- */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid var(--color-accent-border);
    border-radius: 100px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 24px;
}

.hero h1 em {
    color: var(--color-accent);
    font-style: italic;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

/* ---- HERO (Small — Article Pages) ---- */
.hero--small {
    padding: 120px 0 48px;
    text-align: left;
}

.hero--small h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.hero--small .hero-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.hero--small .hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-bg);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

/* ---- STATS BAR ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 80px;
}

.stat {
    background: var(--color-bg-elevated);
    text-align: center;
    padding: 28px 16px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    letter-spacing: 0.03em;
}

/* ---- SECTION HEADERS ---- */
.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* ---- PROBLEM SECTION ---- */
.problem {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.problem-card {
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    background: var(--color-bg);
}

.problem-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---- FEATURE CARDS ---- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    background: var(--color-bg-card);
    transition: border-color 0.25s;
}

.feature-card:hover {
    border-color: var(--color-accent-border);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---- WORKFLOW SECTION ---- */
.workflow {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.workflow-steps {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.workflow-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent-glow);
    color: var(--color-accent);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---- STORY / FOUNDER ---- */
.story-content {
    margin-top: 48px;
}

.story-content p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.85;
    margin-bottom: 24px;
}

.pullquote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-accent);
    border-left: 3px solid var(--color-accent-border);
    padding-left: 24px;
    margin: 40px 0;
}

.highlights {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.highlight {
    padding-left: 20px;
    border-left: 2px solid var(--color-border);
}

.highlight h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.highlight p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---- PRICING ---- */
.pricing {
    text-align: center;
}

.price-card {
    max-width: 520px;
    margin: 48px auto 0;
    padding: 48px 40px;
    border: 1px solid var(--color-accent-border);
    border-radius: 14px;
    background: var(--color-bg-card);
    box-shadow: 0 0 60px var(--color-accent-glow);
}

.price-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 16px 0 8px;
}

.price-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.price-features {
    text-align: left;
    list-style: none;
    margin-bottom: 32px;
}

.price-features li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.price-features li:last-child {
    border-bottom: none;
}

.check {
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
}

.btn-buy:hover {
    background: var(--color-accent-hover);
    color: var(--color-bg);
    transform: translateY(-1px);
}

/* ---- FAQ ---- */
.faq {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.faq-list {
    margin-top: 48px;
}

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

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
    content: '\2212';
}

.faq-answer {
    display: none;
    padding-top: 16px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ---- BREADCRUMBS ---- */
.breadcrumbs {
    padding-top: 80px;
    padding-bottom: 0;
    margin-bottom: -40px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.breadcrumbs li::after {
    content: '/';
    margin-left: 8px;
    color: var(--color-text-dim);
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs a {
    color: var(--color-text-dim);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

/* ---- ARTICLE PROSE ---- */
.article-body {
    padding: 0 0 60px;
}

.prose {
    max-width: var(--container-max);
    margin: 0 auto;
}

.prose h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 56px 0 20px;
    color: var(--color-text);
    line-height: 1.3;
}

.prose h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--color-text);
    line-height: 1.3;
}

.prose p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.85;
    margin-bottom: 24px;
}

.prose ul, .prose ol {
    margin: 0 0 24px 24px;
    color: var(--color-text-muted);
}

.prose li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.prose blockquote {
    border-left: 3px solid var(--color-accent-border);
    padding-left: 24px;
    margin: 32px 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
}

.prose strong {
    color: var(--color-text);
    font-weight: 600;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 48px 0;
}

/* ---- CTA BANNER (inline in articles) ---- */
.cta-banner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-accent-border);
    border-radius: var(--card-radius);
    padding: 40px;
    text-align: center;
    margin: 48px 0;
    box-shadow: 0 0 40px var(--color-accent-glow);
}

.cta-banner h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ---- RELATED ARTICLES ---- */
.related {
    border-top: 1px solid var(--color-border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.related-card {
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 28px;
    background: var(--color-bg-card);
    transition: border-color 0.25s;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    border-color: var(--color-accent-border);
}

.related-card .card-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.related-card h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---- BLOG LISTING ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.blog-card {
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 32px;
    background: var(--color-bg-card);
    transition: border-color 0.25s;
    text-decoration: none;
    display: block;
}

.blog-card:hover {
    border-color: var(--color-accent-border);
}

.blog-card .card-date {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    margin-bottom: 12px;
}

.blog-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---- FOOTER ---- */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--color-border);
}

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

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Mobile nav (kicks in at 1024px so mega menu fits) */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-elevated);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 12px 24px;
        gap: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links > li,
    .nav-links > a {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links > li:last-child,
    .nav-links > a:last-child {
        border-bottom: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-cta--desktop {
        display: none;
    }

    .nav-links .nav-cta {
        display: inline-block;
        margin: 12px 0 4px;
    }

    /* Mobile dropdowns */
    .nav-dropdown-toggle {
        color: var(--color-text-muted);
        font-size: 0.95rem;
        padding: 0;
    }

    .nav-dropdown-toggle::after {
        width: 7px;
        height: 7px;
    }

    .nav-dropdown:hover .nav-dropdown-toggle::after {
        transform: rotate(45deg);
        margin-top: -3px;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 4px 0 0 16px;
        min-width: 0;
    }

    .nav-dropdown-menu a {
        padding: 6px 0;
        font-size: 0.85rem;
    }

    .nav-dropdown-menu a:hover {
        background: transparent;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown.open .nav-dropdown-toggle::after {
        transform: rotate(-135deg);
        margin-top: 2px;
    }

    /* Mobile mega menu overrides */
    .nav-dropdown--mega {
        position: relative;
    }

    .nav-mega-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 8px 0 4px 16px;
        min-width: 0;
        display: none;
        grid-template-columns: 1fr 1fr;
        gap: 8px 24px;
    }

    .nav-dropdown--mega:hover .nav-mega-menu {
        display: none;
    }

    .nav-dropdown--mega.open .nav-mega-menu {
        display: grid;
    }

    .nav-mega-label {
        font-size: 0.65rem;
        margin-top: 4px;
        margin-bottom: 4px;
        border-bottom: none;
        padding-bottom: 0;
    }

    .nav-mega-menu a {
        padding: 3px 0;
        font-size: 0.82rem;
    }

    .nav-mega-menu a:hover {
        background: transparent;
    }

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

    .hero--small {
        padding: 100px 0 32px;
    }

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

    .problem-grid,
    .features-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        padding: 32px 24px;
    }

    .pullquote {
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .nav-mega-menu {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .cta-banner {
        padding: 28px 20px;
    }
}
