/* Public directory — homepage + tool detail */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: var(--void);
}

.wordmark {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 20px;
  color: var(--paper);
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 24px;
}
.nav a {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ghost);
  transition: color var(--transition-fast);
}
.nav a:hover { color: var(--paper); }

.hero {
  position: relative;
  padding: 80px 48px 48px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  pointer-events: none;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 52px;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.01em;
}
.hero .subtitle {
  font-size: 15px;
  color: var(--ghost);
  margin-top: 16px;
  max-width: 520px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px 48px 96px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  border-color: var(--lotus-dim);
  transform: translateY(-2px);
}

.card-cover {
  aspect-ratio: 16 / 9;
  background: #0F0F0F;
  overflow: hidden;
  position: relative;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-cover.empty::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #141414 0%, #0F0F0F 100%);
}

.pricing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10,10,10,0.85);
  border: 1px solid var(--border);
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
  text-transform: capitalize;
}
.card:hover .pricing-badge { opacity: 1; }

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.card-tagline {
  font-size: 13px;
  color: var(--ghost);
  line-height: 1.5;
}
.card-category {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.empty-state {
  text-align: center;
  padding: 120px 24px;
  color: var(--muted);
  font-size: 15px;
}

.skeleton {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.skeleton .sk-cover { aspect-ratio: 16/9; background: #181818; }
.skeleton .sk-body  { padding: 16px; }
.skeleton .sk-line  { height: 12px; background: #1B1B1B; border-radius: 2px; margin-bottom: 8px; }
.skeleton .sk-line.short { width: 60%; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 48px 24px;
  margin-top: 48px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 0.8fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col p {
  color: var(--ghost);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 38ch;
}

.footer-wordmark {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 20px;
  color: var(--paper);
  text-transform: lowercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.footer-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-signup p { margin-bottom: 16px; }

.subscribe-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
  max-width: 420px;
}
.subscribe-form input {
  flex: 1;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--paper);
  font-family: var(--ff-body);
  font-size: 13px;
  padding: 10px 14px;
  transition: border-color var(--transition-fast);
}
.subscribe-form input:focus {
  outline: none;
  border-color: var(--lotus-dim);
}
.subscribe-form input::placeholder { color: var(--muted); }

.subscribe-form button {
  background: var(--paper);
  color: var(--void);
  border: 1px solid var(--paper);
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.subscribe-form button:hover { background: transparent; color: var(--paper); }
.subscribe-form button:disabled { opacity: 0.5; cursor: default; }

.subscribe-msg {
  font-size: 12px;
  color: var(--ghost);
  min-height: 18px;
  margin-top: 10px;
}
.subscribe-msg.ok    { color: var(--paper); }
.subscribe-msg.error { color: #E28A8A; }

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: var(--ghost);
  font-size: 13px;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--paper); }

.footer-base {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-base .left {
  font-family: var(--ff-display);
  font-size: 13px;
  color: var(--muted);
}
.footer-base .right {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-base a,
.footer-base .version {
  color: var(--muted);
  font-size: 12px;
}
.footer-base .version {
  font-family: var(--ff-mono);
  font-size: 11px;
}

/* Tool detail */

.back-link {
  display: inline-block;
  padding: 32px 48px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition-fast);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.back-link:hover { color: var(--paper); }

.tool-wrap {
  max-width: 720px;
  padding: 0 48px;
  margin: 0 auto;
}

.tool-hero {
  padding-top: 48px;
}
.tool-hero h1 {
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}
.tool-hero .tagline {
  font-size: 17px;
  color: var(--ghost);
  margin-top: 8px;
}
.badges {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.badge {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

.tool-cover {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 48px;
}
.tool-cover img {
  width: 100%;
  border-radius: var(--radius-md);
}

.section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
.section .label { margin-bottom: 12px; }
.section p {
  margin: 0;
  color: var(--paper);
  white-space: pre-wrap;
}

.cta-row {
  margin-top: 48px;
  padding-bottom: 96px;
}

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1   { font-size: 44px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-manifesto { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-header { padding: 16px 24px; }
  .hero        { padding: 48px 24px 32px; }
  .hero h1     { font-size: 36px; }
  .tool-grid   { grid-template-columns: 1fr; padding: 24px 24px 64px; }
  .tool-wrap   { padding: 0 24px; }
  .tool-cover  { padding: 0 24px; }
  .back-link   { padding: 24px 24px 0; }
  .site-footer { padding: 48px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form button { width: 100%; }
}
