:root {
  color-scheme: dark;
  --bg: #07111d;
  --panel: #0e1c2b;
  --line: #253c4e;
  --ink: #edf7ff;
  --muted: #9eb4c7;
  --cyan: #40e5dd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 85% 5%, #14424b80, transparent 40%), var(--bg);
  font-family: Arial, sans-serif;
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
header,
main,
footer {
  max-width: 1280px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
}
header img {
  width: 175px;
  height: auto;
}
header nav {
  display: flex;
  gap: 22px;
  font-size: 0.8rem;
  color: var(--muted);
}
header nav a:hover {
  color: var(--cyan);
}
main {
  padding: 52px 30px;
}
h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin: 22px 0;
}
h1 em {
  font-style: normal;
  color: var(--cyan);
}
p {
  line-height: 1.75;
  color: var(--muted);
}
.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  font-weight: bold;
}
.hub-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-copy p {
  max-width: 560px;
  font-size: 1.06rem;
}
.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.pills span,
.tag {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 12px;
  font-size: 0.7rem;
  color: #b8d1e1;
}
.hub-art {
  position: relative;
  min-height: 320px;
  border: 1px solid #2b5362;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #145b65, #0a1728 65%);
  display: grid;
  place-items: center;
}
.hub-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#2b586d33 1px, transparent 1px),
    linear-gradient(90deg, #2b586d33 1px, transparent 1px);
  background-size: 26px 26px;
}
.hub-core {
  position: relative;
  padding: 27px 22px;
  text-align: center;
  border: 1px solid #46e4e2;
  border-radius: 18px;
  background: #0c2e3e;
  box-shadow: 0 0 60px #35dac82b;
}
.hub-core strong {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.hub-core small {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: 0.57rem;
  letter-spacing: 0.15em;
}
.orbit {
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px dashed #4ad6d655;
  border-radius: 50%;
  animation: orbit 45s linear infinite;
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
  top: 30px;
  left: 39px;
}
.orbit::after {
  top: auto;
  left: auto;
  bottom: 30px;
  right: 39px;
  background: #bdabff;
}
.art-label {
  position: absolute;
  font-size: 0.65rem;
  padding: 9px 12px;
  border: 1px solid #34586c;
  background: #102837;
  border-radius: 9px;
  letter-spacing: 0.06em;
}
.art-label:nth-of-type(1) {
  top: 25px;
  left: 25px;
}
.art-label:nth-of-type(2) {
  top: 30px;
  right: 20px;
}
.art-label:nth-of-type(3) {
  bottom: 28px;
  left: 22px;
}
.art-label:nth-of-type(4) {
  bottom: 30px;
  right: 25px;
}
.catalog {
  margin-top: 65px;
  scroll-margin-top: 20px;
}
.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
h2 {
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters button {
  border: 1px solid var(--line);
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  border-radius: 30px;
}
.filters button[aria-pressed="true"] {
  background: var(--cyan);
  color: #05232a;
  border-color: var(--cyan);
}
.search {
  margin: 18px 0 25px;
  max-width: 450px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tool-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #122536, #0c1928);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.tool-card:hover {
  transform: translateY(-5px);
  border-color: #3a9aab;
}
.tool-art {
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #16475a, #102131 70%);
  font-size: 3rem;
  color: var(--cyan);
  letter-spacing: -0.12em;
  font-weight: bold;
}
.tool-art::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid #49cddc44;
  border-radius: 24px;
  transform: rotate(-12deg);
}
.art-purple {
  background: radial-gradient(ellipse at center, #382954, #141e31);
  color: #c2aaff;
}
.art-blue {
  background: radial-gradient(ellipse at center, #163b64, #101e32);
  color: #7dbbff;
}
.art-amber {
  background: radial-gradient(ellipse at center, #4b3827, #182230);
  color: #ffd69d;
}
.tool-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tool-card .eyebrow {
  font-size: 0.57rem;
}
.tool-card h3 {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
}
.tool-card p {
  font-size: 0.85rem;
  margin: 14px 0 20px;
}
.card-meta {
  font-size: 0.67rem;
  color: #b2cddd;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.open-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cyan);
  font-weight: bold;
  margin-top: 20px;
  font-size: 0.85rem;
  min-height: 35px;
}
.featured {
  grid-column: span 2;
}
.featured .tool-art {
  background: linear-gradient(130deg, #174959, #0b2539);
  gap: 12px;
}
.mini-photo {
  display: block;
  width: 42px;
  height: 57px;
  background: linear-gradient(#76b9ef, #2793e6);
  border: 4px solid #e7f5ff;
  transform: rotate(-8deg);
  box-shadow: 0 4px 15px #0004;
}
.mini-photo:nth-child(even) {
  transform: rotate(7deg);
}
.trust {
  margin-top: 45px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.trust h3 {
  font-size: 0.95rem;
}
.trust p {
  font-size: 0.8rem;
}
.tool-intro {
  max-width: 800px;
}
.tool-intro h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
}
.workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.5fr);
  gap: 25px;
  margin-top: 35px;
}
.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0d1e2d;
  min-width: 0;
}
.panel h2 {
  margin: 0 0 20px;
  font-size: 1.2rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0;
  font-size: 0.82rem;
  color: #d3e7f2;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  background: #071625;
  border: 1px solid #345067;
  border-radius: 9px;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-size: 0.85rem;
}
input[type="file"] {
  font-size: 0.75rem;
}
input[type="range"] {
  padding: 10px 0;
  accent-color: var(--cyan);
}
input[type="checkbox"] {
  width: auto;
}
textarea {
  resize: vertical;
  min-height: 115px;
}
.row {
  display: flex;
  gap: 12px;
}
.row > * {
  flex: 1;
  min-width: 0;
}
button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: bold;
  min-height: 44px;
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid var(--line);
  padding: 12px 16px;
  background: #183245;
  color: #effaff;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.primary {
  background: var(--cyan);
  color: #05232a;
  border-color: transparent;
}
.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}
.status {
  font-size: 0.8rem;
  color: var(--cyan);
  min-height: 2.5em;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.status.error {
  color: #ffb5a9;
}
.preview-stage {
  padding: 18px;
  border: 1px dashed #355266;
  border-radius: 14px;
  background: repeating-conic-gradient(#122b3d 0 25%, #0b1d2b 0 50%) 50%/18px
    18px;
  min-height: 260px;
  display: grid;
  place-items: center;
}
.preview-stage canvas,
.preview-stage img {
  display: block;
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
}
.preview-stage:has(canvas[hidden]) {
  display: none;
}
.file-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.file-row strong {
  display: block;
  font-size: 0.85rem;
}
.file-row small {
  color: var(--muted);
  font-size: 0.72rem;
}
.file-row .actions {
  margin: 10px 0 0;
  gap: 6px;
}
.file-row button {
  font-size: 0.7rem;
  padding: 8px;
  min-height: 36px;
}
.result-line {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 15px;
  justify-content: space-between;
  font-size: 0.9rem;
}
.result-line strong {
  color: var(--cyan);
}
.redact-stage {
  padding: 0;
  background: #132637;
  min-height: 0;
}
.redact-stage canvas {
  cursor: crosshair;
  touch-action: none;
  max-height: none;
  width: 100%;
  height: auto;
  user-select: none;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  margin: 18px 0;
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}
footer strong {
  color: var(--ink);
}
footer a {
  color: var(--cyan);
}
:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 900px) {
  .hub-hero {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured {
    grid-column: span 2;
  }
  .workbench {
    grid-template-columns: minmax(0, 1fr);
  }
  .hub-art {
    min-height: 290px;
  }
}
@media (max-width: 600px) {
  header {
    padding: 20px;
  }
  header img {
    width: 140px;
  }
  header nav {
    gap: 14px;
    font-size: 0.72rem;
  }
  main {
    padding: 35px 18px;
  }
  .hub-hero {
    grid-template-columns: 1fr;
  }
  .hub-art {
    min-height: 275px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .featured {
    grid-column: auto;
  }
  .catalog {
    margin-top: 40px;
  }
  .trust {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .panel {
    padding: 22px;
  }
  .row {
    flex-wrap: wrap;
  }
  .row > * {
    flex-basis: 100%;
  }
  .result-line {
    flex-wrap: wrap;
  }
  .tool-card-body {
    padding: 23px;
  }
  .filters button {
    font-size: 0.7rem;
    padding: 9px 12px;
  }
  footer {
    padding: 25px 20px;
  }
  .orbit {
    width: 230px;
    height: 230px;
  }
}

.tool-arrow{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.tool-resize-icon{width:65px;height:65px;fill:none;stroke:currentColor;stroke-width:4}
