/* ============================================================
   PiqoAR — marketing site stylesheet
   Dark-mode first, system-font, no build step required
   ============================================================ */

:root {
  --bg:      #07070e;
  --bg2:     #0c0c17;
  --bg3:     #11111f;
  --card:    #0f0f1c;
  --card2:   #141424;
  --border:  #1e1e32;
  --text:    #e4e4f0;
  --muted:   #8080a0;
  --faint:   #404060;
  --accent1: #00c8ff;
  --accent2: #7c3aed;
  --orange:  #ff6b35;
  --green:   #22c55e;
  --grad:    linear-gradient(135deg, #00c8ff, #7c3aed);
  --font:    system-ui, 'Segoe UI', Arial, sans-serif;
}

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

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- NAV ------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  height: 62px;
  background: rgba(7, 7, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-nav .logo {
  font-size: 20px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-signin {
  color: var(--muted) !important;
  font-size: 14px;
}
.nav-signin:hover { color: var(--text) !important; }

.nav-cta {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: opacity .15s;
}
.nav-cta:hover { opacity: .85; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.nav-name {
  font-size: 14px;
  color: var(--muted);
}

/* ---- USER STRIP (logged-in) ------------------------------ */
.user-strip {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}
.user-strip .greeting { font-weight: 600; color: var(--text); }
.user-strip .sep      { color: var(--faint); }
.user-strip a         { color: var(--muted); }
.user-strip a:hover   { color: var(--text); text-decoration: none; }
.user-strip .admin-link { color: var(--orange) !important; }

/* ---- HERO ------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 24px 80px;
}

.hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse,
    rgba(0, 200, 255, 0.10) 0%,
    rgba(124, 58, 237, 0.07) 45%,
    transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--accent1);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(38px, 7.5vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 22px;
  letter-spacing: -1.5px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 38px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- BADGE STRIP ----------------------------------------- */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
}

/* ---- BUTTONS --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  text-decoration: none !important;
  line-height: 1;
}
.btn:hover  { opacity: .85; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--grad);
  color: #fff !important;
}

.btn-secondary {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--faint); }

/* ---- SECTION --------------------------------------------- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.section p.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 52px;
  line-height: 1.6;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- HOW IT WORKS — STEPS -------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px;
  position: relative;
  transition: border-color .2s;
}
.step:hover { border-color: var(--faint); }

.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  line-height: 38px;
  text-align: center;
  margin-bottom: 18px;
}

.step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.step p  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.step code {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--accent1);
}

/* ---- AUDIENCE CARDS -------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.audience-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color .2s;
}
.audience-card:hover { border-color: var(--faint); }

.audience-card .icon {
  font-size: 38px;
  display: block;
  margin-bottom: 14px;
}

.audience-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.audience-card p  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---- FEATURE GRID ---------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--faint); }

.feature-icon {
  font-size: 30px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feature-card p  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---- THINGIVERSE CALLOUT --------------------------------- */
.callout {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 52px 48px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.callout-text { flex: 1; min-width: 260px; }
.callout-text h2 { margin: 0 0 14px; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.callout-text p  { margin: 0 0 28px; color: var(--muted); font-size: 16px; }

.callout-steps {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.callout-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.callout-step .num {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- CTA BAND -------------------------------------------- */
.cta-band {
  text-align: center;
  padding: 90px 24px;
  background: linear-gradient(180deg, transparent, rgba(0,200,255,.04) 50%, transparent);
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.cta-band p {
  color: var(--muted);
  margin: 0 0 34px;
  font-size: 17px;
}

/* ---- PROSE (FAQ, how-to) --------------------------------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -1px;
}

.prose p.lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 52px;
  line-height: 1.65;
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 12px;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }

.prose h3 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }
.prose p  { color: var(--muted); margin: 0 0 16px; line-height: 1.65; }

.prose ul, .prose ol {
  color: var(--muted);
  padding-left: 22px;
  margin: 0 0 20px;
}
.prose li { margin-bottom: 8px; line-height: 1.55; }

.prose code {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--accent1);
}

.prose a { color: var(--accent1); }

/* FAQ items */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 12px;
  background: var(--card);
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--faint); }
.faq-item h3 { margin: 0 0 10px; font-size: 16px; color: var(--text); }
.faq-item p  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* how-to step list */
.howto-steps {
  counter-reset: htStep;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.howto-steps li {
  counter-increment: htStep;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.howto-steps li::before {
  content: counter(htStep);
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* source badges for "import from" section */
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 20px 0 32px;
}
.source-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--muted);
}
.source-card strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }

/* ---- FOOTER ---------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 52px 32px 32px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand .logo {
  font-size: 20px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 10px;
}
.footer-brand p {
  margin: 0;
  max-width: 240px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  margin-top: 12px;
}

/* ---- CENTERED STATUS PAGES (billing) --------------------- */
.status-page {
  text-align: center;
  padding: 120px 24px 80px;
}
.status-page .icon-big { font-size: 64px; margin-bottom: 24px; display: block; }
.status-page h1 { font-size: 38px; font-weight: 800; margin: 0 0 14px; }
.status-page p  { color: var(--muted); font-size: 16px; max-width: 420px; margin: 0 auto 32px; }

/* ---- RESPONSIVE ------------------------------------------ */
@media (max-width: 700px) {
  .site-nav { gap: 12px; padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 60px 16px 50px; }
  .callout { padding: 32px 22px; }
  .site-footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; gap: 32px; }
  .section { padding: 56px 16px; }
  .user-strip { padding: 10px 16px; }
}
