/* PromptCrate — Editorial Minimal Design
   Colors: Deep navy bg, electric cyan accent, warm amber highlight */

:root {
  --bg: #0b0e17;
  --bg-surface: #12162b;
  --bg-card: #181d35;
  --text: #e8eaf0;
  --text-muted: #8b90a6;
  --accent: #00d4ff;
  --accent-hover: #00b8e0;
  --highlight: #ffb347;
  --success: #34d399;
  --danger: #ef4444;
  --border: #252a45;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

*, *::before, *::after { 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.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 16px; }

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 32px; width: 32px; border-radius: 6px; }
.nav-brand { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-cta {
  background: var(--accent);
  color: var(--bg);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

/* HERO */
.hero {
  padding: 40px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 60px;
  align-items: center;
}
.hero .nav { grid-column: 1 / -1; padding: 0 0 40px; }

.hero-content { grid-column: 1; }
.hero-visual { grid-column: 2; }

.hero-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

h1 {
  font-size: 3.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.highlight {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* SIGNUP FORMS */
.signup-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
}
.signup-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.signup-form input[type="email"]:focus {
  border-color: var(--accent);
}
.signup-form input[type="email"]::placeholder { color: var(--text-muted); }
.signup-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.signup-form button:hover { background: var(--accent-hover); }
.signup-form button:active { transform: scale(0.98); }
.signup-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signup-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* HERO VISUAL — Mock Vault UI */
.mock-vault {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.vault-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.vault-search-icon { font-size: 1.1rem; }
.vault-search-text { color: var(--text-muted); font-size: 0.95rem; }
.vault-categories {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.cat-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cat-writing { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.cat-code { background: rgba(52, 211, 153, 0.2); color: #34d399; }
.cat-marketing { background: rgba(255, 179, 71, 0.2); color: #ffb347; }
.cat-analysis { background: rgba(0, 212, 255, 0.2); color: #00d4ff; }
.cat-creative { background: rgba(244, 114, 182, 0.2); color: #f472b6; }
.vault-items { padding: 8px 12px; }
.vault-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  cursor: default;
}
.vault-item:hover, .vault-item.active {
  background: rgba(0, 212, 255, 0.06);
}
.vault-item.active { border-left: 3px solid var(--accent); }
.vault-item-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.vault-item-meta { color: var(--text-muted); font-size: 0.8rem; }

/* PROBLEM */
.problem {
  padding: 100px 0;
  background: var(--bg-surface);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.problem-icon { font-size: 2rem; margin-bottom: 16px; }
.problem-card h3 {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--highlight);
  margin-bottom: 12px;
  font-weight: 500;
}
.problem-card p { color: var(--text-muted); font-size: 0.95rem; }

/* HOW IT WORKS */
.how-it-works { padding: 100px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
  text-align: center;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid rgba(0, 212, 255, 0.3);
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.95rem; max-width: 280px; margin: 0 auto; }

/* AI DEMO */
.ai-demo {
  padding: 100px 0;
  background: var(--bg-surface);
}
.demo-box {
  max-width: 640px;
  margin: 0 auto;
}
#ai-input {
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
#ai-input:focus { border-color: var(--accent); }
#ai-input::placeholder { color: var(--text-muted); }

.btn-accent {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent:active { transform: scale(0.98); }
.btn-accent:disabled { opacity: 0.6; cursor: not-allowed; }

.ai-result {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.ai-result .result-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}
.ai-result .result-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 600;
}
.ai-result .result-value { margin-bottom: 16px; }

.hidden { display: none; }

/* SOCIAL PROOF */
.social-proof { padding: 100px 0; }
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.testimonial {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--text);
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-role { color: var(--text-muted); font-size: 0.82rem; }

/* PRICING */
.pricing { padding: 100px 0; background: var(--bg-surface); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  padding: 4px 20px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.pricing-tier {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.price-amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.price-period { color: var(--text-muted); font-size: 1rem; }
.pricing-features {
  list-style: none;
  margin: 28px 0;
}
.pricing-features li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features strong { color: var(--text); }
.pricing-form { flex-direction: column; max-width: 100%; }
.pricing-form input[type="email"] { width: 100%; }
.pricing-form button { width: 100%; text-align: center; }

/* FAQ */
.faq { padding: 100px 0; }
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}
.faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 0 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* FOOTER */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-surface);
  text-align: center;
}
.footer h2 { font-size: 2rem; margin-bottom: 12px; }
.footer p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }
.footer-form {
  max-width: 440px;
  margin: 0 auto 48px;
}
.footer-bottom {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-sep { margin: 0 12px; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 20px 60px;
  }
  .hero-visual { margin-top: 40px; }
  h1 { font-size: 2.4rem; }
  .problem-grid, .steps, .testimonials, .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .signup-form { flex-direction: column; }
  .signup-form button { width: 100%; text-align: center; }
  .nav { padding: 16px 20px; }
  .hero { padding: 16px 16px 48px; }
}
