:root {
  --primary: #ff5500;
  --secondary: #8b5cf6;
  --accent: #d6f25c;
  --background: #07070a;
  --surface: #111118;
  --surface-2: #181820;
  --text-primary: #ffffff;
  --text-secondary: #a1a1b5;
  --border: rgba(255, 255, 255, 0.1);
  --success: #32d583;
  --warning: #ffe15e;
  --error: #ff4d4f;
  --paper: #f4f0e5;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --radius-sm: 8px;
  --shell: 1180px;
  color-scheme: dark;
}

[data-theme="light"] {
  --background: #f8f5ef;
  --surface: #ffffff;
  --surface-2: #f0ece4;
  --text-primary: #13111c;
  --text-secondary: #5e5b68;
  --border: rgba(19, 17, 28, 0.12);
  --shadow: 0 24px 60px rgba(19, 17, 28, 0.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 5%, rgba(255, 85, 0, 0.14), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.14), transparent 28rem);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.shell { width: min(var(--shell), calc(100% - 32px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--background) 84%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Syne, sans-serif; font-weight: 800; }
.brand img { border-radius: 11px; box-shadow: 0 10px 30px rgba(139, 92, 246, 0.22); }
.nav-panel { display: flex; align-items: center; gap: 26px; color: var(--text-secondary); font-size: 0.92rem; font-weight: 600; }
.nav-panel a:hover { color: var(--text-primary); }
.theme-toggle, .menu-toggle {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: var(--surface);
  border-radius: 999px;
}
.theme-toggle { padding: 9px 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 0.72fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0 56px;
}
.eyebrow {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  margin: 0 0 12px;
}
h1, h2, h3 { font-family: Syne, Inter, sans-serif; line-height: 1.05; margin: 0; letter-spacing: 0; }
h1 { font-size: 5.4rem; max-width: 900px; }
h2 { font-size: 3.2rem; }
h3 { font-size: 1.12rem; }
p { color: var(--text-secondary); margin: 0; }
.hero-sub { max-width: 670px; font-size: 1.24rem; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 16px 36px rgba(255, 85, 0, 0.22); }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text-primary); }
.btn.full { width: 100%; }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}
.trust-list li {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
}
.trust-list li::before { content: "OK "; color: var(--accent); font-weight: 800; }
.hero-panel, .tool-panel, .recommendation-box, .upload-zone, .empty-state, .file-card, .tool-grid article, .guide-grid article, .table-wrap, .faq-item {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel { padding: 22px; }
.panel-top { display: flex; gap: 10px; align-items: center; color: var(--text-secondary); font-weight: 700; }
.status-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 6px rgba(50, 213, 131, 0.13); }
.hero-meter { display: grid; gap: 12px; margin: 34px 0; }
.hero-meter span { height: 16px; width: var(--w); background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 999px; }
.privacy-card { background: var(--surface-2); border-radius: var(--radius-sm); padding: 18px; border: 1px solid var(--border); }
.privacy-card p { margin-top: 8px; }

section { padding: 86px 0; }
.workspace-band, .seo-band, .faq-section { background: color-mix(in srgb, var(--surface-2) 40%, transparent); border-block: 1px solid var(--border); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p:not(.eyebrow) { margin-top: 14px; font-size: 1.02rem; }
.compact { max-width: 650px; }
.upload-zone {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  outline: 0;
}
.upload-zone.dragging { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.14); }
.upload-zone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.upload-zone strong { font-family: Syne, sans-serif; font-size: 1.35rem; }
.upload-zone span { color: var(--text-secondary); }
.upload-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 18px;
  font-size: 2rem;
  font-weight: 800;
}
.empty-state { margin-top: 18px; padding: 20px; }
.empty-state h3 { margin-bottom: 8px; }
.file-list { display: grid; gap: 14px; margin-top: 18px; }
.file-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 14px; box-shadow: none; }
.file-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.file-meta { display: grid; gap: 8px; min-width: 0; }
.file-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.meta-pills span { font-size: 0.78rem; color: var(--text-secondary); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 8px; }
.file-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-btn { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); border-radius: 999px; padding: 7px 10px; font-weight: 700; }

.workspace-side { position: sticky; top: 92px; display: grid; gap: 18px; }
.tool-panel, .recommendation-box { padding: 18px; box-shadow: none; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 16px; }
.tab { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary); border-radius: 999px; min-height: 40px; font-size: 0.82rem; font-weight: 800; }
.tab.active { background: var(--primary); color: #fff; border-color: transparent; }
.control-stack { display: grid; gap: 13px; }
label { display: grid; gap: 7px; color: var(--text-secondary); font-size: 0.88rem; font-weight: 700; }
select, input[type="number"], input[type="text"] {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  padding: 0 12px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.download-manager { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.download-manager div { display: grid; gap: 8px; margin: 12px 0; }
.recommendation-box h3 { margin-bottom: 12px; }
.recommendation-box ul { margin: 0; padding-left: 18px; color: var(--text-secondary); }

.tool-grid, .guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-grid article, .guide-grid article { padding: 20px; box-shadow: none; transition: transform 0.2s ease, border-color 0.2s ease; }
.tool-grid article:hover { transform: translateY(-4px); border-color: rgba(255, 85, 0, 0.35); }
.tool-grid p, .guide-grid p { margin-top: 10px; }
.guide-grid { grid-template-columns: repeat(2, 1fr); }
.guide-grid ol { color: var(--text-secondary); padding-left: 20px; }
.table-wrap { overflow-x: auto; box-shadow: none; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 16px; border-bottom: 1px solid var(--border); }
th { color: var(--text-primary); font-family: Syne, sans-serif; }
td { color: var(--text-secondary); }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 0; overflow: clip; box-shadow: none; }
.faq-item button { width: 100%; text-align: left; padding: 18px 20px; border: 0; background: transparent; color: var(--text-primary); font-family: Syne, sans-serif; font-weight: 800; }
.faq-item div { padding: 0 20px 18px; color: var(--text-secondary); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related-grid a { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 12px 16px; color: var(--text-secondary); font-weight: 700; text-align: center; }
.site-footer { border-top: 1px solid var(--border); background: #07070a; color: #fff; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.footer-grid p { margin-top: 14px; max-width: 330px; }
.footer-grid h3 { font-size: 1rem; margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; color: #a1a1b5; margin: 8px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; color: #a1a1b5; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 34px; padding-top: 20px; font-size: 0.9rem; }
.footer-bottom a { margin-left: 14px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 960px) {
  .hero, .workspace-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  h1 { font-size: 4rem; }
  h2 { font-size: 2.7rem; }
  .workspace-side { position: static; }
  .tool-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav-panel {
    position: fixed;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
  }
  .nav-panel.open { display: flex; }
  section { padding: 58px 0; }
  .hero { padding-top: 48px; }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.1rem; }
  .hero-sub { font-size: 1.04rem; }
  .tool-grid, .guide-grid, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .file-card { grid-template-columns: 72px minmax(0, 1fr); }
  .file-card img { width: 72px; height: 72px; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; }
}

@media (max-height: 780px) {
  .hero { align-items: start; }
}
