/* ===========================
   Global Styles & Reset
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    /* XML-themed color palette - Orange/Rust tones */
    --primary-orange: #E67E22;
    --primary-dark: #D35400;
    --primary-light: #F39C12;
    --secondary-blue: #34495E;
    --accent-cyan: #16A085;
    --accent-yellow: #F39C12;
    --success-green: #27AE60;
    
    /* Neutral colors */
    --dark-bg: #1E1E1E;
    --darker-bg: #151515;
    --text-dark: #2C3E50;
    --text-medium: #5D6D7E;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile container adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

.hidden {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

/* ===========================
   Page Transitions
   =========================== */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

#landing-page {
    background: var(--bg-white);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   Navigation Bar
   =========================== */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform var(--transition-fast);
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 8px 0;
    font-family: inherit;
    height: auto;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform var(--transition-fast);
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
    padding: 8px 0;
}

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

.nav-icon {
    width: 18px;
    height: 18px;
}

.nav-text {
    display: inline;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    min-height: 48px;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-medium);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-medium);
}

.btn-success {
    background-color: var(--success-green);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    background-color: #16A34A;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    background: white;
    color: var(--primary-orange);
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-large:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.btn-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-medium);
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #FFF5F2 0%, #FFF 50%, #F0F9FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-orange);
    margin-bottom: 24px;
}

.badge-icon {
    width: 18px;
    height: 18px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.highlight {
    color: var(--primary-orange);
    position: relative;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.hero-visual {
    position: relative;
    animation: fadeIn 0.8s ease 0.3s both;
}

.code-window {
    background: var(--dark-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.code-window-header {
    background: var(--darker-bg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #FF5F56; }
.control.minimize { background: #FFBD2E; }
.control.maximize { background: #27C93F; }

.window-title {
    color: #888;
    font-size: 0.9rem;
}

.code-window-body {
    padding: 24px;
    max-height: 300px;
    overflow: auto;
}

.json-preview {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ABB2BF;
}

/* XML Syntax Highlighting */
.xml-tag {
    color: #E67E22; /* Orange for XML tags */
}

.xml-content {
    color: #27AE60; /* Green for content */
}

/* Legacy JSON support (keeping for compatibility) */
.json-key {
    color: #E06C75;
}

.json-string {
    color: #98C379;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.floating-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-orange);
}

.icon-1 {
    top: 20%;
    right: -30px;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

.icon-3 {
    top: 50%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===========================
   Features Section
   =========================== */
.features-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.feature-card {
    padding: 28px 24px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-normal);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-orange);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===========================
   How It Works Section
   =========================== */
.how-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch; /* Equal heights */
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px; /* Ensure minimum height */
}

.step-card:hover {
    transform: translateY(-8px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 20px auto;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-orange);
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

.step-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-arrow svg {
    width: 30px;
    height: 30px;
    color: var(--text-light);
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #E67E22 0%, #F39C12 50%, #E67E22 100%);
    /* NOSONAR: White text on orange gradient has sufficient contrast (>4.5:1 ratio) */
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Survey Page Styles
   All survey styles moved to survey.css
   =========================== */

/* ===========================
   Results Page
   =========================== */
#results-page {
    min-height: 100vh;
    padding: 60px 20px;
    background: var(--bg-light);
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 48px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-green) 0%, #16A34A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon svg {
    width: 48px;
    height: 48px;
    color: white;
}

.results-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.results-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
}

.json-output-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.output-header {
    background: var(--dark-bg);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.output-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.output-title svg {
    width: 20px;
    height: 20px;
}

.output-actions {
    display: flex;
    gap: 8px;
}

.output-body {
    padding: 24px;
    background: var(--darker-bg);
}

.output-body pre {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ABB2BF;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* ===========================
   Responsive Ad System
   =========================== */
.ad-container {
    margin: 40px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    overflow: hidden; /* Prevent horizontal scrolling */
    max-width: 100%; /* Ensure container doesn't exceed viewport */
}

.ad-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
    box-sizing: border-box; /* Include padding and border in width */
}

.ad-square {
    width: 300px;
    height: 250px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 20px auto;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    max-width: calc(100vw - 40px); /* Prevent overflow on small screens */
}

.ad-loading {
    opacity: 0.6;
    background: linear-gradient(90deg, var(--bg-light) 25%, rgba(255, 255, 255, 0.5) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Mobile-Specific Ad Units (320x50) */
@media (max-width: 768px) {
    .ad-container {
        min-height: 70px;
        margin: 30px auto;
        padding: 0 10px; /* Add padding to prevent edge touching */
    }
    
    .ad-banner {
        max-width: 320px;
        width: 100%;
        height: 50px;
        font-size: 0.8rem;
        margin: 0 auto;
        min-width: 280px; /* Minimum width for very small screens */
    }
    
    .ad-square {
        width: 300px;
        height: 250px;
        max-width: calc(100vw - 40px);
        min-width: 280px;
    }
    
    /* Ensure proper spacing on mobile */
    .features-section .ad-container,
    .how-section + .ad-container,
    #use-case-page .ad-container,
    #results-page .ad-container {
        margin: 25px auto;
    }
}

/* Tablet-Specific Ad Units (468x60) */
@media (min-width: 769px) and (max-width: 1199px) {
    .ad-container {
        min-height: 80px;
        margin: 35px auto;
    }
    
    .ad-banner {
        max-width: 468px;
        width: 100%;
        height: 60px;
        font-size: 0.85rem;
    }
    
    .ad-square {
        width: 300px;
        height: 250px;
    }
}

/* Desktop Ad Units (728x90) */
@media (min-width: 1200px) {
    .ad-container {
        min-height: 110px;
        margin: 40px auto;
    }
    
    .ad-banner {
        max-width: 728px;
        width: 100%;
        height: 90px;
        font-size: 0.9rem;
    }
    
    .ad-square {
        width: 300px;
        height: 250px;
    }
}

/* Legacy ad space compatibility */
.ad-space {
    margin: 40px auto;
    text-align: center;
    max-width: 728px;
}

.ad-placeholder {
    display: inline-block;
    padding: 40px 60px;
    background-color: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===========================
   Footer
   =========================== */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary-light);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-section a svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   Use Case Selection Page
   =========================== */
#use-case-page {
    background: linear-gradient(135deg, #FFF5F2 0%, #FFF 50%, #F0F9FF 100%);
    min-height: 100vh;
    padding: 60px 0;
}

.use-case-container {
    padding: 40px 0 60px;
    min-height: calc(100vh - 120px);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.use-case-card {
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.use-case-card:hover {
    border-color: currentColor;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.95) 100%);
}
.use-case-card:hover::before {
    transform: scaleX(1);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 107, 53, 0.1);
    color: currentColor;
}

.use-case-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
}

.use-case-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.use-case-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-self: center;
    }
    
    .nav-container {
        align-items: center;
        min-height: 70px;
    }
    
    .nav-brand {
        padding: 12px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-normal);
        z-index: 1000;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-text {
        display: inline;
    }
    
    /* Overlay for mobile menu */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Additional mobile styles */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header h2 {
        font-size: 2rem;
    }
}

/* Mobile styles for very small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Enhanced mobile ad spacing and touch interaction */
    .ad-container {
        margin: 20px auto;
        padding: 0 15px;
        touch-action: manipulation; /* Improve touch responsiveness */
    }
    
    .ad-banner {
        min-height: 50px;
        padding: 8px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
    }
    
    .ad-square {
        margin: 15px auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Ensure proper spacing around ads */
    .features-section .ad-container {
        margin: 20px auto 30px;
    }
    
    .how-section + .ad-container {
        margin: 20px auto;
    }
    
    #use-case-page .ad-container {
        margin: 25px auto 20px;
    }
    
    #results-page .ad-container {
        margin: 20px auto;
    }
    
    /* Prevent content from being too close to ads */
    .section-header + .ad-container {
        margin-top: 30px;
    }
    
    .ad-container + .section-header {
        margin-top: 40px;
    }
}
