/* Pistards landing — minimal, mobile-first, dark by default. */

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2128;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #ff5722;
  --accent-soft: #ff8a65;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto;
  padding: 1.2rem 1.5rem;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text); font-weight: 700; font-size: 1.25rem;
}
.logo:hover { color: var(--accent); }
.topbar nav { display: flex; align-items: center; gap: 1.5rem; }
.topbar nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.cta {
  background: var(--accent); color: white;
  padding: 0.5rem 1rem; border-radius: 6px;
}
.topbar nav a.cta:hover { background: var(--accent-soft); color: white; }

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

/* Hero */
.hero {
  max-width: var(--max-width); margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px; margin: 0 auto 2rem;
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-soft); color: white; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.btn-large { font-size: 1.1rem; padding: 1.1rem 2.4rem; }

.hero-note {
  color: var(--text-muted); font-size: 0.9rem; margin-top: 1.5rem;
}

/* Features */
.features {
  max-width: var(--max-width); margin: 0 auto;
  padding: 4rem 1.5rem;
}
.features h2 { text-align: center; margin-bottom: 2.5rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  transition: transform 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-2px); border-color: var(--accent); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature p { color: var(--text-muted); }

/* Steps */
.how {
  max-width: var(--max-width); margin: 0 auto;
  padding: 4rem 1.5rem;
}
.how h2 { text-align: center; margin-bottom: 3rem; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--accent); color: white;
  border-radius: 50%;
  font-weight: 700; font-size: 1.2rem;
  margin-bottom: 1rem;
}
.steps p { color: var(--text-muted); }

/* Final CTA */
.cta-final {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 87, 34, 0.05) 100%);
}
.cta-final h2 { margin-bottom: 2rem; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-inner > div p { color: var(--text-muted); margin-top: 0.3rem; }
.footer-nav {
  display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end;
}
.footer-nav a { color: var(--text-muted); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--text); }
.copy {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { align-items: flex-start; }
}
