:root{
  --bg:#090b10;
  --panel:#11151d;
  --panel2:#151a24;
  --line:#262d3a;
  --line2:#333d4d;
  --text:#f4f7fb;
  --muted:#95a0b3;
  --muted2:#6e7889;
  --accent:#7cf7c5;
  --accent2:#9b8cff;
  --danger:#ff6f91;
  --shadow:0 28px 80px rgba(0,0,0,.34);
}
*{box-sizing:border-box}
html{color-scheme:dark}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 15% -10%,rgba(124,247,197,.09),transparent 34%),
    radial-gradient(circle at 90% 0%,rgba(155,140,255,.09),transparent 30%),
    var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
button,input{font:inherit}
button{touch-action:manipulation}
a{color:inherit}
.app{min-height:100vh}
.topbar{
  height:76px;
  padding:0 clamp(18px,4vw,56px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(9,11,16,.78);
  backdrop-filter:blur(18px);
  position:sticky;
  top:0;
  z-index:50;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brandMark{
  width:42px;height:42px;border-radius:13px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,var(--accent),#48c7ff);
  color:#07100d;
  font-size:22px;font-weight:900;
  box-shadow:0 0 34px rgba(124,247,197,.16);
}
.brand strong{display:block;font-size:18px;letter-spacing:-.02em}
.brand small{display:block;color:var(--muted2);font-size:9px;letter-spacing:.18em;margin-top:2px}
.topBadges{display:flex;gap:8px}
.badge{
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 10px;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  letter-spacing:.08em;
}
main{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:48px 0 70px;
}
.hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:26px;
}
.eyebrow,.step{
  color:var(--accent);
  font-weight:850;
  font-size:11px;
  letter-spacing:.16em;
  margin:0 0 9px;
}
.hero h1{
  font-size:clamp(34px,5vw,64px);
  letter-spacing:-.055em;
  line-height:.95;
  margin:0;
  max-width:780px;
}
.heroText{margin:18px 0 0;color:var(--muted);font-size:16px;max-width:720px;line-height:1.65}
.privacyChip{
  flex:0 0 auto;
  border:1px solid var(--line);
  background:rgba(255,255,255,.025);
  color:var(--muted);
  border-radius:14px;
  padding:12px 14px;
  font-size:12px;
}
.card{
  background:linear-gradient(180deg,rgba(21,26,36,.94),rgba(15,19,27,.94));
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.uploadCard{padding:14px}
.dropzone{
  min-height:200px;
  border:1px dashed #3d485a;
  border-radius:17px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  cursor:pointer;
  transition:.2s ease;
  background:rgba(255,255,255,.015);
}
.dropzone:hover,.dropzone.drag{
  border-color:var(--accent);
  background:rgba(124,247,197,.035);
  transform:translateY(-1px);
}
.dropzone input{display:none}
.dropIcon{
  width:54px;height:54px;border-radius:17px;
  display:grid;place-items:center;
  background:rgba(124,247,197,.09);
  border:1px solid rgba(124,247,197,.2);
  color:var(--accent);
  font-size:31px;font-weight:300;
  margin-bottom:6px;
}
.dropMain{font-size:20px;font-weight:800}
.dropSub{color:var(--muted);font-size:13px}
.hidden{display:none!important}
.workspace{display:grid;gap:18px}
.fileStrip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 4px 2px;
}
.fileInfo{display:flex;align-items:center;gap:12px;min-width:0}
.fileIcon{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(155,140,255,.1);
  border:1px solid rgba(155,140,255,.18);
  color:#b8afff;
  font-size:20px;
  flex:0 0 auto;
}
.fileMeta{min-width:0}
.fileMeta strong{
  display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(72vw,700px)
}
.fileMeta span{display:block;color:var(--muted2);font-size:12px;margin-top:3px}
.ghostBtn,.secondaryBtn,.primaryBtn,.exportBtn,.formatBtn{
  border:0;
  cursor:pointer;
}
.ghostBtn{
  padding:9px 12px;border-radius:10px;
  background:transparent;color:var(--muted);
  border:1px solid var(--line);
}
.editorCard,.exportCard{padding:26px}
.sectionHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}
.sectionHead h2{font-size:24px;letter-spacing:-.035em;margin:0}
.durationPill,.readyPill{
  border-radius:12px;
  padding:9px 11px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  white-space:nowrap;
}
.durationPill{
  background:rgba(124,247,197,.08);
  border:1px solid rgba(124,247,197,.16);
  color:var(--accent);
}
.readyPill{
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  color:var(--muted2);
}
.readyPill.ready{
  color:var(--accent);
  border-color:rgba(124,247,197,.2);
  background:rgba(124,247,197,.08);
}
.waveShell{
  height:250px;
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px),
    #0b0e14;
  background-size:100% 25%,5% 100%;
  user-select:none;
  touch-action:none;
}
#waveCanvas{position:absolute;inset:0;width:100%;height:100%}
.selectionShade{
  position:absolute;top:0;bottom:0;
  background:rgba(0,0,0,.52);
  pointer-events:none;
}
.selectionShade.left{left:0}
.selectionShade.right{right:0}
.selectionBox{
  position:absolute;top:0;bottom:0;
  border-top:2px solid rgba(124,247,197,.62);
  border-bottom:2px solid rgba(124,247,197,.62);
  background:linear-gradient(90deg,rgba(124,247,197,.035),rgba(155,140,255,.025));
  pointer-events:none;
}
.handle{
  position:absolute;
  top:0;bottom:0;
  width:20px;
  padding:0;
  background:transparent;
  cursor:ew-resize;
  z-index:8;
}
.handle::before{
  content:"";
  position:absolute;
  left:9px;top:0;bottom:0;
  width:2px;
  background:var(--accent);
  box-shadow:0 0 18px rgba(124,247,197,.35);
}
.handle::after{
  content:"";
  position:absolute;
  top:10px;left:2px;
  width:16px;height:26px;
  border-radius:6px;
  background:var(--accent);
  box-shadow:0 6px 22px rgba(0,0,0,.32);
}
.handle span{
  position:absolute;
  top:44px;
  font-size:9px;
  font-weight:950;
  letter-spacing:.08em;
  color:#08110d;
  background:var(--accent);
  padding:4px 6px;
  border-radius:5px;
  white-space:nowrap;
}
.handle.start span{left:8px}
.handle.end span{right:8px}
.playhead{
  position:absolute;
  top:0;bottom:0;
  width:1px;
  background:#fff;
  opacity:0;
  z-index:7;
  box-shadow:0 0 10px rgba(255,255,255,.3);
  pointer-events:none;
}
.timelineLabels{
  display:flex;
  justify-content:space-between;
  color:var(--muted2);
  font-size:11px;
  margin-top:7px;
}
.timeGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:18px;
}
.timeGrid label,.nameField{display:grid;gap:7px}
.timeGrid label>span,.nameField>span,.formatField>span{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.timeInputWrap{
  display:flex;
  align-items:center;
  background:#0b0e14;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}
.timeInputWrap input{
  width:100%;
  border:0;
  outline:0;
  color:var(--text);
  background:transparent;
  padding:12px 13px;
}
.timeInputWrap b{padding:0 13px;color:var(--muted2);font-size:12px}
.transport{
  display:grid;
  grid-template-columns:1fr 1fr 1.35fr;
  gap:10px;
  margin-top:18px;
}
.secondaryBtn,.primaryBtn{
  min-height:46px;
  border-radius:12px;
  font-weight:800;
}
.secondaryBtn{
  color:var(--text);
  background:#191f2a;
  border:1px solid var(--line2);
}
.secondaryBtn:hover:not(:disabled){background:#202735}
.secondaryBtn:disabled{opacity:.35;cursor:not-allowed}
.primaryBtn{
  background:linear-gradient(135deg,var(--accent),#69dcff);
  color:#07110e;
  box-shadow:0 13px 36px rgba(124,247,197,.1);
}
.primaryBtn:hover{filter:brightness(1.04)}
.statusLine{
  margin-top:12px;
  color:var(--muted2);
  font-size:12px;
  min-height:18px;
}
.exportCard{transition:.2s ease}
.exportCard.locked .exportGrid,
.exportCard.locked .qualityBar,
.exportCard.locked .exportBtn{opacity:.45}
.exportGrid{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:18px;
}
.nameField input{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0b0e14;
  color:var(--text);
  outline:0;
  padding:13px 14px;
  font-weight:760;
}
.nameField input:focus{border-color:#4b596d}
.nameField small{color:var(--muted2);font-size:11px}
.nameField small b{color:var(--accent)}
.formatField{display:grid;gap:7px}
.formatSwitch{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.formatBtn{
  text-align:left;
  padding:13px 14px;
  border-radius:12px;
  color:var(--muted);
  background:#0b0e14;
  border:1px solid var(--line);
}
.formatBtn strong{display:block;color:var(--text);font-size:15px}
.formatBtn small{display:block;margin-top:3px;color:var(--muted2);font-size:10px}
.formatBtn.active{
  border-color:rgba(124,247,197,.5);
  background:rgba(124,247,197,.065);
}
.formatBtn.active strong{color:var(--accent)}
.qualityBar{
  margin-top:18px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:rgba(255,255,255,.018);
}
.qualityBar span{display:block;color:var(--muted2);font-size:10px;margin-bottom:3px}
.qualityBar strong{font-size:12px}
.outputName{
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  text-align:right;
  word-break:break-all;
}
.exportBtn{
  width:100%;
  margin-top:14px;
  border-radius:14px;
  min-height:64px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--accent),#67dfff);
  color:#06110d;
  font-weight:900;
  letter-spacing:.025em;
}
.exportBtn small{font-size:10px;opacity:.7;margin-top:2px}
.exportBtn:disabled{cursor:not-allowed;filter:saturate(.35);opacity:.5}
.progress{margin-top:16px}
.progressTop{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:7px}
.progressTrack{height:7px;border-radius:999px;background:#0a0d12;overflow:hidden;border:1px solid var(--line)}
#progressBar{height:100%;width:0;background:linear-gradient(90deg,var(--accent),var(--accent2));transition:width .18s ease}
.downloadResult{
  margin-top:14px;
  padding:13px 14px;
  border:1px solid rgba(124,247,197,.2);
  background:rgba(124,247,197,.05);
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.downloadResult strong{display:block;color:var(--accent)}
.downloadResult span{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.infoGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.infoGrid article{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background:rgba(255,255,255,.018);
}
.infoGrid strong{font-size:13px}
.infoGrid p{color:var(--muted2);font-size:11px;line-height:1.55;margin:7px 0 0}
footer{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  border-top:1px solid rgba(255,255,255,.06);
  padding:22px 0 34px;
  color:var(--muted2);
  display:flex;justify-content:space-between;
  font-size:11px;
}
footer a{text-decoration:none;color:var(--muted)}
@media(max-width:780px){
  .topbar{height:66px}
  .topBadges .badge:first-child{display:none}
  main{padding-top:30px}
  .hero{display:block}
  .privacyChip{display:inline-block;margin-top:18px}
  .hero h1{font-size:42px}
  .waveShell{height:210px}
  .editorCard,.exportCard{padding:18px}
  .sectionHead h2{font-size:20px}
  .transport{grid-template-columns:1fr 1fr}
  .primaryBtn{grid-column:1/-1}
  .exportGrid{grid-template-columns:1fr}
  .infoGrid{grid-template-columns:1fr}
}
@media(max-width:500px){
  main{width:min(100% - 20px,1180px)}
  .topbar{padding:0 12px}
  .brandMark{width:38px;height:38px}
  .brand strong{font-size:16px}
  .topBadges .badge{font-size:9px;padding:6px 8px}
  .hero h1{font-size:36px}
  .heroText{font-size:14px}
  .waveShell{height:190px}
  .timeGrid{grid-template-columns:1fr}
  .qualityBar{align-items:flex-start;flex-direction:column}
  .outputName{text-align:left}
  .fileStrip{align-items:flex-start}
  .ghostBtn{font-size:11px}
  .durationPill{font-size:10px}
}
