:root {
      --primary: #f97316;
      --primary-light: #fff7ed;
      --primary-dark: #ea580c;
    }

    /* Core Hero & Badges */
    .tool-hero {
      background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 40%, #ffffff 100%);
      padding: 100px 0 60px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .tool-hero::before {
      content: ''; position: absolute; top: -120px; left: -120px;
      width: 480px; height: 480px; border-radius: 50%;
      background: radial-gradient(circle, rgba(234,88,12,.1) 0%, transparent 70%);
      pointer-events: none;
    }
    .tool-hero::after {
      content: ''; position: absolute; bottom: 0; right: -80px;
      width: 360px; height: 360px; border-radius: 50%;
      background: radial-gradient(circle, rgba(249,115,22,.10) 0%, transparent 70%);
      pointer-events: none;
    }
    .tool-hero__inner { position: relative; z-index: 1; }

    .tool-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: #ffedd5; color: #c2410c;
      border: 1px solid #fed7aa; border-radius: var(--radius-pill);
      padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
    }
    .tool-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

    .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;
    }
    .hero-gradient {
      background: linear-gradient(135deg, #ea580c, #f97316);
      -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: var(--primary); }

    /* Upload Card */
    .upload-card {
      background: white; border: 2px dashed #fed7aa; border-radius: 24px;
      padding: 48px 32px; max-width: 700px; margin: 0 auto;
      transition: all 0.2s; box-shadow: 0 10px 40px rgba(234,88,12,.08);
    }
    .upload-card:hover, .upload-card.dragover { border-color: var(--primary); background: #fff7ed; }

    .upload-zone {
      background: transparent; border: none; padding: 0; text-align: center;
      cursor: pointer; position: relative; display: block; width: 100%;
    }
    .upload-icon {
      width: 80px; height: 80px; background: #fff7ed; border-radius: 20px;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 24px; color: var(--primary); transition: transform 0.3s ease;
    }
    .upload-zone:hover .upload-icon { transform: scale(1.1) rotate(5deg); }
    .upload-title { font-size: 24px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
    .upload-sub { color: var(--text-muted); font-size: 16px; }
    .hidden-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

    /* Settings Panel */
    .settings-panel {
      background: #f8fafc; border: 1px solid var(--border); border-radius: 16px;
      padding: 24px; margin-top: 24px; text-align: left;
    }
    .settings-panel h3 { font-size: 15px; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; }
    .settings-row {
      display: flex; gap: 20px; align-items: center; margin-bottom: 16px; flex-wrap: wrap;
    }
    .settings-group { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 200px; }
    .settings-group label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
    
    .fmt-toggle { display: flex; background: white; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
    .fmt-btn {
      flex: 1; padding: 10px; border: none; background: transparent; font-size: 14px; font-weight: 600;
      color: var(--gray-500); cursor: pointer; transition: 0.2s;
    }
    .fmt-btn.active { background: var(--primary); color: white; }
    
    .form-select, .form-range {
      width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
      font-size: 14px; color: var(--gray-800); background: white; font-family: inherit;
    }
    .form-range { padding: 0; cursor: pointer; accent-color: var(--primary); }

    /* Thumbnails */
    .thumb-view { width: 100%; text-align: left; flex-direction: column; }
    .thumb-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
    .thumb-header h3 { font-size: 18px; font-weight: 800; margin: 0; }
    .thumb-header span { color: var(--text-muted); font-size: 14px; }
    
    .thumb-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 16px; max-height: 400px; overflow-y: auto; padding: 10px; margin: 0 -10px 24px;
    }
    .thumb-card {
      background: white; border: 2px solid var(--border); border-radius: 12px;
      padding: 10px; cursor: pointer; position: relative; transition: 0.2s;
      display: flex; flex-direction: column; align-items: center; gap: 8px;
    }
    .thumb-card.selected { border-color: var(--primary); background: #fff7ed; box-shadow: 0 4px 12px rgba(234,88,12,0.15); }
    
    .thumb-check {
      position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
      background: var(--gray-200); border-radius: 50%; color: white;
      display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.2s;
    }
    .thumb-card.selected .thumb-check { background: var(--primary); opacity: 1; }
    .thumb-card:hover .thumb-check { opacity: 1; }
    
    .thumb-img-wrap { width: 100%; aspect-ratio: 1; background: #f1f5f9; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .thumb-img-wrap canvas { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    .thumb-label { font-size: 12px; font-weight: 600; color: var(--gray-700); }

    /* States */
    .processing-view, .result-view { display: none; flex-direction: column; align-items: center; padding: 20px 0; width: 100%; text-align: center; }
    
    .spinner { width: 60px; height: 60px; border: 5px solid #fff7ed; border-top: 5px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 24px; }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    
    .progress-container { width: 100%; max-width: 400px; height: 8px; background: #f1f5f9; border-radius: 4px; margin: 20px 0; overflow: hidden; }
    .progress-bar { width: 0%; height: 100%; background: var(--primary); transition: width 0.3s ease; }
    .status-text { font-weight: 600; color: var(--gray-700); }

    .result-icon { width: 100px; height: 100px; background: #fff7ed; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 24px; }
    .result-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 380px; margin-top: 24px; }

    /* Features Strip */
    .features-strip { background: var(--gray-900); padding: 32px 0; }
    .features-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
    .feature-item { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-right: 1px solid rgba(255,255,255,.1); }
    .feature-item:last-child { border-right: none; }
    .feature-item__icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(249,115,22,.2); display: flex; align-items: center; justify-content: center; color: #fdba74; flex-shrink: 0; }
    .feature-item h4 { font-size: 14px; font-weight: 600; color: white; margin-bottom: 2px; }
    .feature-item p { font-size: 12px; color: rgba(255,255,255,.55); }

    /* How it works */
    .how-section { padding: 80px 0; background: var(--gray-50); }
    .section-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 12px; }
    .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .step-card { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 32px 24px; transition: all .2s; }
    .step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
    .step-num { width: 44px; height: 44px; border-radius: 14px; background: #fff7ed; color: var(--primary-dark); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
    .step-card h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
    .step-card p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

    /* Use Cases */
    .usecase-section { padding: 80px 0; background: var(--white); }
    .usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
    .usecase-card { background: var(--gray-50); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; text-align: left; transition: 0.2s; }
    .usecase-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
    .usecase-icon { width: 48px; height: 48px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 16px; box-shadow: var(--shadow-sm); }
    .usecase-card h4 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
    .usecase-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

    /* Tabbed Showcase */
    .showcase-section { padding: 100px 0; background: white; overflow: hidden; }
    .showcase-header { text-align: center; margin-bottom: 64px; }
    .showcase-header h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--gray-900); margin-bottom: 16px; }
    .showcase-header p.subtitle { font-size: 16px; color: var(--gray-500); max-width: 600px; margin: 0 auto; line-height: 1.6; }
    .showcase-grid { display: grid; grid-template-columns: 350px 1fr; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; }
    .showcase-tabs { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
    .sc-tab { padding: 24px; border-radius: 16px; border: 2px solid transparent; background: transparent; cursor: pointer; text-align: left; transition: all 0.2s; }
    .sc-tab:hover { background: var(--gray-50); box-shadow: var(--shadow-sm); }
    .sc-tab.active { background: #fff7ed; border-color: #fed7aa; box-shadow: 0 10px 25px -5px rgba(249,115,22,0.15); }
    .sc-tab h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; transition: color 0.2s; }
    .sc-tab.active h3 { color: var(--primary-dark); }
    .sc-tab p { font-size: 14px; color: var(--gray-500); margin: 0; line-height: 1.5; }
    .showcase-visual {
      position: relative; border-radius: 20px;
      box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1), 0 0 0 1px var(--border);
      background: #fff8f3; overflow: hidden; aspect-ratio: 16/10;
      display: flex; align-items: center; justify-content: center;
      padding: 32px;
    }
    .showcase-visual img {
      position: absolute; width: calc(100% - 64px); height: calc(100% - 64px);
      object-fit: contain; opacity: 0;
      transition: opacity 0.4s ease-in-out, transform 0.4s ease;
      transform: scale(0.98); pointer-events: none;
      border-radius: 12px;
      box-shadow: 0 12px 30px -5px rgba(234,88,12,0.15), 0 0 0 1px rgba(234,88,12,0.05);
    }
    .showcase-visual img.active { opacity: 1; transform: scale(1); }
    
    /* SEO Prose */
    .prose-section { padding: 80px 0; background: var(--gray-50); border-top: 1px solid var(--border); }
    .prose-wrap { max-width: 800px; margin: 0 auto; }
    .prose-wrap h2 { font-size: 30px; font-weight: 800; color: var(--gray-900); margin-bottom: 20px; }
    .prose-wrap h3 { font-size: 20px; font-weight: 700; color: var(--gray-800); margin-top: 32px; margin-bottom: 12px; }
    .prose-wrap p { font-size: 15px; color: var(--gray-600); line-height: 1.75; margin-bottom: 16px; }

    /* CTA */
    .cta-band { padding: 80px 24px; text-align: center; position: relative; overflow: hidden; }
    .cta-band::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat; pointer-events: none; }
    .cta-band h2 { font-size: clamp(24px, 4vw, 36px) !important; font-weight: 800 !important; color: white !important; margin-bottom: 16px !important; position: relative; z-index: 1; }
    .cta-band p { font-size: 16px !important; color: rgba(255,255,255,.9) !important; margin-bottom: 32px !important; position: relative; z-index: 1; }
    .cta-band .btn { position: relative; z-index: 1; }

    /* FAQ */
    .faq-section { padding: 80px 24px; background: var(--gray-50); border-top: 1px solid var(--border); }
    .faq-header { text-align: center; margin-bottom: 50px; }
    .faq-header h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
    .faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
    .faq-item { background: white; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: 0.2s; }
    .faq-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
    .faq-question { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; color: var(--gray-900); font-size: 16px; user-select: none; }
    .faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--gray-600); font-size: 15px; line-height: 1.6; }
    .faq-item.active .faq-answer { padding: 0 24px 20px 24px; max-height: 300px; }
    .faq-chevron { transition: transform 0.3s ease; color: var(--gray-400); margin-left: 12px; flex-shrink: 0; }
    .faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--primary); }

    /* Mobile Responsive */
    @media (max-width: 900px) {
      .features-strip__grid { grid-template-columns: repeat(2, 1fr); }
      .feature-item:nth-child(2) { border-right: none; }
      .steps-grid, .usecase-grid { grid-template-columns: 1fr 1fr; }
      .showcase-grid { grid-template-columns: 1fr; }
      .showcase-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
      .sc-tab { min-width: 280px; scroll-snap-align: start; }
      .showcase-visual { max-height: 400px; }
    }
    @media (max-width: 640px) {
      .tool-hero { padding-top: 80px; }
      .upload-card { padding: 32px 20px; border-radius: 20px 20px 0 0; }
      .features-strip__grid { grid-template-columns: 1fr; gap: 0; }
      .feature-item { padding: 14px 16px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
      .feature-item:last-child { border-bottom: none; }
      .steps-grid, .usecase-grid { grid-template-columns: 1fr; }
      .showcase-visual { max-height: 300px; border-radius: 12px; }
      .showcase-section { padding: 60px 0; }
    }
