/* VoiceLock - 33 Voices Digital Signature */
/* Mirror Protocol™ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Space+Grotesk:wght@400;600;700;800&display=swap');

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

:root {
  --bg: #0a0b0f;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --accent: #ff006e;
  --accent2: #00f5ff;
  --success: #00ff88;
  --error: #ff4466;
}

body {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 0, 110, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 245, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 214, 10, 0.05) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.15em;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.subhead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

main {
  padding: 2rem 0;
}

main h1 {
  text-align: left;
  margin-bottom: 0.5rem;
}

main .subhead {
  text-align: left;
  margin-bottom: 2rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
  box-shadow: 0 4px 20px rgba(255, 0, 110, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 110, 0.4);
}

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

.btn-secondary:hover {
  background: var(--accent2);
  color: #000;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Demo */
.demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 3rem 0;
}

.demo h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.demo-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
}

.demo-box textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1rem;
  resize: vertical;
}

.demo-box textarea::placeholder {
  color: var(--muted);
}

.signature-output {
  background: #050608;
  border: 1px solid var(--accent2);
  border-radius: 0.5rem;
  padding: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  max-height: 320px;
  overflow-y: auto;
  color: var(--accent2);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}

.signature-output .placeholder,
.signature-output .loading {
  color: var(--muted);
}

.signature-output .error {
  color: var(--error);
}

.signature-output pre {
  margin: 0;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.result-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  color: var(--muted);
}

.result-box .success {
  color: var(--success);
}

.result-box .error {
  color: var(--error);
}

.result-box .loading {
  color: var(--muted);
}

.result-box code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.verify-result {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.verify-result.authentic {
  border-color: var(--success);
  background: rgba(0, 255, 136, 0.05);
}

.verify-result.tampered {
  border-color: var(--error);
  background: rgba(255, 68, 102, 0.05);
}

.verify-result h3 {
  margin-bottom: 0.75rem;
}

.verify-result p {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

/* Assets grid */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.asset-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
}

.asset-card strong {
  display: block;
  margin-bottom: 0.5rem;
}

.asset-card .hash {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}

.assets-grid .placeholder {
  color: var(--muted);
  grid-column: 1 / -1;
}

/* Platforms */
.platforms {
  text-align: center;
  margin: 2rem 0;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  margin: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin-bottom: 0.25rem;
}

footer .contact {
  margin-top: 1rem;
  font-size: 0.8rem;
}

/* Auth pages */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 0;
}

.auth-card {
  max-width: 420px;
  width: 100%;
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.auth-card .subhead {
  margin-bottom: 1.5rem;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.form-error {
  color: var(--error);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--accent2);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.nav-user {
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: 1rem;
  margin-right: 0.5rem;
}

.nav-logout {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-logout:hover {
  color: var(--error);
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    gap: 1rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}
