/* ============================================================
   RoStats — analytics for Roblox games
   Dark, flat, no outlines / shadows / gradients.
   ============================================================ */

/* --- Font --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
}

/* --- Tokens --- */
:root {
  --bg:        #0b0b0c;   /* very dark gray, page */
  --surface:   #141416;   /* cards / raised */
  --surface-2: #1b1b1e;   /* nested / inputs */
  --surface-3: #232327;   /* hover / knob track */
  --line:      #222225;   /* faint separators (fills, not outlines) */

  --text:      #f4f4f5;   /* primary */
  --text-2:    #a1a1aa;   /* secondary */
  --text-3:    #6b6b73;   /* muted */

  --green:     #22c55e;
  --green-dim: #16351f;
  --red:       #ef4444;

  --accent:    #f4f4f5;   /* neutral white accent for primary buttons */

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --maxw: 1120px;
  --pad: 24px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }
ul { list-style: none; }
::selection { background: var(--green); color: #04140a; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.container--narrow { max-width: 760px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.btn--primary { background: var(--accent); color: #0b0b0c; }
.btn--primary:hover { background: #ffffff; }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--block { width: 100%; }
.btn--lg { height: 50px; padding: 0 28px; font-size: 15px; }

/* --- Eyebrow / shared heads --- */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,12,0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--green); color: #04140a;
}
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text-2);
  transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--surface-2); color: var(--text); }
.nav__actions { display: flex; gap: 8px; margin-left: auto; }
.nav__toggle { display: none; color: var(--text-2); padding: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 96px 0 72px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.03em;
  max-width: 800px;
}
.hero__sub {
  margin-top: 20px; max-width: 600px;
  font-size: 18px; color: var(--text-2);
}

/* Search bar */
.search {
  margin-top: 34px;
  display: flex; align-items: center; gap: 8px;
  width: 100%; max-width: 620px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px 8px 8px 16px;
}
.search__icon { color: var(--text-3); display: flex; }
.search__input {
  flex: 1; height: 42px;
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 15px;
}
.search__input::placeholder { color: var(--text-3); }
.search__btn { flex-shrink: 0; }
.search__hint { margin-top: 14px; font-size: 13px; color: var(--text-3); }
.search__hint.is-error { color: var(--red); }
.search__hint.is-ok { color: var(--green); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust { padding: 20px 0 40px; }
.trust__inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.trust__label { font-size: 13px; color: var(--text-3); }
.trust__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  width: 100%; max-width: 760px;
}
.trust__stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trust__stat strong { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.trust__stat span { font-size: 13px; color: var(--text-3); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
}
.section__lead { margin-top: 16px; font-size: 17px; color: var(--text-2); }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); }

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

.feature { padding: 26px; }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface-2); color: var(--green);
  margin-bottom: 18px;
}
.feature h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }

.pill {
  display: inline-block; vertical-align: middle;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 2px 7px; border-radius: 6px; margin-left: 4px;
}
.pill--pro { background: var(--green-dim); color: var(--green); }

/* ============================================================
   DASHBOARD MOCK
   ============================================================ */
.dashboard {
  max-width: 940px; margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dashboard__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--surface-2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.dashboard__url {
  margin-left: 12px; font-size: 12.5px; color: var(--text-3);
}
.dashboard__body { padding: 24px; }

.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dash-head__game { display: flex; align-items: center; gap: 14px; }
.dash-head__avatar {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface-3);
}
.dash-head__name { font-size: 18px; font-weight: 600; }
.dash-head__meta { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.dash-head__badge {
  font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px;
}
.dash-head__badge.up { background: var(--green-dim); color: var(--green); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px; }
.kpi__label { display: block; font-size: 12.5px; color: var(--text-3); }
.kpi__value { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.kpi__delta { display: inline-block; font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.kpi__delta.up, .dash-head__badge.up { color: var(--green); }
.kpi__delta.down { color: var(--red); }

.chart { background: var(--surface-2); border-radius: var(--radius-sm); padding: 20px; }
.chart__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chart__title { font-size: 14px; font-weight: 600; }
.chart__range { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.chart__legend { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.chart__plot { height: 150px; width: 100%; }

/* ============================================================
   PRICING
   ============================================================ */
.billing {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 34px;
}
.billing__opt { font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.save {
  font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 6px;
  background: var(--green-dim); color: var(--green);
}
.switch {
  position: relative; width: 46px; height: 26px;
  border-radius: 999px; background: var(--surface-3);
  transition: background .18s ease;
}
.switch.is-on { background: var(--green); }
.switch__knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #f4f4f5;
  transition: transform .18s ease;
}
.switch.is-on .switch__knob { transform: translateX(20px); }

.pricing { display: flex; justify-content: center; }
.price-card { width: 100%; max-width: 420px; padding: 32px; }
.price-card__name { font-size: 20px; font-weight: 700; }
.price-card__tag { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.price-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; }
.price-card__amount { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-card__period { font-size: 15px; color: var(--text-3); }
.price-card__note { margin-top: 10px; font-size: 13px; color: var(--text-3); }
.price-card .btn { margin-top: 24px; }

.features-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.features-list li {
  position: relative; padding-left: 28px;
  font-size: 14.5px; color: var(--text);
}
.features-list li strong { font-weight: 600; }
.features-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2l2.2 2.2L9.5 3.6' stroke='%2322c55e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.pricing__foot { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--text-3); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border-radius: var(--radius); padding: 4px 22px; }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-size: 15.5px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; background: var(--text-3);
  transition: transform .2s ease, opacity .2s ease;
}
.faq__plus::before { top: 6px; left: 0; width: 14px; height: 2px; border-radius: 2px; }
.faq__plus::after { left: 6px; top: 0; width: 2px; height: 14px; border-radius: 2px; }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); opacity: 0; }
.faq__item p { padding: 0 0 20px; font-size: 14.5px; color: var(--text-2); max-width: 620px; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 40px 0 96px; }
.cta__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.cta__title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.025em; }
.cta__sub { margin-top: 14px; font-size: 17px; color: var(--text-2); }
.cta .btn { margin-top: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 56px 0 40px; background: var(--surface); }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand { max-width: 280px; }
.footer__tag { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: var(--text-3); transition: color .15s ease; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 48px; padding-top: 24px;
  font-size: 13px; color: var(--text-3);
}
/* thin separator via background block, not an outline */
.footer__bottom::before {
  content: ""; position: absolute;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .trust__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
}
@media (max-width: 720px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); padding: 12px var(--pad) 20px; margin: 0;
  }
  .nav.is-open .nav__actions {
    display: flex; position: absolute; top: calc(64px + 168px); left: 0; right: 0;
    padding: 0 var(--pad) 16px; flex-direction: column; background: var(--bg);
  }
  .hero { padding: 64px 0 48px; }
  .search { flex-wrap: wrap; }
  .search__input { min-width: 0; }
  .section { padding: 64px 0; }
  .footer__inner { flex-direction: column; gap: 32px; }
}
@media (max-width: 560px) {
  .grid--3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .search__btn { width: 100%; }
}
