@font-face {
  font-family: "Clash Grotesk";
  src: url("assets/clash-grotesk/ClashGrotesk-Variable.woff2") format("woff2-variations"),
       url("assets/clash-grotesk/ClashGrotesk-Variable.woff2") format("woff2"),
       url("assets/clash-grotesk/ClashGrotesk-Variable.woff") format("woff");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.72);
  --white-faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.14);
  --yellow: #fbbf24;
  --yellow-ink: #241b02;
  --panel-line: rgba(255, 255, 255, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 450;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

/* ---------- Ambient effects ---------- */

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 40%),
    rgba(255, 255, 255, 0.06),
    transparent 70%
  );
  transition: background 0.05s linear;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cursor-ring.is-hovering {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.7);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring, .spotlight { display: none; }
}

/* ---------- Header ---------- */

header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vh, 28px) clamp(20px, 4vw, 56px) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  opacity: 0.92;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}

.brand span {
  font-family: "Clash Grotesk", "Raleway", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.github-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.github-link svg { flex: none; }

/* ---------- Main ---------- */

main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: 0 clamp(20px, 4vw, 56px);
  min-height: 0;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vh, 24px);
  min-width: 0;
}

h1 {
  margin: 0;
  font-family: "Clash Grotesk", "Raleway", sans-serif;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--white);
}

.lede {
  margin: 0;
  max-width: 46ch;
  color: var(--white-soft);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
  font-weight: 450;
}


.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}

.btn-icon {
  height: 17px;
  width: auto;
  display: block;
  flex: none;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-star {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 12px 28px -10px rgba(251, 191, 36, 0.55);
}

.btn-star:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 34px -10px rgba(251, 191, 36, 0.7);
  transform: translateY(-2px);
}

.btn-star .star-count {
  margin-left: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(36, 27, 2, 0.14);
  font-size: 12.5px;
  font-weight: 700;
  display: none;
}

.btn-slack {
  background: var(--white);
  color: #0b0b12;
  box-shadow: 0 12px 28px -10px rgba(255, 255, 255, 0.25);
}

.btn-slack:hover {
  box-shadow: 0 16px 34px -10px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ---------- Visual: real Slack screenshot ---------- */

.visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  perspective: 1200px;
}

.shot-frame {
  width: min(700px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--panel-line);
  box-shadow:
    0 40px 90px -28px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 120px 10px rgba(255, 255, 255, 0.07);
  overflow: hidden;
  line-height: 0;
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(12px, 2.4vh, 20px) clamp(20px, 4vw, 56px) clamp(14px, 2.6vh, 24px);
  font-size: 12px;
  color: var(--white-faint);
}

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

@media (max-width: 880px) {
  main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: hidden;
    padding-top: 6px;
  }
  .visual { order: 2; }
  .copy { order: 1; }
  .shot-frame { width: min(520px, 96vw); }
  h1 { font-size: clamp(28px, 7vw, 36px); }
  .lede { font-size: 14px; }
}

@media (max-height: 560px) {
  .copy { gap: 10px; }
  h1 { font-size: clamp(24px, 4vw, 38px); }
  .lede { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .shot-frame { transform: scale(0.82); transform-origin: center; }
}

@media (max-width: 880px) and (max-height: 480px) {
  .visual { display: none; }
  main { grid-template-rows: 1fr; display: flex; align-items: center; }
}

@media (max-width: 420px) {
  header { padding-top: 14px; }
  .github-link span { display: none; }
  .github-link { padding: 9px; }
  .btn { padding: 11px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .shot-frame { transition: none; }
}
