/* sncro.net — dev tool aesthetic */

:root {
  --bg: #0f0f17;
  --surface: #1a1a2e;
  --surface-hover: #222240;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --accent: #4f46e5;
  --accent-hover: #6366f1;
  --green: #39ff14;
  --danger: #ef4444;
  --border: #2a2a45;
  --radius: 8px;
}

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

body {
  font-family: -apple-system, system-ui, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

code, pre {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  background: var(--surface);
  border-radius: 4px;
}
code { padding: 2px 6px; font-size: 0.9em; }
pre { padding: 16px; overflow-x: auto; border: 1px solid var(--border); }
pre code { background: none; padding: 0; }

/* --- Nav --- */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}
.nav-brand:hover { color: var(--green); text-decoration: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 0.9em; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* --- Container --- */

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

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95em;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--surface-hover); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-small { padding: 6px 14px; font-size: 0.85em; }
.btn-github { background: #24292e; border-color: #444; color: white; font-size: 1em; padding: 12px 24px; }
.btn-github:hover { background: #2f363d; }

/* --- Landing --- */

.landing { text-align: center; padding: 60px 0; }
.landing h1 { font-size: 4em; letter-spacing: 0.1em; color: var(--green); margin-bottom: 16px; }
.tagline { font-size: 1.5em; color: var(--text); margin-bottom: 12px; }
.subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }
.cta { margin-bottom: 80px; }

.how-it-works { margin-bottom: 80px; }
.how-it-works h2 { margin-bottom: 32px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9em; }
.steps { display: flex; gap: 32px; justify-content: center; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  width: 250px;
  text-align: left;
}
.step-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9em;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9em; }

/* --- Pricing --- */

.pricing h2 { margin-bottom: 32px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9em; }
.pricing-cards { display: flex; gap: 24px; justify-content: center; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 220px;
  text-align: center;
}
.pricing-card.featured { border-color: var(--accent); }
.pricing-card h3 { margin-bottom: 8px; }
.price { font-size: 2.5em; font-weight: 700; margin-bottom: 16px; }
.price span { font-size: 0.35em; color: var(--text-muted); }
.pricing-card ul { list-style: none; }
.pricing-card li { color: var(--text-muted); padding: 4px 0; font-size: 0.9em; }

/* --- Auth --- */

.auth-page { text-align: center; padding: 80px 0; }
.auth-page h1 { margin-bottom: 12px; }
.auth-page p { color: var(--text-muted); margin-bottom: 32px; }

/* --- Stats bar --- */

.stats-bar { display: flex; gap: 32px; margin-bottom: 40px; }
.stat { display: flex; align-items: baseline; gap: 8px; }
.stat-value { font-size: 2em; font-weight: 700; }
.stat-label { color: var(--text-muted); font-size: 0.9em; }
.plan-badge { color: var(--green); }

/* --- Dashboard --- */

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header h2 { margin: 0; }

.add-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.add-form input, .add-form select {
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9em;
}

.project-list { display: flex; flex-direction: column; gap: 12px; }
.project-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.project-info { flex: 1; }
.project-info h3 { font-size: 1em; margin-bottom: 2px; }
.project-domain { color: var(--text-muted); font-size: 0.85em; }
.project-key label { color: var(--text-muted); font-size: 0.8em; }
.key-value { color: var(--green); font-size: 0.85em; }
.project-usage { color: var(--text-muted); font-size: 0.85em; min-width: 140px; }
.empty { color: var(--text-muted); font-style: italic; }

.setup-section { margin-top: 48px; }
.setup-section h2 { margin-bottom: 16px; }
.setup-section ol { padding-left: 20px; margin-bottom: 16px; }
.setup-section li { margin-bottom: 12px; }

/* --- Account --- */

.account-page section { margin-bottom: 40px; }
.profile-card, .plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.profile-card div, .plan-card div { margin-bottom: 8px; }
.plan-name { font-size: 2em; font-weight: 700; color: var(--green); }
.plan-status { color: var(--text-muted); }

.promo-form { display: flex; gap: 8px; margin-bottom: 12px; }
.promo-form input {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.promo-result { margin-top: 8px; }
.promo-result.success { color: var(--green); }
.promo-result.error { color: var(--danger); }
.redemption-list { list-style: none; }
.redemption-list li { padding: 4px 0; color: var(--text-muted); }

/* --- Admin --- */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.admin-table th { color: var(--text-muted); font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table tr:hover td { background: var(--surface); }

/* --- Modal --- */

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-content h3 { margin: 20px 0 8px; font-size: 0.95em; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.modal-content h3:first-of-type { margin-top: 0; }
.modal-content p { color: var(--text-muted); font-size: 0.9em; margin-bottom: 8px; }
.hint { font-size: 0.85em; color: var(--text-muted); font-style: italic; text-transform: none; letter-spacing: 0; }

.copy-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.copy-block code, .copy-block pre {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85em;
  white-space: pre-wrap;
  word-break: break-all;
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 0.75em;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
}
.copy-btn:hover { background: var(--accent-hover); }
.framework-picker { display: flex; gap: 8px; margin-bottom: 16px; }
.framework-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.copy-block.large { max-height: 60vh; overflow-y: auto; }
.copy-block.large pre { font-size: 0.82em; line-height: 1.5; }

/* --- Footer --- */

.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.75em;
}
.build-number { opacity: 0.5; }

/* --- Responsive --- */

@media (max-width: 768px) {
  .steps, .pricing-cards { flex-direction: column; align-items: center; }
  .stats-bar { flex-direction: column; gap: 12px; }
  .project-card { flex-direction: column; align-items: flex-start; }
  .navbar { padding: 12px 16px; }
  .container { padding: 24px 16px; }
  .landing h1 { font-size: 2.5em; }
}
