/* =========================================
   VARIABLES & RESETS
   ========================================= */

:root {
    /* Color Palette */
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    --text-primary: #111111;
    --text-secondary: #555555;
    --accent-neon: #39FF14;
    --border-color: #e0e0e0;

    /* Typography */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    /* Layout Details */
    --container-max-width: 1100px;
    --section-padding: 60px 20px;
    --transition: all 0.3s ease;
}

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

html,
body {
    overflow-x: clip;
}

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

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* =========================================
   TYPOGRAPHY
   ========================================= */

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */

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

.container-sm {
    max-width: 800px;
}

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

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

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 40px;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--accent-neon);
    color: #111111 !important;
    border-color: var(--accent-neon);
}

.btn-primary:hover {
    background-color: #32e012;
    /* Slightly darker neon for hover */
    border-color: #32e012;
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.25),
        0 6px 20px rgba(57, 255, 20, 0.2);
}

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

.btn-outline:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
    transform: translateY(-2px);
}

/* =========================================
   NAVBAR
   ========================================= */

.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-neon);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.2),
        0 4px 12px rgba(57, 255, 20, 0.15);
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    padding: 80px 20px 60px;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #444;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   PROBLEM SECTION (GRID)
   ========================================= */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.problem-card {
    background-color: #fafafa;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.accent-line {
    width: 40px;
    height: 4px;
    background-color: var(--accent-neon);
    margin-bottom: 20px;
    border-radius: 2px;
}

/* =========================================
   WHY FAILS SECTION
   ========================================= */

.comparison-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}

.comparison-list li {
    font-size: 1.125rem;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

/* =========================================
   SOLUTIONS SECTION
   ========================================= */

.solution-text {
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.25rem;
}

.product-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 80px 0;
}

.product-visual img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.product-main {
    position: relative;
    z-index: 3;
    max-width: 300px;
    /* Reduced from 380px */
}

.product-left,
.product-right {
    position: absolute;
    max-width: 250px;
    /* Reduced from 320px */
    z-index: 1;
    opacity: 0.95;
}

.product-left {
    left: -110px;
    /* Adjusted to match new scale */
    top: 30px;
}

.product-right {
    right: -110px;
    /* Adjusted to match new scale */
    top: 30px;
}

.product-main:hover {
    transform: translateY(-6px);
}

/* =========================================
   FINAL CTA
   ========================================= */

.cta {
    padding: 100px 20px;
    border-top: 1px solid var(--bg-light);
}

.cta h2 {
    margin-bottom: 40px;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.footer-tagline {
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    font-weight: 500;
    margin: 0 15px;
}

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

.copyright {
    font-size: 0.875rem;
    color: #888888;
}

/* =========================================
   ANIMATIONS
   ========================================= */

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   BLOG INDEX & ARTICLES
   ========================================= */

.blog-index {
    padding-bottom: 80px;
}

.blog-hero {
    padding: 100px 20px 60px;
    background-color: #ffffff;
}

.blog-label {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.blog-main-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 760px;
    margin: 0 auto 16px;
    line-height: 1.1;
}

.blog-subtext {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.blog-divider {
    border: none;
    border-top: 1px solid #eeeeee;
    margin: 40px 0;
}

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

.blog-card {
    background-color: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 18px;
    padding: 28px;
    transition: all 0.25s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-neon);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.blog-card-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--text-primary);
}

.blog-card-title a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.blog-card-title a:hover {
    color: var(--accent-neon);
}

.blog-card-excerpt {
    font-size: 1.05rem;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-meta {
    font-size: 0.9rem;
    color: #777777;
    margin-bottom: 16px;
}

.meta-dot {
    margin: 0 8px;
}

.blog-read-more {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.blog-read-more:hover {
    color: var(--accent-neon);
}

.blog-pagination {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
}

.pagination-placeholder {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 1000;
    background: transparent;
}

.progress-bar {
    height: 100%;
    background: var(--accent-neon);
    width: 0%;
}

.article-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.back-link {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 30px;
}

.back-link:hover {
    color: var(--accent-neon);
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 1rem;
    color: #777777;
    margin-bottom: 20px;
}

.article-meta-divider {
    border: none;
    border-top: 1px solid #eeeeee;
    margin: 20px 0 40px;
}

.article-container p {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 28px;
    text-align: justify;
}

.article-container h2 {
    margin-top: 56px;
    margin-bottom: 18px;
    font-weight: 700;
}

.article-container h3 {
    margin-top: 40px;
    margin-bottom: 12px;
}

.article-container blockquote {
    border-left: 3px solid var(--accent-neon);
    padding-left: 18px;
    margin: 32px 0;
    color: #555555;
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    background-color: transparent;
}

.article-container a {
    color: var(--accent-neon);
    text-decoration: none;
    border-bottom: none;
    transition: all 0.2s ease;
}

.article-container a:hover {
    opacity: 0.8;
}

.table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
}

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

th {
    text-align: left;
    padding: 14px;
    background-color: #f5f5f5;
    font-weight: 600;
}

td {
    padding: 14px;
    border-top: 1px solid #eeeeee;
}

tr:hover {
    background-color: #fafafa;
}

.article-container ul,
.article-container ol {
    margin: 20px 0 28px 24px;
    line-height: 1.8;
}

.article-container li {
    margin-bottom: 10px;
}

.faq-item {
    margin: 20px 0;
    padding: 16px 20px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
}

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

.faq-item[open] {
    background-color: #fafafa;
}

.article-container img {
    width: 100%;
    border-radius: 14px;
    margin: 32px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

figcaption {
    font-size: 14px;
    color: #777777;
    margin-top: 8px;
    text-align: center;
}

pre {
    background: #f7f7f7;
    padding: 18px;
    overflow-x: auto;
    border-radius: 12px;
    font-size: 15px;
}

.section-divider {
    height: 1px;
    background: #eeeeee;
    margin: 60px 0;
}

.article-divider {
    border: none;
    border-top: 1px solid #eeeeee;
    margin: 60px 0 40px;
}

.cta-block-minimal {
    text-align: center;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
}

.cta-heading-subtle {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cta-text-subtle {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* =========================================
   CONTACT PAGE
   ========================================= */

.contact-hero {
    padding: 100px 20px 40px;
}

.contact-label {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 auto 16px;
    line-height: 1.1;
}

.contact-subtext {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

.contact-methods {
    padding-bottom: 80px;
}

.contact-methods-container {
    max-width: 680px;
    margin: 0 auto;
}

.contact-block {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 28px;
    margin: 30px 0;
    transition: transform 0.25s ease;
}

.contact-block:hover {
    transform: translateY(-3px);
}

.contact-block-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-email {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-neon);
    text-decoration: none;
    color: #111111;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.contact-email:hover {
    background-color: rgba(57, 255, 20, 0.15);
}

.contact-block-desc {
    font-size: 1.05rem;
    color: #444444;
    line-height: 1.6;
}

.contact-footer {
    max-width: 680px;
    margin: 60px auto 0;
    text-align: center;
}

.contact-divider {
    border: none;
    border-top: 1px solid #eeeeee;
    margin-bottom: 30px;
}

.contact-response-time {
    font-size: 0.95rem;
    color: #777777;
    margin-bottom: 8px;
}

.contact-closing {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   HAMBURGER MENU TOGGLE
   ========================================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE SYSTEM)
   ========================================= */

/* Tablet & Smaller Desktop 768px - 1199px */
@media (max-width: 1199px) {
    .container {
        padding: 0 24px;
    }

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

    .problem-grid {
        gap: 24px;
    }
}

/* Mobile < 768px */
@media (max-width: 767px) {

    /* Hamburger Menu Trigger */
    .menu-toggle {
        display: flex;
    }

    /* Navbar Slide-down */
    .navbar {
        padding: 15px 16px;
        /* Added strict side padding to the header wrapper itself */
    }

    .nav-container {
        padding: 0;
        position: relative;
    }

    .nav-links {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-20px);
        transition: all 0.3s ease;
        border-top: 1px solid var(--border-color);
        gap: 12px;
    }

    .nav-links.nav-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 16px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px 16px;
    }

    .nav-links .btn-primary {
        width: 90%;
        max-width: 350px;
        margin-top: 10px;
        min-height: 48px;
    }

    /* Hero Redesign */
    .hero {
        padding: 40px 16px 60px;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.25;
    }

    .hero-subtitle {
        margin-bottom: 40px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 350px;
    }

    .hero-actions .btn-outline {
        padding: 12px 24px;
        font-size: 1rem;
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
    }

    /* Vertical Rhythm Framework */
    .section {
        padding: 60px 16px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .problem-card {
        padding: 24px;
        width: 100%;
    }

    /* Screenshot Section Scaled-down Overlapping Fan */
    .product-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        overflow: visible;
        margin: 30px auto 50px;
        padding: 0;
        gap: 0;
    }

    .product-left,
    .product-right,
    .product-main {
        flex: none;
        scroll-snap-align: none;
        margin: 0;
        width: 100%;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-radius: 14px;
        transform: none;
        /* Reset mobile carousel override */
    }

    .product-main {
        position: relative;
        z-index: 3;
        max-width: 180px;
    }

    .product-main:hover,
    .product-main:active {
        transform: translateY(-4px);
    }

    .product-left,
    .product-right {
        position: absolute;
        z-index: 1;
        opacity: 0.95;
        max-width: 145px;
    }

    .product-left {
        left: -55px;
        top: 25px;
    }

    .product-right {
        right: -55px;
        top: 25px;
    }

    /* Blog Index */
    .blog-hero {
        padding-left: 24px;
        padding-right: 24px;
    }

    .blog-grid-section {
        padding-left: 24px;
        padding-right: 24px;
    }

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

    .blog-card {
        width: 100%;
        position: relative;
    }

    .blog-card-title {
        word-wrap: break-word;
    }

    .blog-card-title a::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .blog-card-excerpt {
        font-size: 1.1rem;
        color: #333333;
    }

    .blog-read-more {
        position: relative;
        z-index: 2;
        display: inline-block;
        min-height: 44px;
        padding-top: 10px;
        pointer-events: none;
    }

    .blog-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        color: #555555;
        font-size: 0.95rem;
    }

    /* Blog Page Mobile Typography Upgrade */
    .article-container {
        padding: 60px 24px 40px;
        /* Increased safe side padding */
        max-width: 100%;
    }

    .article-container p,
    .article-container li,
    .article-container blockquote {
        font-size: 18px;
        line-height: 1.85;
        padding-right: 0;
        text-align: left;
    }

    .article-container p,
    .article-container li {
        padding-left: 0;
    }

    .article-container blockquote {
        padding-left: 18px;
    }

    .article-container p {
        margin-bottom: 32px;
        /* Increased bottom margin for breathing space */
    }

    .article-container ul,
    .article-container ol {
        margin: 32px 0 32px 24px;
        /* Increased margin around lists */
    }

    .article-container li {
        margin-bottom: 16px;
        /* Added spacing between list items */
    }

    .article-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 24px;
        line-height: 1.3;
    }

    .article-container h2 {
        font-size: 1.5rem;
        margin-top: 64px;
        /* Increased space before section */
        margin-bottom: 24px;
        /* Increased space after section */
    }

    .article-container h3 {
        font-size: 1.25rem;
        margin-top: 48px;
        /* Breathing room */
        margin-bottom: 16px;
    }

    .table-wrapper {
        margin: 40px 0;
        /* Ensuring proper spacing above and below tables */
    }

    .faq-item {
        padding: 24px 16px;
    }

    .faq-item summary {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Footer */
    .footer {
        margin-top: 60px;
    }

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

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    /* Buttons minimum touch target */
    .btn {
        min-height: 48px;
    }

    /* Contact and Download Page hero spacing */
    .contact-hero,
    .download-hero {
        padding-top: 60px;
    }
}

/* =========================================
   DOWNLOAD PAGE (Base Styles)
   ========================================= */

.download-page {
    padding-bottom: 80px;
}

.download-hero {
    padding: 100px 20px 40px;
}

.download-label {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.download-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 auto 16px;
    line-height: 1.1;
}

.download-subtext {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

.download-content {
    padding-bottom: 40px;
}

.platform-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 680px;
    margin: 30px auto;
    text-align: center;
}

.platform-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.platform-desc {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 500;
}

.download-trust-signals {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ios-coming-soon {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #888888;
}

.qr-placeholder {
    margin: 40px auto;
    max-width: 680px;
    text-align: center;
    display: none;
}

.qr-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.qr-box {
    width: 150px;
    height: 150px;
    background-color: var(--bg-light);
    border: 1px dashed #cccccc;
    margin: 0 auto;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaaaaa;
    font-size: 0.9rem;
}

.download-fallback {
    text-align: center;
    margin: 60px auto 0;
    max-width: 680px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.download-fallback a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
}

.download-fallback a:hover {
    color: var(--accent-neon);
    text-decoration-color: var(--accent-neon);
}

/* =========================================
   DARK MODE
   ========================================= */

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f0f0f;
        --bg-light: #181818;
        --text-primary: #f5f5f5;
        --text-secondary: #a0a0a0;
        --accent-neon: #30d812;
        /* Slightly toned down */
        --border-color: #2a2a2a;
    }

    /* Problem Cards Elevation */
    .problem-card {
        background-color: #1a1a1a;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .problem-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    }

    /* Images */
    .product-visual img {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .product-visual:hover .product-main {
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.8);
    }

    .product-left,
    .product-right {
        filter: brightness(0.6);
        /* Slightly more dim on dark background so main stands out */
    }

    /* Blog Cards */
    .blog-hero {
        background-color: var(--bg-color);
    }

    .blog-card {
        background-color: #1a1a1a;
        border-color: #2a2a2a;
    }

    .blog-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .blog-card-excerpt {
        color: #b0b0b0;
    }

    .blog-card-meta {
        color: #888888;
    }

    .blog-divider,
    .article-meta-divider,
    .section-divider,
    .article-divider,
    .contact-divider {
        border-top-color: #2a2a2a;
        background-color: #2a2a2a;
    }

    /* Article Readability */
    .article-container p {
        color: #dcdcdc;
        /* High contrast but not pure white */
    }

    .article-container blockquote {
        color: #b0b0b0;
    }

    .table-wrapper th {
        background-color: #1e1e1e;
        color: #f5f5f5;
    }

    .table-wrapper td {
        border-top-color: #2a2a2a;
        color: #dcdcdc;
    }

    .table-wrapper tr:hover {
        background-color: #1a1a1a;
    }

    .faq-item {
        border-color: #2a2a2a;
    }

    .faq-item[open] {
        background-color: #1a1a1a;
    }

    pre {
        background-color: #1e1e1e;
        border: 1px solid #2a2a2a;
    }

    .cta-block-minimal {
        background-color: #1a1a1a;
    }

    .cta-text-subtle {
        color: #a0a0a0;
    }

    /* Colors overridden hard-coded instances */
    .hero-subtitle,
    .blog-subtext,
    .contact-subtext,
    .download-subtext {
        color: var(--text-secondary);
    }

    /* Input/Contact blocks */
    .contact-block,
    .platform-card {
        background-color: #1a1a1a;
        border-color: #2a2a2a;
    }

    .contact-email {
        color: var(--text-primary);
    }

    .contact-block-desc {
        color: #b0b0b0;
    }

    .qr-box {
        background-color: #1e1e1e;
        border-color: #444;
    }

    /* Button Adjustments */
    .btn-primary {
        color: #111111 !important;
        /* Force dark text on neon background in dark mode */
    }

    .btn-primary:hover {
        background-color: #2cc010;
        border-color: #2cc010;
        color: #111111;
        /* Keep dark text on hover in dark mode */
        box-shadow: 0 0 0 3px rgba(48, 216, 18, 0.25), 0 6px 20px rgba(48, 216, 18, 0.2);
    }

    .nav-btn:hover {
        box-shadow: 0 0 0 2px rgba(48, 216, 18, 0.2), 0 4px 12px rgba(48, 216, 18, 0.15);
    }

    .nav-links {
        background-color: var(--bg-color);
        /* For mobile dropdown */
    }

    /* Mobile Nav Toggle */
    .menu-toggle span {
        background-color: var(--text-primary);
    }
}
/* =========================================
   BLOG-SPECIFIC ENHANCEMENTS
   Mobile-first responsive tables, callouts,
   stat cards, visual components
   ========================================= */

/* Table: Mobile-first with horizontal scroll + visual label */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 36px 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.table-wrapper th {
    background-color: #f5f5f5;
    font-weight: 700;
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #444;
    white-space: nowrap;
}

.table-wrapper td {
    padding: 13px 16px;
    border-top: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.6;
}

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

.table-scroll-hint {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 6px;
    display: none;
}

@media (max-width: 640px) {
    .table-scroll-hint { display: block; }
    .table-wrapper table { font-size: 14px; }
    .table-wrapper th { padding: 12px 12px; }
    .table-wrapper td { padding: 11px 12px; }
}

/* Callout / Insight Blocks */
.callout {
    border-left: 4px solid var(--accent-neon);
    background: #f9fff6;
    padding: 18px 22px;
    margin: 32px 0;
    border-radius: 0 10px 10px 0;
    font-size: 17px;
    line-height: 1.75;
    color: #333;
}

.callout-warn {
    border-left-color: #ff6b35;
    background: #fff8f5;
}

.callout-info {
    border-left-color: #3b82f6;
    background: #f5f8ff;
}

.callout-red {
    border-left-color: #ef4444;
    background: #fff5f5;
}

.callout strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

/* Stat cards row */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 36px 0;
}

.stat-card {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number span {
    color: var(--accent-neon);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 640px) {
    .stat-row { grid-template-columns: 1fr 1fr; }
    .stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .stat-number { font-size: 1.8rem; }
}

/* Before / After comparison */
.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.ba-card {
    border-radius: 10px;
    padding: 18px 20px;
}

.ba-card.bad {
    background: #fff5f5;
    border: 1px solid #fecaca;
}

.ba-card.good {
    background: #f0fff4;
    border: 1px solid #bbf7d0;
}

.ba-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.bad .ba-label { color: #dc2626; }
.good .ba-label { color: #16a34a; }

.ba-card p {
    font-size: 15px !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
    color: #333 !important;
    text-align: left !important;
}

@media (max-width: 600px) {
    .before-after { grid-template-columns: 1fr; }
}

/* Part / chapter header pill */
.part-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    background: #f0f0f0;
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 12px;
}

/* Chapter divider */
.chapter-break {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 80px 0 60px;
    position: relative;
}

.chapter-break::after {
    content: attr(data-chapter);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    padding: 0 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
}

/* Inline SVG illustration wrapper */
.illustration {
    margin: 40px auto;
    max-width: 680px;
    text-align: center;
}

.illustration svg {
    width: 100%;
    height: auto;
}

.illustration figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}

/* Checklist styling */
.checklist {
    list-style: none;
    margin: 20px 0 28px 0 !important;
    padding: 0;
}

.checklist li {
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: 17px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0 !important;
}

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

.checklist li::before {
    content: '☐';
    position: absolute;
    left: 0;
    color: #aaa;
    font-size: 18px;
    top: 7px;
}

/* Tier badge */
.tier-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 100px;
    margin-right: 6px;
}

.tier-1 { background: #fef9c3; color: #854d0e; }
.tier-2 { background: #f0fdf4; color: #166534; }
.tier-3 { background: #eff6ff; color: #1e40af; }
.tier-danger { background: #fef2f2; color: #991b1b; }

/* Code block for resume examples */
.resume-sample {
    background: #1a1a1a;
    color: #e8e8e8;
    border-radius: 10px;
    padding: 22px 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.7;
    margin: 28px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.resume-sample .rs-name {
    color: #39FF14;
    font-weight: bold;
}

.resume-sample .rs-role {
    color: #60a5fa;
}

.resume-sample .rs-bullet {
    color: #a78bfa;
}

.resume-sample .rs-link {
    color: #fbbf24;
}

/* FAQ improvements - use details/summary */
.faq-section h2 {
    margin-bottom: 24px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-item summary {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

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

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--accent-neon);
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] {
    background: #fafafa;
}

.faq-answer {
    padding: 0 20px 20px;
    font-size: 16px;
    line-height: 1.75;
    color: #444;
}

/* Time allocation boxes */
.time-alloc {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 24px;
    margin: 16px 0;
}

.time-alloc-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 14px;
}

.time-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.time-bar-label {
    font-size: 14px;
    color: #555;
    min-width: 200px;
}

.time-bar-track {
    flex: 1;
    height: 8px;
    background: #e8e8e8;
    border-radius: 100px;
    overflow: hidden;
}

.time-bar-fill {
    height: 100%;
    background: var(--accent-neon);
    border-radius: 100px;
}

.time-bar-pct {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    min-width: 32px;
    text-align: right;
}

@media (max-width: 600px) {
    .time-bar-label { min-width: 140px; font-size: 13px; }
}

/* Dark mode adjustments for new components */
@media (prefers-color-scheme: dark) {
    .callout { background: #0f1f0a; color: #ddd; }
    .callout-warn { background: #1f0f0a; }
    .callout-info { background: #0a0f1f; }
    .callout-red { background: #1f0a0a; }
    .stat-card { background: #1a1a1a; }
    .ba-card.bad { background: #1f0a0a; border-color: #7f1d1d; }
    .ba-card.good { background: #0a1f0f; border-color: #14532d; }
    .ba-card p { color: #ddd !important; }
    .part-label { background: #2a2a2a; color: #aaa; }
    .resume-sample { background: #111; }
    .time-alloc { background: #1a1a1a; }
    .time-bar-track { background: #333; }
    .faq-item[open] { background: #1a1a1a; }
    .faq-answer { color: #bbb; }
    .checklist li { color: #ddd; border-color: #2a2a2a; }
    .table-wrapper th { background: #1e1e1e; }
}

/* Mobile nav (already exists but ensuring menu-toggle works) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        z-index: 999;
    }

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

    .navbar { position: relative; }

    .article-container {
        padding: 80px 18px 60px;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .stat-row {
        grid-template-columns: 1fr 1fr;
    }
}
