/* J7Tracker — monochrome landing (matched to j7track.com) */
:root {
  color-scheme: dark;
  --bg-base: #111111;
  --bg-nav: #171717f2;
  --bg-card: #181818;
  --bg-card2: #282828;
  --bg-card2b: #1d1d1d;
  --bg-strip: #151515;
  --fg: #f4f4f4;
  --fg-muted: #989898;
  --fg-dim: #777777;
  --fg-sub: #707070;
  --fg-label: #9d9d9d;
  --fg-nav: #c5c5c5;
  --fg-stat2: #777;
  --fg-cta: #111111;
  --bg-cta: #f2f2f2;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.12);
  --border-3: rgba(255, 255, 255, 0.14);
  --border-4: rgba(255, 255, 255, 0.1);
  --accent: #f4f4f4;
  --wrap: 1152px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes drag-btn-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

/* ——— Nav ——— */
nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg-nav);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .nav-inner {
    padding-left: 0;
    padding-right: 0;
  }
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--fg);
}

.nav-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--fg-nav);
  transition: border-color 0.2s, color 0.2s;
}

.nav-cta:hover {
  border-color: #ffffff4d;
  color: #fff;
}

.nav-cta svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ——— Hero ——— */
#home {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: 4rem;
  padding: 7rem 1.5rem 6rem;
}

@media (min-width: 1024px) {
  #home {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 10rem 0 8rem;
  }
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 0;
  width: 700px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: #ffffff06;
  filter: blur(64px);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-2);
  background: #ffffff08;
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-label);
  margin-bottom: 1.75rem;
  animation: fadeIn 0.8s ease-out;
}

.hero-badge svg {
  width: 0.875rem;
  height: 0.875rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.065em;
  max-width: 650px;
  animation: fadeIn 1s ease-out;
  text-wrap: balance;
}

.hero-title .muted {
  color: #8d8d8d;
}

.hero-desc {
  margin-top: 1.75rem;
  max-width: 560px;
  font-size: 1.125rem;
  line-height: 2rem;
  color: var(--fg-muted);
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-block;
  background: #f2f2f2;
  color: #111;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-3);
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d4d4d4;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: #ffffff4d;
  color: #fff;
}

.btn-secondary svg {
  width: 1rem;
  height: 1rem;
}

.hero-stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-4);
  padding-top: 1.75rem;
  max-width: 600px;
  gap: 0.75rem;
}

.stat-num {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--fg-stat2);
}

@media (min-width: 640px) {
  .stat-label {
    font-size: 0.875rem;
  }
}

/* ——— Install card ——— */
.install-card {
  position: relative;
  z-index: 10;
  border: 1px solid var(--border-2);
  border-radius: 1rem;
  background: linear-gradient(to bottom, var(--bg-card2), var(--bg-card2b));
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px #0006;
  animation: float 6s ease-in-out infinite;
  scroll-margin-top: 96px;
}

.install-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.install-header span,
.install-brand {
  font-size: 0.875rem;
  color: #a0a0a0;
}

.install-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.install-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.install-header > svg {
  width: 1rem;
  height: 1rem;
  color: #777;
}

.install-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.install-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: #999;
}

.install-features {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.install-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #c8c8c8;
}

.install-feature svg {
  width: 1rem;
  height: 1rem;
  color: var(--fg);
  flex-shrink: 0;
}

.install-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: #ededed;
  color: #161616;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: grab;
  transition: background 0.2s;
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none;
}

.install-btn:hover {
  background: #fff;
}

.install-btn:active {
  cursor: grabbing;
}

.install-btn svg {
  width: 1rem;
  height: 1rem;
}

.install-btn-alt {
  background: transparent;
  color: #d4d4d4;
  border: 1px solid var(--border-3);
}

.install-btn-alt:hover {
  background: #ffffff0f;
  color: #fff;
}

.install-btn.shake {
  animation: drag-btn-shake 0.45s ease;
}

.install-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: #707070;
}

/* ——— Platforms ——— */
.platforms-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-strip);
  padding: 1.25rem 1.5rem;
}

.platforms-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .platforms-inner {
    flex-direction: row;
    text-align: left;
  }
}

.platforms-strip p {
  font-size: 0.875rem;
}

.platforms-label {
  color: #a8a8a8;
}

.platforms-list {
  font-weight: 500;
  letter-spacing: 0.025em;
  color: #fff;
}

.platforms-sep {
  padding: 0 0.5rem;
  color: #555;
}

/* ——— Features ——— */
#features {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

@media (min-width: 1024px) {
  #features {
    padding-left: 0;
    padding-right: 0;
  }
}

.features-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #777;
}

.features-title {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  text-wrap: balance;
  max-width: 560px;
}

.features-desc {
  margin-top: 1.25rem;
  line-height: 1.75rem;
  color: #929292;
  max-width: 36rem;
}

.features-layout {
  margin-top: 3.5rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .features-layout {
    grid-template-columns: 280px 1fr;
  }
}

.features-tabs {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
}

@media (min-width: 1024px) {
  .features-tabs {
    flex-direction: column;
  }
}

.tab-btn {
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
  color: #888;
  white-space: nowrap;
}

.tab-btn:hover {
  background: #ffffff0f;
  color: #fff;
}

.tab-btn.active {
  background: #fff;
  color: #111;
}

.features-panel {
  min-height: 260px;
  border: 1px solid var(--border-4);
  border-radius: 1rem;
  background: var(--bg-card);
  padding: 2rem;
  animation: fadeIn 0.45s ease-out;
}

@media (min-width: 640px) {
  .features-panel {
    padding: 3rem;
  }
}

.features-panel svg {
  width: 2rem;
  height: 2rem;
  color: #d8d8d8;
}

.features-panel h3 {
  margin-top: 2.5rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.features-panel p {
  margin-top: 1rem;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 2rem;
  color: #969696;
}

/* ——— Guides ——— */
.guides {
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem 6rem;
}

.guides-inner {
  max-width: var(--wrap);
  margin: 0 auto;
}

.platform-guides {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}

.platform-card {
  border: 1px solid var(--border-2);
  border-radius: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}

.platform-card[open] {
  border-color: var(--border-3);
  background: #1a1a1a;
}

.platform-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.125rem;
  cursor: pointer;
}

.platform-card summary::-webkit-details-marker {
  display: none;
}

.platform-card summary span:first-child {
  display: grid;
  gap: 2px;
}

.platform-card summary b {
  font-size: 0.9rem;
  font-weight: 600;
}

.platform-card summary small {
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.platform-chevron {
  color: #888;
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.platform-card[open] .platform-chevron {
  transform: rotate(45deg);
  color: #fff;
}

.platform-body {
  padding: 0 1.125rem 1.125rem;
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.platform-body ol {
  margin: 0;
  padding-left: 1.1rem;
}

.platform-body li {
  padding: 0.2rem 0;
}

.platform-body b {
  color: var(--fg);
}

.platform-body code {
  background: #ffffff0f;
  color: #d4d4d4;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.8em;
}

.platform-tip {
  margin: 0.75rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid #555;
  color: #a8a8a8;
  font-size: 0.8rem;
}

/* ——— Footer ——— */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: #707070;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-transform: lowercase;
  color: #d0d0d0;
  transition: color 0.2s;
}

.footer-logo:hover {
  color: #fff;
}

.footer-logo img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-top:hover {
  color: #fff;
}

.footer-top svg {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.25rem;
  transform: rotate(180deg);
  display: inline;
}

/* ——— Toast ——— */
.drag-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #1d1d1d;
  border: 1px solid var(--border-2);
  color: var(--fg);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

.drag-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ——— Motion prefs ——— */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .install-card {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero-stats {
    gap: 1rem;
  }

  .stat-num {
    font-size: 1.25rem;
  }

  #home {
    padding: 4.5rem 1.25rem 4rem;
    gap: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    text-align: center;
  }
}
