:root {
  --void: #000000;
  --black: #050505;
  --charcoal: #0a0a0a;
  --panel: #0d0d0d;
  --panel-light: #111111;

  --lime: #c4ff00;
  --lime-bright: #7cff00;

  --cyan: #00e5ff;
  --magenta: #ff00c8;

  --white: #ffffff;
  --gray: #a6a6a6;
  --muted: #666666;

  --border: rgba(255,255,255,0.09);
  --lime-border: rgba(196,255,0,0.24);

  --nexa-gradient:
    linear-gradient(
      90deg,
      var(--cyan) 0%,
      var(--magenta) 100%
    );

  --lime-gradient:
    linear-gradient(
      135deg,
      var(--lime),
      var(--lime-bright)
    );
}


/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(196,255,0,0.035),
      transparent 35%
    ),
    var(--void);

  color: var(--white);

  font-family:
    "Space Grotesk",
    sans-serif;

  overflow-x: hidden;
}


/* AMBIENT LIGHT */

.ambient {
  position: fixed;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  pointer-events: none;

  filter: blur(130px);

  opacity: 0.08;

  z-index: -1;
}

.ambient-one {
  top: -250px;
  left: -250px;

  background: var(--cyan);
}

.ambient-two {
  right: -300px;
  bottom: -250px;

  background: var(--magenta);
}


/* HEADER */

.site-header {
  border-bottom: 1px solid var(--border);

  background:
    rgba(0,0,0,0.82);

  backdrop-filter: blur(18px);

  position: sticky;
  top: 0;

  z-index: 50;
}


.nav-container {
  max-width: 1250px;

  margin: auto;

  padding: 18px 28px;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  gap: 20px;
}


.back-link {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  width: fit-content;

  color: var(--gray);

  text-decoration: none;

  font-size: 13px;

  font-weight: 600;

  transition: 0.25s ease;
}


.back-link:hover {
  color: var(--lime);

  transform: translateX(-3px);
}


.back-arrow {
  font-size: 17px;
}


.brand-lockup {
  display: flex;

  align-items: center;

  gap: 10px;

  justify-self: center;
}


.brand-mark {
  width: 34px;
  height: 34px;

  display: grid;

  place-items: center;

  border: 1px solid
    rgba(196,255,0,0.45);

  background:
    linear-gradient(
      135deg,
      rgba(196,255,0,0.1),
      transparent
    );

  transform: skew(-8deg);

  position: relative;
}


.brand-mark::after {
  content: "";

  position: absolute;

  inset: 4px;

  border: 1px solid
    rgba(255,255,255,0.05);
}


.brand-n {
  color: var(--lime);

  font-size: 17px;

  font-weight: 700;

  transform: skew(8deg);
}


.brand-copy {
  display: flex;

  flex-direction: column;

  gap: 2px;
}


.brand-copy strong {
  font-size: 12px;

  letter-spacing: 1.5px;
}


.brand-copy span {
  color: var(--lime);

  font-size: 7px;

  letter-spacing: 2px;

  font-weight: 700;
}


.header-status {
  justify-self: end;

  display: flex;

  align-items: center;

  gap: 7px;

  color: #707070;

  font-size: 9px;

  letter-spacing: 1.5px;

  font-weight: 700;
}


.status-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--lime);

  box-shadow:
    0 0 12px
    rgba(196,255,0,0.7);

  animation: pulse 2s infinite;
}


@keyframes pulse {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }

}


/* MAIN */

.main-container {
  width: min(1120px, calc(100% - 40px));

  margin: auto;

  padding: 75px 0 55px;
}


/* HERO */

.hero {
  text-align: center;

  margin-bottom: 48px;
}


.tool-eyebrow {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 12px;

  color: var(--lime);

  font-size: 9px;

  letter-spacing: 2.7px;

  font-weight: 700;

  margin-bottom: 22px;
}


.eyebrow-line {
  width: 35px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--lime)
    );
}


.eyebrow-line:last-child {
  transform: rotate(180deg);
}


.hero h1 {
  display: flex;

  justify-content: center;

  align-items: baseline;

  gap: 15px;

  font-size: clamp(44px, 7vw, 82px);

  line-height: 0.95;

  letter-spacing: -4px;
}


.gradient-text {
  background: var(--nexa-gradient);

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}


.hero-main {
  color: var(--white);
}


.hero p {
  color: #a0a0a0;

  font-size: 16px;

  line-height: 1.7;

  margin-top: 20px;

  font-weight: 500;
}


.hero p span {
  color: #5e5e5e;
}


/* TOOL CARD */

.tool-card {
  position: relative;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.035),
      rgba(255,255,255,0.008)
    );

  border: 1px solid var(--border);

  border-radius: 22px;

  padding: 24px;

  box-shadow:
    0 30px 100px rgba(0,0,0,0.5);

  overflow: hidden;
}


.tool-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(196,255,0,0.45),
      transparent
    );
}


/* CARD TOP */

.tool-card-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 2px 4px 20px;
}


.tool-name {
  display: flex;

  align-items: center;

  gap: 9px;

  font-size: 15px;

  font-weight: 700;

  letter-spacing: 0.5px;
}


.terminal-symbol {
  color: var(--lime);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 14px;
}


.tool-description {
  margin-top: 5px;

  color: #555;

  font-size: 10px;

  letter-spacing: 0.4px;
}


.engine-badge {
  display: flex;

  align-items: center;

  gap: 7px;

  padding: 7px 10px;

  border: 1px solid
    rgba(196,255,0,0.14);

  border-radius: 6px;

  color: #777;

  font-size: 8px;

  font-weight: 700;

  letter-spacing: 1.2px;
}


.engine-badge span {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: var(--lime);
}


/* EDITOR */

.editor-shell {
  border: 1px solid
    rgba(255,255,255,0.09);

  border-radius: 14px;

  background: #020202;

  overflow: hidden;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}


.editor-shell.focused {
  border-color:
    rgba(196,255,0,0.38);

  box-shadow:
    0 0 0 1px
      rgba(196,255,0,0.05),
    0 0 45px
      rgba(196,255,0,0.05);
}


.editor-toolbar {
  height: 42px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 0 13px;

  background: #080808;

  border-bottom:
    1px solid rgba(255,255,255,0.07);
}


.toolbar-left,
.toolbar-right {
  display: flex;

  align-items: center;

  gap: 7px;
}


.window-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #303030;
}


.window-dot:nth-child(1) {
  background: #444;
}


.editor-label {
  margin-left: 7px;

  color: #626262;

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 8px;

  letter-spacing: 1.2px;
}


.tool-action {
  background: transparent;

  border: 0;

  color: #777;

  font-family: inherit;

  font-size: 9px;

  font-weight: 700;

  cursor: pointer;

  padding: 6px 8px;

  border-radius: 5px;

  transition: 0.2s ease;
}


.tool-action:hover {
  color: var(--lime);

  background:
    rgba(196,255,0,0.06);
}


/* EDITOR AREA */

.editor-area {
  display: grid;

  grid-template-columns: 48px 1fr;

  min-height: 310px;

  max-height: 520px;
}


.line-numbers {
  padding: 17px 10px 17px 0;

  text-align: right;

  overflow: hidden;

  user-select: none;

  color: #303030;

  background: #020202;

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 12px;

  line-height: 1.65;
}


.line-numbers span {
  display: block;
}


#jsonInput {
  width: 100%;
  height: 100%;

  min-height: 310px;

  resize: vertical;

  border: 0;

  outline: 0;

  padding: 17px 18px;

  background: transparent;

  color: #d9d9d9;

  caret-color: var(--lime);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 13px;

  line-height: 1.65;

  tab-size: 2;
}


#jsonInput::placeholder {
  color: #292929;
}


#jsonInput::selection {
  background:
    rgba(196,255,0,0.16);
}


/* EDITOR META */

.editor-meta {
  display: flex;

  justify-content: space-between;

  padding: 8px 5px 17px;

  color: #444;

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 8px;
}


/* CONTROLS */

.controls {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 18px;

  padding: 5px 0 2px;
}


.indent-control {
  display: flex;

  align-items: center;

  gap: 9px;
}


.indent-control > span {
  color: #555;

  font-size: 8px;

  letter-spacing: 1.2px;

  font-weight: 700;
}


.indent-buttons {
  display: flex;

  gap: 4px;
}


.indent-btn {
  min-width: 34px;

  height: 29px;

  border: 1px solid
    rgba(255,255,255,0.08);

  border-radius: 6px;

  background: #090909;

  color: #686868;

  font-family: inherit;

  font-size: 9px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}


.indent-btn:hover {
  color: var(--white);

  border-color:
    rgba(196,255,0,0.25);
}


.indent-btn.active {
  color: #000;

  border-color: transparent;

  background: var(--lime-gradient);

  box-shadow:
    0 0 18px
      rgba(196,255,0,0.12);
}


/* ACTION BUTTONS */

.action-buttons {
  display: flex;

  gap: 8px;
}


.btn {
  min-height: 43px;

  padding: 0 18px;

  border-radius: 9px;

  border: 1px solid transparent;

  font-family: inherit;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}


.btn:hover {
  transform: translateY(-2px);
}


.btn:active {
  transform: translateY(0);
}


.btn-lime {
  color: #000;

  background: var(--lime-gradient);

  box-shadow:
    0 8px 25px
      rgba(196,255,0,0.09);
}


.btn-lime:hover {
  box-shadow:
    0 12px 35px
      rgba(196,255,0,0.18);
}


.btn-secondary {
  color: #b7b7b7;

  background: #090909;

  border-color:
    rgba(255,255,255,0.09);
}


.btn-secondary:hover {
  color: var(--lime);

  border-color:
    rgba(196,255,0,0.25);
}


/* PAYWALL */

.paywall {
  display: none;

  margin-top: 20px;

  padding: 26px;

  border: 1px solid transparent;

  border-radius: 16px;

  background:
    linear-gradient(#080808, #080808) padding-box,
    linear-gradient(
      100deg,
      rgba(196,255,0,0.65),
      rgba(0,229,255,0.3),
      rgba(255,0,200,0.45)
    ) border-box;

  animation:
    paywallIn 0.35s ease;
}


.paywall.visible {
  display: flex;

  align-items: center;

  gap: 22px;
}


@keyframes paywallIn {

  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


.paywall-icon {
  width: 58px;
  height: 58px;

  flex-shrink: 0;

  display: grid;

  place-items: center;

  border-radius: 14px;

  background:
    rgba(196,255,0,0.08);

  border:
    1px solid
    rgba(196,255,0,0.2);

  color: var(--lime);

  font-size: 25px;

  box-shadow:
    0 0 30px
      rgba(196,255,0,0.06);
}


.paywall-content {
  flex: 1;
}


.paywall-kicker {
  color: var(--lime);

  font-size: 8px;

  letter-spacing: 2px;

  font-weight: 700;

  margin-bottom: 6px;
}


.paywall h2 {
  font-size: 22px;

  line-height: 1.25;

  margin-bottom: 7px;
}


.paywall h2 span {
  color: var(--lime);
}


.paywall p {
  color: #777;

  font-size: 11px;

  line-height: 1.6;

  max-width: 600px;
}


.paywall-features {
  display: flex;

  flex-wrap: wrap;

  gap: 8px 16px;

  margin: 14px 0 17px;

  color: #969696;

  font-size: 9px;

  font-weight: 600;
}


.pay-button {
  width: 100%;

  margin-bottom: 9px;
}


.paywall small {
  display: block;

  text-align: center;

  color: #444;

  font-size: 8px;
}


/* RESULT */

.result-box {
  display: none;

  margin-top: 22px;

  border:
    1px solid
    rgba(255,255,255,0.08);

  border-radius: 15px;

  background: #070707;

  overflow: hidden;

  animation:
    resultIn 0.35s ease;
}


.result-box.visible {
  display: block;
}


@keyframes resultIn {

  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


.result-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 15px 16px;

  border-bottom:
    1px solid
    rgba(255,255,255,0.07);
}


.result-title {
  color: var(--lime);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1.7px;
}


.result-subtitle {
  color: #555;

  font-size: 9px;

  margin-top: 4px;
}


.result-actions {
  display: flex;

  gap: 6px;
}


.icon-action {
  border:
    1px solid
    rgba(255,255,255,0.08);

  background: #0b0b0b;

  color: #888;

  padding: 7px 10px;

  border-radius: 6px;

  font-family: inherit;

  font-size: 8px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}


.icon-action:hover {
  color: var(--lime);

  border-color:
    rgba(196,255,0,0.3);
}


/* STATUS */

.status {
  display: flex;

  align-items: center;

  gap: 8px;

  margin: 14px 16px 0;

  padding: 9px 11px;

  border-radius: 7px;

  font-size: 9px;

  font-weight: 600;
}


.status-icon {
  font-size: 12px;
}


.status.neutral {
  color: #777;

  background:
    rgba(255,255,255,0.025);
}


.status.success {
  color: var(--lime);

  background:
    rgba(196,255,0,0.055);

  border:
    1px solid
    rgba(196,255,0,0.1);
}


.status.error {
  color: #ff4ed9;

  background:
    rgba(255,0,200,0.055);

  border:
    1px solid
    rgba(255,0,200,0.13);
}


/* OUTPUT */

.output-shell {
  margin: 14px 16px 16px;

  border:
    1px solid
    rgba(255,255,255,0.07);

  border-radius: 10px;

  overflow: hidden;

  background: #020202;
}


.output-toolbar {
  display: flex;

  justify-content: space-between;

  padding: 9px 11px;

  border-bottom:
    1px solid
    rgba(255,255,255,0.06);

  color: #464646;

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 8px;
}


#jsonOutput {
  margin: 0;

  padding: 16px;

  min-height: 100px;

  max-height: 480px;

  overflow: auto;

  white-space: pre-wrap;

  word-break: break-word;

  color: #d5d5d5;

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 12px;

  line-height: 1.7;
}


#jsonOutput::-webkit-scrollbar,
#jsonInput::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}


#jsonOutput::-webkit-scrollbar-thumb,
#jsonInput::-webkit-scrollbar-thumb {
  background: #202020;

  border-radius: 10px;
}


#jsonOutput::-webkit-scrollbar-thumb:hover,
#jsonInput::-webkit-scrollbar-thumb:hover {
  background: #333;
}


/* ERROR */

.error-details {
  display: none;

  margin:
    0 16px 16px;

  padding: 13px;

  border-radius: 9px;

  background:
    rgba(255,0,200,0.035);

  border:
    1px solid
    rgba(255,0,200,0.12);

  color: #a9a9a9;

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 10px;

  line-height: 1.7;

  white-space: pre-wrap;
}


.error-details.visible {
  display: block;
}


.error-heading {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #ff4ed9;

  font-family: "Space Grotesk", sans-serif;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1px;

  margin-bottom: 7px;
}


.error-heading span {
  display: grid;

  place-items: center;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background: rgba(255,0,200,0.1);
}


/* TOOL FOOTER */

.tool-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 15px 4px 2px;

  color: #444;

  font-size: 8px;
}


.privacy-note {
  display: flex;

  align-items: center;

  gap: 7px;
}


.privacy-note span {
  color: var(--lime);

  font-size: 7px;
}


.shortcut-note {
  display: flex;

  align-items: center;

  gap: 5px;
}


kbd {
  padding: 3px 5px;

  border:
    1px solid
    rgba(255,255,255,0.1);

  border-radius: 4px;

  background: #0c0c0c;

  color: #777;

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 7px;
}


/* BRAND STATEMENT */

.brand-statement {
  text-align: center;

  padding: 55px 0 20px;
}


.statement-line {
  width: 70px;
  height: 1px;

  margin: 0 auto 20px;

  background:
    var(--nexa-gradient);
}


.brand-statement p {
  color: #555;

  font-size: 11px;

  font-weight: 500;
}


.brand-statement strong {
  color: #888;
}


.brand-statement span {
  display: block;

  margin-top: 8px;

  color: var(--lime);

  font-size: 8px;

  letter-spacing: 3px;

  font-weight: 700;
}


/* FOOTER */

footer {
  border-top:
    1px solid
    rgba(255,255,255,0.06);

  padding: 22px 28px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  color: #444;

  font-size: 9px;
}


.footer-brand {
  display: flex;

  flex-direction: column;

  gap: 3px;
}


.footer-brand span {
  color: #777;

  font-weight: 700;

  letter-spacing: 1px;
}


.footer-brand small {
  color: var(--lime);

  font-size: 6px;

  letter-spacing: 2px;
}


.footer-copy {
  color: #333;
}


/* TOAST */

.toast {
  position: fixed;

  right: 24px;
  bottom: 24px;

  z-index: 100;

  min-width: 260px;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 13px 15px;

  border:
    1px solid
    rgba(196,255,0,0.18);

  border-radius: 10px;

  background:
    rgba(10,10,10,0.94);

  backdrop-filter: blur(18px);

  box-shadow:
    0 20px 60px
      rgba(0,0,0,0.5);

  transform:
    translateY(20px);

  opacity: 0;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}


.toast.show {
  opacity: 1;

  transform:
    translateY(0);
}


.toast-icon {
  width: 27px;
  height: 27px;

  display: grid;

  place-items: center;

  border-radius: 7px;

  background:
    rgba(196,255,0,0.1);

  color: var(--lime);

  font-size: 12px;
}


.toast strong {
  display: block;

  color: #ddd;

  font-size: 10px;
}


.toast span {
  display: block;

  color: #555;

  font-size: 8px;

  margin-top: 3px;
}


/* RESPONSIVE */

@media (max-width: 850px) {

  .nav-container {
    grid-template-columns: 1fr auto;
  }

  .brand-lockup {
    display: none;
  }

  .header-status {
    justify-self: end;
  }

  .controls {
    flex-direction: column;

    align-items: stretch;
  }

  .indent-control {
    justify-content: space-between;
  }

  .action-buttons {
    width: 100%;
  }

  .action-buttons .btn {
    flex: 1;
  }

}


@media (max-width: 620px) {

  .main-container {
    width: min(
      100% - 22px,
      1120px
    );

    padding-top: 45px;
  }


  .hero {
    margin-bottom: 30px;
  }


  .hero h1 {
    flex-direction: column;

    align-items: center;

    gap: 2px;

    letter-spacing: -2px;
  }


  .hero p {
    font-size: 14px;
  }


  .tool-card {
    padding: 14px;

    border-radius: 16px;
  }


  .tool-card-top {
    padding-bottom: 15px;
  }


  .engine-badge {
    display: none;
  }


  .editor-area {
    grid-template-columns: 35px 1fr;
  }


  #jsonInput {
    font-size: 11px;

    padding-left: 12px;
  }


  .line-numbers {
    font-size: 10px;
  }


  .action-buttons {
    display: grid;

    grid-template-columns:
      1fr 1fr;
  }


  .action-buttons .btn:nth-child(2) {
    grid-column:
      1 / -1;

    grid-row: 1;
  }


  .action-buttons .btn:nth-child(1),
  .action-buttons .btn:nth-child(3) {
    grid-row: 2;
  }


  .paywall.visible {
    flex-direction: column;

    align-items: stretch;

    text-align: center;
  }


  .paywall-icon {
    margin: auto;
  }


  .paywall-features {
    justify-content: center;
  }


  .result-header {
    align-items: flex-start;

    gap: 12px;
  }


  .result-actions {
    flex-direction: column;
  }


  .tool-footer {
    flex-direction: column;

    gap: 10px;
  }


  footer {
    flex-direction: column;

    gap: 10px;

    text-align: center;
  }


  .toast {
    left: 15px;
    right: 15px;

    bottom: 15px;

    min-width: 0;
  }

}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
  }

}