.diad-m-intro-wrap {
    /* ==========================================================================
       1. Variables & Reset (Mobile First)
       ========================================================================== */
    --primary: #5B58D8;
    --primary-dark: #413ebd;
    --primary-light: #A78BFA;
    --dark: #111111;
    --dark-gray: #1C1C1C;
    --light-gray: #F5F5F7;
    --white: #ffffff;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;

    background-color: var(--white);
    color: #333;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;

    * { box-sizing: border-box; margin: 0; padding: 0; }
    a { text-decoration: none; }
    ul { list-style: none; }
    button { border: none; background: none; cursor: pointer; font-family: inherit; }
    input { font-family: inherit; }

    /* ==========================================================================
       2. Typography & Utility Classes
       ========================================================================== */
    .text-primary { color: var(--primary); }
    .text-dark { color: var(--dark); }
    .text-white { color: var(--white); }
    .text-gray-400 { color: var(--gray-400); }
    .text-gray-500 { color: var(--gray-500); }
    .text-gray-600 { color: var(--gray-600); }

    .text-center { text-align: center; }
    
    .container {
        width: 100%;
        max-width: 480px; 
        margin: 0 auto;
        padding: 0 20px;
    }

    .text-gradient {
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .icon { width: 18px; height: 18px; flex-shrink: 0; }
    .icon-sm { width: 14px; height: 14px; flex-shrink: 0; }

    /* ==========================================================================
       3. Layout & Sections (Mobile Optimized)
       ========================================================================== */
    .section-padding { padding: 80px 0; } 
    .bg-light-gray { background-color: var(--light-gray); }
    .bg-dark-section { background-color: var(--dark); color: var(--white); position: relative; }
    
    .hero-section {
        background: radial-gradient(circle at 50% 50%, #2a286c 0%, #111111 70%);
        padding: 60px 0 80px;
        position: relative;
        overflow: hidden;
        text-align: center;
    }
    .hero-section::before {
        content: '';
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5" stroke-dasharray="2 2" /></svg>');
        background-size: 30px 30px; opacity: 0.5; z-index: 0;
    }
    .hero-content { position: relative; z-index: 10; width: 100%; }
    
    .hero-badge {
        display: inline-block; padding: 6px 14px; border-radius: 9999px;
        border: 1px solid rgba(91, 88, 216, 0.3); background-color: rgba(91, 88, 216, 0.1);
        color: #d8b4fe; font-weight: 600; font-size: 12px; margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 32px; font-weight: 700; color: var(--white);
        line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 20px;
        word-break: keep-all;
    }
    
    .hero-desc {
        font-size: 15px; color: var(--gray-400); font-weight: 300;
        margin: 0 auto 32px; word-break: keep-all; line-height: 1.6;
    }

    .btn-primary-large {
        display: inline-flex; align-items: center; justify-content: center;
        width: 100%; padding: 16px; font-size: 16px; font-weight: 700;
        color: var(--white); background-color: var(--primary);
        border-radius: 12px; transition: background-color 0.3s;
        box-shadow: 0 4px 15px rgba(91, 88, 216, 0.4);
    }
    .btn-primary-large svg { margin-left: 8px; }

    .pain-point-section {
        background-color: var(--gray-50);
        position: relative; overflow: hidden; padding: 80px 0; text-align: center;
    }
    .pain-bg-glow {
        position: absolute; top: 0; left: 50%; transform: translateX(-50%);
        width: 100%; height: 300px;
        background: radial-gradient(ellipse at top, rgba(91, 88, 216, 0.08) 0%, transparent 70%);
        pointer-events: none;
    }
    
    .pain-points-title { font-size: 28px; line-height: 1.4; margin-bottom: 20px; color: var(--dark); font-weight: 800; letter-spacing: -0.02em; position: relative; z-index: 10; word-break: keep-all; }
    
    .text-highlight-red { color: #ef4444; position: relative; display: inline-block; z-index: 1; }
    .text-highlight-red::after {
        content: ''; position: absolute; bottom: 2px; left: -2px; right: -2px;
        height: 10px; background-color: rgba(239, 68, 68, 0.15); z-index: -1;
        transform: skewX(-15deg); border-radius: 2px;
    }

    .pain-points-desc { font-size: 15px; color: var(--gray-500); margin-bottom: 48px; word-break: keep-all; font-weight: 400; line-height: 1.6; position: relative; z-index: 10; }
    
    .grid-3 { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 10; }
    
    .pain-card { 
        background-color: var(--white); padding: 32px 24px; border-radius: 20px; 
        text-align: left; border: 1px solid rgba(0,0,0,0.04);
        box-shadow: 0 4px 20px -10px rgba(0,0,0,0.05);
        position: relative; overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .pain-card::before {
        content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
        background: linear-gradient(90deg, var(--primary-light), var(--primary)); opacity: 0.8;
    }
    .pain-card:active { transform: translateY(-4px); box-shadow: 0 10px 20px -10px rgba(91, 88, 216, 0.15); }
    
    .pain-icon-wrapper { position: relative; width: 48px; height: 48px; margin-bottom: 20px; }
    .pain-icon-bg { position: absolute; inset: 0; background-color: rgba(91, 88, 216, 0.08); border-radius: 12px; transform: rotate(-5deg); }
    .pain-icon-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary); z-index: 2; }
    .pain-icon-inner svg { width: 24px; height: 24px; }

    .pain-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--dark); font-weight: 700; letter-spacing: -0.01em; }
    .pain-card p { color: var(--gray-500); line-height: 1.6; font-size: 14px; word-break: keep-all; }

    .feature-layout { display: flex; flex-direction: column; gap: 40px; }
    .feature-text { width: 100%; text-align: left; }
    .feature-visual { width: 100%; position: relative; }
    
    .feature-label { color: var(--primary); font-weight: 800; letter-spacing: 0.05em; font-size: 12px; margin-bottom: 12px; }
    .feature-title { font-size: 26px; font-weight: 700; color: var(--dark); margin-bottom: 16px; line-height: 1.35; word-break: keep-all; }
    .bg-dark-section .feature-title { color: var(--white); }
    .feature-desc { font-size: 15px; color: var(--gray-600); line-height: 1.6; margin-bottom: 24px; word-break: keep-all; }
    
    .feature-list li { display: flex; align-items: flex-start; color: var(--dark); font-weight: 600; font-size: 14px; margin-bottom: 12px; line-height: 1.4; word-break: keep-all; }
    .feature-list li svg { color: var(--primary); margin-right: 8px; margin-top: 2px; }

    .feature-bg-shape {
        position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px;
        background-color: rgba(91, 88, 216, 0.05); transform: skewY(-4deg);
        border-radius: 20px; z-index: -1;
    }

    .free-tier-section {
        background-color: var(--dark);
        padding: 0 0 80px 0;
        position: relative; z-index: 20;
    }
    .free-tier-banner {
        width: 100%; position: relative; border-radius: 20px; padding: 1px;
        background: linear-gradient(135deg, rgba(167, 139, 250, 0.5) 0%, rgba(91, 88, 216, 0.1) 40%, rgba(255, 255, 255, 0.03) 100%);
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    }
    .free-tier-inner {
        background-color: #131315; border-radius: 19px;
        padding: 40px 24px; display: flex; flex-direction: column; align-items: center; text-align: center;
        position: relative; overflow: hidden;
    }
    .free-tier-inner::before {
        content: ''; position: absolute; top: -50%; left: -20%; width: 140%; height: 200%;
        background: radial-gradient(circle, rgba(91,88,216,0.15) 0%, transparent 60%); pointer-events: none;
    }
    .free-tier-visual { position: relative; z-index: 2; display: flex; justify-content: center; margin-bottom: 24px; order: -1; }
    .free-tier-icon-circle {
        width: 80px; height: 80px; border-radius: 50%;
        background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(91, 88, 216, 0.05));
        border: 1px solid rgba(167, 139, 250, 0.4);
        display: flex; align-items: center; justify-content: center; color: #d8b4fe;
        box-shadow: 0 0 30px rgba(91, 88, 216, 0.3), inset 0 0 15px rgba(167, 139, 250, 0.15);
        animation: float 3.5s ease-in-out infinite;
    }
    .free-tier-icon-circle svg { width: 36px; height: 36px; }
    
    .free-tier-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
    .free-tier-badge {
        display: inline-flex; align-items: center; gap: 6px;
        background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.3);
        color: #d8b4fe; padding: 4px 12px; border-radius: 9999px;
        font-size: 11px; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 16px;
    }
    .free-tier-title { font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.35; letter-spacing: -0.02em; word-break: keep-all; }
    .free-tier-desc { font-size: 15px; color: var(--gray-400); font-weight: 300; line-height: 1.6; word-break: keep-all; }

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

    .cta-section {
        padding: 80px 0; background: linear-gradient(to bottom right, var(--primary-dark), var(--primary));
        position: relative; overflow: hidden; text-align: center;
    }
    .cta-title { font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 16px; word-break: keep-all; }
    .cta-desc { font-size: 15px; color: rgba(255,255,255,0.8); margin-bottom: 32px; font-weight: 300; word-break: keep-all; }
    
    .btn-white-large {
        display: inline-flex; align-items: center; justify-content: center;
        width: 100%; padding: 16px; font-size: 16px; font-weight: 800;
        color: var(--primary); background-color: var(--white);
        border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }
    
    .cta-decor-1 { position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background-color: rgba(255,255,255,0.05); }
    .cta-decor-2 { position: absolute; bottom: -60px; left: -60px; width: 150px; height: 150px; border-radius: 50%; background-color: rgba(255,255,255,0.05); }

    .ui-mockup {
        border-radius: 16px; box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.5); overflow: hidden; background-color: var(--white);
    }

    .hero-mockup-wrapper { margin-top: 40px; position: relative; }
    .hero-mockup-inner { background-color: var(--light-gray); border: 1px solid var(--gray-200); }

    .mockup-app-layout { padding: 16px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
    .mockup-panel-main { background-color: var(--white); border-radius: 12px; padding: 20px 16px; border: 1px solid var(--gray-200); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

    .mockup-tabs { display: flex; gap: 4px; margin-bottom: 20px; background-color: var(--gray-50); padding: 4px; border-radius: 8px; }
    .mockup-tab { flex: 1; text-align: center; padding: 8px 0; font-size: 11px; border-radius: 6px; }
    .mockup-tab:not(.active) { color: var(--gray-500); font-weight: 500; }
    .mockup-tab.active { font-weight: 700; color: var(--dark); background-color: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid var(--gray-200); }

    .mockup-input-area { border: 1px dashed var(--gray-300); border-radius: 8px; padding: 12px; margin-bottom: 20px; background-color: rgba(249, 250, 251, 0.5); }
    .mockup-input-group { display: flex; flex-direction: column; gap: 8px; } 
    .mockup-input { width: 100%; border: 1px solid var(--gray-300); border-radius: 6px; padding: 10px; font-size: 12px; background-color: var(--white); color: var(--gray-400); }
    .mockup-btn-add { background-color: var(--primary); color: var(--white); font-size: 13px; font-weight: 700; padding: 10px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 4px; }

    .mockup-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .mockup-list-title { font-weight: 700; color: var(--dark); font-size: 13px; }
    .mockup-count-badge { background-color: #eef2ff; color: var(--primary); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 9999px; }

    .mockup-thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; position: relative; border: 1px solid var(--gray-200); }
    .mockup-thumb-status { position: absolute; top: 0; left: 0; width: 100%; background-color: rgba(0,0,0,0.6); color: var(--white); font-size: 9px; padding: 3px 0; text-align: center; z-index: 10; font-weight: 500; }
    .mockup-thumb img { width: 100%; height: 100%; object-fit: cover; }

    .mockup-btn-start { width: 100%; background-color: var(--primary); color: var(--white); font-size: 14px; font-weight: 700; padding: 14px; border-radius: 8px; margin-top: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); text-align: center; }

    .mini-ui { background-color: var(--white); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
    .mini-ui-header { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--gray-100); padding-bottom: 12px; }
    .mini-ui-icon-wrap { width: 32px; height: 32px; border-radius: 50%; background-color: rgba(91, 88, 216, 0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); }
    .mini-ui-icon-wrap svg { width: 16px; height: 16px; }
    .mini-ui-step { font-size: 10px; color: var(--gray-500); font-weight: 700; margin-bottom: 2px; }
    .mini-ui-title { font-size: 13px; font-weight: 700; color: var(--dark); }
    
    .mini-ui-row { display: flex; gap: 8px; align-items: stretch; }
    .mini-ui-url { flex: 1; background-color: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 4px; padding: 8px; font-size: 11px; color: var(--gray-400); font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5;}
    .mini-ui-btn { background-color: var(--primary); color: var(--white); border-radius: 4px; padding: 0 10px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
    
    .mini-ui-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
    .mini-ui-grid-item { aspect-ratio: 1; background-color: var(--gray-100); border-radius: 4px; border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--gray-400); }
    .mini-ui-grid-loading { aspect-ratio: 1; background-color: rgba(91, 88, 216, 0.1); border-radius: 4px; border: 1px dashed var(--primary); display: flex; align-items: center; justify-content: center; }
    .mini-ui-grid-loading svg { color: var(--primary); width: 16px; height: 16px; animation: pulse 2s infinite; }

    .stack-ui-container { position: relative; width: 100%; aspect-ratio: 1 / 1.1; margin-top: 20px; }
    .stack-ui-bg, .stack-ui-fg { position: absolute; width: 88%; padding: 12px; background-color: var(--light-gray); }
    .stack-ui-bg { top: 0; left: 0; z-index: 10; transform: scale(0.95); opacity: 0.6; }
    .stack-ui-fg { bottom: 0; right: 0; z-index: 20; border: 1px solid rgba(91, 88, 216, 0.2); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); }

    .stack-card { background-color: var(--white); border-radius: 10px; padding: 16px; border: 1px solid var(--gray-100); }
    .stack-card.active { border-color: rgba(91, 88, 216, 0.3); }
    .stack-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
    .stack-title { font-size: 13px; font-weight: 700; color: var(--dark); }
    .stack-link { font-size: 10px; color: var(--gray-400); }
    
    .stack-info { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
    .stack-checkbox-active { width: 14px; height: 14px; background-color: var(--primary); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--white); }
    
    .stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stack-item { border-radius: 6px; overflow: hidden; border: 1px solid var(--gray-100); position: relative; }
    .stack-item.active { border: 2px solid var(--primary); }
    .stack-item-img-wrap { aspect-ratio: 1; position: relative; background-color: var(--gray-100); }
    .stack-item-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
    .stack-item-check { position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; border: 1px solid rgba(255,255,255,0.8); background-color: rgba(0,0,0,0.2); border-radius: 3px; }
    .stack-item-check.active { border: none; background-color: var(--primary); display: flex; align-items: center; justify-content: center; color: var(--white); }

    .stack-download-btn { margin-top: 16px; display: flex; justify-content: center; }
    .stack-download-inner { background-color: var(--dark); color: var(--white); font-size: 11px; font-weight: 700; padding: 10px 20px; border-radius: 9999px; display: flex; align-items: center; gap: 6px; }

    .zoom-modal-ui { background-color: var(--white); border: 1px solid var(--gray-200); display: flex; flex-direction: column; overflow: hidden; }
    .zoom-header { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--gray-200); }
    .zoom-controls { display: flex; align-items: center; gap: 6px; background-color: var(--gray-100); border-radius: 4px; padding: 4px; margin: 0 auto; }
    .zoom-btn-small { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 3px; color: var(--gray-500); font-weight: 700; font-size: 14px; }
    .zoom-text { font-size: 11px; font-weight: 700; color: var(--dark); padding: 0 4px; }
    .zoom-text-primary { font-size: 11px; font-weight: 700; color: var(--primary); padding: 0 4px; }
    .zoom-divider { width: 1px; height: 10px; background-color: var(--gray-300); margin: 0 2px; }
    .zoom-close { width: 20px; height: 20px; border-radius: 50%; background-color: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-500); font-size: 10px; }
    
    .zoom-body { background-color: var(--gray-50); padding: 30px 20px; display: flex; justify-content: center; border-bottom: 1px solid var(--gray-200); }
    .zoom-img { width: 100%; box-shadow: 0 4px 10px rgba(0,0,0,0.05); background-color: var(--white); border-radius: 4px; }
    
    .zoom-footer { padding: 12px; display: flex; justify-content: center; background-color: var(--white); }
    .zoom-btn-download { background-color: var(--primary); color: var(--white); font-size: 13px; font-weight: 700; padding: 10px 32px; border-radius: 9999px; display: flex; align-items: center; gap: 6px; }

    .pattern-bg {
        position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.05;
        background-image: radial-gradient(var(--white) 1px, transparent 1px);
        background-size: 16px 16px;
    }

    .reveal {
        opacity: 0; transform: translateY(20px); 
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.active { opacity: 1; transform: translateY(0); }
    
    .delay-100 { transition-delay: 0.1s; }
    .delay-200 { transition-delay: 0.2s; }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: .5; }
    }
}
