:root {
  --bg: #020403;
  --card: #080b08;
  --soft: #0d120c;
  --line: #25301f;
  --text: #f7fbf4;
  --muted: #a7b2a2;
  --gold: #a8ef39;
  --gold2: #d8ff8a;
}

html { background: #020403; }
body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 48% -12%, rgba(134, 220, 30, .2), transparent 31%),
    radial-gradient(circle at 92% 32%, rgba(76, 143, 14, .1), transparent 28%),
    linear-gradient(180deg, #070a06 0%, #020302 64%, #050704 100%);
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(175, 255, 62, .14);
  border-radius: 42% 58% 64% 36%;
  filter: drop-shadow(0 0 34px rgba(158, 242, 45, .08));
  pointer-events: none;
}
body::before { right: -180px; top: 14%; animation: greenOrbit 20s linear infinite; }
body::after { left: -210px; bottom: 4%; animation: greenOrbitReverse 16s linear infinite; }

.nav { position: relative; z-index: 5; }
.brand img {
  border-radius: 13px;
  filter: drop-shadow(0 0 14px rgba(174, 255, 60, .28));
  animation: logoHover 5s ease-in-out infinite;
}
.brand span { text-shadow: 0 0 25px rgba(174, 255, 60, .16); }
.nav a:hover { color: var(--gold2); }
.nav button,
.outline {
  border-color: rgba(169, 239, 57, .3);
  background: rgba(14, 22, 11, .78);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.nav button:hover,
.outline:hover { transform: translateY(-2px); border-color: var(--gold); background: #131d0f; }

.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 25px;
  width: min(72vw, 690px);
  aspect-ratio: 1;
  border: 1px solid rgba(170, 245, 50, .14);
  border-radius: 50%;
  transform: translateX(-50%) rotateX(68deg);
  box-shadow: 0 0 85px rgba(120, 210, 18, .06) inset;
  animation: heroRing 22s linear infinite;
}
.kicker { color: var(--gold); }
.hero em {
  background: linear-gradient(100deg, #f8ffe8 5%, #dfff9f 38%, #8fe000 68%, #f8ffe8 95%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: greenShine 5s linear infinite;
}
.gold {
  background: linear-gradient(105deg, #7fca13, #d7ff7d, #8ddd14);
  background-size: 210% 100%;
  color: #071000;
  box-shadow: 0 14px 38px rgba(132, 218, 15, .2);
  transition: transform .2s ease, filter .2s ease;
  animation: buttonPulse 4s ease-in-out infinite;
}
.gold:hover { transform: translateY(-3px); filter: brightness(1.07); }

.workspace {
  position: relative;
  border-color: rgba(171, 247, 55, .24);
  background: linear-gradient(145deg, rgba(11, 15, 9, .97), rgba(3, 5, 3, .97));
  box-shadow: 0 35px 100px #000, 0 0 0 1px rgba(255, 255, 255, .025) inset;
  animation: workspaceFloat 8s ease-in-out infinite;
}
.stepbar b.active { color: var(--gold2); border-color: var(--gold); }
.drop { border-color: #3a4732; background: linear-gradient(145deg, #0d120b, #060806); transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.drop:hover { transform: translateY(-3px); border-color: var(--gold); background: #10170c; }
.drop-icon { color: var(--gold); filter: drop-shadow(0 0 15px rgba(170, 246, 50, .35)); animation: uploadBounce 2.6s ease-in-out infinite; }
.drop output { color: var(--gold2); }

.clip,
.three article,
.plans article {
  position: relative;
  border-color: rgba(167, 238, 58, .18);
  background: linear-gradient(150deg, #0b0e0a, #050605);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .45);
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.clip::after,
.three article::after,
.plans article::after {
  content: "";
  position: absolute;
  inset: -80% -55%;
  background: linear-gradient(110deg, transparent 43%, rgba(191, 255, 91, .09) 50%, transparent 57%);
  transform: translateX(-55%) rotate(12deg);
  pointer-events: none;
  animation: cardSweep 10s ease-in-out infinite;
}
.clip:hover,
.three article:hover,
.plans article:hover { transform: translateY(-6px); border-color: rgba(180, 255, 62, .52); box-shadow: 0 26px 70px #000, 0 0 30px rgba(148, 230, 33, .06); }
.plans .featured { border-color: var(--gold); }
.three b { color: var(--gold); }

.score {
  border-color: #c7ff69;
  color: #071000;
  background: linear-gradient(145deg, #e6ffad, #91dc1f);
  box-shadow: 0 0 0 3px rgba(175, 255, 58, .1), 0 9px 26px #0009;
}
.opus-editor { border-color: #283321; background: #070a06; }
.clip-branding { margin: 18px 0; padding: 16px; border: 1px solid #39482e; border-radius: 16px; background: #0b1008; }
.clip-branding legend { padding: 0 8px; color: #baff3c; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.clip-branding > label { display: grid; gap: 7px; margin: 12px 0; color: #dce8d4; font-size: 12px; font-weight: 700; }
.clip-branding input[type="text"], .clip-branding input:not([type]) { width: 100%; }
.clip-branding small { display: block; color: #91a187; line-height: 1.45; }
.brand-overlay-layer { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.brand-overlay-layer button { position: absolute; z-index: 1; margin: 0; padding: 0; border: 1px dashed rgba(186,255,60,.85); background: rgba(4,8,3,.28); cursor: move; touch-action: none; pointer-events: auto; }
.brand-overlay-text { color: #baff3c; font-size: clamp(10px,2.5vw,20px); font-weight: 900; line-height: 1; white-space: nowrap; text-shadow: 0 1px 3px #000,0 0 2px #000; }
.brand-overlay-logo { transform: translate(-50%,-50%); }
.brand-overlay-logo img { display: block; width: 100%; height: auto; pointer-events: none; }
.brand-overlay-layer .hidden { display: none; }
.brand-position-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; margin: 14px 0; }
.brand-position-grid label { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; color: #cbd8c4; font-size: 11px; }
.brand-position-grid input { grid-column: 1 / -1; width: 100%; accent-color: #baff3c; }
.brand-position-grid output { color: #baff3c; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .brand-position-grid { grid-template-columns: 1fr; } }
.timeline-head b { color: var(--gold2); }
.range-fill { background: linear-gradient(90deg, #6eb900, #caff68); box-shadow: 0 0 12px rgba(170, 245, 54, .24); }
.range-track input::-webkit-slider-thumb { border-color: #071000; background: var(--gold2); box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(171, 244, 55, .3); }
.time-fields input:focus { border-color: var(--gold2); outline-color: rgba(168, 239, 57, .23); background: #11180d; }
.time-fields > span { color: var(--gold); }
.download { background: #e9ffd0; color: #0b1504; transition: transform .2s ease, background .2s ease; }
.download:hover { transform: translateY(-2px); background: #d7ff9e; }
progress { accent-color: var(--gold); }
.spinner { border-color: #24301d; border-top-color: var(--gold); }
#progress-value { color: var(--gold2); }
.text,
.check a { color: var(--gold2); }
dialog { border-color: #40572e; background: linear-gradient(160deg, #0d120b, #050605); }
.project:hover { border-color: #6d953f; background: #11180e; }

@keyframes greenOrbit { to { transform: rotate(360deg) rotateX(58deg); } }
@keyframes greenOrbitReverse { to { transform: rotate(-360deg) rotateY(55deg); } }
@keyframes heroRing { to { transform: translateX(-50%) rotateX(68deg) rotateZ(360deg); } }
@keyframes greenShine { to { background-position: -220% 0; } }
@keyframes logoHover { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
@keyframes workspaceFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes uploadBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes buttonPulse { 0%, 100% { background-position: 0 0; box-shadow: 0 14px 34px rgba(132, 218, 15, .17); } 50% { background-position: 100% 0; box-shadow: 0 16px 44px rgba(174, 255, 53, .3); } }
@keyframes cardSweep { 0%, 58% { transform: translateX(-58%) rotate(12deg); } 78%, 100% { transform: translateX(58%) rotate(12deg); } }

@media (max-width: 560px) {
  body::before,
  body::after { opacity: .55; }
  .workspace { animation: none; }
  .hero::before { width: 430px; }
  .clip:hover,
  .three article:hover,
  .plans article:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .brand img,
  .hero::before,
  .hero em,
  .gold,
  .workspace,
  .drop-icon,
  .clip::after,
  .three article::after,
  .plans article::after { animation: none !important; }
}
