:root {
  --bg: #f2fffd;
  --ink: #10201d;
  --muted: #4b6862;
  --panel: rgba(255, 255, 255, 0.84);
  --line: rgba(0, 113, 101, 0.16);
  --accent: #007165;
  --accent-2: #62fae3;
  --radius: 20px;
  --shadow: 0 30px 70px -32px rgba(9, 31, 28, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, Segoe UI, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(0, 113, 101, 0.18), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(98, 250, 227, 0.2), transparent 36%),
    linear-gradient(145deg, #fbfffe, #eefaf7 50%, #e5f4f1);
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  background: #007165;
  top: -150px;
  left: -110px;
  animation: drift 12s ease-in-out infinite;
}

.orb-2 {
  background: #62fae3;
  bottom: -170px;
  right: -90px;
  animation: drift 14s ease-in-out infinite reverse;
}

.topbar,
.layout {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 12px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 30px -22px rgba(0, 113, 101, 0.6);
  padding: 8px;
}

.eyebrow {
  margin: 4px 0 0;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Space Grotesk, Segoe UI, sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.06rem;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px 30px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

.feature-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.feature-panel {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 14px;
}

.feature-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-item {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-item:hover,
.feature-item.active {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 101, 0.55);
  box-shadow: 0 10px 24px -18px rgba(0, 113, 101, 0.8);
}

.feature-item.locked {
  cursor: default;
  opacity: 0.72;
}

.feature-title {
  font-weight: 800;
}

.feature-desc {
  font-size: 0.87rem;
  color: var(--muted);
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 16px;
  animation: rise-in 240ms ease;
}

.panel {
  padding: 18px;
}

.controls {
  display: grid;
  gap: 11px;
  align-content: start;
}

label {
  font-size: 0.87rem;
  font-weight: 700;
  color: #2a3c36;
}

input,
select,
button {
  width: 100%;
  font: inherit;
  border-radius: 12px;
}

input,
select {
  border: 1px solid rgba(0, 113, 101, 0.22);
  background: rgba(255, 255, 255, 0.88);
  padding: 10px 12px;
}

input:focus,
select:focus,
button:focus {
  outline: 2px solid rgba(0, 113, 101, 0.24);
  outline-offset: 1px;
}

.grid.two {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.grid.two.compact {
  margin-top: 2px;
}

.full {
  grid-column: 1 / -1;
}

button {
  border: 1px solid transparent;
  padding: 10px 12px;
  font-weight: 700;
  background: linear-gradient(130deg, #007165, #00564d);
  color: #fff;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -16px rgba(0, 113, 101, 0.7);
}

button:active {
  transform: translateY(1px);
}

button.ghost {
  background: #ffffffde;
  border-color: rgba(0, 113, 101, 0.16);
  color: #19443d;
}

.preview {
  display: grid;
  gap: 12px;
  align-content: start;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status {
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 113, 101, 0.34);
  color: #0c5c45;
  padding: 4px 10px;
  background: rgba(0, 113, 101, 0.08);
}

.preview-box {
  border-radius: 18px;
  border: 1px dashed rgba(0, 113, 101, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(241, 255, 252, 0.92));
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 18px;
}

.preview-box canvas,
.preview-box svg {
  width: min(100%, 460px);
  height: auto;
  display: block;
}

.caption {
  font-size: 0.9rem;
  color: #42554f;
  margin: 0;
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, 12px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    position: static;
  }

  .tool-shell {
    grid-template-columns: 1fr;
  }

  .preview-box {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }
}
