:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1d2430;
  --muted: #697386;
  --line: #d9dee7;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #d9f2ef;
  --ink: #101827;
  --coral: #d85f45;
  --gold: #e3aa32;
  --warn: #a16207;
  --neon: #55f7d2;
  --terminal: #07111f;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.landing-page {
  background: #101827;
}

.docs-geek {
  background:
    linear-gradient(rgba(85, 247, 210, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 247, 210, 0.035) 1px, transparent 1px),
    #07111f;
  background-size: 34px 34px;
  color: #d9f8ef;
}

.tool-geek {
  background:
    linear-gradient(rgba(85, 247, 210, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 247, 210, 0.035) 1px, transparent 1px),
    #07111f;
  background-size: 34px 34px;
  color: #d9f8ef;
}

button,
input,
select {
  font: inherit;
}

.app {
  min-height: 100vh;
  padding: 32px;
}

.workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.tool-geek .workspace {
  width: min(1480px, 100%);
}

.page-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.page-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

h1,
h2,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.download,
.secondary,
.primary {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.landing {
  height: 100vh;
  min-height: 640px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  background: #101827;
  color: white;
  overflow: hidden;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 0;
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 4.8vw, 58px) clamp(28px, 7vw, 88px);
  background: url("/assets/hero-compression.png") center / cover no-repeat;
  isolation: isolate;
  --pointer-x: 50%;
  --pointer-y: 50%;
}

.landing-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 0;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(85, 247, 210, 0.3), transparent 20%),
    radial-gradient(circle at 72% 42%, rgba(216, 95, 69, 0.12), transparent 24%),
    linear-gradient(96deg, rgba(4, 9, 18, 0.98) 0%, rgba(5, 14, 27, 0.92) 45%, rgba(7, 17, 31, 0.52) 100%);
  transition: background 120ms ease;
}

.landing-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
  animation: gridDrift 16s linear infinite;
}

.matrix-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-hud {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-hud::before {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-hud::before {
  top: 14%;
  left: -12%;
  width: 54%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85, 247, 210, 0.9), transparent);
  box-shadow: 0 0 24px rgba(85, 247, 210, 0.38);
  animation: heroBeam 5.6s ease-in-out infinite;
}

.hero-hud span {
  position: absolute;
  display: block;
  border: 1px solid rgba(85, 247, 210, 0.2);
  background: rgba(5, 13, 24, 0.34);
  box-shadow: 0 0 18px rgba(85, 247, 210, 0.1);
}

.hero-hud span:nth-child(1) {
  display: none;
}

.hero-hud span:nth-child(2) {
  right: 31%;
  bottom: 31%;
  width: 72px;
  height: 72px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: hudFloat 6s ease-in-out infinite;
}

.hero-hud span:nth-child(3) {
  display: none;
}

.hero-orbit {
  position: absolute;
  inset: auto 8% 10% auto;
  z-index: 1;
  width: min(38vw, 430px);
  aspect-ratio: 1;
  pointer-events: none;
}

.hero-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(85, 247, 210, 0.22);
  border-radius: 50%;
  animation: orbitPulse 5s ease-in-out infinite;
}

.hero-orbit span:nth-child(2) {
  inset: 12%;
  border-color: rgba(227, 170, 50, 0.25);
  animation-delay: 0.7s;
}

.hero-orbit span:nth-child(3) {
  inset: 24%;
  border-color: rgba(216, 95, 69, 0.28);
  animation-delay: 1.4s;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: min(960px, 78vw);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #9be7df;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker::before {
  width: 34px;
  height: 22px;
  border: 1px solid var(--neon);
  border-radius: 3px;
  background:
    radial-gradient(circle at 35% 50%, var(--neon) 0 2px, transparent 2.6px),
    radial-gradient(circle at 65% 50%, var(--neon) 0 2px, transparent 2.6px),
    linear-gradient(90deg, transparent 0 6px, rgba(85, 247, 210, 0.34) 6px 8px, transparent 8px 26px, rgba(85, 247, 210, 0.34) 26px 28px, transparent 28px),
    rgba(5, 13, 24, 0.72);
  box-shadow:
    -6px 5px 0 -5px rgba(85, 247, 210, 0.86),
    6px -5px 0 -5px rgba(85, 247, 210, 0.86),
    inset 0 0 0 2px rgba(85, 247, 210, 0.12),
    0 0 18px rgba(85, 247, 210, 0.42);
  content: "";
  animation: chipPulse 2.2s ease-in-out infinite;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(46px, 7vw, 90px);
  line-height: 0.92;
  letter-spacing: 0;
}

.brand-title {
  position: relative;
  display: block;
  width: min(860px, 86vw);
  height: clamp(120px, 15vw, 188px);
  overflow: visible;
  background: transparent;
}

.brand-title canvas {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px rgba(85, 247, 210, 0.4));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 22px;
  color: rgba(226, 248, 244, 0.84);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.6;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.42);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-button {
  min-width: 132px;
  justify-content: center;
  text-align: center;
}

.landing .secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(16px);
}

.landing .secondary:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.48);
}

.landing .primary,
.landing .secondary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing .primary::after,
.landing .secondary::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.landing .primary:hover,
.landing .secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

.landing .primary:hover::after,
.landing .secondary:hover::after {
  transform: translateX(120%);
}

.workflow-strip {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px clamp(28px, 7vw, 88px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #07111f;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #d9f8ef;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(14px, 2vw, 18px);
}

.terminal-line code {
  display: inline-block;
  max-width: min(74vw, 720px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-line.is-typing code {
  text-shadow: 0 0 14px rgba(85, 247, 210, 0.28);
}

.prompt {
  color: var(--neon);
  font-weight: 800;
}

.cursor {
  flex: 0 0 auto;
  width: 9px;
  height: 20px;
  background: var(--neon);
  animation: blink 950ms steps(1) infinite;
}

.hero-metrics {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.metric-card {
  position: absolute;
  display: grid;
  gap: 6px;
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  animation: floatCard 5.5s ease-in-out infinite;
}

.metric-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  color: white;
  font-size: 24px;
  letter-spacing: 0;
}

.metric-a {
  right: 9%;
  top: 20%;
}

.metric-b {
  right: 26%;
  bottom: 23%;
  animation-delay: 1.1s;
}

.metric-c {
  right: 7%;
  bottom: 12%;
  animation-delay: 2.1s;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  background: rgba(85, 247, 210, 0.18);
}

.feature-band article {
  position: relative;
  min-height: 152px;
  overflow: hidden;
  padding: 22px 30px;
  background:
    linear-gradient(rgba(85, 247, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 247, 210, 0.035) 1px, transparent 1px),
    #07111f;
  background-size: 24px 24px;
  color: #d9f8ef;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.feature-band article::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--neon), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.feature-band article::after {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(85, 247, 210, 0.24);
  border-radius: 50%;
  content: "";
  opacity: 0.55;
}

.feature-band article:hover {
  transform: translateY(-6px);
  background-color: #091827;
}

.feature-band article:hover::before {
  transform: scaleX(1);
}

.feature-band span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
}

.feature-band span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 18px rgba(216, 95, 69, 0.75);
  content: "";
}

.feature-band h2 {
  margin: 14px 0 8px;
  color: #f7fbff;
}

.feature-band p {
  max-width: 360px;
  margin: 0;
  color: #9fbccc;
  line-height: 1.52;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

.tool-console {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(85, 247, 210, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 20%, rgba(85, 247, 210, 0.16), transparent 28%),
    rgba(10, 25, 43, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tool-console::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  border-bottom: 1px solid rgba(85, 247, 210, 0.2);
  background:
    radial-gradient(circle at 22px 17px, #ff5f56 0 5px, transparent 6px),
    radial-gradient(circle at 42px 17px, #ffbd2e 0 5px, transparent 6px),
    radial-gradient(circle at 62px 17px, #27c93f 0 5px, transparent 6px),
    rgba(6, 16, 29, 0.84);
  content: "";
}

.tool-console p {
  margin: 28px 0 8px;
  color: var(--neon);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 800;
}

.tool-console h1 {
  margin: 0;
  color: #f7fbff;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
}

.console-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.console-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(85, 247, 210, 0.22);
  border-radius: 8px;
  background: rgba(5, 13, 24, 0.62);
  color: #bfffee;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
}

.doc-page {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 32px 0;
}

.docs-geek .page-nav a {
  border-color: rgba(85, 247, 210, 0.24);
  background: rgba(10, 25, 43, 0.86);
  color: #d9f8ef;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tool-geek .page-nav a {
  border-color: rgba(85, 247, 210, 0.24);
  background: rgba(10, 25, 43, 0.86);
  color: #d9f8ef;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tool-geek .page-nav a:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.docs-geek .page-nav a:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.doc-nav {
  margin-bottom: 24px;
}

.doc-hero {
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.docs-geek .doc-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(85, 247, 210, 0.28);
  background:
    linear-gradient(135deg, rgba(85, 247, 210, 0.08), transparent 42%),
    rgba(10, 25, 43, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.docs-geek .doc-hero::before {
  display: block;
  width: calc(100% + 68px);
  height: 34px;
  margin: -34px -34px 28px;
  border-bottom: 1px solid rgba(85, 247, 210, 0.24);
  background:
    radial-gradient(circle at 22px 17px, #ff5f56 0 5px, transparent 6px),
    radial-gradient(circle at 42px 17px, #ffbd2e 0 5px, transparent 6px),
    radial-gradient(circle at 62px 17px, #27c93f 0 5px, transparent 6px),
    rgba(6, 16, 29, 0.8);
  content: "";
}

.doc-hero p {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.docs-geek .doc-hero p {
  color: var(--neon);
  font-family: Consolas, "Courier New", monospace;
}

.doc-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: 0;
}

.docs-geek .doc-hero h1 {
  color: #f7fbff;
  font-family: Consolas, "Courier New", monospace;
  text-shadow: 0 0 22px rgba(85, 247, 210, 0.16);
}

.doc-hero span {
  display: block;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.docs-geek .doc-hero span {
  color: #94b8c7;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.doc-toc {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
}

.doc-toc a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.docs-geek .doc-toc a {
  border-color: rgba(85, 247, 210, 0.2);
  background: rgba(10, 25, 43, 0.78);
  color: #bdebe0;
  font-family: Consolas, "Courier New", monospace;
}

.docs-geek .doc-toc a:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 24px rgba(85, 247, 210, 0.1);
}

.doc-toc a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.doc-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.doc-content section {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.docs-geek .doc-content section {
  border-color: rgba(85, 247, 210, 0.18);
  background: rgba(10, 25, 43, 0.86);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.doc-content h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.docs-geek .doc-content h2 {
  color: #f7fbff;
  font-family: Consolas, "Courier New", monospace;
}

.doc-content p,
.doc-content li {
  color: var(--muted);
  line-height: 1.75;
}

.docs-geek .doc-content p,
.docs-geek .doc-content li {
  color: #9fbccc;
}

.doc-content code {
  border-radius: 6px;
  background: #eef3f7;
  color: var(--ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
  padding: 2px 5px;
}

.docs-geek .doc-content code {
  background: rgba(85, 247, 210, 0.1);
  color: #bfffee;
}

.doc-content pre {
  overflow: auto;
  margin: 12px 0 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #e6edf3;
}

.docs-geek .doc-content pre {
  border: 1px solid rgba(85, 247, 210, 0.2);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 50%, transparent 50%),
    #050d18;
  background-size: 100% 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.doc-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.docs-geek .doc-content table {
  border-color: rgba(85, 247, 210, 0.18);
}

.doc-content th,
.doc-content td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.docs-geek .doc-content th,
.docs-geek .doc-content td {
  border-color: rgba(85, 247, 210, 0.14);
  color: #9fbccc;
}

.doc-content th {
  background: #f2f6f8;
}

.docs-geek .doc-content th {
  background: rgba(85, 247, 210, 0.08);
  color: #e6fff8;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 44px 44px;
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.96) rotate(0deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.04) rotate(8deg);
  }
}

@keyframes heroBeam {
  0%,
  100% {
    opacity: 0;
    transform: translateX(0) scaleX(0.45);
  }
  38%,
  62% {
    opacity: 0.86;
  }
  70% {
    opacity: 0;
    transform: translateX(180vw) scaleX(1);
  }
}

@keyframes hudBlink {
  0%,
  47%,
  100% {
    opacity: 0.34;
  }
  48%,
  52% {
    opacity: 0.95;
  }
}

@keyframes chipPulse {
  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 0 rgba(85, 247, 210, 0));
    transform: translateY(0);
  }
  50% {
    filter: brightness(1.35) drop-shadow(0 0 8px rgba(85, 247, 210, 0.45));
    transform: translateY(-0.5px);
  }
}

@keyframes hudFloat {
  0%,
  100% {
    opacity: 0.45;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(16px, -18px, 0) rotate(12deg);
  }
}

@keyframes brandNoise {
  0%,
  100% {
    opacity: 0.25;
    transform: translate(0, 0);
  }
  25% {
    opacity: 0.58;
    transform: translate(8px, -2px);
  }
  50% {
    opacity: 0.34;
    transform: translate(-4px, 3px);
  }
  75% {
    opacity: 0.62;
    transform: translate(5px, 1px);
  }
}

@keyframes brandScan {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-58px);
  }
  12%,
  72% {
    opacity: 0.82;
  }
  82% {
    opacity: 0;
    transform: translateY(72px);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.drop-panel,
.controls,
.preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tool-geek .drop-panel,
.tool-geek .controls,
.tool-geek .preview {
  border-color: rgba(85, 247, 210, 0.2);
  background:
    linear-gradient(rgba(85, 247, 210, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 247, 210, 0.025) 1px, transparent 1px),
    rgba(10, 25, 43, 0.9);
  background-size: 24px 24px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tool-geek .controls {
  position: relative;
}

.tool-geek .controls::before {
  display: block;
  margin: -4px 0 0;
  color: var(--neon);
  content: "CONFIG";
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.drop-panel {
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 24px;
  border-style: dashed;
  transition: border-color 160ms ease, background 160ms ease;
}

.drop-panel.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tool-geek .drop-panel {
  position: relative;
  overflow: hidden;
}

.tool-geek .drop-panel::after {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(85, 247, 210, 0.22);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.tool-geek .drop-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 50% 35%, rgba(85, 247, 210, 0.13), transparent 34%);
  pointer-events: none;
}

.tool-geek .drop-panel.is-over {
  border-color: var(--neon);
  background:
    linear-gradient(rgba(85, 247, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 247, 210, 0.04) 1px, transparent 1px),
    rgba(10, 35, 47, 0.94);
}

.drop-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
  text-align: center;
}

.drop-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.tool-geek .drop-copy h2 {
  color: #f7fbff;
  font-family: Consolas, "Courier New", monospace;
}

.tool-geek .drop-copy h2::before {
  color: var(--neon);
  content: "> ";
}

.tool-geek .drop-copy p {
  color: #9fbccc;
}

.upload-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 34px;
  line-height: 1;
}

.tool-geek .upload-mark {
  border: 1px solid rgba(85, 247, 210, 0.34);
  background: rgba(85, 247, 210, 0.1);
  color: var(--neon);
  box-shadow: 0 0 28px rgba(85, 247, 210, 0.14);
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary {
  min-height: 42px;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.tool-geek .primary {
  background: #0f8f83;
  color: white;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary:hover {
  background: var(--accent-dark);
}

.tool-geek .primary:hover {
  background: #10a999;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.32);
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.secondary {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  font-weight: 700;
}

.tool-geek .secondary {
  border-color: rgba(85, 247, 210, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #d9f8ef;
}

.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.tool-geek .secondary:hover {
  border-color: var(--neon);
  color: white;
  transform: translateY(-1px);
}

.full {
  width: 100%;
}

.controls {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.tool-geek label {
  color: #9fbccc;
}

label strong {
  color: var(--text);
}

.tool-geek label strong {
  color: var(--neon);
}

input[type="number"],
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: var(--text);
}

.tool-geek input[type="number"],
.tool-geek select {
  border-color: rgba(85, 247, 210, 0.22);
  background: rgba(5, 13, 24, 0.82);
  color: #e6fff8;
}

.tool-geek input[type="number"]::placeholder {
  color: #638493;
}

input:disabled {
  cursor: not-allowed;
  background: #f1f3f6;
  color: var(--muted);
}

.tool-geek input:disabled {
  background: rgba(22, 38, 53, 0.74);
  color: #638493;
}

input[type="range"] {
  accent-color: var(--accent);
}

.tool-geek input[type="range"] {
  accent-color: var(--neon);
}

.size-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.tool-geek .checkbox {
  color: #d9f8ef;
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--warn);
  font-size: 14px;
}

.tool-geek .status {
  color: #f0c05a;
}

.progress-panel {
  display: grid;
  gap: 8px;
}

.progress-panel[hidden] {
  display: none;
}

.progress-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(92, 255, 219, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(92, 255, 219, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(3, 12, 24, 0.92);
  box-shadow: inset 0 0 16px rgba(92, 255, 219, 0.16);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #37f6ca, #f0c05a 72%, #ffffff),
    #37f6ca;
  box-shadow: 0 0 16px rgba(55, 246, 202, 0.72);
  transition: width 220ms ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(217, 248, 239, 0.76);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0;
}

.progress-meta strong {
  color: #5cffdb;
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.preview {
  padding: 16px;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.preview-head h2 {
  flex: 0 0 auto;
}

.preview-head span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.tool-geek .preview-head h2 {
  color: #f7fbff;
  font-family: Consolas, "Courier New", monospace;
}

.tool-geek .preview-head h2::before {
  color: var(--neon);
  content: "# ";
}

.tool-geek .preview-head span {
  color: #9fbccc;
}

.image-frame {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, #edf0f4 25%, transparent 25%),
    linear-gradient(-45deg, #edf0f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf0f4 75%),
    linear-gradient(-45deg, transparent 75%, #edf0f4 75%);
  background-color: #fff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.tool-geek .image-frame {
  border-color: rgba(85, 247, 210, 0.18);
  background:
    linear-gradient(45deg, rgba(85, 247, 210, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(85, 247, 210, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(85, 247, 210, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(85, 247, 210, 0.08) 75%);
  background-color: #06101d;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.zip-result {
  display: grid;
  place-items: center;
  gap: 8px;
  width: min(220px, 80%);
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  text-align: center;
}

.tool-geek .zip-result {
  border-color: rgba(85, 247, 210, 0.24);
  background: rgba(5, 13, 24, 0.9);
  color: #9fbccc;
}

.zip-result strong {
  color: var(--accent-dark);
  font-size: 32px;
  letter-spacing: 0;
}

.tool-geek .zip-result strong {
  color: var(--neon);
}

.image-frame img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.download {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--text);
  color: white;
  font-weight: 700;
}

.tool-geek .download {
  background: #d85f45;
  color: white;
  box-shadow: 0 14px 30px rgba(216, 95, 69, 0.22);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .app {
    padding: 18px;
  }

  .landing {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .landing-hero {
    min-height: 58vh;
    padding: 24px;
  }

  .brand-title {
    width: min(100%, 560px);
    height: 94px;
  }

  .workflow-strip {
    min-height: 52px;
    padding: 12px 24px;
  }

  .feature-band article {
    min-height: 150px;
    padding: 22px 24px;
  }

  .tool-console {
    display: grid;
    align-items: start;
    padding: 22px;
  }

  .console-stats {
    justify-content: flex-start;
  }

  .hero-metrics {
    display: none;
  }

  .hero-orbit {
    right: -120px;
    bottom: 18%;
    width: 320px;
    opacity: 0.45;
  }

  .feature-band,
  .tool-grid,
  .preview-grid,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-page {
    width: calc(100% - 36px);
    padding: 18px 0;
  }

  .doc-toc {
    position: static;
  }
}
