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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #24292f;
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: #0969da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header / Hero */
header {
  background: linear-gradient(135deg, #0969da 0%, #1a3a5c 100%);
  color: #ffffff;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

header p.subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btn-primary {
  background: #ffffff;
  color: #0969da;
  margin-right: 0.5rem;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.7);
}

/* Nav */
nav {
  background: #0969da;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

nav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  padding: 0.75rem 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav ul li a {
  color: rgba(255,255,255,0.85);
  padding: 0.75rem 0.75rem;
  display: block;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.15s;
}

nav ul li a:hover {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
  color: #ffffff;
}

/* Main content */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.feature-card {
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 1.5rem;
  background: #f6f8fa;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #57606a;
}

/* Section headings */
section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #24292f;
}

section .section-intro {
  color: #57606a;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

/* Code block */
.code-block {
  background: #161b22;
  color: #e6edf3;
  border-radius: 8px;
  padding: 1.5rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  line-height: 1.7;
}

.code-block .comment { color: #8b949e; }
.code-block .keyword { color: #ff7b72; }
.code-block .string  { color: #a5d6ff; }
.code-block .tag     { color: #7ee787; }

/* Steps list */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.steps li::before {
  content: counter(step);
  background: #0969da;
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.steps li span {
  padding-top: 0.25rem;
  font-size: 0.97rem;
  color: #24292f;
}

/* Divider */
hr.section-divider {
  border: none;
  border-top: 1px solid #d0d7de;
  margin: 2.5rem 0;
}

/* Footer */
footer {
  background: #f6f8fa;
  border-top: 1px solid #d0d7de;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  color: #57606a;
}

footer a {
  color: #0969da;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 { font-size: 2rem; }
  header p.subtitle { font-size: 1rem; }
  nav ul { gap: 0; }
  nav ul li a { padding: 0.75rem 0.5rem; font-size: 0.88rem; }
}
