/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Original XRTracker palette */
  --bg: #181a1f;
  --bg-deep: #101214;
  --bg-card: #1c1e24;
  --bg-card-hover: #24272e;
  --accent: #23ced4;
  --accent-light: #32f1f7;
  --accent-dim: rgba(35,206,212,.1);
  --purple: #673de6;
  --purple-dark: #2f1c6a;
  --purple-light: #8c85ff;
  --text: #d8d8e8;
  --text-muted: #9898b0;
  --text-heading: #f0f0ff;
  --border: rgba(140,133,255,.15);
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  backdrop-filter: blur(8px);
  border-bottom: none;
  transition: background .3s, border-bottom .3s;
}
.nav.scrolled {
  background: rgba(16,18,20,.92);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: #fff; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent-light); }
.nav-links a.nav-cta { color: #0a0e17; }
.nav-links a.nav-cta:hover { color: #0a0e17; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #0a0e17; font-weight: 700; font-size: .85rem;
  padding: 10px 22px; border-radius: 50px; transition: all .2s;
  white-space: nowrap;
}
.nav-cta svg { color: #0a0e17; fill: #0a0e17; }
.nav-cta:hover { background: var(--accent-light); color: #0a0e17; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(35,206,212,.35); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: rgba(16,18,20,.97);
    padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../img/hero-bg.png') center center / cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(16,18,20,.3) 0%,
    rgba(16,18,20,.2) 40%,
    rgba(16,18,20,.7) 80%,
    rgba(16,18,20,1) 100%
  );
}
.hero-content { position: relative; z-index: 1; padding: 140px 24px 120px; max-width: 800px; }
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 700; color: #fff;
  line-height: 1.15; margin-bottom: 48px;
  letter-spacing: -.01em;
}
.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,.65); max-width: 580px; margin: 0 auto 56px;
  line-height: 1.7; font-weight: 400;
}
.hero-platforms {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 48px;
  font-size: .95rem; color: rgba(255,255,255,.9);
}
.hero-platforms span { display: flex; align-items: center; gap: 8px; }
.hero-platforms span:first-child { font-weight: 700; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600;
  font-size: .95rem; transition: all .25s; cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #0a0e17;
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-light); color: #0a0e17; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(35,206,212,.3); }
.btn-secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-secondary:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.btn-discord { background: #5865F2; color: #fff; box-shadow: 0 4px 20px rgba(88,101,242,.25); }
.btn-discord:hover { background: #6d78f7; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(88,101,242,.35); }

/* ===== Sections ===== */
section { padding: 56px 0; position: relative; }
.section-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.section-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(16,18,20,.82);
}
section > .container { position: relative; z-index: 1; }

.section-label {
  color: var(--accent); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800; color: var(--text-heading);
  margin-bottom: 16px; letter-spacing: -.01em;
}
.section-desc {
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 620px; margin-bottom: 32px; line-height: 1.65;
}
.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* ===== Features Grid ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all .35s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple-light));
  opacity: 0; transition: opacity .35s;
}
.feature-card:hover {
  border-color: rgba(35,206,212,.3);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-dim), rgba(103,61,230,.12));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-heading); margin-bottom: 10px;
}
.feature-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.65; }

/* ===== How it works ===== */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; counter-reset: step;
}
.step {
  position: relative; padding: 36px 32px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); counter-increment: step;
  text-align: center;
}
.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff; font-weight: 800; font-size: 1.1rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(35,206,212,.3);
}
.step h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .9rem; }

/* ===== Comparison Table ===== */
.comparison-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem; min-width: 720px;
}
.comparison-table thead th {
  padding: 16px 18px; text-align: left;
  color: var(--text-muted); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.comparison-table thead th:first-child { color: var(--text-heading); }
.comparison-table thead th.highlight {
  color: var(--accent);
  background: linear-gradient(180deg, rgba(35,206,212,.08), rgba(35,206,212,.03));
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}
.comparison-table tbody td {
  padding: 14px 18px; border-bottom: 1px solid rgba(140,133,255,.08);
  color: var(--text); vertical-align: middle;
}
.comparison-table tbody td:first-child { font-weight: 600; color: var(--text-heading); white-space: nowrap; }
.comparison-table tbody td.highlight { background: rgba(35,206,212,.04); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:last-child td.highlight {
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}
.check { color: var(--accent); font-weight: 700; }
.cross { color: #ef4444; }
.partial { color: #f59e0b; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px; max-width: 780px; margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px 36px;
  position: relative; transition: all .3s;
  display: flex; flex-direction: column;
}
.pricing-card .pricing-features { flex: 1; }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(35,206,212,.08), 0 0 0 1px var(--accent);
}
.pricing-card.featured::before {
  content: 'Start Now'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #1bb8be);
  color: #000; font-size: .7rem; font-weight: 700;
  padding: 5px 16px; border-radius: 100px; text-transform: uppercase; letter-spacing: .5px;
}
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.pricing-price { font-size: 2.6rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.pricing-price span { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.pricing-note { color: var(--text-muted); font-size: .85rem; margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  padding: 8px 0; color: var(--text-muted); font-size: .9rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-features li::before { content: '\2713'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ===== Use Cases ===== */
.usecases-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.usecase-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all .35s;
}
.usecase-card:hover {
  border-color: rgba(35,206,212,.3); transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.usecase-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 10px; }
.usecase-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
.usecase-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-dim), rgba(103,61,230,.1));
  color: var(--accent); font-size: .73rem; font-weight: 600;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: .5px;
  border: 1px solid rgba(35,206,212,.15);
}

/* ===== Videos ===== */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.video-embed {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 16/9;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.video-embed iframe { width: 100%; height: 100%; border: none; }
.video-card h4 {
  font-size: 1rem; font-weight: 700; color: var(--text-heading);
  margin-top: 16px; margin-bottom: 6px;
}
.video-card p {
  color: var(--text-muted); font-size: .88rem; line-height: 1.55;
}

/* ===== Community / Discord ===== */
.community-section {
  text-align: center;
  position: relative; overflow: hidden;
}
.community-desc {
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 520px; margin: 0 auto 36px; line-height: 1.6;
}
.discord-features {
  display: flex; gap: 40px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 36px;
}
.discord-features span {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: .9rem;
}
.discord-features span::before { content: '\2713'; color: #5865F2; font-weight: 700; }

/* ===== Form ===== */
.form-wrapper {
  max-width: 580px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px;
  box-shadow: 0 16px 64px rgba(0,0,0,.3);
}
.form-wrapper h3 {
  font-size: 1.3rem; font-weight: 700; color: var(--text-heading);
  margin-bottom: 8px; text-align: center;
}
.form-wrapper .form-sub {
  color: var(--text-muted); text-align: center;
  font-size: .9rem; margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--text-heading); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font); font-size: .9rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--accent), #1bb8be);
  color: #000; font-weight: 700; font-size: .95rem;
  border: none; border-radius: 50px;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 20px rgba(35,206,212,.25);
}
.form-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(35,206,212,.35); }
.form-success {
  display: none; text-align: center; padding: 20px;
  color: var(--accent); font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 40px;
}
.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }
.footer-col h4 {
  font-size: .8rem; font-weight: 700; color: var(--text-heading);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1.5px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: .88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-muted); font-size: .8rem;
}

/* ===== Utilities ===== */
@media (max-width: 640px) {
  section { padding: 36px 0; }
  .hero { min-height: auto; }
  .hero-content { padding: 120px 16px 64px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .video-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
