/* Tusile homepage — variables and base */
:root {
  --bg: #0f1419;
  --bg-elevated: #1a2332;
  --text: #e6edf3;
  --text-muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --done-bg: #14532d;
  --done-border: #22c55e;
  --upcoming-bg: #1e293b;
  --upcoming-border: #475569;
  --roadmap-line: #334155;
  --roadmap-center: #64748b;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --space: 1.25rem;
  --section-gap: 4rem;
  --max-width: 52rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 5rem) var(--space) clamp(2.5rem, 8vw, 4rem);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 70%);
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.35em;
}

.hero__logo {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__tagline {
  margin: 0 0 1.75rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

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

.btn--secondary:hover {
  background: var(--upcoming-border);
  color: var(--text);
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space) var(--section-gap);
}

.section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section__title--small {
  margin-top: 2rem;
  font-size: 1.2rem;
}

/* About / prose */
.prose {
  color: var(--text-muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Features list */
.features-list {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--text-muted);
}

.features-list li {
  margin-bottom: 0.5rem;
}

.features-list li::marker {
  color: var(--accent);
}

/* Pros list */
.pros-list {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--text-muted);
  list-style: none;
}

.pros-list li {
  margin-bottom: 0.85rem;
  padding-left: 0.5rem;
  position: relative;
}

.pros-list li::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pros-list strong {
  color: var(--text);
}

/* Roadmap */
.roadmap__intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.roadmap {
  position: relative;
  padding: 2rem 0 1.5rem;
}

/* Decorative road behind cards */
.roadmap__road-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.roadmap__road {
  stroke: var(--roadmap-line);
}

.roadmap__road-line {
  stroke: var(--roadmap-center);
  opacity: 0.7;
}

/* Card grid: 3 + 3 + 1, road connects all */
.roadmap-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .roadmap-track {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .roadmap-track > :nth-child(7) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 20rem;
  }
}

.roadmap-card {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1.5px solid var(--upcoming-border);
  background: var(--upcoming-bg);
  max-width: 100%;
}

.roadmap-card--done {
  background: var(--done-bg);
  border-color: var(--done-border);
}

.roadmap-card--upcoming {
  background: var(--upcoming-bg);
  border-color: var(--upcoming-border);
}

.roadmap-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--done-border);
  margin-bottom: 0.35rem;
}

.roadmap-card__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.roadmap-card__desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.roadmap__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.roadmap__legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.roadmap__legend-dot--done {
  background: var(--done-border);
}

.roadmap__legend-dot--upcoming {
  background: var(--upcoming-border);
}

/* Footer */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-gap) var(--space) 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer__link {
  color: var(--accent);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Self-host subpage */
.page-header {
  padding: 1.5rem var(--space) 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--upcoming-border);
}

.page-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header__back {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.page-header__back:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.page-header__logo {
  vertical-align: middle;
  margin-right: 0.4rem;
}

.page-header__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.download-box {
  margin: 1.5rem 0 2rem;
}

.btn--download {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

.steps-list {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.steps-list li {
  margin-bottom: 1rem;
}

.steps-list__sublist {
  margin: 0.5rem 0 0 1rem;
  padding-left: 1rem;
}

.steps-list__sublist li {
  margin-bottom: 0.35rem;
}

.code,
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--bg-elevated);
  border-radius: 4px;
  color: var(--text);
}

.code-block {
  margin: 0.75rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--upcoming-border);
  overflow-x: auto;
}

.code-block code {
  padding: 0;
  background: none;
  font-size: 0.95rem;
}

.prose--muted {
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
