* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(242, 226, 5, 0.12), transparent 30%), #080808;
  color: #f5f5f5;
}

.app {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.eyebrow {
  color: #F2E205;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.sub {
  color: #a9a9a9;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.5;
}

.controls, .settings {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

button, .upload {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #151515;
  color: white;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover, .upload:hover {
  border-color: #F2E205;
  transform: translateY(-1px);
}

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

.upload input { display: none; }

.settings {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 18px;
}

.settings div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings label {
  color: #888;
  font-size: 12px;
  font-weight: 700;
}

.settings input {
  background: #0d0d0d;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 11px;
  width: 130px;
}

.settings input[type="color"] {
  padding: 5px;
  height: 43px;
}

.panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.info {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 14px;
  margin-bottom: 18px;
}

.info div {
  background: #101010;
  border-radius: 18px;
  padding: 16px;
}

.info span {
  display: block;
  color: #777;
  font-size: 12px;
  margin-bottom: 6px;
}

.info strong { font-size: 15px; }

.preview-wrap {
  width: 100%;
  min-height: 340px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    linear-gradient(45deg, #1c1c1c 25%, transparent 25%),
    linear-gradient(-45deg, #1c1c1c 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1c1c1c 75%),
    linear-gradient(-45deg, transparent 75%, #1c1c1c 75%);
  background-size: 32px 32px;
  background-position: 0 0, 0 16px, 16px -16px, -16px 0px;
  background-color: #101010;
  overflow: auto;
  padding: 20px;
}

#waveCanvas {
  max-width: 100%;
  height: auto;
  display: block;
}
