.tool-hero { background: var(--gray-50); padding: 100px 0 60px; text-align: center; position: relative; overflow: hidden; }
    .tool-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: #e0e7ff; color: #3730a3;
      border: 1px solid #c7d2fe;
      border-radius: 999px;
      padding: 6px 14px; font-size: 13px; font-weight: 600;
      margin-bottom: 20px;
    }
    .tool-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }

    .tool-hero h1 {
      font-size: clamp(2rem, 5.5vw, 3.5rem);
      font-weight: 900;
      line-height: 1.1;
      color: var(--gray-900);
      letter-spacing: -1.5px;
      margin-bottom: 18px;
    }
    .text-gradient {
      background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .tool-hero p.subtitle {
      font-size: clamp(15px, 2.5vw, 18px);
      color: var(--gray-600);
      max-width: 600px;
      margin: 0 auto 28px;
      line-height: 1.65;
    }

    .trust-row {
      display: flex; flex-wrap: wrap; justify-content: center;
      gap: 10px; margin-bottom: 40px;
    }
    .trust-pill {
      display: inline-flex; align-items: center; gap: 6px;
      background: white; border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--gray-700);
      box-shadow: var(--shadow-sm);
    }
    .trust-pill svg { color: #4f46e5; }

    .app-container { max-width: 1180px; margin: 0 auto 40px; background: white; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 12px 44px rgba(79,70,229,0.08); overflow: hidden; text-align: left; }

    /* ── Top bar: input tabs + sample/clear ── */
    .app-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; }
    .app-bar--top { border-bottom: 1px solid var(--border); flex-wrap: wrap; }
    .app-bar__spacer { flex: 1; }
    .input-tabs { display: flex; gap: 6px; }
    .input-tab { appearance: none; border: none; background: transparent; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--gray-500); padding: 9px 16px; border-radius: 10px; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 8px; }
    .input-tab:hover { color: var(--gray-800); background: var(--gray-50); }
    .input-tab.active { color: #4f46e5; background: #eef2ff; }
    .input-tab svg { width: 16px; height: 16px; }
    .link-btn { appearance: none; border: 1px solid var(--border); background: #fff; color: var(--gray-600); font-family: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: all .15s; }
    .link-btn:hover { background: #eef2ff; border-color: #c7d2fe; color: #4f46e5; }

    /* ── Mobile Code/Preview view switch (hidden on desktop) ── */
    .view-switch { display: none; gap: 6px; padding: 12px 14px 0; }
    .view-switch button { flex: 1; appearance: none; border: 1px solid var(--border); background: #fff; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--gray-500); padding: 10px; border-radius: 10px; cursor: pointer; }
    .view-switch button.active { background: #4f46e5; color: #fff; border-color: #4f46e5; }

    /* ── Workspace: editor | preview ── */
    .workspace { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
    .pane { display: flex; flex-direction: column; min-width: 0; }
    .pane--editor { border-right: 1px solid var(--border); position: relative; }
    .pane__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); background: #fbfbfe; }
    .pane__head h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin: 0; }
    .pane__head .dims { font-size: 11px; font-weight: 700; color: var(--gray-400); font-family: ui-monospace, monospace; }

    #html-input { flex: 1; width: 100%; min-height: 360px; border: none; resize: none; padding: 18px; font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13px; line-height: 1.65; color: #1e293b; background: #fbfbfe; tab-size: 2; }
    #html-input:focus { outline: none; background: #fff; }

    /* Upload dropzone */
    .upload-area { flex: 1; margin: 18px; padding: 40px 24px; display: none; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #c7d2fe; border-radius: 16px; text-align: center; cursor: pointer; transition: all 0.2s; background: #f5f6ff; }
    .upload-area:hover, .upload-area.dragover { background: #e0e7ff; border-color: #4f46e5; }
    .upload-icon-wrap { width: 60px; height: 60px; background: #c7d2fe; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: #4338ca; }
    .upload-area h3 { font-size: 17px; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; }
    .upload-area p { color: var(--gray-500); margin-bottom: 18px; font-size: 13.5px; }
    .upload-area .btn { background: #4f46e5; color: white; padding: 12px 28px; border-radius: 11px; font-weight: 700; display: inline-block; font-size: 14px; }

    /* Live preview */
    .pane--preview { background: #eef1f6; }
    .preview-wrap { flex: 1; overflow: auto; padding: 22px; display: flex; align-items: flex-start; justify-content: center;
      background:
        linear-gradient(45deg, #dfe4ec 25%, transparent 25%),
        linear-gradient(-45deg, #dfe4ec 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #dfe4ec 75%),
        linear-gradient(-45deg, transparent 75%, #dfe4ec 75%);
      background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0px; }
    #preview-frame { width: 100%; border: none; background: transparent; display: block; }
    .preview-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 320px; color: var(--gray-400); text-align: center; padding: 30px; }
    .preview-empty svg { margin-bottom: 14px; opacity: .6; }
    .preview-empty p { font-size: 14px; font-weight: 600; max-width: 240px; }

    /* ── Bottom bar: settings + export ── */
    .app-bar--bottom { border-top: 1px solid var(--border); flex-wrap: wrap; gap: 18px; padding: 16px; background: #fbfbfe; align-items: flex-end; }
    .settings { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; flex: 1; }
    .set { display: flex; flex-direction: column; gap: 7px; }
    .set > label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); display: flex; align-items: center; gap: 6px; }
    .set > label b { color: #4f46e5; font-weight: 800; }
    .custom-select { padding: 9px 30px 9px 12px; border: 1px solid var(--border); border-radius: 9px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--gray-900); background: white; appearance: none; background-image: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>'); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
    .custom-select:focus { outline: none; border-color: #4f46e5; }
    .seg { display: inline-flex; background: var(--gray-100); border-radius: 9px; padding: 3px; gap: 3px; }
    .seg button { appearance: none; border: none; background: transparent; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--gray-500); padding: 7px 18px; border-radius: 7px; cursor: pointer; transition: all .15s; }
    .seg button.active { background: #fff; color: #4f46e5; box-shadow: var(--shadow-sm); }
    input[type="range"] { width: 130px; accent-color: #4f46e5; cursor: pointer; }
    .color-row { display: flex; align-items: center; gap: 9px; }
    input[type="color"] { width: 42px; height: 38px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; padding: 4px; }
    .color-hex { font-size: 12.5px; font-weight: 600; color: var(--gray-500); font-family: ui-monospace, monospace; }

    .export { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 240px; }
    .result-readout { font-size: 12px; color: var(--gray-500); line-height: 1.45; min-height: 16px; }
    .result-readout strong { color: var(--gray-800); }
    .export__buttons { display: flex; gap: 10px; }
    .btn-process { flex: 1; padding: 13px 18px; background: linear-gradient(135deg, #4f46e5, #4338ca); color: white; border: none; border-radius: 11px; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: opacity 0.2s, transform .1s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
    .btn-process:hover { opacity: 0.93; }
    .btn-process:active { transform: translateY(1px); }
    .btn-process:disabled { opacity: 0.55; cursor: not-allowed; }
    .btn-secondary { padding: 13px 16px; background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; border-radius: 11px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
    .btn-secondary:hover { background: #e0e7ff; }
    .btn-secondary:disabled { opacity: .55; cursor: not-allowed; }

    .spinner-pro { animation: rotate 2s linear infinite; width: 18px; height: 18px; flex-shrink: 0; }
    .spinner-pro .path { stroke: rgba(255,255,255,0.9); stroke-linecap: round; animation: dash 1.5s ease-in-out infinite; }
    .btn-secondary .spinner-pro .path { stroke: #4338ca; }
    @keyframes rotate { 100% { transform: rotate(360deg); } }
    @keyframes dash {
      0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
      50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
      100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
    }

    /* ── Responsive ── */
    @media (max-width: 980px) {
      .app-bar--bottom { flex-direction: column; align-items: stretch; gap: 20px; }
      .settings { width: 100%; flex: none; justify-content: flex-start; }
      .export { width: 100%; min-width: 0; align-items: stretch; }
      .export__buttons { display: flex; width: 100%; }
    }
    @media (max-width: 880px) {
      .app-container { border-radius: 16px; }
      .view-switch { display: flex; }
      .workspace { grid-template-columns: 1fr; }
      .pane--editor { border-right: none; }
      .pane { display: none; }
      .pane.is-active { display: flex; }
      #html-input { min-height: 300px; }
      .preview-wrap { min-height: 300px; }
    }
    @media (max-width: 520px) {
      .app-bar { padding: 12px; }
      .input-tab { padding: 9px 12px; font-size: 13px; }
      .settings { gap: 16px; }
      input[type="range"] { width: 100%; min-width: 100px; }
      .set { flex: 1 1 calc(50% - 16px); min-width: 130px; }
      .custom-select { width: 100%; }
      .seg { width: 100%; display: flex; }
      .seg button { flex: 1; }
      .export__buttons { flex-direction: column; }
    }

    /* ===== MODERN EDITORIAL STYLES (GOLD STANDARD) ===== */
    .how-section { padding: 80px 0; background: white; border-top: 1px solid var(--border); }
    .section-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 12px; }
    .section-title { font-size: clamp(24px, 5vw, 36px); font-weight: 800; color: var(--gray-900); margin-bottom: 16px; letter-spacing: -.8px; }
    .section-desc { font-size: 16px; color: var(--gray-500); max-width: 580px; margin: 0 auto 56px; line-height: 1.65; }

    .process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .process-card { background: var(--gray-50); border: 1px solid var(--border); border-radius: 20px; padding: 36px 28px; transition: all .25s ease; text-align: left; }
    .process-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); background: white; border-color: var(--primary-light); }
    .process-num { width: 48px; height: 48px; border-radius: 14px; background: #e0e7ff; color: #4338ca; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
    .process-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
    
    @media (max-width: 900px) {
      .process-grid { grid-template-columns: 1fr; gap: 20px; }
    }
    .step-card p { font-size: 14.5px; color: var(--gray-500); line-height: 1.6; }

    /* ===== FEATURES STRIP ===== */
    .features-strip { background: var(--gray-900); padding: 40px 0; margin-top: 60px; }
    .features-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .feature-item { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-right: 1px solid rgba(255,255,255,0.1); text-align: left; }
    .feature-item:last-child { border-right: none; }
    .feature-item__icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(99,102,241,0.18); display: flex; align-items: center; justify-content: center; color: #a5b4fc; flex-shrink: 0; }
    .feature-item h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 2px; }
    .feature-item p { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 0; line-height: 1.4; }

    @media (max-width: 1024px) { .features-strip__grid { grid-template-columns: repeat(2, 1fr); } .feature-item:nth-child(2) { border-right: none; } }
    @media (max-width: 640px) { .features-strip__grid { grid-template-columns: 1fr; } .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); } .feature-item:last-child { border-bottom: none; } }

    /* ===== 2026 SEO & USE CASES ===== */
    .seo-modern { background: #fff; padding: 100px 0; position: relative; }
    .seo-modern::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
    .seo-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
    .seo-header { text-align: center; margin-bottom: 72px; }
    .seo-header h2 { font-size: clamp(32px, 5vw, 46px); font-weight: 900; color: var(--gray-900); letter-spacing: -1.2px; margin-bottom: 24px; }
    .seo-header p { font-size: clamp(18px, 2.5vw, 22px); color: var(--gray-500); line-height: 1.6; max-width: 760px; margin: 0 auto; }

    .seo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 80px; }
    @media(max-width: 900px) { .seo-split { grid-template-columns: 1fr; gap: 40px; } }
    .seo-split-content h3 { font-size: 28px; font-weight: 800; color: var(--gray-900); margin-bottom: 24px; letter-spacing: -0.5px; }
    .seo-split-content p { font-size: 17px; color: var(--gray-600); line-height: 1.8; margin-bottom: 20px; }

    .mobile-highlight-box { background: linear-gradient(145deg, #4f46e5 0%, #7c3aed 100%); border-radius: 24px; padding: 48px; color: white; box-shadow: 0 24px 48px rgba(79, 70, 229, 0.25); position: relative; overflow: hidden; }
    .mobile-highlight-box::after { content: ''; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.15), transparent); }
    .mobile-highlight-box h3 { font-size: 28px; font-weight: 900; color: white; margin-bottom: 20px; }
    .mobile-highlight-box p { font-size: 18px; color: rgba(255,255,255,0.9); line-height: 1.7; margin-bottom: 0; }

    .seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-bottom: 80px; }
    .seo-card { background: var(--gray-50); border: 1px solid var(--border); border-radius: 20px; padding: 40px 32px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    .seo-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.06); background: white; border-color: #4f46e5; }
    .seo-card-icon { width: 56px; height: 56px; border-radius: 14px; background: #eef2ff; color: #4f46e5; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
    .seo-card h3 { font-size: 22px; font-weight: 800; color: var(--gray-900); margin-bottom: 16px; }
    .seo-card p { font-size: 16px; color: var(--gray-600); line-height: 1.7; margin-bottom: 0; }

    .faq-modern { background: white; border: 1px solid var(--border); border-radius: 24px; padding: 48px; }
    .faq-modern h3 { font-size: 24px; font-weight: 800; margin-bottom: 32px; border-bottom: 2px solid var(--gray-100); padding-bottom: 16px;}
    .faq-item { margin-bottom: 24px; }
    .faq-item h4 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
    .faq-item p { font-size: 16px; color: var(--gray-600); line-height: 1.6; margin-bottom: 0; }

    @media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; gap: 20px; } }

    /* ===== REFINED CTA BAND ===== */
    .cta-band { background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%); padding: 80px 24px; text-align: center; color: white; position: relative; overflow: hidden; }
    .cta-band::before { content: ''; position: absolute; top: -50%; left: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%); border-radius: 50%; pointer-events: none; }
    .cta-band h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 900; color: white; margin-bottom: 16px; letter-spacing: -1px; position: relative; z-index: 1; }
    .cta-band p { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
    .btn--white { background: white; color: #4338ca; border: none; font-weight: 700; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
    .btn--white:hover { background: #f8fafc; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
