@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-VariableFont.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: normal;
}


/* ----------------------------------
     Design tokens
  ---------------------------------- */
:root {
  --ma-highlight: #ffc927;
  --ma-bg-0: #1e1e1e; /* page */
  --ma-bg-1: #15161a; /* deep panels */
  --ma-bg-2: #1e2026; /* panels */
  --ma-bg-3: #262933; /* panel hover */
  --ma-border: #3a3e49; /* borders */
  --ma-text: #eef0f7; /* primary text */
  --ma-muted: #c2c7d6; /* secondary text */
  --ma-link: #aab4ff; /* links */

  /* Darkened just enough for text readability (aim ~4.5:1 on #fff) */
  --ma-purple-0: #535f99; /* primary start */
  --ma-purple-1: #3f487c; /* primary end */

  --radius: 16px;
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.4), 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ----------------------------------
     Global reset + base layout
  ---------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  min-height: 100%;
  background: radial-gradient(900px 600px at 90% -10%, rgba(96, 109, 176, 0.16), transparent),
    radial-gradient(900px 600px at -10% 0%, rgba(143, 155, 224, 0.12), transparent), var(--ma-bg-0);
}

body {
  color: var(--ma-text);
  font-family: ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100svh; /* robust on iOS */
  background: transparent; /* html owns the bg */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex: 1 0 auto;
  min-height: auto;
}

a {
  color: var(--ma-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

/* ----------------------------------
     Header
  ---------------------------------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

a.logo:hover {
  text-decoration: none !important;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(180deg, #bfc8ff 0%, #535f99 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  color: #0e0f13;
}

.brand {
  font-family: "Space Grotesk";
  font-weight: 900;
  font-size: 1.8rem;
  display: flex;
  gap: 0.25ch;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.brand .plain {
  color: #fff;
}

.brand .hi {
  color: var(--ma-highlight);
}

.rule {
  height: 1px;
  background: var(--ma-border);
  margin: 24px 0; /* final-fix spacing */
  opacity: 0.85;
}

/* ----------------------------------
     Hero
  ---------------------------------- */
.hero {
  display: grid;
  gap: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 2.4vw + 1.2rem, 3.4rem);
  margin: 0;
  letter-spacing: 0.1px;
}

/* final-fix hero text size (overrides original smaller one) */
.hero p {
  color: #d9deea;
  font-size: clamp(1.6rem, 1.8vw + 1rem, 2.1rem);
  line-height: 1.6;
  margin: 0;
  max-width: 80ch;
  font-weight: 400;
}

/* YELLOW spark gradient */
.hero .spark {
  background: linear-gradient(
    180deg,
    #fff3a6 0%,
    #ffe37a 26%,
    var(--ma-highlight) 58%,
    #ffb000 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(255, 201, 39, 0.25);
  display: inline-block;
  padding-bottom: 0.08em; /* prevent descender clip on 'y' */
}

/* ----------------------------------
     Two-up cards
  ---------------------------------- */
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  margin-bottom: 0;
  margin-left: 0;
}

.rule + .twocol {
  margin-top: 0;
}

.twocol + .rule {
  margin-top: 24px;
}

.shot-card {
  background: var(--ma-bg-2);
  border: 1px solid var(--ma-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.shot-header {
  padding: 14px 16px 6px 16px;
}

.shot-title {
  font-weight: 850;
  font-size: 1.5rem;
  letter-spacing: 0.2px;
}

.shot-caption {
  font-size: 1.1rem;
  color: #d5d9e3;
  padding: 0 16px 12px 16px;
  line-height: 1.45;
}

.shot-divider {
  height: 1px;
  background: var(--ma-border);
  opacity: 0.9;
}

.shot-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a1e;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shot-wrap.discord {
  padding: 14px; /* padding on wrapper, not image */
}

.shot {
  height: 100%;
  width: auto;
}

.discord .shot {
  width: 534px;
  height: auto;
}

.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px; /* final-fix equal padding */
}

/* ----------------------------------
     Buttons
  ---------------------------------- */
.btn {
  --_padY: 12px;
  --_padX: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--_padY) var(--_padX);
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: none;
  will-change: transform, box-shadow;
  transition: transform 0.06s ease, filter 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* final-fix: full-width centered buttons inside card-actions */
.card-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  display: inline-flex;
}

.btn svg {
  flex: 0 0 auto;
  display: block;
}

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

.btn:focus-visible {
  outline: 2px solid #c7d2fe;
  outline-offset: 2px;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 46%);
  border-radius: inherit;
}

.btn-primary,
.btn-secondary {
  color: #fff;
  background-image: linear-gradient(180deg, var(--ma-purple-0), var(--ma-purple-1));
  box-shadow: 0 10px 26px rgba(48, 56, 118, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.btn-primary:hover,
.btn-secondary:hover {
  text-decoration: none !important;
  filter: brightness(1.055);
  box-shadow: 0 4px 12px rgba(90, 106, 230, 0.35);
}

.btn .sub {
  opacity: 0.9;
  font-weight: 700;
  font-size: 0.95em;
}

.discord-icon {
  width: 22px;
  height: 22px;
  margin-left: -2px;
}

/* ----------------------------------
     Features
  ---------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 0;
  margin-bottom: 0;
}

.feat {
  background: var(--ma-bg-2);
  border: 1px solid var(--ma-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.feat h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.feat p {
  font-size: 1.12rem;
  margin: 0;
  color: var(--ma-muted);
  padding-bottom: 21px;
}

.feat p,
.feat h3 {
  padding-left: 14px;
  padding-right: 14px;
  padding-top: 7px;
}

/* Feature card image */
.feat-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top-left-radius: 14px; /* match your card radius */
  border-top-right-radius: 14px;
  margin-bottom: 7px; /* restore spacing before text */
}

.feat-img-wrap img {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
  overflow: hidden;
  opacity: 0.9;
}

.watchlist .feat-img-wrap img {
  object-position: center -18px;
}

.sentiment .feat-img-wrap img {
  object-position: center -10px;
}

.feat-img-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%; /* strength of fade */
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(30, 32, 38, 0) 0%, var(--ma-bg-2) 95%);
}

/* ----------------------------------
     Footer
  ---------------------------------- */
footer.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: #b9bcc6;
  font-size: 0.92rem;
  padding: 20px 0 24px;
  margin-top: 24px; 
  position: relative;
  background: transparent;
  border-top: 1px solid var(--ma-border);
  box-shadow: none;
}

.features + footer.footer {
  margin-top: 24px;
}

a.dashboard-mobile {
  display: none !important;
}


/* ----------------------------------
     Responsive
  ---------------------------------- */
@media (max-width: 648px) {
  .twocol {
    grid-template-columns: 1fr;
  }
  .hero {
    text-align: left;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .container {
    padding: 18px 18px 12px 18px;
  }
  .brand {
    font-size: 1.6rem;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .rule {
    margin: 18px 0; /* final-fix spacing */
  }

  /* Ensure container hides overflow so cropping works */
  .shot-wrap {
    overflow: hidden;
  }

  /* Zoom and crop the screenshots */
  .shot-wrap .shot {
    width: 100%;
  }

  .shot-wrap.dashboard .shot {
    transform: scale(1.7); 
    transform-origin: top center;
  } 

  .shot-wrap.discord .shot {
    transform: scale(1.5);
    transform-origin: 30px 20px;
  }

  .sentiment .feat-img-wrap img {
    object-position: center -2px;
  }

  a.dashboard-mobile {
    display: inline flex !important;
  }

  a.dashboard-desktop {
    display: none !important;
  }
}

/* ----------------------------------
     Motion accessibility
  ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}


/* ----------------------------------
     Other pages
  ---------------------------------- */
.header {
  margin-top: 0;
}
