/* Flockery — flockery.app landing
   Identity inherited from the Flockery demo deployment:
   violet/amber on near-black, Sora display / Inter body / JetBrains Mono accents. */

:root {
  --bg:        #0B0A10;
  --surface:   #16141D;
  --surface-2: #1E1B28;
  --violet:     #8B7CFF;
  --violet-dim: rgba(139, 124, 255, 0.14);
  --amber:      #FFB454;
  --amber-dim:  rgba(255, 180, 84, 0.14);
  --pink:       #FF6B9D;
  --text:       #F2F0F7;
  --muted:      #9A94A8;
  --border:     rgba(255, 255, 255, 0.10);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --container: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

.accent { color: var(--amber); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--amber);
  color: #14100A;
}
.btn-primary:hover { box-shadow: 0 6px 24px var(--amber-dim), 0 2px 8px rgba(0,0,0,0.4); }

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}
.btn-ghost:hover { background: var(--violet-dim); border-color: var(--violet); }

.btn-big { font-size: 1.05rem; padding: 15px 32px; }
.btn-block { display: block; text-align: center; margin-top: auto; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--violet);
}
.wm-mark { flex: none; }
.wordmark:hover { text-decoration: none; }
.wm-dot { color: var(--amber); }
.wordmark-s { font-size: 1.05rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn-nav { color: var(--text); padding: 9px 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 900px 480px at 50% -10%, var(--violet-dim), transparent 70%),
    radial-gradient(ellipse 640px 380px at 85% 12%, var(--amber-dim), transparent 70%);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 8px;
  vertical-align: 1px;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--amber-dim); }
  50%      { box-shadow: 0 0 0 7px transparent; }
}

.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  max-width: 820px;
  margin: 0 auto 22px;
}

.lede {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.lede strong { color: var(--text); font-weight: 600; }

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 18px;
  letter-spacing: 0.04em;
}

/* ---------- Browser frame + wall mockup ---------- */

.browser {
  margin: 56px auto 0;
  max-width: 860px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 124, 255, 0.06);
  text-align: left;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.browser-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  border-radius: 6px;
  padding: 3px 14px;
  margin-left: 10px;
}

.mock-wall { padding: 22px; }

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mock-brand {
  width: 130px; height: 16px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--violet), rgba(139,124,255,0.35));
}
.mock-chip {
  width: 74px; height: 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.mock-chip-amber { background: var(--amber-dim); border-color: rgba(255,180,84,0.4); }

.mock-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.mock-tab {
  width: 64px; height: 20px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.mock-tab.is-on { background: var(--violet-dim); border-color: var(--violet); }

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mock-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.mock-card.crowned { border-color: rgba(255, 180, 84, 0.5); }

.mock-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}
.t1 { background: linear-gradient(135deg, #2A2440, #3D3260); }
.t2 { background: linear-gradient(135deg, #221E33, #34275A); }
.t3 { background: linear-gradient(135deg, #241E38, #2E2C52); }
.t4 { background: linear-gradient(135deg, #1F1C2E, #3A2E55); }
.t5 { background: linear-gradient(135deg, #262040, #2B2748); }
.t6 { background: linear-gradient(135deg, #201D31, #372C5E); }

.play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 12px solid rgba(242, 240, 247, 0.85);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.crown {
  position: absolute;
  top: 6px; left: 8px;
  color: var(--amber);
  font-size: 1rem;
  line-height: 1;
}

.mock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
}
.mock-meta i {
  width: 55%; height: 8px;
  border-radius: 4px;
  background: rgba(154, 148, 168, 0.35);
}
.mock-meta b {
  width: 22px; height: 8px;
  border-radius: 4px;
  background: var(--pink);
  opacity: 0.55;
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  margin-bottom: 14px;
  text-align: center;
}

.section-lede {
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--violet-dim);
  color: var(--violet);
  margin-bottom: 18px;
}
.step-icon svg { width: 24px; height: 24px; }

.step-n {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--amber);
}

.step h3 { font-size: 1.08rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Feature grid (core) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature h3 { font-size: 1rem; margin-bottom: 8px; color: var(--violet); }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Modules ---------- */

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.module {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.module h3 { font-size: 1.15rem; margin: 14px 0 10px; }
.module p { color: var(--muted); font-size: 0.94rem; flex: 1; }

.badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
}
.badge-live { background: var(--amber-dim); color: var(--amber); }
.badge-soon { background: var(--violet-dim); color: var(--violet); }
.badge-rec  { background: var(--amber); color: #14100A; }
.badge-founder { background: var(--violet-dim); color: var(--violet); margin-right: 8px; }

/* small in-card mockups */

.module-mock { margin-top: 18px; }

.mm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mm-bar {
  height: 9px;
  border-radius: 5px;
  background: rgba(139, 124, 255, 0.35);
}
.mm-bar-amber { background: var(--amber); opacity: 0.85; }
.mm-rank {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  width: 16px;
  text-align: center;
}
.crown-s { color: var(--amber); font-size: 0.9rem; width: 16px; text-align: center; }

.rate-bar { display: flex; gap: 5px; }
.rate-bar span {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: transparent;
}
.rate-bar .is-picked {
  background: var(--amber);
  border-color: var(--amber);
  color: #14100A;
}

.bounty-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--violet-dim);
  border: 1px solid rgba(139, 124, 255, 0.4);
  border-radius: 9px;
  padding: 9px 12px;
}
.bounty-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--violet);
}
.mm-prize { margin-left: auto; font-size: 0.9rem; }

.soon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.soon {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.soon h4 { font-size: 0.98rem; margin: 12px 0 6px; }
.soon p { color: var(--muted); font-size: 0.88rem; }
.soon .badge { display: inline-block; }

/* ---------- Panel section ---------- */

.panel-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.panel-copy h2 { text-align: left; }

.check-list {
  list-style: none;
  margin: 26px 0;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.97rem;
}
.check-list li strong { color: var(--text); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--violet-dim);
  border: 1px solid var(--violet);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 9px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--violet);
  border-bottom: 2px solid var(--violet);
  transform: rotate(-45deg);
}

.managed {
  border-left: 3px solid var(--amber);
  padding: 4px 0 4px 16px;
  color: var(--muted);
}
.managed strong { color: var(--amber); }

.panel-shot { margin: 0; max-width: none; }

.mock-panel { padding: 20px; }
.mock-ptabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mock-ptabs span {
  width: 54px; height: 18px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.mock-ptabs span.is-on { background: var(--violet-dim); border-color: var(--violet); }
.mock-ptabs .sep { width: 1px; height: 18px; background: var(--border); border: none; border-radius: 0; }
.mock-ptabs .chip { border-radius: 999px; background: var(--amber-dim); border-color: rgba(255,180,84,0.4); }

.mock-swatches { display: flex; gap: 8px; margin-bottom: 18px; }
.mock-swatches span {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.mock-fields i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: rgba(154, 148, 168, 0.22);
  margin-bottom: 10px;
  width: 90%;
}

.mock-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.mock-savebar span {
  width: 40%; height: 8px;
  border-radius: 4px;
  background: rgba(154, 148, 168, 0.3);
}
.mock-savebar b {
  width: 64px; height: 22px;
  border-radius: 999px;
  background: var(--amber);
}

/* ---------- Why ---------- */

.why { text-align: center; }
.why-copy {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.tier-hot {
  border-color: var(--amber);
  box-shadow: 0 12px 48px rgba(255, 180, 84, 0.08);
}
.tier .badge-rec { margin-bottom: 14px; }

.tier h3 { font-size: 1.2rem; margin-bottom: 6px; }
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--amber);
  margin-bottom: 4px;
}
.price span { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.tier-tag { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

.tier ul {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
}
.tier li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--muted);
}
.tier li strong { color: var(--text); }
.tier li em { color: var(--violet); font-style: normal; }
.tier li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.setup-line {
  text-align: center;
  color: var(--muted);
  margin-top: 36px;
}
.setup-line strong { color: var(--text); }

.founder {
  text-align: center;
  color: var(--muted);
  margin-top: 14px;
  font-size: 0.95rem;
}

/* ---------- Demo band ---------- */

.demo-band {
  text-align: center;
  background:
    radial-gradient(ellipse 700px 360px at 50% 120%, var(--violet-dim), transparent 70%);
}
.demo-band .section-lede { margin-bottom: 30px; }

/* ---------- FAQ + contact ---------- */

.contact-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.faq h2 { text-align: left; margin-bottom: 24px; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-top: 10px; font-size: 0.95rem; }

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  position: sticky;
  top: 90px;
}
.contact-card h2 { font-size: 1.35rem; margin-bottom: 12px; }
.contact-card p { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }
.contact-card .btn { max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-by { color: var(--muted); font-size: 0.85rem; }
.footer-by a { color: var(--muted); text-decoration: underline; }

/* ---------- Reveal on scroll (JS adds .js to <html>) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .steps,
  .feature-grid,
  .module-grid,
  .soon-row,
  .tiers {
    grid-template-columns: 1fr 1fr;
  }
  .panel-split,
  .contact-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-card { position: static; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }

  .steps,
  .feature-grid,
  .module-grid,
  .soon-row,
  .tiers {
    grid-template-columns: 1fr;
  }

  .mock-grid { grid-template-columns: 1fr 1fr; }
  .mock-grid .mock-card:nth-child(n+5) { display: none; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 24px;
    font-size: 1rem;
  }
  .nav-links .btn-nav {
    margin: 10px 24px 0;
    text-align: center;
    border: 1px solid var(--border);
  }
}
