/* Antiplagiat — asymmetric, organic layout, zero AI patterns */

* { box-sizing: border-box; margin: 0; }

html { 
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: #0a0a0a;
  color: #d4cfc0;
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  background: #ff3333;
  color: #fff;
  padding: 8px 12px;
  z-index: 999;
  text-decoration: none;
}

/* Header */
.site-header {
  border-bottom: 1px solid #1a1a1a;
  background: #000;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 58px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  background: #ff3333;
  color: #000;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  border-radius: 1px;
}

.brand-dot {
  color: #ff3333;
}

.back-link {
  color: #777;
  font-size: 13px;
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid #222;
  border-radius: 2px;
  transition: all 0.12s;
}

.back-link:hover,
.back-link:focus {
  color: #fff;
  border-color: #444;
}

/* Main */
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Hero - asymmetric split */
.hero {
  padding: 68px 0 52px;
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 72px;
  align-items: start;
}

.eyebrow {
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 24px;
  max-width: 680px;
}

.lede {
  font-size: 17px;
  line-height: 1.7;
  color: #888;
  max-width: 560px;
  margin: 0;
}

/* Upload panel */
.upload-panel {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 3px;
  padding: 20px;
  margin-top: 8px;
}

.dropzone {
  border: 2px dashed #2a2a2a;
  background: #0a0a0a;
  min-height: 340px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  transition: all 0.18s;
  cursor: pointer;
  border-radius: 2px;
}

.dropzone:hover {
  border-color: #3a3a3a;
}

.dropzone.is-over {
  border-color: #ff3333;
  background: #150808;
}

.dropzone:focus-visible {
  outline: 2px solid #ff3333;
  outline-offset: 3px;
}

.file-icon {
  width: 38px;
  height: 50px;
  border: 2px solid #444;
  border-radius: 1px;
  position: relative;
  margin-bottom: 28px;
  background: #161616;
}

.file-icon:before {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  border-left: 11px solid transparent;
  border-bottom: 11px solid #444;
}

.file-icon span {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 26px;
  height: 2px;
  background: #444;
  box-shadow: 0 7px 0 #444;
}

.drop-title {
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.drop-or {
  color: #555;
  margin: 0 0 22px;
  font-size: 13px;
}

/* Buttons */
.button {
  border: 0;
  min-height: 42px;
  padding: 0 22px;
  font: 600 14px inherit;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.14s;
  letter-spacing: -0.01em;
}

.button:focus-visible {
  outline: 2px solid #ff3333;
  outline-offset: 3px;
}

.button-primary {
  background: #ff3333;
  color: #000;
  font-weight: 700;
}

.button-primary:hover {
  background: #ff4444;
  transform: translateY(-1px);
}

.button-dark {
  background: #d4cfc0;
  color: #000;
  font-weight: 700;
  margin-top: 28px;
  width: 100%;
  font-size: 15px;
}

.button-dark:not(:disabled):hover {
  background: #e8e3d5;
}

.button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
}

.file-hint {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  margin: 22px 0 0;
}

.file-hint span {
  color: #444;
}

.privacy-note {
  font-size: 11px;
  color: #555;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid #161616;
  line-height: 1.6;
}

.privacy-note span {
  color: #ff3333;
  font-size: 13px;
}

.selected-file {
  border: 1px solid #2a2a2a;
  background: #0d0d0d;
  padding: 13px 15px;
  margin: 14px 0 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 2px;
}

.selected-file strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}

.selected-file small {
  color: #555;
  margin-left: 14px;
}

/* Settings - asymmetric grid */
section {
  border-top: 1px solid #161616;
  padding: 64px 0;
}

.section-heading h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  max-width: 720px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 88px;
  margin-top: 44px;
}

.setting-group {
  border: 0;
  padding: 0;
  margin: 0;
}

.setting-group legend {
  font-weight: 700;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.check-row,
.switch-row {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-top: 1px solid #161616;
  font-size: 14px;
  color: #999;
}

.check-row:last-child,
.switch-row:last-child {
  border-bottom: 1px solid #161616;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin: 0 11px 0 0;
  accent-color: #ff3333;
  cursor: pointer;
}

.switch-row {
  justify-content: space-between;
  gap: 18px;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch-row i {
  width: 38px;
  height: 21px;
  border-radius: 11px;
  background: #1f1f1f;
  position: relative;
  flex: none;
  transition: background 0.16s;
  cursor: pointer;
}

.switch-row i:after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background: #555;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: all 0.16s;
}

.switch-row input:checked + i {
  background: #ff3333;
}

.switch-row input:checked + i:after {
  left: 20px;
  background: #000;
}

.switch-row input:focus-visible + i {
  outline: 2px solid #ff3333;
  outline-offset: 2px;
}

.switch-row label {
  cursor: pointer;
}

.settings-note {
  color: #555;
  font-size: 12px;
  margin: 26px 0 0;
  max-width: 580px;
  line-height: 1.7;
}

/* Recent section */
.recent-section {
  padding-top: 56px;
}

.section-heading.inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.text-button {
  background: transparent;
  border: 1px solid #1f1f1f;
  color: #777;
  font: 600 11px inherit;
  cursor: pointer;
  padding: 7px 11px;
  border-radius: 2px;
  letter-spacing: 0;
  transition: all 0.14s;
}

.text-button:hover {
  color: #fff;
  border-color: #333;
}

.text-button:focus-visible {
  outline: 2px solid #ff3333;
  outline-offset: 2px;
}

.recent-list {
  margin-top: 22px;
  display: grid;
  gap: 9px;
}

.recent-item {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-radius: 2px;
}

.recent-item p {
  margin: 0;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}

.recent-item small {
  color: #555;
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.recent-item button {
  border: 1px solid #1f1f1f;
  background: #0a0a0a;
  border-radius: 2px;
  padding: 7px 13px;
  cursor: pointer;
  color: #777;
  font: 600 11px inherit;
  transition: all 0.14s;
}

.recent-item button:hover {
  color: #fff;
  background: #0f0f0f;
  border-color: #333;
}

.section-intro {
  max-width: 820px;
  color: #777;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.72;
}

/* Feature grid - asymmetric, staggered */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 72px;
  margin-top: 52px;
  max-width: 980px;
}

.feature-grid article:first-child {
  grid-column: 1 / 2;
}

.feature-grid article:nth-child(2) {
  grid-column: 2 / 3;
  margin-top: 68px;
}

.feature-grid article:nth-child(3) {
  grid-column: 1 / 2;
  margin-top: -24px;
}

.feature-grid article {
  border-left: 2px solid #ff3333;
  padding-left: 18px;
}

.feature-number {
  color: #444;
  font: 600 11px "Courier New", monospace;
  letter-spacing: 0.08em;
}

.feature-grid h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 14px 0 9px;
  letter-spacing: -0.02em;
}

.feature-grid p {
  color: #777;
  font-size: 14px;
  margin: 0;
  line-height: 1.68;
}

/* Steps - vertical stack, not grid */
.steps {
  list-style: none;
  padding: 0;
  margin: 42px 0 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 720px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 20px;
  align-items: start;
  padding-left: 12px;
  border-left: 1px solid #1f1f1f;
}

.steps li:before {
  content: "0" counter(step);
  font: 600 28px "Courier New", monospace;
  color: #ff3333;
  line-height: 1;
  margin-top: -2px;
}

.steps b {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.steps span {
  grid-column: 2;
  color: #777;
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.7;
}

/* AI note - off-grid panel */
.ai-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-left: 3px solid #ff3333;
  padding: 38px 36px;
  margin-bottom: 0;
  border-radius: 2px;
  max-width: 940px;
}

.ai-note h2 {
  font: 800 32px inherit;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.03em;
}

.ai-note p:not(.eyebrow) {
  color: #888;
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
}

.ai-symbol {
  border: 2px solid #ff3333;
  color: #ff3333;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font: 700 15px Georgia, serif;
  flex: none;
  margin-top: 2px;
}

/* About */
.about-section {
  padding-bottom: 42px;
}

/* Footer */
.site-footer {
  border-top: 1px solid #161616;
  background: #000;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  font-size: 12px;
}

.site-footer a {
  color: #777;
  text-decoration: none;
  transition: color 0.14s;
}

.site-footer a:hover {
  color: #fff;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.modal-card {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  width: min(540px, 100%);
  padding: 34px;
  border-radius: 3px;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.icon-button {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  transition: color 0.14s;
  padding: 0;
  width: 30px;
  height: 30px;
}

.icon-button:hover {
  color: #fff;
}

.icon-button:focus-visible {
  outline: 2px solid #ff3333;
  outline-offset: 2px;
}

.modal h2 {
  font: 800 34px inherit;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -0.03em;
}

.progress-status {
  color: #ff3333;
  font-weight: 600;
  margin: 0 0 22px;
  font-size: 14px;
}

.progress-track {
  height: 5px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.progress-track div {
  height: 100%;
  width: 0;
  background: #ff3333;
  transition: width 0.28s;
}

.progress-detail {
  font-size: 13px;
  color: #777;
  min-height: 18px;
  margin: 14px 0 10px;
}

.stage-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.stage {
  font-size: 13px;
  color: #555;
  display: flex;
  gap: 11px;
  align-items: center;
}

.stage.done {
  color: #777;
}

.stage.done:before {
  content: "✓";
  color: #ff3333;
  font-weight: 700;
  font-size: 14px;
}

.stage.current {
  color: #fff;
  font-weight: 600;
}

.stage.current:before {
  content: "→";
  color: #ff3333;
  font-weight: 700;
  font-size: 14px;
}

.stage b {
  font-weight: 600;
}

.modal-footnote {
  border-top: 1px solid #1a1a1a;
  padding-top: 18px;
  color: #555;
  font-size: 11px;
  margin: 26px 0 0;
  line-height: 1.7;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 24px);
  opacity: 0;
  background: #ff3333;
  color: #000;
  padding: 11px 18px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.18s;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Noscript */
.noscript {
  background: #161616;
  border: 1px solid #2a2a2a;
  color: #ccc;
  padding: 15px 26px;
  text-align: center;
  font-size: 13px;
  margin: 22px 32px;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 56px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .feature-grid article:nth-child(2),
  .feature-grid article:nth-child(3) {
    margin-top: 0;
  }

  .ai-note {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  main,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .dropzone {
    min-height: 300px;
    padding: 38px 20px;
  }

  .settings-grid {
    gap: 38px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
