/* ============================================
   TrackShop Landing — Base & Variables
   ============================================ */

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

:root {
    --bg: #0a0e1a;
    --bg-card: #111827;
    --bg-elevated: #1a2234;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --success: #10b981;
    --border: #1f2937;
    --border-light: #2d3748;
    --max-width: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 12px 16px;
    z-index: 1000;
}
.skip-link:focus { top: 0; }

/* ============================================
   Nav
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav.scrolled {
    border-bottom-color: var(--border);
    padding: 12px 0;
}

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

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--success));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card);
    color: var(--text);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

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

/* ============================================
   Hero
   ============================================ */

.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-eyebrow span { color: var(--success); font-weight: 600; }

.hero h1 {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-meta {
    color: var(--text-dim);
    font-size: 14px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-meta span::before {
    content: "✓";
    color: var(--success);
    margin-right: 6px;
    font-weight: 700;
}

@media (max-width: 880px) {
    .hero { padding: 110px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 38px; }
    .hero p.lead { font-size: 17px; }
}

/* ============================================
   Phone Mockup
   ============================================ */

.phone-wrap {
    position: relative;
    margin: 0 auto;
    max-width: 320px;
    perspective: 1000px;
}

.phone {
    background: #000;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
    transform: rotate3d(0, 1, 0, -8deg);
    animation: float 6s ease-in-out infinite;
}

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

.phone-screen {
    background: #f5f5f5;
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 9 / 19;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 100px;
    z-index: 10;
}

.phone-content {
    padding: 50px 16px 16px;
    color: #1a1a1a;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.phone-title { font-weight: 700; font-size: 13px; color: #111; }
.phone-subtitle { font-size: 10px; color: #6b7280; }

.phone-status {
    background: #d1fae5;
    color: #065f46;
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.phone-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    animation: slideIn 0.6s ease forwards;
    opacity: 0;
}
.phone-card:nth-child(1) { animation-delay: 0.4s; }
.phone-card:nth-child(2) { animation-delay: 0.7s; }
.phone-card:nth-child(3) { animation-delay: 1.0s; }

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

.phone-card-num {
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
}

.phone-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    margin: 2px 0;
}

.phone-card-meta {
    font-size: 10px;
    color: #6b7280;
}

.phone-qr {
    width: 60px;
    height: 60px;
    margin: 16px auto 8px;
    background: white;
    padding: 4px;
    border-radius: 6px;
    border: 2px solid #111;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 1px;
    animation: qrPulse 3s ease-in-out infinite;
}

.phone-qr div {
    background: #111;
    border-radius: 1px;
}

.phone-qr div.empty { background: white; }

@keyframes qrPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2); }
}

.phone-caption {
    text-align: center;
    font-size: 10px;
    color: #6b7280;
    margin-top: 4px;
}

@media (max-width: 880px) {
    .phone-wrap { max-width: 280px; }
}

/* ============================================
   Sections
   ============================================ */

section {
    padding: 100px 0;
    position: relative;
}

.section-eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-align: center;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto 60px;
}

@media (max-width: 720px) {
    section { padding: 70px 0; }
    .section-title { font-size: 30px; }
    .section-subtitle { font-size: 16px; margin-bottom: 40px; }
}

/* ============================================
   Scroll Reveal
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ============================================
   Problem Section
   ============================================ */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.problem-icon {
    font-size: 28px;
    margin-bottom: 16px;
    display: block;
}

.problem-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.problem-card p {
    color: var(--text-muted);
    font-size: 15px;
}

@media (max-width: 720px) {
    .problem-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================
   Steps
   ============================================ */

.steps {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
    counter-reset: step-counter;
}

.step {
    text-align: center;
    position: relative;
    counter-increment: step-counter;
}

.step::before {
    content: counter(step-counter);
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent), var(--success));
    border-radius: 50%;
    line-height: 56px;
    font-weight: 800;
    font-size: 22px;
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.step h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 720px) {
    .steps-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   Features
   ============================================ */

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

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.feature h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

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

@media (max-width: 880px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Audience
   ============================================ */

.audience {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 720px;
    margin: 30px auto 0;
}

.audience-tag {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.audience-tag:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* ============================================
   Pricing
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    position: relative;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.price-badge {
    position: absolute;
    top: -12px;
    right: 28px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}

.price-name {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.price-amount {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 4px;
}

.price-amount span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0;
}

.price-tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
}

.price-features li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.price-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.price-features li.muted { color: var(--text-dim); }
.price-features li.muted::before { color: var(--text-dim); content: "—"; }

.price-card .btn {
    width: 100%;
    display: block;
}

@media (max-width: 880px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ============================================
   Local Section
   ============================================ */

.local {
    text-align: center;
    background: linear-gradient(180deg, transparent, var(--bg-card));
}

.local-content {
    max-width: 720px;
    margin: 0 auto;
}

.local p {
    color: var(--text-muted);
    font-size: 17px;
    margin: 16px 0;
}

.local .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}

.local .author::before {
    content: "—";
    color: var(--text-dim);
}

/* ============================================
   Final CTA
   ============================================ */

.final-cta {
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.final-cta h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.final-cta p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 32px;
}

@media (max-width: 720px) {
    .final-cta h2 { font-size: 30px; }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
    max-width: 320px;
}

.footer h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 16px;
}

.footer ul { list-style: none; }

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer ul a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-about { grid-column: 1 / -1; }
}
