/* otezer — dark theme */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050505;
  --surface: #0a0a0a;
  --border: #1a1a1a;
  --text: #ffffff;
  --muted: #6b6b6b;
  --accent: #e63946;
  --accent-bright: #ff4d5a;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Consolas", monospace;
  --max-width: 72rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(230, 57, 70, 0.3);
  color: #fff;
}

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

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

.hidden {
  display: none !important;
}

/* Layout */

.site-header {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(26, 26, 26, 0.5);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  align-items: center;
  display: flex;
  height: 4rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 1.5rem;
}

.site-logo {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.site-logo img {
  height: 2rem;
  width: 2rem;
}

.site-logo span {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
}

main {
  min-height: 100vh;
  padding-top: 4rem;
}

.container {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 42rem;
}

/* Hero */

.hero {
  padding: 6rem 0 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0 4rem;
  }
}

.eyebrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 48rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero p {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  max-width: 36rem;
}

/* Playbook grid */

.playbook-grid {
  display: grid;
  gap: 4rem 3rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .playbook-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .playbook-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.playbook-card {
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding-top: 2.5rem;
  transition: border-color 0.15s;
}

a.playbook-card:hover {
  border-color: rgba(230, 57, 70, 0.3);
}

.playbook-card--soon {
  opacity: 0.5;
  pointer-events: none;
}

.playbook-card__meta {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.playbook-card__number {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.badge {
  border-radius: 9999px;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
}

.badge--popular {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--accent);
}

.badge--soon {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.playbook-card canvas {
  display: block;
  margin-bottom: 2rem;
  opacity: 0.8;
  transition: opacity 0.15s;
}

a.playbook-card:hover canvas {
  opacity: 1;
}

.playbook-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.playbook-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.playbook-card__cta {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 1.5rem;
  opacity: 0;
  transition: opacity 0.15s;
}

a.playbook-card:hover .playbook-card__cta {
  opacity: 1;
}

/* Wizard */

.wizard-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.wizard-nav a,
.wizard-nav button.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0;
  transition: color 0.15s;
}

.wizard-nav a:hover,
.wizard-nav button.link-btn:hover {
  color: var(--text);
}

.wizard-progress {
  background: var(--border);
  height: 1px;
  margin-bottom: 2.5rem;
  width: 100%;
}

.wizard-progress__bar {
  background: var(--accent);
  height: 1px;
  transition: width 0.3s ease;
}

.wizard-step h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.wizard-step > p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.step-hint {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0 !important;
  margin-top: 0.75rem;
}

.wizard-step.hidden,
.wizard-result.hidden {
  display: none;
}

textarea,
input[type="text"],
input[type="number"],
select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  width: 100%;
}

select {
  cursor: pointer;
}

select:focus {
  border-color: rgba(230, 57, 70, 0.5);
  outline: none;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

textarea::placeholder,
input::placeholder {
  color: rgba(107, 107, 107, 0.5);
}

textarea:focus,
input:focus {
  border-color: rgba(230, 57, 70, 0.5);
  outline: none;
}

input[type="number"] {
  width: 8rem;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  text-transform: capitalize;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.chip:hover {
  border-color: rgba(230, 57, 70, 0.3);
  color: var(--text);
}

.chip.active {
  background: rgba(230, 57, 70, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.checkbox-row {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.75rem;
}

.checkbox-row input {
  accent-color: var(--accent);
  height: 1rem;
  width: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  color: var(--muted);
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

.review-box dt {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.review-box dd {
  font-size: 0.875rem;
}

.review-box dd.muted {
  color: var(--muted);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
}

.btn {
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
}

.btn-primary:hover {
  background: var(--accent-bright);
}

.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(230, 57, 70, 0.5);
}

.btn-ghost {
  background: none;
  color: var(--muted);
  padding: 0.625rem 0;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-ghost:disabled,
.btn-ghost.hidden {
  visibility: hidden;
}

/* Result */

.wizard-result {
  animation: fadeIn 0.5s ease-out;
}

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

.accent-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.wizard-result h1 {
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.wizard-result .summary {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.result-checklist {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  padding-left: 1.25rem;
}

.result-checklist li {
  margin-bottom: 0.35rem;
}

.result-section-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.result-split {
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
}

.result-split summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
  list-style: none;
}

.result-split summary::-webkit-details-marker {
  display: none;
}

.result-split summary:hover {
  color: var(--text);
}

.result-split__hint {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1rem 0 1.25rem;
}

.result-split .prompt-box + .prompt-box {
  margin-top: 1rem;
}

.prompt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.prompt-box__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.prompt-box pre {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  max-height: 24rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-split .prompt-box pre {
  max-height: 12rem;
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tool-links a {
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  transition: border-color 0.15s, color 0.15s;
}

.tool-links a:hover {
  border-color: rgba(230, 57, 70, 0.5);
  color: var(--accent);
}

.setup-section {
  margin-bottom: 2.5rem;
}

.setup-section > p {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.setup-item {
  border-top: 1px solid var(--border);
}

.setup-item summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
  list-style: none;
  padding: 0.75rem 0;
  transition: color 0.15s;
}

.setup-item summary::-webkit-details-marker {
  display: none;
}

.setup-item summary:hover {
  color: var(--text);
}

.setup-item ol {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.setup-item li {
  margin-bottom: 0.25rem;
}

.prompt-architecture {
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
  padding-top: 1rem;
}

.prompt-architecture summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
  list-style: none;
}

.prompt-architecture summary::-webkit-details-marker {
  display: none;
}

.prompt-architecture summary:hover {
  color: var(--text);
}

.prompt-architecture__body {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.prompt-architecture__body p {
  margin-bottom: 0.75rem;
}

.prompt-architecture__body strong {
  color: var(--text);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* About */

.about-content {
  padding: 6rem 0;
}

.about-content h1 {
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-content a {
  color: var(--accent);
  display: inline-block;
  font-size: 0.875rem;
  margin-top: 2.5rem;
  transition: color 0.15s;
}

.about-content a:hover {
  color: var(--accent-bright);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.site-footer__inner {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    align-items: center;
    flex-direction: row;
  }
}

.site-footer p {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--text);
}

/* Page section */

.page-section {
  padding: 4rem 0;
}
