
:root {
  --bg: #f7f3f4;
  --card: #ffffff;
  --text: #121526;
  --muted: #61657a;
  --border: #ebd8dd;
  --primary: #f92748;
  --primary-dark: #d12254;
  --accent: #8f1f53;
  --danger: #d12254;
  --soft: #f9eaee;
  --surface-2: #f3ecee;
  --ink: #101f3f;
  --shadow: 0 16px 34px rgba(16, 31, 63, 0.11);
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Poppins, Segoe UI, sans-serif; background: radial-gradient(circle at top, #fff 0%, var(--bg) 42%, #f1eaec 100%); color: var(--text); }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(233, 206, 214, .9); background: rgba(255, 251, 252, .9); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(180deg, var(--primary), var(--primary-dark) 56%, var(--accent)); color: white; box-shadow: 0 12px 28px rgba(209, 34, 84, .32); }
.brand-name { letter-spacing: -.02em; font-family: Poppins, sans-serif; }
.desktop-nav { display: flex; gap: 10px; align-items: center; }
.nav-group { position: relative; }
.nav-group > a { display: inline-flex; padding: 12px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.nav-group:hover > a { background: white; color: var(--text); }
.nav-dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 10px; }
.nav-group:hover .nav-dropdown { display: grid; }
.nav-dropdown a { padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--muted); }
.nav-dropdown a:hover { background: var(--soft); color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 22px; border: 1px solid transparent; cursor: pointer; font-weight: 600; transition: .2s ease; }
.button.small { padding: 10px 16px; font-size: 14px; }
.button.primary { background: linear-gradient(180deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 15px 35px rgba(209, 34, 84, .28); }
.button.primary:hover { transform: translateY(-1px); }
.button.secondary { background: white; color: var(--text); border-color: var(--border); }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.hero { padding: 92px 0 88px; background: radial-gradient(circle at top center, rgba(249, 39, 72, .18), transparent 42%), linear-gradient(180deg, rgba(143, 31, 83, .12), transparent 55%); }
.hero-inner { text-align: center; max-width: 760px; }
.eyebrow { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(249, 39, 72, .1); border: 1px solid rgba(249, 39, 72, .23); color: var(--primary-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.hero h1, .section-heading h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1; letter-spacing: -.04em; margin: 22px 0 18px; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; color: transparent; }
.hero p, .section-heading p, .tool-heading p { color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.section { padding: 88px 0; }
.section.muted { background: rgba(247, 235, 239, .72); border-top: 1px solid rgba(233, 206, 214, .9); border-bottom: 1px solid rgba(233, 206, 214, .9); }
.section-heading.center { text-align: center; margin-bottom: 48px; }
.section-heading.left { display: flex; gap: 18px; align-items: flex-start; margin: 42px 0 28px; }
.section-heading h2, .section-heading h1, .tool-heading h1 { margin: 0 0 8px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.03em; }
.feature-grid, .tool-grid { display: grid; gap: 22px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .tool-card, .tool-panel, .notice-card, .info-card, .endpoint-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.feature-card { padding: 28px; text-align: center; }
.feature-emoji { font-size: 30px; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 10px; }
.feature-card p, .tool-card p, .notice-card p, .info-card ul, .endpoint-card { color: var(--muted); }
.tool-group { margin-top: 54px; }
.group-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.group-head h3 { margin: 0 0 6px; font-size: 24px; }
.group-head p { margin: 0; color: var(--muted); }
.group-icon, .tool-icon, .dropzone-icon { display: grid; place-items: center; }
.group-icon { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(180deg, var(--primary), var(--accent)); color: white; font-size: 24px; font-weight: 700; }
.group-icon.large { width: 68px; height: 68px; font-size: 30px; }
.tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-card { padding: 26px; transition: .25s ease; }
.tool-card:hover { transform: translateY(-4px); }
.tool-card.default:hover { border-color: rgba(249, 39, 72, .35); }
.tool-card.accent:hover { border-color: rgba(143, 31, 83, .35); }
.tool-icon { width: 56px; height: 56px; border-radius: 18px; background: #ffe3ea; margin-bottom: 18px; }
.tool-card.accent .tool-icon { background: #ffe8f1; }
.file-badge { position: relative; width: 40px; height: 44px; border-radius: 9px; background: white; border: 2px solid currentColor; box-shadow: 0 10px 16px rgba(16, 31, 63, .13); }
.file-badge::after { content: ""; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; background: #ffd2de; clip-path: polygon(0 0, 100% 0, 100% 100%); border-top-right-radius: 7px; }
.file-badge-label { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); display: inline-flex; font-size: 8px; letter-spacing: .08em; font-weight: 800; line-height: 1; }
.tool-icon.tone-red { color: #f54966; }
.tool-icon.tone-blue { color: #3a7df6; }
.tool-icon.tone-amber { color: #f97316; }
.tool-icon.tone-purple { color: #a855f7; }
.tool-icon.tone-pink { color: #ec4899; }
.tool-icon.tone-teal { color: #14b8a6; }
.tool-icon.tone-indigo { color: #6366f1; }
.tool-icon.tone-orange { color: #ea580c; }
.tool-icon.tone-cyan { color: #0891b2; }
.tool-icon.tone-green { color: #16a34a; }
.tool-icon.tone-slate { color: #475569; }
.tool-card h3 { margin: 0 0 10px; font-size: 18px; }
.tool-card p { margin: 0; min-height: 72px; line-height: 1.65; }
.tool-link { display: inline-flex; margin-top: 18px; color: var(--primary-dark); font-weight: 700; }
.category-shell, .tool-shell { padding: 52px 0 82px; }
.back-link { display: inline-flex; margin-bottom: 28px; color: var(--muted); }
.tool-heading { margin-bottom: 28px; }
.tool-panel { padding: 30px; }
.notice-card, .info-card, .endpoint-card { padding: 20px; margin-bottom: 26px; }
.dropzone { position: relative; border: 2px dashed #cbd5e1; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(241,245,249,.8)); min-height: 230px; padding: 24px; display: grid; place-items: center; text-align: center; overflow: hidden; cursor: pointer; }
.dropzone.dragover { border-color: var(--primary); background: rgba(249, 39, 72, .06); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-files { width: 100%; display: grid; gap: 10px; }
.dropzone.has-files { display: block; min-height: auto; text-align: left; cursor: default; }
.dropzone.has-files [data-dropzone-default] { display: none; }
.dropzone.has-files input[type=file] { pointer-events: none; }
.dropzone-icon { width: 72px; height: 72px; border-radius: 22px; background: rgba(249, 39, 72, .12); font-size: 32px; margin-bottom: 10px; }
.dropzone p { margin: 0 0 8px; font-weight: 600; }
.dropzone small, .help { color: var(--muted); }
.message { margin-top: 18px; padding: 14px 16px; border-radius: 16px; }
.message.error { background: rgba(217,119,6,.08); border: 1px solid rgba(217,119,6,.2); color: var(--danger); }
.message.status { background: rgba(249, 39, 72, .08); border: 1px solid rgba(249, 39, 72, .2); color: var(--primary-dark); }
.message.status.loading { background: rgba(249, 39, 72, .1); border-color: rgba(249, 39, 72, .25); }
.message.status.success { background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.25); color: #166534; }
.message.status.error { background: rgba(217,119,6,.08); border: 1px solid rgba(217,119,6,.2); color: var(--danger); }
.file-list, .results { display: grid; gap: 12px; margin-top: 18px; }
.file-item, .result-item, .range-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--border); background: #fff; }
.file-item.empty { border-style: dashed; background: rgba(241,245,249,.55); }
.file-item.empty .item-actions { display: none; }
.file-item main, .result-item main { flex: 1; min-width: 0; }
.file-item h4, .result-item h4 { margin: 0 0 4px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item p, .result-item p { margin: 0; font-size: 13px; color: var(--muted); }
.result-preview { width: 88px; min-width: 88px; height: 88px; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #f4f6f8; }
.result-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.result-size { display: inline-flex; margin: 0 0 8px; padding: 6px 10px; border-radius: 999px; background: rgba(249, 39, 72, .1); color: var(--primary-dark); font-size: 12px; font-weight: 700; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.item-actions button, .item-actions a, .case-grid button { border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.action-row { margin-top: 22px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.action-row.left { justify-content: flex-start; }
.option-bar, .option-grid, .range-panel { margin-top: 18px; padding: 18px; border-radius: 20px; background: rgba(241,245,249,.7); border: 1px solid var(--border); }
.option-grid { display: grid; gap: 16px; }
.option-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-grid label, .option-bar label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.option-grid input, .option-grid select, .option-bar input, .range-row input, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 14px; padding: 12px 14px; font: inherit; background: white; }
.checkbox-label { display: flex !important; align-items: center; gap: 10px; }
.checkbox-label input { width: auto; }
.range-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.range-row { gap: 10px; }
.range-row input { max-width: 120px; }
.text-tool textarea { min-height: 240px; resize: vertical; }
.stats-grid { margin-top: 20px; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { padding: 18px; border-radius: 18px; border: 1px solid var(--border); background: rgba(241,245,249,.65); text-align: center; }
.stat-card strong { display: block; font-size: 28px; margin-bottom: 6px; }
.stat-card span { color: var(--muted); font-size: 13px; }
.case-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.info-card ul { margin: 12px 0 0 18px; padding: 0; display: grid; gap: 8px; }
.tool-notes { margin-top: 18px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(249, 39, 72, .1), rgba(143, 31, 83, .1)); border: 1px solid rgba(249, 39, 72, .22); }
.tool-notes h4 { margin: 0 0 10px; font-size: 15px; }
.tool-notes ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.dropzone.busy { opacity: .75; pointer-events: none; }
.resume-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid rgba(249, 39, 72, .24); background: linear-gradient(135deg, rgba(249, 39, 72, .08), rgba(143, 31, 83, .08)); border-radius: 20px; padding: 18px; }
.resume-card p { margin: 6px 0 0; color: var(--muted); }
.resume-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.global-loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(15, 23, 42, .36); backdrop-filter: blur(2px); }
.global-loader[hidden] { display: none !important; }
.global-loader-card { width: min(380px, calc(100% - 32px)); border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 26px; text-align: center; }
.global-loader-card h4 { margin: 12px 0 8px; font-size: 18px; }
.global-loader-card p { margin: 0; color: var(--muted); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(249, 39, 72, .18); border-top-color: var(--primary); margin: 0 auto; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.is-loading { overflow: hidden; }
.site-footer { border-top: 1px solid #26325a; margin-top: 56px; padding-top: 46px; background: linear-gradient(180deg, #16264a 0%, #101f3f 100%); color: #f6f7fb; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 26px; }
.footer-grid h3 { margin-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.footer-grid li a, .footer-bottom a, .footer-brand p, .footer-bottom p { color: rgba(233, 236, 248, .82); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { box-shadow: none; border: 1px solid rgba(255, 255, 255, .18); }
.footer-bottom { padding: 20px 0 30px; display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(255, 255, 255, .14); flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }

.tool-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 auto 34px; padding: 6px; width: fit-content; max-width: 100%; border-radius: 14px; background: #f1f3f6; border: 1px solid #e5e8ee; }
.tool-tab { border: 1px solid transparent; background: #e9edf3; color: #3f4c66; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s ease; }
.tool-tab:hover { background: #dfe6ef; }
.tool-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tool-tab.is-active { color: #fff; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); box-shadow: 0 6px 14px rgba(209, 34, 84, .22); }
.home-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-grid > [hidden] { display: none !important; }
@media (max-width: 992px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid, .footer-grid, .stats-grid, .case-grid, .option-grid.two, .option-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .desktop-nav, .site-header .button.small { display: none; }
  .hero { padding: 72px 0; }
  .tool-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 100%; border-radius: 12px; padding: 6px; }
  .tool-tab { white-space: nowrap; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { padding: 20px; }
  .tool-card h3 { font-size: 17px; }
  .tool-card p { min-height: 0; font-size: 14px; line-height: 1.45; }
  .tool-link { margin-top: 14px; font-size: 13px; }
  .tool-grid, .feature-grid, .footer-grid, .stats-grid, .case-grid, .option-grid.two, .option-grid.three { grid-template-columns: 1fr; }
  .tool-grid.home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading.left, .group-head, .range-row, .file-item, .result-item { flex-direction: column; align-items: stretch; }
  .resume-card { flex-direction: column; align-items: flex-start; }
  .resume-actions { width: 100%; }
  .range-row input { max-width: none; }
}
@media (max-width: 560px) {
  .home-grid { grid-template-columns: 1fr; }
}
