@font-face {
  font-family: "Basique";
  src: url("./Basique.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

:root {
  --accent: #4cc2ff;
  --tool-height: calc(100vh - 160px);
}

* {
  box-sizing: border-box;
  transition: all 0.2s ease;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0d0f14, #050507);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
  pointer-events: none;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 42%, rgba(3, 5, 10, 0.28) 100%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 36%);
  pointer-events: none;
  z-index: -3;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 28px;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadeIn 0.8s ease;
}

.top-nav-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 18px rgba(96, 165, 250, 0.12);
}

.top-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  color: #000000;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.top-nav-button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}

body {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at top, #0d0f14, #050507);
  background-size: 140px 140px, 140px 140px, auto;
  background-position: 0 0, 0 0, center;
}

.blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.2;
  mix-blend-mode: screen;
}

.blob1 {
  background: var(--accent);
  top: 10%;
  left: 20%;
  animation: float 18s ease-in-out infinite, pulse 12s ease-in-out infinite;
}

.blob2 {
  background: #7c5cff;
  top: 50%;
  left: 60%;
  animation: float 22s ease-in-out infinite, pulse 14s ease-in-out infinite;
}

.blob3 {
  background: #00ffa3;
  top: 70%;
  left: 30%;
  animation: float 26s ease-in-out infinite, pulse 16s ease-in-out infinite;
}

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #050507;
  filter: blur(1px);
  opacity: 0.6;
}

@keyframes float {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  50% {
    transform: translate(50px, -40px) scale(1.1);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.16;
  }
  50% {
    opacity: 0.24;
  }
}

.hero {
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 96px 24px 48px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  width: min(1400px, calc(100vw - 48px));
  height: 180px;
  background:
    radial-gradient(circle at center, rgba(96, 165, 250, 0.08), transparent 62%),
    linear-gradient(to bottom, transparent 0%, rgba(10, 15, 25, 0.38) 58%, rgba(10, 15, 25, 0.82) 100%);
  filter: blur(18px);
  opacity: 0.72;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 200px;
  width: 540px;
  height: 240px;
  background: radial-gradient(circle at center, rgba(96, 165, 250, 0.15), transparent 60%);
  pointer-events: none;
  filter: blur(18px);
}

.hero-subtitle {
  max-width: 920px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 30px;
  line-height: 1.5;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-credit {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease 0.16s both;
}

#startCreating {
  margin-top: 34px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  color: #000000;
  padding: 18px 38px;
  border-radius: 16px;
  font-weight: 600;
  width: auto;
  min-width: 280px;
  font-size: 24px;
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.24);
}

#startCreating:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #22d3ee;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease;
}

.tool-container {
  display: flex;
  justify-content: flex-start;
  padding: 4px 24px 18px;
}

#generator {
  padding-top: 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#generator.visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-card {
  width: calc(100vw - 40px);
  min-height: var(--tool-height);
  max-height: none;
  border-radius: 16px;
  background: rgba(20, 20, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 18px;
  animation: fadeIn 0.8s ease;
  overflow: visible;
}

.tool-layout {
  display: grid;
  grid-template-columns: 352px 1fr;
  gap: 12px;
  height: 100%;
  align-items: stretch;
}

.sidebar {
  min-width: 0;
  padding: 0 6px 0 0;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.25s ease;
  min-height: 0;
  overflow: visible;
  padding-bottom: 4px;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-content: start;
  min-height: 0;
  grid-auto-rows: min-content;
}

.section {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  margin-bottom: 0;
  animation: sectionEnter 0.22s ease;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.control-section {
  margin-bottom: 18px;
}

.control-section h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 8px;
}

.section-primary {
  padding: 10px 10px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-secondary {
  padding: 8px 10px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-tertiary {
  padding: 8px 10px 0;
  border-radius: 14px;
  opacity: 0.84;
}

.section:first-child {
  border-top: none;
  padding-top: 0;
}

.section h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.section-description {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  line-height: 1.3;
}

.section.import h4 {
  color: #ffffff;
}

.section.base h4 {
  color: #ffffff;
}

.section.accent h4 {
  color: #ffffff;
}

.section.text h4 {
  color: #ffffff;
}

.section.borders h4 {
  color: #ffffff;
}

.section.theme h4 {
  color: #ffffff;
}

.section.presets h4 {
  color: #ffffff;
}

.section.setup h4 {
  color: #ffffff;
}

.section.workflow h4 {
  color: #ffffff;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(76, 194, 255, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card.full {
  grid-column: span 2;
}

.section .card:last-child {
  margin-bottom: 0;
}

.section.is-hidden {
  display: none;
}

.palette-card {
  opacity: 1;
  transform: translateY(0);
}

.palette-card.is-hidden {
  display: none;
}

.palette-card.is-visible {
  animation: paletteReveal 0.28s ease;
}

.tool-card.is-advanced .controls {
  gap: 5px;
}

.tool-card.is-advanced .section {
  grid-column: span 1;
}

.tool-card.is-advanced .section.setup,
.tool-card.is-advanced .section.workflow {
  grid-column: span 2;
}

.tool-card.is-advanced .section-description {
  display: none;
}

.tool-card.is-advanced .section-controls {
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.tool-card.is-advanced .card {
  padding: 9px;
  margin-bottom: 8px;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 194, 255, 0.24);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.active-highlight {
  position: relative;
  z-index: 2;
  overflow: visible !important;
}

.active-highlight::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 14px;
  border: 2px solid #22d3ee;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  pointer-events: none;
  animation: highlightPulse 1.2s ease;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.4);
  }
  50% {
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
  }
  100% {
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.4);
  }
}

.card:hover::before {
  opacity: 1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

input[type="color"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

input[type="text"] {
  width: 100%;
  height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f3f6fb;
  font-size: 12px;
  outline: none;
}

input[type="text"]::placeholder {
  color: #7c8491;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(76, 194, 255, 0.2), 0 0 10px rgba(76, 194, 255, 0.12);
}

input[type="file"] {
  width: 100%;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  font-size: 12px;
}

input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #f1f4f8;
  cursor: pointer;
}

.color-control {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 36px;
}

.color-trigger {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--swatch, #ffffff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.color-trigger:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 0 1px rgba(76, 194, 255, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.28);
}

.color-meta {
  min-width: 0;
}

.color-hex {
  width: 100%;
  height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #eff3f8;
  font-size: 12px;
  font-family: "Segoe UI", monospace;
  text-transform: uppercase;
}

.color-note {
  margin-top: 4px;
  color: #6f7886;
  font-size: 10px;
}

.palette-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.palette-swatch {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.palette-swatch:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.palette-swatch.accent-swatch {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 0 1px rgba(76, 194, 255, 0.26),
    0 0 18px rgba(76, 194, 255, 0.24);
  animation: accentPulse 0.9s ease;
}

button {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(76, 194, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px) scale(1.02);
}

button:hover::before {
  opacity: 1;
}

button:active {
  transform: scale(0.97);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.step-tab {
  padding: 8px 6px;
  font-size: 10px;
  border-radius: 8px;
}

.step-tab.active {
  background: linear-gradient(180deg, rgba(76, 194, 255, 0.16), rgba(124, 92, 255, 0.12));
  border-color: rgba(76, 194, 255, 0.42);
  box-shadow:
    inset 0 -2px 0 rgba(76, 194, 255, 0.75),
    0 0 0 1px rgba(76, 194, 255, 0.18);
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.toggle-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

#resetTheme {
  padding: 8px;
  opacity: 0.88;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.preset {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.preset:hover {
  transform: scale(1.02);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.14);
}

.preset-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.preset-visual {
  display: grid;
  grid-template-columns: 18px 1fr 22px;
  gap: 6px;
  width: 100%;
  height: 48px;
  border-radius: 10px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.preset-visual span {
  border-radius: 8px;
}

.preset-dark {
  background: linear-gradient(180deg, #111622, #07090f);
}

.preset-dark span:nth-child(1) {
  background: #14171d;
}

.preset-dark span:nth-child(2) {
  background: #0f1217;
}

.preset-dark span:nth-child(3) {
  background: #1a1d23;
}

.preset-neon {
  background: linear-gradient(180deg, #081118, #04070d);
}

.preset-neon span:nth-child(1) {
  background: #081118;
}

.preset-neon span:nth-child(2) {
  background: #071018;
}

.preset-neon span:nth-child(3) {
  background: #00ffa3;
}

.preset-light {
  background: linear-gradient(180deg, #f8fbfe, #e7edf5);
}

.preset-light span:nth-child(1) {
  background: #eef3f8;
}

.preset-light span:nth-child(2) {
  background: #ffffff;
}

.preset-light span:nth-child(3) {
  background: #4cc2ff;
}

.preset-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preset-meta strong {
  font-size: 11px;
}

.preset-meta small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.inspo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.inspo-copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  line-height: 1.4;
}

.inspo-link {
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.inspo-link:hover {
  color: #bae6fd;
}

.inspo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.inspo-palette {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.inspo-palette:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.16);
}

.inspo-palette.active {
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.22);
}

.inspo-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
  height: 42px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inspo-swatches span {
  border-radius: 6px;
}

.inspo-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inspo-meta strong {
  font-size: 11px;
}

.inspo-meta small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.sidebar-header {
  margin-bottom: 12px;
}

.download-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(52, 211, 255, 0.98), rgba(110, 133, 255, 0.96));
  color: #ffffff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(76, 194, 255, 0.28);
  position: relative;
}

.btn-primary {
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  color: #000000;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #aaaaaa;
}

.download-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #4cc2ff, #7c5cff);
  filter: blur(12px);
  opacity: 0.4;
  z-index: -1;
}

.download-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 26px rgba(76, 194, 255, 0.32), 0 10px 20px rgba(0, 0, 0, 0.18);
}

.download-btn:hover::before {
  opacity: 1;
}

#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(17, 17, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.cursor-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.spotlight {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(76, 194, 255, 0.1), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
  mix-blend-mode: screen;
}

.main-title {
  margin: 0;
  font-family: "Basique", sans-serif;
  position: relative;
  display: block;
  font-size: 92px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  animation: fadeUp 0.8s ease;
  text-shadow: 0 0 40px rgba(96, 165, 250, 0.25);
}

.main-title::after {
  content: "";
  display: block;
  width: 200px;
  height: 40px;
  margin: 10px auto 0;
  background: radial-gradient(circle, rgba(76, 194, 255, 0.3), transparent);
  filter: blur(20px);
}

.gradient-text {
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #a855f7, #22d3ee);
  background-size: 200% auto;
  animation: gradientMove 6s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@keyframes gradientMove {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200% center;
  }
}

.workspace {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  height: auto;
}

.section-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preview {
  min-width: 0;
  padding: 0 0 0 0;
  position: sticky;
  top: 24px;
  align-self: start;
  transition: opacity 0.25s ease;
  height: fit-content;
  min-height: 0;
}

.workspace-inner {
  width: 100%;
  height: auto;
}

.workspace-header {
  margin-bottom: 10px;
}

.workspace-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #edf2fb;
}

.workspace-header p {
  margin: 4px 0 0;
  color: #7f8795;
  font-size: 11px;
}

.preview-card {
  width: 100%;
  max-width: none;
  height: calc(100vh - 212px);
  min-height: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  animation: floatCard 6s ease-in-out infinite;
  overflow: hidden;
}

.preview [data-zone]:hover {
  outline: 1px solid rgba(96, 165, 250, 0.5);
  outline-offset: -1px;
  cursor: pointer;
}

.preview [data-zone].zone-active {
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.55), 0 0 18px rgba(96, 165, 250, 0.18);
}

.tool-card.is-hovering-sidebar .preview {
  opacity: 0.68;
}

.tool-card.is-hovering-preview .sidebar {
  opacity: 0.42;
}

.helios-app {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  min-height: 100%;
  height: 100%;
  transform: none;
  transform-origin: top center;
}

.menu-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-items {
  display: flex;
  gap: 10px;
  color: #98a0aa;
}

.menu-items span {
  border-radius: 3px;
  padding: 2px 4px;
}

.status-strip {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 8px;
  font-size: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.status-online {
  color: #7ff2a9;
}

.helios-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 350px;
  flex: 1;
  min-height: 0;
}

.left-panel,
.right-panel {
  width: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.center-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}

.panel-title {
  font-size: 11px;
  padding: 4px 4px 2px;
  color: #ffffff;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 7px 7px 8px;
}

.section-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.section-block label,
.preview-card-block label {
  font-size: 11px;
  letter-spacing: 0;
}

.preview-card-block {
  margin-bottom: 0;
  border-radius: 4px;
}

.compact-block {
  gap: 6px;
}

.tabs {
  display: flex;
  gap: 0;
  padding: 0 8px;
  margin-bottom: 0;
  height: 28px;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab {
  padding: 5px 10px 6px;
  border-radius: 0;
  border: none;
  font-size: 11px;
  border-bottom: 2px solid transparent;
}

.workspace-mode {
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.center-stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 260px;
  flex: 1;
  min-height: 0;
}

.display-area {
  margin: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.display-metrics {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 10px;
  padding: 0 2px 2px;
}

.display-canvas {
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #000000 !important;
  pointer-events: none;
}

.file-list {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 4px;
}

.file-item {
  padding: 5px 4px;
  font-size: 10px;
  border-radius: 3px;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.output-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr);
  min-height: 0;
}

.output-header {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.output-body {
  background: rgba(255, 255, 255, 0.045);
}

.panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.muted {
  color: #98a0aa;
}

.btn {
  width: auto;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 102px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
}

.input {
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 6px 8px;
  border-radius: 3px;
  outline: none;
  font-size: 11px;
}

.slot {
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 11px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.slot strong {
  font-size: 18px;
  min-width: 18px;
}

.slot span {
  opacity: 0.85;
}

.meta-line {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.status-badge {
  padding: 5px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
}

.success-badge {
  background: rgba(86, 230, 129, 0.18);
  color: #7ff2a9;
}

.error-badge {
  background: rgba(255, 92, 114, 0.14);
  color: #ff8a9b;
}

.subtabs {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  font-size: 11px;
}

.subtab {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  cursor: default;
}

.active-subtab {
  border-bottom-color: var(--accent);
}

.usb-card {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  padding: 8px 10px;
}

.usb-row {
  display: flex;
  gap: 16px;
  font-size: 11px;
  margin-bottom: 4px;
}

.usb-row:last-child {
  margin-bottom: 0;
}

.active {
  background: transparent;
  border: none;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes paletteReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accentPulse {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 0 0 1px rgba(76, 194, 255, 0.18),
      0 0 0 rgba(76, 194, 255, 0);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 0 0 1px rgba(76, 194, 255, 0.26),
      0 0 18px rgba(76, 194, 255, 0.24);
  }
}

@media (max-width: 1080px) {
  :root {
    --tool-height: auto;
  }

  .tool-container {
    padding: 18px 18px 36px;
  }

  .tool-card {
    width: 100%;
    min-height: auto;
    max-height: none;
    padding: 18px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .preview {
    position: static;
    top: auto;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    overflow: visible;
  }

  .workspace {
    padding: 0;
    height: auto;
  }

  .preview-card {
    height: auto;
    min-height: 600px;
  }

  .controls {
    grid-template-columns: 1fr 1fr;
  }

  .helios-body {
    grid-template-columns: 1fr;
  }

  .center-stack {
    grid-template-rows: minmax(360px, 1fr) 220px;
  }
}

@media (max-width: 720px) {
  .top-nav {
    padding: 0 16px;
  }

  .top-nav-title {
    font-size: 16px;
  }

  .top-nav-button {
    padding: 9px 14px;
  }

  .hero {
    min-height: auto;
    padding: 120px 16px 36px;
  }

  .main-title {
    font-size: 60px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .tool-container {
    padding: 12px 12px 28px;
  }

  .preset-grid {
    grid-template-columns: 1fr;
  }

  .controls,
  .section-controls {
    grid-template-columns: 1fr;
  }

  .step-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .section,
  .card.full {
    grid-column: span 1;
  }

  .helios-app {
    transform: none;
  }

  .helios-body {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
  }

  .left-panel,
  .right-panel {
    width: 100%;
  }

  .preview-card {
    animation: none;
  }

}
