/* ===== Fonts (self-hosted, latin subsets, same files as trianglecat.net) ===== */
/* Space Grotesk: variable weight 400..700 */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
}
/* Manrope: variable weight 400..800 */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
}

/* ===== Design tokens (trianglecat.net, plus colors from the temp Freedrafter mark) ===== */
:root {
  --periwinkle: #8794FE;
  --periwinkle-300: #C2C8FF;
  --peach: #FFD594;

  --fd-purple: #7E62B1;
  --fd-teal: #6FB0AA;

  --ink-950: #0C0C12;
  --ink-900: #14141C;
  --ink-870: #191924;
  --ink-780: #2E2E3D;
  --ink-450: #8E8EA3;
  --ink-400: #A6A6BD;
  --ink-200: #E7E7F0;
  --ink-50:  #F6F5FB;

  --text: var(--ink-200);
  --text-hi: var(--ink-50);
  --text-quiet: var(--ink-450);
  --text-dim: #5A5A70;

  --border-neutral: rgba(208, 211, 234, 0.78);
  --border-hair: #1A1A26;
}

/* ===== Reset + globals ===== */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(135, 148, 254, 0.32); color: #fff; }
img { display: block; max-width: 100%; height: auto; }

/* ===== Animations ===== */
@keyframes markFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.85; }
}
@keyframes caretBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 28px 76px;
  text-align: center;
  border-bottom: 1px solid var(--border-hair);
}
.hero__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(126, 98, 177, 0.42), rgba(126, 98, 177, 0));
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}
.hero__deco {
  position: absolute;
  border-radius: 7px;
  background: var(--ink-870);
  border: 2px solid var(--ink-780);
}
.hero__deco--corner { top: 120px; left: 8%; width: 26px; height: 26px; transform: rotate(18deg); }
.hero__deco--teal {
  top: 230px; right: 11%; width: 20px; height: 20px;
  background: var(--fd-teal); border: none; border-radius: 6px;
  transform: rotate(-14deg); opacity: .55;
}
.hero__deco--periwinkle {
  bottom: 80px; left: 14%; width: 16px; height: 16px;
  background: var(--periwinkle); border: none; border-radius: 5px;
  transform: rotate(22deg); opacity: .6;
}
.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.hero__mark {
  width: 156px;
  height: 156px;
  margin: 0 auto;
  animation: markFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
}
.hero__badge {
  display: inline-block;
  margin-top: 26px;
  padding: 6px 14px;
  border-radius: 5px;
  background: rgba(255, 213, 148, 0.1);
  border: 2px solid rgba(255, 213, 148, 0.35);
  box-shadow: 3px 3px 0 rgba(255, 213, 148, 0.35);
  color: var(--peach);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 82px;
  line-height: 0.98;
  margin: 22px 0 0;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}
.hero__tagline {
  font-size: 22px;
  line-height: 1.55;
  color: var(--periwinkle-300);
  margin: 18px auto 0;
  font-weight: 600;
}
/* Blinking text cursor, borrowed from the teal bar in the mark */
.hero__tagline::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.05em;
  margin-left: 5px;
  vertical-align: -0.17em;
  border-radius: 1px;
  background: var(--fd-teal);
  animation: caretBlink 1.1s step-end infinite;
}
.hero__meta {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-quiet);
  margin: 10px auto 0;
  max-width: 500px;
  text-wrap: balance;
}

/* ===== Peek (screenshot + features) ===== */
.peek {
  padding: 76px 28px 64px;
}
.peek__inner {
  max-width: 1040px;
  margin: 0 auto;
}
.peek__header {
  text-align: center;
  margin-bottom: 44px;
}
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--periwinkle);
}
.peek__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 40px;
  margin: 10px 0 0;
  color: var(--text-hi);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.shot {
  margin: 0;
}
.shot__img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid var(--border-neutral);
  background: var(--ink-900);
  box-shadow: 6px 6px 0 var(--border-neutral);
}
.shot__caption {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.features {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.feature {
  padding: 26px 28px;
  border-radius: 7px;
  border: 2px solid var(--border-neutral);
  background: var(--ink-900);
  box-shadow: 5px 5px 0 var(--border-neutral);
}
.feature__title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}
.feature__title::before {
  content: '';
  flex: none;
  width: 3px;
  height: 1.1em;
  border-radius: 1px;
  background: var(--fd-teal);
}
.feature__body {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-400);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border-hair);
  padding: 26px 28px 30px;
}
.footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== Responsive ===== */
@media (max-width: 1119px) {
  .hero__title { font-size: 64px; }
}
@media (max-width: 719px) {
  .hero { padding: 48px 16px 44px; }
  .hero__deco { display: none; }
  .hero__mark { width: 120px; height: 120px; }
  .hero__title { font-size: 48px; }
  .hero__tagline { font-size: 19px; }
  .hero__meta { font-size: 16px; }
  .peek { padding: 52px 16px 44px; }
  .peek__header { margin-bottom: 32px; }
  .peek__title { font-size: 30px; }
  .shot__img { box-shadow: 4px 4px 0 var(--border-neutral); }
  .features { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .feature { padding: 22px; box-shadow: 4px 4px 0 var(--border-neutral); }
  .footer { padding: 22px 16px 26px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
