:root {
  --studio-bg: #0b1020;
  --studio-bg-2: #111827;
  --studio-panel: rgba(18, 25, 45, 0.88);
  --studio-panel-2: rgba(255, 255, 255, 0.07);
  --studio-line: rgba(255, 255, 255, 0.13);
  --studio-text: #f8fafc;
  --studio-muted: #a8b3c7;
  --studio-blue: #38bdf8;
  --studio-teal: #2dd4bf;
  --studio-amber: #fbbf24;
  --studio-rose: #fb7185;
  --studio-violet: #a78bfa;
  --studio-green: #34d399;
  --studio-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.power-body {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.15), transparent 24rem) 0 0 / 100% 100% fixed,
    radial-gradient(circle at 82% 12%, rgba(251, 191, 36, 0.14), transparent 24rem),
    radial-gradient(circle at 20% 85%, rgba(45, 212, 191, 0.13), transparent 22rem),
    var(--studio-bg);
  color: var(--studio-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.shell {
  margin: 0 auto;
  width: min(1220px, calc(100% - 32px));
}

.topbar {
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--studio-line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar .shell {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 72px;
}

.brand,
.nav a {
  text-decoration: none;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  gap: 0.7rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-teal) 45%, var(--studio-amber));
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(56, 189, 248, 0.23);
  color: #07111f;
  display: inline-flex;
  font-weight: 1000;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.nav a,
.button,
.power-button {
  border-radius: 8px;
  font-weight: 900;
}

.nav a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--studio-line);
  color: var(--studio-muted);
  font-size: 0.86rem;
  padding: 0.62rem 0.85rem;
}

.power-hero {
  padding: clamp(2.4rem, 6vw, 4.5rem) 0 1.2rem;
}

.power-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(1.2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
}

.eyebrow {
  align-items: center;
  color: var(--studio-teal);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 1000;
  gap: 0.55rem;
  letter-spacing: 0.14em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.pulse {
  background: var(--studio-green);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.14);
  height: 10px;
  width: 10px;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
  margin: 0;
  max-width: 980px;
}

.lead {
  color: var(--studio-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 650;
  line-height: 1.7;
  margin: 1.15rem 0 0;
  max-width: 760px;
}

.tool-actions,
.button-row,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tool-actions {
  margin-top: 1.35rem;
}

.button,
.power-button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 0.95rem;
  text-decoration: none;
}

.button.primary,
.power-button.primary {
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-teal));
  color: #07111f;
  box-shadow: 0 18px 44px rgba(45, 212, 191, 0.18);
}

.button.secondary,
.power-button.ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--studio-line);
  color: var(--studio-text);
}

.power-button.blue {
  background: var(--studio-blue);
  color: #07111f;
}

.power-button.teal {
  background: var(--studio-teal);
  color: #07111f;
}

.power-button.rose {
  background: var(--studio-rose);
  color: #260914;
}

.power-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.section {
  padding: 1.7rem 0 4rem;
}

.power-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
}

.power-card,
.power-panel,
.tool-ad,
.modal-card,
.result-item {
  background: var(--studio-panel);
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.power-panel {
  padding: clamp(1rem, 2vw, 1.25rem);
}

.power-card {
  min-height: 160px;
  padding: 1rem;
}

.power-card h3,
.power-panel h2,
.power-panel h3 {
  color: var(--studio-text);
  letter-spacing: -0.035em;
  margin-top: 0;
}

.power-card p,
.power-card li,
.power-panel p,
.power-panel li,
.field-note {
  color: var(--studio-muted);
  font-weight: 650;
  line-height: 1.58;
}

.control-stack {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.38rem;
}

.field label {
  color: #dbeafe;
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  color: var(--studio-text);
  font: inherit;
  font-weight: 750;
  min-height: 44px;
  padding: 0.72rem 0.8rem;
  width: 100%;
}

.field select option {
  background: #111827;
  color: #fff;
}

.field input[type="range"] {
  accent-color: var(--studio-teal);
  min-height: 32px;
  padding: 0;
}

.field input[type="color"] {
  cursor: pointer;
  padding: 0.35rem;
}

.layer-list {
  display: grid;
  gap: 0.48rem;
}

.layer-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  color: var(--studio-text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 0.55rem;
  grid-template-columns: auto 1fr;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.layer-chip span {
  align-items: center;
  background: rgba(45, 212, 191, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 999px;
  color: var(--studio-teal);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 1000;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.layer-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-chip.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.55);
}

.drop-zone {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.09), rgba(45, 212, 191, 0.06)),
    rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(56, 189, 248, 0.42);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
  min-height: 190px;
  padding: 1.3rem;
  text-align: center;
}

.preview-box {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.78)),
    #000;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.preview-box canvas,
.preview-box video,
.preview-box img {
  display: block;
  max-height: 70vh;
  width: 100%;
}

.preview-box canvas {
  cursor: grab;
  touch-action: none;
}

.preview-box canvas:active {
  cursor: grabbing;
}

.result-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.result-item {
  display: grid;
  gap: 0.62rem;
  padding: 0.8rem;
}

.result-item img {
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  object-fit: contain;
  width: 100%;
}

.status-line,
.metric-line {
  color: #dbeafe;
  font-size: 0.9rem;
  font-weight: 850;
}

.progress {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress span {
  background: linear-gradient(90deg, var(--studio-blue), var(--studio-teal), var(--studio-amber));
  display: block;
  height: 100%;
  width: 0;
}

.tool-ad {
  margin: 1rem auto;
  min-height: 90px;
  padding: 0.8rem;
}

.modal-overlay {
  align-items: center;
  background: rgba(3, 7, 18, 0.74);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 100;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.13), transparent 40%),
    rgba(18, 25, 45, 0.97);
  max-height: min(760px, 92vh);
  max-width: 800px;
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  width: min(100%, 800px);
}

.modal-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0 0 0.8rem;
}

.modal-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.checkbox-line {
  align-items: center;
  color: var(--studio-muted);
  display: inline-flex;
  font-weight: 850;
  gap: 0.45rem;
}

.seo-copy {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.footer {
  border-top: 1px solid var(--studio-line);
  color: var(--studio-muted);
  font-weight: 750;
  padding: 1.3rem 0;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.footer-links span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: #dbeafe;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .power-hero-grid,
  .power-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar .shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .preview-box {
    min-height: 230px;
  }

  .power-button {
    width: 100%;
  }
}
