/* trackwith.me landing — matches app aesthetic: dark bg, green accent, glass. */

:root {
  --bg: #0a0a0f;
  --bg-2: #11111b;
  --card: #16161f;
  --text: #f4f4f5;
  --muted: #a0a0ab;
  --muted-2: #6b6b78;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --green-ring: rgba(34, 197, 94, 0.3);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle radial glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(34, 197, 94, 0.08) 0,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(34, 197, 94, 0.05) 0,
      transparent 45%
    );
  pointer-events: none;
  z-index: 0;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.chip--green {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-ring);
}

.chip--red {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Nav */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}

.nav-name {
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  background: var(--green) !important;
  color: #000 !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: #16a34a !important;
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 64px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-inner {
  max-width: 720px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-ring);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--green);
  background: linear-gradient(135deg, var(--green) 0%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 640px;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--green);
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.55);
}

.cta-primary:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(34, 197, 94, 0.7);
}

.cta-primary--large {
  padding: 18px 28px;
  font-size: 16px;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  transition: background 0.2s;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hero-fineprint {
  font-size: 12px;
  color: var(--muted-2);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section--tight {
  padding: 48px 24px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature {
  background: rgba(22, 22, 31, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(26, 26, 37, 0.8);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.feature-icon--green {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-ring);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Audience */
.audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.audience .chip {
  font-size: 14px;
  padding: 8px 16px;
}

/* CTA section */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-card {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.08) 0%,
    rgba(22, 22, 31, 0.8) 100%
  );
  border: 1px solid var(--green-ring);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-card h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.cta-card p {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  margin-bottom: 28px;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.footer-copy {
  color: var(--muted-2);
  font-size: 12px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
