/* ══════════════════════════════════════════
   COMPONENTS — UI elements & visual pieces
   ══════════════════════════════════════════ */

/* ─── Navbar ─── */
.navbar-custom {
  background: var(--nav-blur);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  transition: background 0.45s ease;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.navbar-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar-brand img {
  height: 32.16px;
  width: auto;
}
.nav-controls { display: flex; align-items: center; gap: 0.5rem; }

/* ─── Nav buttons ─── */
.btn-nav-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.38rem 0.6rem;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: 'Space Mono', monospace;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-nav-icon:hover          { color: #ccc; }
.btn-nav-icon:focus          { outline: none; box-shadow: none; }
.btn-nav-icon:focus:not(:hover) {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

/* Sun icon (dark mode) needs higher contrast on hover */
[data-theme="dark"] .theme-btn:hover { color: #ffffff; }

.lang-btn { padding: 0.28rem 0.45rem; gap: 2px; }
.flag-opt {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.35;
  transition: opacity 0.2s;
  cursor: pointer;
}
.flag-opt.active { opacity: 1; }
.flag-sep { width: 1px; height: 14px; background: var(--border); margin: 0 3px; }

.theme-btn { font-size: 1rem; padding: 0.38rem 0.55rem; align-self: stretch; }
.theme-btn i { font-size: 0.75rem; display: block; }

/* ─── Hero typography ─── */
.hero-title {
  color: var(--text);
  margin: 0;
}
.hero-title h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-title h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0.4rem 0 0;
  color: var(--accent);
}
.hero-title h2 .accent-word::after {
  display: none;
}
.accent-word {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.accent-word::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%; height: 4px;
  background: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  font-weight: 300;
}
.hero-cta-note {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ─── Form card ─── */
.waitlist-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Pixel art canvas — behind all content */
#pixelCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
}

/* All direct form children sit above canvas */
.waitlist-form-wrap > * {
  position: relative;
  z-index: 1;
}

.form-label-custom {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  display: block;
}

.form-control-custom {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.82rem 1.1rem;
  font-size: 0.95rem;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control-custom:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,69,0,0.14);
}
.form-control-custom::placeholder { color: var(--text-muted); opacity: 0.55; }

/* ─── Waitlist button ─── */
.btn-waitlist {
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 0.82rem 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-waitlist:hover    { background: var(--accent-warm); }
.btn-waitlist:disabled { opacity: 0.7; cursor: default; }

.form-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.73rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}
.form-badge i { font-size: 0.95rem; }

/* ─── Success state ─── */
.success-state { display: none; text-align: center; padding: 1rem 0; }
.success-state.show { display: block; }
.success-icon {
  width: 52px; height: 52px;
  background: rgba(255,69,0,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: var(--accent);
}

/* ─── Share buttons ─── */
.share-section { margin-top: 1.5rem; }

.share-divider {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.share-divider::before,
.share-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.share-divider span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.share-buttons {
  display: flex; gap: 0.45rem; justify-content: center; flex-wrap: wrap;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  white-space: nowrap;
}
.share-btn i { font-size: 0.85rem; }
.share-btn:hover       { color: var(--text); border-color: var(--text-muted); background: var(--bg-secondary); text-decoration: none; }
.share-x:hover         { color: #fff; border-color: #e7e7e7; background: #111; }
.share-fb:hover        { color: #fff; border-color: #1877f2; background: #1877f2; }
.share-wa:hover        { color: #fff; border-color: #25d366; background: #25d366; }
.share-li:hover        { color: #fff; border-color: #0a66c2; background: #0a66c2; }
.share-copy:hover      { color: var(--accent); border-color: var(--accent); background: transparent; }

/* ─── Footer brand ─── */
.footer-brand {
  display: flex; align-items: center;
}
.footer-brand img { height: 24px; width: auto; }
.footer-legal {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center;
}
.footer-legal span { cursor: default; }
.footer-sep { width: 1px; background: var(--border); height: 14px; align-self: center; }
