:root {
  --bg: #07110b;
  --bg-strong: #0e1a13;
  --surface: rgba(13, 25, 18, 0.78);
  --surface-strong: #0f1d15;
  --surface-soft: rgba(18, 35, 25, 0.86);
  --text: #eff8f1;
  --muted: #98b3a0;
  --line: rgba(154, 212, 169, 0.16);
  --accent: #39d66f;
  --accent-dark: #1f9d4a;
  --accent-soft: rgba(57, 214, 111, 0.14);
  --card-1: #143222;
  --card-2: #10271b;
  --card-3: #173b28;
  --card-4: #0f2118;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(57, 214, 111, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(57, 214, 111, 0.08), transparent 24%),
    linear-gradient(180deg, #061009 0%, #09140d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154, 212, 169, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 212, 169, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #153020, #0b1710);
  color: #d9ffe4;
  border: 1px solid rgba(57, 214, 111, 0.28);
}

.brand-text {
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  padding: 54px 0 12px;
}

.eyebrow,
.mini-label {
  margin: 0 0 12px;
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7ef19f;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
}

.hero h1 span {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--accent);
  color: #041008;
  text-decoration: none;
  font-weight: 800;
}

.inline-note {
  color: var(--muted);
  font-weight: 700;
}

.panel-heading p,
.result-placeholder p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.download-stage {
  padding-top: 18px;
}

.download-panel {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
}

.panel-glow {
  position: absolute;
  inset: 24px -14px -14px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(57, 214, 111, 0.3), rgba(57, 214, 111, 0.08));
  filter: blur(24px);
}

.panel-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(57, 214, 111, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(12, 22, 16, 0.96), rgba(8, 17, 12, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.spotlight .panel-card {
  padding: 34px;
  border-radius: 32px;
}

.panel-topline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(57, 214, 111, 0.12);
}

.panel-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-heading.centered {
  text-align: center;
  justify-items: center;
}

.panel-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.download-form {
  display: grid;
  gap: 16px;
}

.input-label {
  font-weight: 800;
  text-align: left;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.input-row.featured {
  grid-template-columns: minmax(0, 1fr) 180px;
}

.input-row input {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #08150e;
  font: inherit;
  color: var(--text);
  font-size: 1rem;
}

.input-row button,
.option-button {
  border: 0;
  border-radius: 18px;
  min-height: 64px;
  padding: 16px 22px;
  background: var(--accent);
  color: #061009;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.input-row button:hover,
.option-button:hover {
  transform: translateY(-1px);
  background: #55e284;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.centered-row {
  justify-content: center;
}

.toggle-card {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
}

.toggle-card input {
  accent-color: var(--accent);
}

.support-copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.result-box {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(7, 16, 11, 0.86);
  border: 1px solid var(--line);
  min-height: 228px;
}

.spotlight-result {
  margin-top: 24px;
  min-height: 260px;
}

.result-placeholder strong,
.result-header strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #89f2a8;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.option-list {
  display: grid;
  gap: 12px;
}

.option-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #0b1811;
  border: 1px solid rgba(57, 214, 111, 0.1);
}

.option-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.option-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #14261b;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a7c5af;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 0;
}

.panel-metrics.wide {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
}

.panel-metrics article {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(57, 214, 111, 0.12);
  background: rgba(14, 30, 20, 0.82);
}

.panel-metrics strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.panel-metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

.platform-grid {
  display: grid;
  gap: 16px;
}

.platform-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(11, 23, 16, 0.88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.section {
  padding-top: 72px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.platform-grid {
  grid-template-columns: repeat(4, 1fr);
}

.platform-card {
  min-height: 220px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.platform-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -18px;
  bottom: -18px;
  border-radius: 50%;
  opacity: 0.4;
}

.youtube::after {
  background: linear-gradient(135deg, rgba(57, 214, 111, 0.45), transparent 65%);
}

.instagram::after {
  background: linear-gradient(135deg, rgba(57, 214, 111, 0.34), rgba(93, 255, 146, 0.12));
}

.tiktok::after {
  background: linear-gradient(135deg, rgba(57, 214, 111, 0.4), transparent 70%);
}

.facebook::after {
  background: linear-gradient(135deg, rgba(57, 214, 111, 0.3), rgba(57, 214, 111, 0.08));
}

.platform-tag {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(20, 38, 27, 0.94);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.platform-card h3,
.platform-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  line-height: 1.05;
}

.log-box {
  margin: 0;
  padding: 16px;
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  border-radius: 18px;
  background: #030805;
  color: #c9f7d5;
  font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.download-ready {
  margin-bottom: 14px;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent);
  color: #031108;
  text-decoration: none;
  font-weight: 800;
}

.job-error {
  margin: 0 0 14px;
  color: #ff8f8f;
  font-weight: 700;
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .hero,
  .input-row,
  .platform-grid,
  .panel-metrics,
  .option-card,
  .result-header {
    grid-template-columns: 1fr;
  }

  .topbar,
  .nav,
  .toggle-row,
  .result-header {
    display: grid;
  }

  .nav {
    gap: 10px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-actions {
    justify-content: center;
  }

  .panel-card {
    padding: 18px;
    border-radius: 22px;
  }

  .input-row button,
  .option-button {
    width: 100%;
  }
}
