:root {
  --abyss: #061018;
  --navy: #0b1c2c;
  --deep: #14324a;
  --teal: #2ec4b6;
  --teal-dim: #1a8f86;
  --rec: #e31c3d;
  --foam: #f3ede0;
  --paper: #efe6d4;
  --mist: #8ba3b5;
  --ink: #d7e3ea;
  --serif: "Gowun Batang", "Song Myung", "Noto Serif KR", serif;
  --sans: "Spline Sans", "Pretendard", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  background: var(--abyss);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.caustics {
  position: fixed;
  inset: -20vh -10vw auto auto;
  width: 70vw;
  height: 80vh;
  background:
    radial-gradient(closest-side, rgba(46, 196, 182, 0.22), transparent 70%),
    radial-gradient(closest-side, rgba(20, 90, 140, 0.35), transparent 68%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.caustics.alt {
  inset: auto auto -30vh -20vw;
  width: 55vw;
  height: 60vh;
  animation-duration: 22s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 8%, 0) scale(1.12); }
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img,
.brand svg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-name small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-actions a {
  color: var(--mist);
  text-decoration: none;
  font-size: 14px;
}

.top-actions a:hover {
  color: var(--foam);
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 20px;
  font: 650 15px/1 var(--sans);
  letter-spacing: -0.02em;
}

.btn-rec {
  background: var(--rec);
  color: white;
  box-shadow: 0 0 0 0 rgba(227, 28, 61, 0.55);
  animation: recglow 2.4s ease-in-out infinite;
}

.btn-rec:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--foam);
  border: 1px solid rgba(243, 237, 224, 0.18);
}

@keyframes recglow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 28, 61, 0.0); }
  50% { box-shadow: 0 0 0 8px rgba(227, 28, 61, 0.12); }
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
  padding: 42px 0 72px;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
  animation: blink 1.4s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0.2; }
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 14px 0 18px;
}

.lede {
  max-width: 38ch;
  color: var(--ink);
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mist);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
}

.note {
  font-size: 13px;
  color: var(--mist);
}

.deck {
  position: relative;
  min-height: 340px;
}

.slate {
  position: absolute;
  left: -18px;
  top: 18px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--mist);
}

.recorder {
  margin-left: 36px;
  background: linear-gradient(180deg, #152433, #0e1a26);
  border: 1px solid rgba(243, 237, 224, 0.12);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(-2.4deg);
}

.recorder-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.preview {
  width: 132px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 40%, rgba(46, 196, 182, 0.35), transparent 40%),
    linear-gradient(160deg, #1b2c3c, #0a121a);
  border: 1px solid #2d3643;
  position: relative;
  overflow: hidden;
}

.preview span {
  position: absolute;
  inset: auto 8px 6px auto;
  font-size: 10px;
  color: #9fb0c0;
}

.timer {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rec);
}

.modes {
  display: flex;
  gap: 6px;
}

.chip {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}

.chip.on {
  background: #d7e9ff;
  color: #004eeb;
}

.chip.off {
  background: #1a2733;
  color: #d1fadf;
  border: 1px solid #12b76a;
}

.controls {
  display: flex;
  gap: 6px;
}

.controls span {
  background: #f2f4f7;
  color: #1d2939;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
}

.caption {
  margin: 18px 0 0 36px;
  color: var(--mist);
  font-size: 13px;
  max-width: 36ch;
}

.band {
  padding: 8px 0 80px;
}

.band h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}

.features {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
}

.card {
  background: rgba(11, 28, 44, 0.72);
  border: 1px solid rgba(243, 237, 224, 0.08);
  padding: 22px;
  border-radius: 4px 28px 4px 28px;
}

.card.wide {
  grid-row: span 2;
  background:
    linear-gradient(160deg, rgba(46, 196, 182, 0.08), transparent 42%),
    rgba(11, 28, 44, 0.85);
}

.card h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 10px;
}

.card p,
.card li {
  color: var(--ink);
  font-size: 15px;
}

.card ol {
  margin: 0;
  padding-left: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(243, 237, 224, 0.08);
  vertical-align: top;
}

th {
  color: var(--mist);
  font-weight: 500;
  width: 28%;
}

.download-panel {
  background: var(--paper);
  color: #1b140c;
  border-radius: 28px 6px 28px 6px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.download-panel h2 {
  color: #1b140c;
  margin-bottom: 8px;
}

.download-panel p {
  color: #4a3f32;
}

.hash {
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
  background: #1b140c;
  color: #efe6d4;
  padding: 12px 14px;
  border-radius: 8px;
}

.progress {
  display: none;
  margin-top: 16px;
}

.progress.on {
  display: block;
}

.bar {
  height: 6px;
  background: rgba(27, 20, 12, 0.15);
  border-radius: 99px;
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--rec);
  transition: width 160ms linear;
}

.status {
  margin-top: 8px;
  font-size: 13px;
}

.warn {
  font-size: 13px;
  color: #6a3b12;
  margin-top: 14px;
}

footer {
  padding: 28px 0 48px;
  color: var(--mist);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer strong {
  color: var(--foam);
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero,
  .features,
  .grid-2,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .slate {
    display: none;
  }

  .recorder,
  .caption {
    margin-left: 0;
  }

  h1 {
    font-size: 46px;
  }
}
