:root {
    --bg-top: #0A0E14;
    --bg-bottom: #020408;
    --cyan: #00F0FF;
    --cyan-glow: rgba(0, 240, 255, 0.3);
    --cyan-dim: rgba(0, 240, 255, 0.1);
    --glass-bg: rgba(15, 20, 28, 0.6);
    --glass-border: rgba(0, 240, 255, 0.2);
    --text-primary: #E8EDF4;
    --text-secondary: #8B95A8;
    --text-dim: #4A5568;
    --danger: #FF4757;
    --warning: #FFA502;
    --success: #2ECC71;
    
    /* Criticality glow colors */
    --critical-glow: #FF4757;
    --critical-glow-shadow: rgba(255, 71, 87, 0.4);
    --high-glow: #FFA502;
    --high-glow-shadow: rgba(255, 165, 2, 0.4);
    --medium-glow: #FFA502;
    --medium-glow-shadow: rgba(255, 165, 2, 0.4);
    --low-glow: #FFD700;
    --low-glow-shadow: rgba(255, 215, 0, 0.4);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

/* Navigation */
nav {
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 4, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
}

.nav-cta {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* iOS minimum touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-cta:hover {
    background: var(--cyan);
    color: var(--bg-bottom);
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    background: var(--cyan);
    color: var(--bg-bottom);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--cyan-glow);
    min-height: 48px; /* Adequate touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--cyan-glow);
}

/* Resilience Gauge */
.gauge-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.gauge {
    position: relative;
    width: 300px;
    height: 300px;
    overflow: visible;
}

.gauge-bg {
    stroke: var(--text-dim);
    stroke-width: 20;
    fill: none;
}

.gauge-fill {
    stroke: var(--cyan);
    stroke-width: 20;
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
    filter: drop-shadow(0 0 10px var(--cyan-glow));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 10px var(--cyan-glow)); }
    50% { filter: drop-shadow(0 0 20px var(--cyan)); }
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.5s ease;
}

.gauge-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Section Styling */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Stack Grid */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Category Tabs - Hidden on desktop, shown on mobile */
.category-tabs {
    display: none;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-tab:active {
    transform: scale(0.98);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(0, 240, 255, 0.2) 100%);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.category-tab-count {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0.125rem 0.375rem;
    background: rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.category-tab.active .category-tab-count {
    background: var(--cyan);
    color: var(--bg-bottom);
}

/* Hide stack items by default when tabs are active */
.stack-grid[data-tab-mode="true"] .stack-item {
    display: none;
}

.stack-grid[data-tab-mode="true"] .stack-item.show {
    display: flex;
}

.stack-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px; /* Ensure adequate touch target */
    -webkit-tap-highlight-color: rgba(0, 240, 255, 0.1);
}

.stack-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--cyan-dim) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stack-item:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
}

.stack-item.active {
    border-color: var(--cyan);
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(0, 240, 255, 0.1) 100%);
    box-shadow: 0 0 30px var(--cyan-glow);
}

/* Criticality-based glows */
.stack-item.active.critical {
    border-color: var(--critical-glow);
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 71, 87, 0.1) 100%);
    box-shadow: 0 0 30px var(--critical-glow-shadow);
}

.stack-item.active.high {
    border-color: var(--high-glow);
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 165, 2, 0.1) 100%);
    box-shadow: 0 0 30px var(--high-glow-shadow);
}

.stack-item.active.medium {
    border-color: var(--medium-glow);
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 165, 2, 0.1) 100%);
    box-shadow: 0 0 30px var(--medium-glow-shadow);
}

.stack-item.active.low {
    border-color: var(--low-glow);
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 215, 0, 0.1) 100%);
    box-shadow: 0 0 30px var(--low-glow-shadow);
}

.stack-item.active::before {
    opacity: 1;
}

.stack-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.stack-item.active .stack-icon {
    color: var(--cyan);
    filter: drop-shadow(0 0 10px var(--cyan-glow));
}

.stack-item.active.critical .stack-icon {
    color: var(--critical-glow);
    filter: drop-shadow(0 0 10px var(--critical-glow-shadow));
}

.stack-item.active.high .stack-icon {
    color: var(--high-glow);
    filter: drop-shadow(0 0 10px var(--high-glow-shadow));
}

.stack-item.active.medium .stack-icon {
    color: var(--medium-glow);
    filter: drop-shadow(0 0 10px var(--medium-glow-shadow));
}

.stack-item.active.low .stack-icon {
    color: var(--low-glow);
    filter: drop-shadow(0 0 10px var(--low-glow-shadow));
}

.stack-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.stack-item.active .stack-name {
    color: var(--cyan);
}

.stack-item.active.critical .stack-name {
    color: var(--critical-glow);
}

.stack-item.active.high .stack-name {
    color: var(--high-glow);
}

.stack-item.active.medium .stack-name {
    color: var(--medium-glow);
}

.stack-item.active.low .stack-name {
    color: var(--low-glow);
}

/* Score Display */
.score-display {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.score-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.score-gauge-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.score-gauge {
    width: 150px;
    height: 150px;
    overflow: visible;
}

.score-gauge-bg {
    stroke: var(--text-dim);
    stroke-width: 12;
    fill: none;
}

.score-gauge-fill {
    stroke: var(--cyan);
    stroke-width: 12;
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
    filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.score-gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-gauge-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.5s ease;
    line-height: 1;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan);
    transition: color 0.5s ease;
}

.score-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.score-info p {
    color: var(--text-secondary);
}

.gap-warnings {
    margin-top: 2rem;
}

.gap-warnings h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--warning);
}

.warning-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 165, 2, 0.05);
    border-left: 3px solid var(--warning);
    border-radius: 6px;
    font-size: 0.95rem;
}

.warning-item.critical {
    background: rgba(255, 71, 87, 0.05);
    border-left-color: var(--danger);
}

.warning-item.high {
    background: rgba(255, 165, 2, 0.05);
    border-left-color: var(--warning);
}

.warning-item.medium {
    background: rgba(0, 240, 255, 0.05);
    border-left-color: var(--cyan);
}

.warning-item.low {
    background: rgba(139, 149, 168, 0.05);
    border-left-color: var(--text-secondary);
}

.warning-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
}

.warning-content {
    flex: 1;
}

.warning-tool {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ttl-badge {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.warning-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recommendations {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.recommendations h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--cyan);
}

.recommendation-item {
    padding: 0.75rem 1rem;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 0.5rem 0;
}

.timeline-track {
    position: relative;
    height: 8px;
    background: var(--text-dim);
    border-radius: 4px;
    margin: 3rem 0;
}

.timeline-progress {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, var(--warning) 50%, var(--danger) 100%);
    border-radius: 4px;
    width: 100%;
    box-shadow: 0 0 20px var(--cyan-glow);
}

.timeline-markers {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline-marker {
    flex: 1;
    text-align: center;
    position: relative;
}

.marker-dot {
    width: 24px;
    height: 24px;
    background: var(--cyan);
    border: 4px solid var(--bg-bottom);
    border-radius: 50%;
    margin: -16px auto 1rem;
    box-shadow: 0 0 20px var(--cyan-glow);
}

.marker-time {
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.marker-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.marker-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Succession Map Preview */
.succession-preview {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.preview-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.preview-badge {
    background: var(--cyan-dim);
    color: var(--cyan);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.checklist-item {
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--cyan);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateX(4px);
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.priority-badge {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.checklist-service {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-action {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.checklist-instructions {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--cyan);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    position: relative;
    filter: blur(3px);
    transition: filter 0.3s ease;
}

.checklist-item:hover .checklist-instructions {
    filter: blur(0);
}

.blur-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--cyan);
    color: var(--bg-bottom);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.checklist-item:hover .blur-hint {
    opacity: 0;
}

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

.privacy-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.privacy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.privacy-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--cyan);
}

.privacy-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.tech-badge {
    display: inline-block;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin: 0.25rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, transparent 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    margin: 4rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.email-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.email-submit {
    background: var(--cyan);
    color: var(--bg-bottom);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.email-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--cyan-glow);
}

.social-proof {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */

/* Tablet and below (968px) */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .gauge {
        width: 250px;
        height: 250px;
    }
    
    .gauge-score {
        font-size: 3rem;
    }

    .stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .timeline-markers {
        flex-direction: column;
        gap: 2rem;
    }

    .email-form {
        flex-direction: column;
    }

    .score-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .score-gauge {
        width: 140px;
        height: 140px;
    }
    
    .score-gauge-number {
        font-size: 2.25rem;
    }
    
    .score-number {
        font-size: 3rem;
    }
    
    .privacy-grid {
        grid-template-columns: 1fr;
    }
    
    .succession-preview {
        padding: 1.5rem;
    }
}

/* Mobile landscape and below (768px) */
@media (max-width: 768px) {
    /* Show category tabs on mobile */
    .category-tabs {
        display: flex;
    }
    
    nav {
        padding: 1rem 0;
    }
    
    .nav-content {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content .subheadline {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .stack-item {
        padding: 1.5rem 0.75rem;
    }
    
    .stack-icon {
        font-size: 2.5rem;
    }
    
    .stack-name {
        font-size: 0.85rem;
    }
    
    .score-display {
        padding: 1.5rem;
    }
    
    .warning-item {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .warning-tool {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }
    
    .ttl-badge {
        font-size: 0.7rem;
    }
    
    .marker-time {
        font-size: 0.9rem;
    }
    
    .marker-label {
        font-size: 0.95rem;
    }
    
    .marker-description {
        font-size: 0.85rem;
    }
    
    .checklist-item {
        padding: 1.25rem;
    }
    
    .checklist-service {
        font-size: 1rem;
    }
    
    .checklist-instructions {
        font-size: 0.85rem;
        padding: 0.875rem;
    }
    
    .blur-hint {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Mobile portrait (640px) */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .subheadline {
        font-size: 1rem;
    }
    
    .gauge {
        width: 200px;
        height: 200px;
    }
    
    .gauge-score {
        font-size: 2.5rem;
    }
    
    .gauge-label {
        font-size: 0.75rem;
    }
    
    .stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .stack-item {
        padding: 1.25rem 0.5rem;
    }
    
    .stack-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stack-name {
        font-size: 0.8rem;
    }
    
    .score-display {
        padding: 1rem;
    }
    
    .score-gauge {
        width: 120px;
        height: 120px;
    }
    
    .score-gauge-number {
        font-size: 2rem;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .score-info h3 {
        font-size: 1.25rem;
    }
    
    .score-info p {
        font-size: 0.9rem;
    }
    
    .gap-warnings h4 {
        font-size: 1rem;
    }
    
    .warning-item {
        padding: 0.75rem;
    }
    
    .warning-icon {
        font-size: 1rem;
    }
    
    .warning-tool {
        font-size: 0.9rem;
    }
    
    .warning-message {
        font-size: 0.85rem;
    }
    
    .recommendations h4 {
        font-size: 1rem;
    }
    
    .recommendation-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .timeline-track {
        margin: 2rem 0;
    }
    
    .marker-dot {
        width: 20px;
        height: 20px;
        margin: -14px auto 0.75rem;
    }
    
    .marker-time {
        font-size: 0.85rem;
    }
    
    .marker-label {
        font-size: 0.9rem;
    }
    
    .marker-description {
        font-size: 0.8rem;
    }
    
    .succession-preview {
        padding: 1rem;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .preview-title {
        font-size: 1.25rem;
    }
    
    .preview-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .checklist-item {
        padding: 1rem;
    }
    
    .checklist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .checklist-service {
        font-size: 0.95rem;
    }
    
    .checklist-action {
        font-size: 0.85rem;
    }
    
    .checklist-instructions {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .privacy-card {
        padding: 1.5rem;
    }
    
    .privacy-icon {
        font-size: 2.5rem;
    }
    
    .privacy-card h3 {
        font-size: 1.15rem;
    }
    
    .privacy-card p {
        font-size: 0.9rem;
    }
    
    .email-input,
    .email-submit {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
    
    .social-proof {
        font-size: 0.85rem;
    }
    
    footer {
        padding: 2rem 0;
        font-size: 0.85rem;
    }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gauge {
        width: 180px;
        height: 180px;
    }
    
    .gauge-score {
        font-size: 2.25rem;
    }
    
    .score-gauge {
        width: 100px;
        height: 100px;
    }
    
    .score-gauge-number {
        font-size: 1.75rem;
    }
    
    .score-number {
        font-size: 2.25rem;
    }
    
    .warning-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .warning-icon {
        align-self: flex-start;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .stack-item:hover {
        transform: none;
    }
    
    .stack-item:active {
        transform: scale(0.98);
    }
    
    .hero-cta:hover,
    .nav-cta:hover,
    .email-submit:hover {
        transform: none;
    }
    
    .hero-cta:active,
    .nav-cta:active,
    .email-submit:active {
        transform: scale(0.98);
    }
    
    /* Make blur hints always visible on touch devices */
    .blur-hint {
        display: none;
    }
    
    .checklist-instructions {
        filter: blur(0);
    }
}
