:root {
  --paper: #f8efe5;
  --paper-warm: #f6dfca;
  --paper-soft: #fff7f1;
  --ink: #1d1917;
  --muted: #6d6158;
  --coral: #f46e4d;
  --coral-deep: #d95a3d;
  --gold: #f0b24c;
  --olive: #60755f;
  --card: rgba(255, 255, 255, 0.8);
  --card-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(29, 25, 23, 0.1);
  --border-strong: rgba(29, 25, 23, 0.18);
  --shadow: 0 28px 70px rgba(74, 40, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 110, 77, 0.18), transparent 24%),
    radial-gradient(circle at 100% 12%, rgba(240, 178, 76, 0.18), transparent 20%),
    linear-gradient(180deg, #fff8f1 0%, #f5ebe2 54%, #f1e2d3 100%);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
select {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar,
.control-panel,
.results-panel,
.feature-card,
.cta-panel,
.stat-row li {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand img,
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  justify-self: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.language-shell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.language-select {
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    opacity 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  box-shadow: 0 14px 30px rgba(244, 110, 77, 0.28);
}

.button--secondary,
.button--ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.hero,
.studio,
.mechanics {
  margin-top: 22px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 150px);
}

.hero-badge,
.floating-chip,
.results-badge,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.hero-badge {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-badge img,
.floating-chip img,
.section-mark img,
.results-title img,
.draft-title img,
.mini-icon,
.control-panel__header img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--coral-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.cta-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  max-width: 10.5ch;
}

.lead,
.section-head p,
.cta-copy p,
.feature-card p,
.control-panel__header p,
.results-title p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stat-row li {
  padding: 16px 18px;
}

.stat-row strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1rem;
}

.stat-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}

.glow--one {
  width: 280px;
  height: 280px;
  top: 46px;
  right: 80px;
  background: rgba(244, 110, 77, 0.24);
}

.glow--two {
  width: 240px;
  height: 240px;
  bottom: 86px;
  left: 46px;
  background: rgba(240, 178, 76, 0.22);
}

.hero-stack {
  position: relative;
  width: min(420px, 100%);
}

.floating-chip {
  position: absolute;
  z-index: 2;
  font-size: 0.9rem;
  font-weight: 800;
}

.floating-chip--alt {
  right: -8px;
  bottom: 46px;
}

.floating-chip:first-child {
  top: 24px;
  left: -8px;
}

.device-card {
  position: relative;
  z-index: 1;
  margin: 70px 0 40px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 36px;
  background: rgba(36, 26, 20, 0.92);
  box-shadow: 0 38px 90px rgba(47, 23, 12, 0.34);
}

.device-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #89ef7c;
  box-shadow: 0 0 12px rgba(137, 239, 124, 0.7);
}

.device-card img {
  width: 100%;
  border-radius: 24px;
}

.studio,
.mechanics {
  padding: 34px 0 10px;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.section-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.studio-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: start;
}

.control-panel,
.results-panel,
.draft-panel,
.feature-card,
.cta-panel {
  border-radius: 28px;
}

.control-panel,
.results-panel {
  padding: 20px;
}

.control-panel {
  position: sticky;
  top: 18px;
}

.control-panel__header,
.results-title,
.draft-title,
.cta-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.control-panel__header h3,
.results-title h3,
.draft-title h3,
.feature-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.control-group + .control-group {
  margin-top: 18px;
}

.control-group h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.choice-chip:hover {
  transform: translateY(-1px);
}

.choice-chip.is-selected {
  border-color: rgba(244, 110, 77, 0.46);
  background: rgba(244, 110, 77, 0.12);
  color: var(--coral-deep);
}

.control-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.results-badge {
  color: var(--coral-deep);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.idea-card {
  position: relative;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card-strong);
  overflow: hidden;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.idea-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 78px;
  height: 78px;
  background: url("assets/icon.png") center / cover no-repeat;
  opacity: 0.06;
}

.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.idea-card.is-selected {
  border-color: rgba(244, 110, 77, 0.46);
  box-shadow: 0 24px 60px rgba(244, 110, 77, 0.14);
}

.idea-card.is-locked {
  background: rgba(255, 255, 255, 0.66);
}

.idea-card.is-locked .idea-card__content {
  filter: blur(4px);
  opacity: 0.82;
}

.idea-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.idea-card__header img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.idea-card__type {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.idea-card__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.24;
}

.idea-card__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.idea-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.idea-card__meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.idea-card__button {
  min-height: 40px;
  padding: 0 14px;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  background: rgba(248, 239, 229, 0.38);
}

.locked-overlay__inner {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.locked-overlay img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.locked-overlay strong {
  font-size: 0.95rem;
}

.locked-overlay span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.placeholder-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 210px;
  border: 1px dashed rgba(29, 25, 23, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-weight: 800;
}

.placeholder-card img {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  opacity: 0.72;
}

.draft-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 251, 246, 0.92);
  box-shadow: var(--shadow);
}

.draft-panel.is-hidden {
  display: none;
}

.draft-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.draft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.mini-pill {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.draft-post-title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  line-height: 1.2;
}

.draft-post-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  line-height: 1.72;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 28px;
  margin-top: 34px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 30px 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-links a {
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

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

  .nav {
    justify-self: start;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .hero,
  .studio-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: auto;
  }

  .results-header,
  .draft-panel__head,
  .footer {
    flex-direction: column;
    align-items: start;
  }

  .ideas-grid,
  .feature-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }
}

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

  .language-shell {
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

  .floating-chip {
    position: static;
    margin-bottom: 10px;
  }

  .device-card {
    margin: 12px 0 0;
  }

  .draft-meta {
    flex-direction: column;
    align-items: start;
  }
}
