/* ============================================================
   QR Code For Crypto — Premium CSS
   Aesthetic: Dark crypto / editorial / geometric precision
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --bg:           #0a0c10;
  --bg-card:      #111318;
  --bg-elevated:  #181c24;
  --border:       rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.18);
  --accent:       #f7c948;
  --accent-dim:   rgba(247,201,72,.15);
  --accent-glow:  rgba(247,201,72,.35);
  --text-primary: #f0f2f5;
  --text-secondary:#8a94a6;
  --text-muted:   #4a5568;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --shadow-card:  0 4px 32px rgba(0,0,0,.5);
  --shadow-glow:  0 0 40px rgba(247,201,72,.12);
  --font-main:    'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --transition:   .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}

/* Subtle radial glow behind the hero */
body::after {
  content: '';
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 30%, rgba(247,201,72,.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Links ── */
a, a:focus, a:hover {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #ffe08a; }

/* ── Layout wrapper ── */
.cover-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Header / Masthead ── */
.masthead {
  width: 100%;
  padding: 28px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.masthead-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-primary);
}

.masthead-brand a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.masthead-brand a::before {
  content: '▦';
  font-size: 1.3rem;
  color: var(--accent);
}

.nav-masthead { display: none; }

/* ── Main cover ── */
.cover {
  width: 100%;
  text-align: center;
}

/* ── Hero heading ── */
.cover-heading {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text-primary) !important;
  margin-bottom: 6px;
}

.cover-heading span {
  color: var(--accent);
}

/* Tagline */
.cover-tagline {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  letter-spacing: .01em;
}

/* ── Chip / coin badges ── */
.coin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  letter-spacing: .04em;
  transition: border-color var(--transition), color var(--transition);
}

.coin-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ── Generator card ── */
.generator-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}

.generator-card:focus-within {
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border-color: rgba(247,201,72,.2);
}

/* ── QR output area ── */
#qrcode-out {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: opacity .3s ease;
}

#qrcode-out.invisible {
  visibility: hidden;
}

.qr-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* QR code image wrapper */
#qrcode {
  display: inline-block;
  padding: 12px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

#qrcode:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-card);
}

#qrcode img { display: block; border-radius: 4px; }

/* ── Input ── */
#text {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: .82rem;
  padding: 13px 16px;
  text-align: left;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 14px;
}

#text::placeholder {
  color: var(--text-muted);
}

#text:focus {
  border-color: rgba(247,201,72,.45);
  box-shadow: 0 0 0 3px rgba(247,201,72,.08);
}

/* ── Button ── */
.btn-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: var(--accent);
  color: #0a0c10;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-generate:hover {
  background: #ffe08a;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-generate:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-generate::before {
  content: '⬡';
  font-size: 1rem;
}

/* ── Download hint ── */
.qr-hint {
  margin-top: 14px;
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .02em;
}

/* ── SEO / Content section ── */
.seo-section {
  width: 100%;
  max-width: 780px;
  margin: 72px auto 80px;
  padding: 0 20px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: .92rem;
}

.seo-section > p:first-child {
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.seo-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.seo-section h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  margin: 24px 0 6px;
  letter-spacing: .01em;
}

.seo-section p { margin-bottom: 12px; }

.seo-section ul,
.seo-section ol {
  padding-left: 1.4em;
  margin-bottom: 12px;
}

.seo-section li { margin-bottom: 6px; }

.seo-section ul li::marker { color: var(--accent); }

.seo-section ol li::marker {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .8rem;
}

.seo-section strong { color: var(--text-primary); font-weight: 600; }

.seo-section code {
  font-family: var(--font-mono);
  font-size: .8em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.seo-section em { color: var(--text-secondary); font-style: italic; }

/* ── FAQ subsection cards ── */
.seo-section h3 + p {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .cover-container { padding: 0 14px; }
  .generator-card { padding: 22px 16px 20px; }
  .cover-heading { font-size: 1.7rem; }
  .seo-section { padding: 0 14px; }
}

/* ── Bootstrap override: remove default form-control styles ── */
.form-control {
  background-color: transparent !important;
  color: var(--text-primary) !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── Utility ── */
.invisible { visibility: hidden; }
html { scroll-behavior: smooth; }
