/* Hidden Features of What You Own */
:root {
  --bg: #0f1117;
  --bg-elev: #1a1d24;
  --bg-card: #1e2129;
  --bg-card-hover: #252932;
  --border: #2a2e38;
  --text: #e8eaed;
  --text-muted: #9aa0ac;
  --accent: #f5c542;
  --accent-dim: #c9a030;
  --green: #4caf7d;
  --orange: #e8943a;
  --red: #d9534f;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Header */
.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark { display: flex; }

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--accent); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #1a1d24;
}

.btn-primary:hover { background: #ffd54f; text-decoration: none; }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

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

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(245,197,66,0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stats dt {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stats dd {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 380px;
  box-shadow: var(--shadow);
  position: relative;
}

.card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.tag-vehicle { background: rgba(76,175,125,0.2); color: var(--green); }
.tag-phone { background: rgba(245,197,66,0.2); color: var(--accent); }
.tag-computer { background: rgba(100,149,237,0.2); color: #6495ed; }
.tag-appliance { background: rgba(232,148,58,0.2); color: var(--orange); }
.tag-software { background: rgba(180,130,220,0.2); color: #b482dc; }
.tag-audio { background: rgba(217,83,79,0.2); color: var(--red); }

.hero-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections */
.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Catalog */
.catalog-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.toggle-btn {
  padding: 10px 16px;
  background: var(--bg-card);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.toggle-btn.active {
  background: var(--accent);
  color: #1a1d24;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.cat-tab {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-tab.active {
  background: var(--accent);
  color: #1a1d24;
  border-color: var(--accent);
}

.cat-tab:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.product-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.product-filter label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-filter select {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.feature-grid.list-view {
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  padding-right: 32px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-card .card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
}

.difficulty-easy { color: var(--green); }
.difficulty-medium { color: var(--orange); }
.difficulty-hard { color: var(--red); }
.risk-low { color: var(--green); }
.risk-medium { color: var(--orange); }
.risk-high { color: var(--red); }

.star-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.star-btn.starred { color: var(--accent); }
.star-btn:hover { color: var(--accent); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state p { margin-bottom: 16px; }

/* How section */
.how-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

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

.how-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #1a1d24;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.how-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Scenarios */
.scenarios-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.scenario-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.scenario-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Submit */
.submit-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.submit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.submit-text h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.submit-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.submit-notes {
  list-style: none;
  padding: 0;
}

.submit-notes li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.submit-notes li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.submit-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.submit-form input,
.submit-form textarea {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.submit-form input:focus,
.submit-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Assumptions */
.assumptions-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.assumptions-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

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

.assumptions-grid > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.assumptions-grid h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.assumptions-grid p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal */
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0,0,0,0.7);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover { color: var(--text); }

.modal-applies {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modal h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.modal-steps {
  margin-bottom: 16px;
}

.modal-steps ol {
  padding-left: 20px;
}

.modal-steps li {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.modal-when {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.modal-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 32px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav a:hover { color: var(--accent); }

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-nav { flex-wrap: wrap; gap: 12px; }
  .hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .hero h2 { font-size: 1.8rem; }
  .hero-visual { display: none; }
  .submit-inner { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .view-toggle { align-self: flex-start; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-actions { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
