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

:root {
  --green: #1D9E75;
  --green-light: #E1F5EE;
  --green-dark: #0F6E56;
  --text: #111;
  --text-muted: #666;
  --border: #e5e5e5;
  --bg: #fff;
  --bg-2: #f8f8f6;
  --radius: 12px;
  --radius-sm: 8px;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; }

.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* NAV */
.navbar { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 30px; height: 30px; background: var(--green); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-text { font-size: 17px; color: var(--text); }
.logo-text strong { font-weight: 700; color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.btn-nav { background: var(--green); color: white !important; padding: 7px 16px; border-radius: 20px; font-weight: 500; font-size: 13px; transition: opacity .15s; }
.btn-nav:hover { opacity: .88; }

/* HERO */
.hero { background: var(--bg-2); padding: 64px 20px 0; text-align: center; }
.hero-inner { max-width: 600px; margin: 0 auto; }
.hero-badge { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); color: var(--text); margin-bottom: 16px; }
.hero-sub { font-size: 17px; color: var(--text-muted); max-width: 480px; margin: 0 auto; line-height: 1.7; }

/* TOOL SECTION */
.tool-section { background: var(--bg-2); padding: 40px 20px 80px; }
.tool-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px; max-width: 620px; margin: 0 auto; }

/* DROP ZONE */
.drop-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 48px 24px; text-align: center; cursor: pointer; transition: all .2s; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--green); background: var(--green-light); }
.drop-icon { width: 56px; height: 56px; background: var(--green-light); border-radius: 14px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.drop-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.drop-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.drop-sub span { color: var(--green); text-decoration: underline; cursor: pointer; }
.drop-formats { font-size: 12px; color: #aaa; }
#file-input { display: none; }

/* FILE CARD */
.file-card { display: none; margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.file-row { display: flex; align-items: center; gap: 12px; }
.file-icon-wrap { width: 38px; height: 38px; background: var(--green-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.remove-btn { background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; padding: 4px; line-height: 1; }
.remove-btn:hover { color: var(--text); }
.progress-wrap { margin-top: 12px; display: none; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.progress-bg { height: 4px; background: #f0f0f0; border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--green); border-radius: 2px; width: 0%; transition: width .3s; }

/* QUALITY */
.quality-section { display: none; margin-top: 20px; }
.quality-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.q-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 12px; cursor: pointer; transition: all .15s; }
.q-card:hover { border-color: #bbb; }
.q-card.active { border-color: var(--green); background: var(--green-light); }
.q-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-bottom: 6px; letter-spacing: .03em; text-transform: uppercase; }
.badge-low { background: #EAF3DE; color: #3B6D11; }
.badge-med { background: var(--green-light); color: var(--green-dark); }
.badge-high { background: #FAEEDA; color: #633806; }
.q-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.q-card.active .q-name { color: var(--green-dark); }
.q-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.q-card.active .q-desc { color: var(--green); }

/* COMPRESS BTN */
.compress-btn { display: none; width: 100%; margin-top: 20px; padding: 14px; border: none; border-radius: var(--radius); background: var(--green); color: white; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.compress-btn:hover { opacity: .88; }
.compress-btn:disabled { opacity: .5; cursor: not-allowed; }

/* RESULT */
.result-card { display: none; margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.result-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.result-badge { background: var(--green-light); color: var(--green-dark); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.result-label { font-size: 14px; color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat { background: var(--bg-2); border-radius: var(--radius-sm); padding: 12px; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 22px; font-weight: 700; }
.stat-value.green { color: var(--green-dark); }
.dl-btn { width: 100%; padding: 13px; border-radius: var(--radius); border: 1.5px solid var(--green); background: white; color: var(--green); font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; margin-bottom: 10px; }
.dl-btn:hover { background: var(--green-light); }
.compress-another { width: 100%; padding: 10px; border-radius: var(--radius); border: 1px solid var(--border); background: white; color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all .15s; }
.compress-another:hover { color: var(--text); border-color: #bbb; }

/* TRUST BAR */
.trust-bar { display: flex; justify-content: center; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }

/* HOW IT WORKS */
.how-it-works { padding: 80px 20px; }
.how-it-works h2 { text-align: center; font-size: 28px; margin-bottom: 48px; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 16px; flex-wrap: wrap; }
.step { text-align: center; max-width: 180px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: white; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.step-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.step-arrow { font-size: 24px; color: var(--border); margin-top: 20px; }

/* TOOLS SECTION */
.tools-section { background: var(--bg-2); padding: 80px 20px; }
.tools-section h2 { text-align: center; font-size: 28px; margin-bottom: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.coming-soon-label { font-size: 12px; font-weight: 600; background: #f0f0f0; color: #888; padding: 4px 10px; border-radius: 20px; vertical-align: middle; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; max-width: 720px; margin: 0 auto; }
.tool-tile { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; position: relative; }
.active-tool { border-color: var(--green); }
.tool-tile-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.tool-tile-icon.green { background: var(--green); }
.tool-tile-icon.gray { background: #ccc; }
.tool-tile-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tool-tile-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.tool-tile-badge { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; }
.tool-tile-badge:not(.soon) { background: var(--green-light); color: var(--green-dark); }
.tool-tile-badge.soon { background: #f0f0f0; color: #999; }

/* FAQ */
.faq-section { padding: 80px 20px; }
.faq-section h2 { text-align: center; font-size: 28px; margin-bottom: 40px; }
.faq-list { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.faq-q { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 32px 20px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: #aaa; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .tool-card { padding: 20px 16px; }
  .quality-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .nav-links a:not(.btn-nav) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
