/* Rocksolid Chat landing page — brand palette mirrors the app (src/app/globals.css) */

:root {
  --bg: #1a1d21;
  --bg-deep: #14161a;
  --surface: #222529;
  --surface-2: #2a2d31;
  --border: #3a3d42;
  --text: #e8e8e8;
  --muted: #9a9b9e;
  --accent: #7c5cbf;
  --accent-bright: #9d7fe0;
  --accent-2: #3eb67b;
  --link: #a5b4fc;
  --sidebar: #1a1325;
  --sidebar-hover: #2b2140;
  --sidebar-active: #3d2d5c;
  --danger: #e01e5a;
  --warning: #ecb22e;
  --radius: 12px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.05rem; }
p a { color: var(--link); text-decoration-color: rgba(165, 180, 252, 0.4); }

.eyebrow {
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.grad {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 26px; font-size: 1rem; border-radius: 12px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 191, 0.35);
}
.btn-primary:hover { background: var(--accent-bright); }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(124, 92, 191, 0.12); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.cta-center { justify-content: center; }
.cta-note { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 29, 33, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58, 61, 66, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--sidebar-active));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav > a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 90px;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(124, 92, 191, 0.22), transparent 60%),
    radial-gradient(ellipse 700px 400px at 95% 10%, rgba(62, 182, 123, 0.1), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.lede { margin-top: 18px; font-size: 1.08rem; color: var(--muted); }
.lede em { color: var(--text); font-style: italic; }
.desktop-br { display: inline; }

/* ---------- App window (shared by both mockups) ---------- */
.app-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
  font-size: 12px;
  line-height: 1.45;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #f5655b; }
.dot.yellow { background: #f6bd3b; }
.dot.green { background: #43c645; }
.window-title { margin-left: 10px; color: var(--muted); font-size: 11px; }

/* Chat mockup */
.app-body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.app-sidebar {
  background: var(--sidebar);
  padding: 12px 8px;
  border-right: 1px solid rgba(0, 0, 0, 0.3);
}
.ws-name { font-weight: 700; font-size: 13px; padding: 4px 8px 12px; }
.ws-name .chev { color: var(--muted); font-size: 10px; }
.side-section {
  color: rgba(232, 232, 232, 0.45);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 8px 4px;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  color: rgba(232, 232, 232, 0.72);
}
.side-item.active { background: var(--sidebar-active); color: #fff; }
.side-item.unread { color: #fff; font-weight: 600; }
.side-item .hash { opacity: 0.6; }
.badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  padding: 1px 6px;
}
.presence { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.presence.on { background: var(--accent-2); }
.presence.off { border: 1.5px solid var(--muted); }

.app-main { display: flex; flex-direction: column; background: var(--bg); }
.chan-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
}
.chan-header .hash { color: var(--muted); }
.chan-topic { color: var(--muted); font-weight: 400; font-size: 11px; }
.msg-list { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; }
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.av-1 { background: #7c5cbf; }
.av-2 { background: #2e8b6f; }
.av-3 { background: #b0653a; }
.msg-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.msg-meta span { color: var(--muted); font-size: 10px; }
.msg-text { color: rgba(232, 232, 232, 0.88); margin-top: 1px; }
.msg-reactions { display: flex; gap: 6px; margin-top: 6px; }
.msg-reactions span {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 10px;
}
.card-unfurl, .rec-unfurl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 320px;
}
.card-unfurl .card-label { width: 4px; align-self: stretch; border-radius: 2px; }
.lbl-green { background: var(--accent-2); }
.card-unfurl-title { font-weight: 600; font-size: 12px; }
.card-unfurl-sub { color: var(--muted); font-size: 10px; }
.rec-unfurl { border-left-color: var(--accent-2); }
.rec-thumb {
  width: 56px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3d2d5c, #1a1325);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1d21;
  font-size: 8px;
  padding-left: 2px;
}
.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 14px 14px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}
.composer-send { color: var(--accent-bright); }

/* ---------- Invited callout ---------- */
.invited { padding: 40px 0; }
.invited-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(120deg, rgba(124, 92, 191, 0.16), rgba(62, 182, 123, 0.1));
  border: 1px solid rgba(124, 92, 191, 0.35);
  border-radius: 18px;
  padding: 34px 38px;
}
.invited-inner h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.invited-inner p { margin-top: 10px; color: var(--muted); max-width: 560px; }
.invited-inner p strong { color: var(--text); }
.invited-inner .btn { flex-shrink: 0; }

/* ---------- Features ---------- */
.features { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-sub { margin-top: 12px; color: var(--muted); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--sidebar-hover);
  border-radius: 10px;
  margin-bottom: 14px;
}
.feature-card p { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Boards section ---------- */
.boards {
  padding: 90px 0;
  background:
    radial-gradient(ellipse 800px 400px at 85% 20%, rgba(124, 92, 191, 0.12), transparent 60%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.boards-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.boards-copy p { margin-top: 14px; color: var(--muted); }
.check-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; color: rgba(232, 232, 232, 0.85); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

/* Board mockup */
.board-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--bg);
  min-height: 320px;
  align-items: start;
}
.board-list {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list-title {
  font-weight: 700;
  font-size: 11px;
  padding: 2px 4px 6px;
  display: flex;
  justify-content: space-between;
}
.list-count { color: var(--muted); font-weight: 500; }
.bcard {
  background: #2c3036;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.bcard-title { font-weight: 600; font-size: 11px; }
.bcard-labels { display: flex; gap: 4px; margin-bottom: 6px; }
.lbl { width: 26px; height: 5px; border-radius: 3px; display: inline-block; }
.lbl-purple { background: var(--accent); }
.lbl-yellow { background: var(--warning); }
.bcard-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  justify-content: flex-end;
}
.due {
  font-size: 9px;
  color: var(--warning);
  border: 1px solid rgba(236, 178, 46, 0.4);
  border-radius: 6px;
  padding: 1px 6px;
  margin-right: auto;
}
.checklist-chip {
  font-size: 9px;
  color: var(--accent-2);
  border: 1px solid rgba(62, 182, 123, 0.4);
  border-radius: 6px;
  padding: 1px 6px;
  margin-right: auto;
}
.mini-av {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  color: #fff;
}
.bcard-cover {
  position: relative;
  height: 58px;
  margin: -8px -10px 8px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #3d2d5c, #14161a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rec-time {
  position: absolute;
  right: 6px;
  bottom: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 8px;
  border-radius: 4px;
  padding: 1px 5px;
}
.bcard.done { opacity: 0.55; }
.bcard.done .bcard-title { text-decoration: line-through; }
.ghost-card {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* ---------- Recording section ---------- */
.recording { padding: 90px 0; }
.recording-inner {
  display: flex;
  gap: 36px;
  align-items: center;
  max-width: 860px;
}
.recording-inner p { margin-top: 14px; color: var(--muted); }
.rec-icon { flex-shrink: 0; }
.rec-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(224, 30, 90, 0.25);
}
.rec-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .rec-dot { animation: none; }
}

/* ---------- How it works ---------- */
.how {
  padding: 90px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step p { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.how .cta-row { margin-top: 44px; }

/* ---------- FAQ ---------- */
.faq { padding: 90px 0; }
.faq-inner { max-width: 720px; }
.faq .section-head { text-align: left; margin-left: 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
details[open] { border-color: var(--accent); }
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 22px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-bright);
  font-size: 1.3rem;
  font-weight: 400;
}
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 350px at 50% 110%, rgba(124, 92, 191, 0.25), transparent 65%);
  border-top: 1px solid var(--border);
}
.final-cta p { margin-top: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: var(--bg-deep);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.site-footer nav a:hover { color: var(--text); }
.copyright { color: var(--muted); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .desktop-br { display: none; }
  .boards-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 10px 4px; font-size: 1rem; }
  .nav-actions { margin: 10px 0 0; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }

  .hero { padding: 56px 0 64px; }
  .feature-grid { grid-template-columns: 1fr; }
  .invited-inner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .recording-inner { flex-direction: column; align-items: flex-start; }
  .board-body { grid-template-columns: repeat(2, 1fr); }
  .board-list:nth-child(3) { display: none; }
  .app-body { grid-template-columns: 132px 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 440px) {
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .cta-row .btn { width: 100%; }
}
