/* ═══════════════════════════════════════════════════
   DAC Q-CHIP — App Styles
   ═══════════════════════════════════════════════════ */

:root {
  /* Hero page theme (matches Lovable design) */
  --hero-bg:        hsl(60, 77%, 95%);   /* light cream  ≈ #FCFCE8 */
  --hero-fg:        hsl(0, 0%, 6%);      /* near-black   ≈ #0F0F0F */
  --hero-primary:   hsl(12, 76%, 55%);   /* orange       ≈ #E45835 */
  --hero-primary-h: hsl(12, 76%, 46%);   /* darker orange */
  --hero-secondary: hsl(217, 46%, 29%);  /* dark navy    ≈ #284269 */
  --hero-accent:    hsl(48, 100%, 50%);  /* gold yellow  ≈ #FFCC00 */
  --hero-muted:     hsl(0, 0%, 35%);     /* gray         ≈ #595959 */

  /* Shared / other pages */
  --cream:        #F5EDD6;
  --cream-grid:   rgba(180, 150, 80, 0.12);
  --cream-border: #DDD5B8;
  --orange:       #E8652A;
  --orange-hover: #D05520;
  --dark:         #111111;
  --dark-navy:    #0F1117;
  --steel-bg:     #1C2026;
  --gold:         #C8A85A;
  --text-muted:   #8C7E5A;
  --text-light:   #B0A07A;
}

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

body {
  background: var(--cream);
  font-family: 'Courier New', Courier, monospace;
  color: var(--dark);
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════
   HERO / LANDING PAGE
   ══════════════════════════════════════════════════ */

.hero-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--hero-bg);
  overflow: hidden;
}

/* Top / bottom 3-colour bars */
.hero-topbar,
.hero-bottombar {
  height: 6px;
  display: flex;
  flex-shrink: 0;
  position: relative;
  z-index: 30;
}
.hero-bar-primary   { flex: 1; background-color: var(--hero-primary); }
.hero-bar-accent    { flex: 1; background-color: var(--hero-accent); }
.hero-bar-secondary { flex: 1; background-color: var(--hero-secondary); }

/* ── Background layers ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Solid cream cover for the left 60% */
.hero-bg-left {
  position: absolute;
  inset: 0;
  width: 60%;
  z-index: 10;
  background: linear-gradient(to right, var(--hero-bg), var(--hero-bg), transparent);
}

/* Full-bleed chip image, anchored to the right, darkened */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: brightness(0.45) contrast(1.2) saturate(1.1);
}

/* Warm glow + left-to-right fade overlay */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  z-index: 10;
  background:
    radial-gradient(ellipse 60% 80% at 75% 50%, rgba(228, 88, 53, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 60%, rgba(255, 204, 0, 0.08) 0%, transparent 60%),
    linear-gradient(to right,
      hsl(60, 77%, 95%)       0%,
      rgba(252,252,232, 0.95) 35%,
      rgba(252,252,232, 0.70) 50%,
      transparent             65%);
}

/* Soft fade at the very bottom */
.hero-bg-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  z-index: 10;
  background: linear-gradient(to top, var(--hero-bg), transparent);
}

/* ── Content layer (sits above all bg) ── */
.hero-content {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Nav ── */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px 24px;
  flex-shrink: 0;
}

.hero-nav-logo-img {
  height: 48px;
  width: auto;
}

.hero-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-nav-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

.hero-nav-dots { display: flex; gap: 4px; align-items: center; }
.hero-dot       { width: 8px; height: 8px; }   /* squares */
.hero-dot-1     { background-color: var(--hero-primary); }
.hero-dot-2     { background-color: var(--hero-accent); }
.hero-dot-3     { background-color: var(--hero-secondary); }

/* ── Main content ── */
.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 48px;
}

.hero-main-inner {
  max-width: 760px;
  width: 100%;
}

/* CLASSIFIED badge */
.hero-classified {
  display: inline-block;
  border: 2px solid var(--hero-fg);
  background-color: var(--hero-fg);
  color: var(--hero-bg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 24px;
}

/* Heading */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--hero-fg);
  margin-bottom: 12px;
}

/* Subtitle */
.hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hero-secondary);
  margin-bottom: 32px;
}

/* Description */
.hero-desc { margin-bottom: 40px; }

.hero-desc-primary {
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  color: var(--hero-fg);
  line-height: 1.6;
  max-width: 450px;
  margin-bottom: 16px;
}

.hero-desc-secondary {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: var(--hero-muted);
  line-height: 1.6;
  max-width: 450px;
}

/* CTA button */
.hero-cta {
  display: inline-block;
  background-color: var(--hero-primary);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 48px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  margin-bottom: 8px;
}
.hero-cta:hover  { background-color: var(--hero-primary-h); }
.hero-cta:active { transform: scale(0.98); }

/* Small note below CTA */
.hero-access-note {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--hero-muted);
  margin-top: 24px;
}

/* Live stats */
.hero-stats {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-muted);
  min-height: 16px;
  margin-top: 8px;
}

/* ── Footer ── */
.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  flex-shrink: 0;
}

.hero-footer-left,
.hero-footer-right {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-nav        { padding: 16px 24px; }
  .hero-nav-label  { display: none; }
  .hero-main       { padding: 0 24px; }
  .hero-footer     { padding: 16px 24px; }
  .hero-nav-logo-img { height: 36px; }
  .hero-bg-left    { width: 80%; }
  .hero-cta        { padding: 14px 32px; }
}

/* ══════════════════════════════════════════════════
   WAITLIST PAGE
   ══════════════════════════════════════════════════ */

.wl-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--hero-bg);
  overflow: hidden;
}

/* Full-screen canvas behind content */
.wl-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* All text content sits above canvas */
.wl-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 24px;
}

/* Centered logo + label */
.wl-header { text-align: center; margin-bottom: 48px; }
.wl-logo   { height: 48px; width: auto; margin: 0 auto 16px; display: block; }

.wl-protocol-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--hero-secondary);
}

/* Step indicator row */
.wl-steps { margin-bottom: 40px; }

/* Square step boxes */
.wl-step {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
  border: 2px solid;
  transition: all 0.3s ease;
}
.wl-step-active   { border-color: var(--hero-fg); background-color: var(--hero-fg); color: var(--hero-bg); }
.wl-step-done     { border-color: var(--hero-fg); background-color: var(--hero-fg); color: var(--hero-bg); }
.wl-step-inactive { border-color: #C5B890; color: #9C8A6A; background-color: transparent; }

/* Connector lines */
.wl-step-line      { width: 48px; height: 2px; background-color: #C5B890; flex-shrink: 0; transition: background-color 0.3s; }
.wl-step-line-done { background-color: var(--hero-fg); }

/* Card */
.wl-card {
  width: 100%;
  max-width: 420px;
  border: 2px solid var(--hero-fg);
  background-color: rgba(252, 252, 232, 0.92);
  backdrop-filter: blur(4px);
  padding: 32px;
  text-align: center;
}

/* Card internals */
.wl-step-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: var(--hero-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wl-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--hero-fg);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.wl-step-desc {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: var(--hero-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.wl-step-note {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: var(--hero-muted);
  letter-spacing: 0.1em;
  margin-top: 10px;
}

/* QE badge */
.wl-qe-badge {
  display: inline-block;
  background-color: rgba(255, 204, 0, 0.20);
  color: var(--hero-fg);
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

/* Preview blurred image */
.wl-preview-wrap {
  position: relative;
  width: 192px;
  height: 112px;
  margin: 0 auto 20px;
}
.wl-preview-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(3px) grayscale(0.5);
  opacity: 0.4;
}
.wl-preview-label {
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  color: var(--hero-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

/* CTA button */
.wl-cta-btn {
  display: block;
  width: 100%;
  background-color: var(--hero-primary);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  margin-top: 4px;
}
.wl-cta-btn:hover  { background-color: var(--hero-primary-h); }
.wl-cta-btn:active { transform: scale(0.98); }
.wl-cta-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Upgrade banner */
.wl-upgrade-banner {
  background-color: rgba(228, 88, 53, 0.10);
  border: 1px solid var(--hero-primary);
  color: var(--hero-primary);
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  margin: 12px 0;
}

/* Error banner */
.wl-error {
  width: 100%;
  max-width: 420px;
  background-color: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  margin-bottom: 16px;
}

/* Return link */
.wl-return-link {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: var(--hero-muted);
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 24px;
  display: block;
  text-align: center;
  transition: color 0.15s;
}
.wl-return-link:hover { color: var(--hero-fg); }

@media (max-width: 480px) {
  .wl-card { padding: 24px 20px; }
  .wl-content { padding: 24px 12px 16px; }
}

/* ══════════════════════════════════════════════════
   SHARED COMPONENTS
   ══════════════════════════════════════════════════ */

.dac-hero {
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--cream-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cream-grid) 1px, transparent 1px);
  background-size: 44px 44px;
}

.dac-btn-primary {
  display: inline-block;
  background-color: var(--orange);
  color: #fff;
  border: none;
  cursor: pointer;
  letter-spacing: 0.14em;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.dac-btn-primary:hover   { background-color: var(--orange-hover); }
.dac-btn-primary:active  { transform: scale(0.98); }
.dac-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.dac-btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dac-btn-outline:hover { background-color: var(--orange); color: #fff; }

.dac-card {
  background-color: #FFFDF6;
  border: 1px solid var(--cream-border);
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.dac-panel {
  background-color: #FFFDF6;
  border: 1px solid var(--cream-border);
  padding: 1.25rem;
}
.dac-panel.border-orange {
  border-color: var(--orange);
  box-shadow: 0 0 14px rgba(232,101,42,0.14);
}

.step-dot {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  flex-shrink: 0;
}
.step-dot.step-active   { background-color: var(--dark); color: #fff; }
.step-dot.step-done     { background-color: var(--dark); color: #fff; }
.step-dot.step-inactive { background-color: transparent; border: 1px solid #C5B890; color: #9C8A6A; }

.step-line { width: 48px; height: 1px; background-color: #C5B890; flex-shrink: 0; }
.step-line.step-line-done { background-color: var(--dark); }

.qe-badge {
  display: inline-flex; align-items: center;
  background-color: #FEF3C7; border: 1px solid #F5CC60;
  color: #7A5010; font-size: 11px; font-weight: 700;
  padding: 3px 10px; letter-spacing: 0.08em;
  font-family: 'Courier New', Courier, monospace;
}

.qe-badge-small {
  display: inline-flex; align-items: center;
  background-color: #FEF3C7; border: 1px solid #F5CC60;
  color: #7A5010; font-size: 10px; font-weight: 700;
  padding: 1px 6px; letter-spacing: 0.06em;
  font-family: 'Courier New', Courier, monospace;
}

.og-badge {
  display: inline-flex; align-items: center;
  background-color: rgba(232,101,42,0.1); border: 1px solid var(--orange);
  color: var(--orange); font-size: 11px; font-weight: 700;
  padding: 3px 12px; letter-spacing: 0.1em;
  font-family: 'Courier New', Courier, monospace;
}

.label-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
}

.task-row {
  display: flex; align-items: flex-start;
  gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #EDE5C4;
}
.task-row:last-child { border-bottom: none; }
.task-row.task-done  { opacity: 0.55; }

.task-icon {
  width: 28px; height: 28px;
  background-color: var(--steel-bg); color: #fff;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; margin-top: 2px;
}

.task-action { flex-shrink: 0; display: flex; align-items: flex-start; margin-top: 2px; }
.task-status {
  flex-shrink: 0; font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 4px; min-width: 52px; text-align: right;
  padding-right: 12px;
}

/* ── Dashboard panels ─────────────────────────────────────────────────────── */
.dash-share-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px;
  background-color: #FFFDF6;
  border: 1.5px solid var(--orange);
}
.dash-og-panel {
  background-color: #FFFDF6;
  border: 1.5px dashed var(--orange);
  padding: 1.25rem;
}
.dash-ref-panel {
  background-color: #FFFDF6;
  border: 1.5px solid var(--orange);
  padding: 1.25rem;
}

/* Multi-segment QE progress bar */
.qe-multibar { display: flex; height: 6px; gap: 2px; overflow: hidden; }
.qe-multibar-seg { height: 6px; border-radius: 2px; }

@media (max-width: 640px) {
  .dash-share-banner { flex-direction: column; align-items: flex-start; }
}

.classified-banner {
  display: inline-block;
  background-color: var(--dark-navy); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 16px;
}

@keyframes dac-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.dac-spin { animation: dac-spin 8s linear infinite; }
.dac-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: dac-spin 0.8s linear infinite;
}

::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

@media (max-width: 640px) {
  .dac-card  { padding: 1.25rem; }
  .task-row  { flex-wrap: wrap; }
  .task-action { width: 100%; margin-top: 8px; }
  .task-action .dac-btn-primary,
  .task-action .dac-btn-outline { width: 100%; }
}
