/* Basic responsive, accessible styling for non-developer audience */
:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --accent: #4dabf7;
  --accent-hover: #339af0;
  --text: #f0f4f8;
  --muted: #a9b7c6;
  --radius: 14px;
  --shadow: 0 8px 24px -6px rgba(0,0,0,0.45);
  --gradient: linear-gradient(135deg,#1f6feb,#238636 55%,#41a7f4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
}

header.hero {
  padding: 4.5rem 1.25rem 3rem; text-align: center; position: relative; overflow: hidden;
}
header.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--gradient); opacity: .25; filter: blur(40px);
}
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; }
.hero h1 { font-size: clamp(2.4rem,5.5vw,3.8rem); margin: 0 0 1rem; letter-spacing: -1px; }
.hero p.tagline { font-size: clamp(1.1rem,2.2vw,1.35rem); margin: 0 0 1.75rem; color: var(--muted); }

.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta-buttons a {
  text-decoration: none; background: var(--accent); color: #091015; padding: .85rem 1.4rem; font-weight: 600; border-radius: 50px; box-shadow: var(--shadow); transition: background .25s, transform .25s;
}
.cta-buttons a.secondary { background: var(--bg-alt); color: var(--text); }
.cta-buttons a:hover { background: var(--accent-hover); transform: translateY(-2px); }
.cta-buttons a.secondary:hover { background: #222d39; }

section { padding: 3.25rem 1.25rem; }
section:nth-of-type(even) { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }

.features-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); margin-top: 2rem; }
.feature-card { background: #1e2530; padding: 1.4rem 1.25rem 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.feature-card h3 { margin-top: 0; font-size: 1.15rem; }
.feature-card p { font-size: .9rem; color: var(--muted); }
.tool-card { background: #1d2733; padding: 1.25rem 1.1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .55rem; }
.tool-card h3 { margin: 0; font-size: 1.05rem; }
.tool-card p { margin: 0; font-size: .8rem; color: var(--muted); }
.tool-card a.primary-link { align-self: flex-start; background: var(--accent); color: #091015; padding: .5rem .85rem; border-radius: 30px; font-size: .75rem; font-weight: 600; text-decoration: none; letter-spacing: .5px; box-shadow: var(--shadow); }
.tool-card a.primary-link:hover { background: var(--accent-hover); }
.badge { display: inline-block; background: #243140; color: var(--muted); padding: 2px 8px 3px; border-radius: 999px; font-size: .6rem; letter-spacing: .5px; text-transform: uppercase; }

.license-box { background: #1e2530; padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.license-box pre { max-height: 250px; overflow: auto; background: #0f141a; padding: 1rem; border-radius: 10px; }

.details-collapse { margin-top: 2.5rem; }
.details-collapse button { background: var(--bg-alt); color: var(--text); border: 1px solid #2c3a47; padding: .75rem 1.1rem; border-radius: 8px; cursor: pointer; font-weight: 600; }
.details-collapse button:hover { background: #222d39; }

#full-readme { margin-top: 1.5rem; }
#full-readme h1:first-child { display: none; }

footer { padding: 2.75rem 1.25rem 3.5rem; text-align: center; font-size: .85rem; color: var(--muted); }
footer a { color: var(--accent); }

.loading, .error-msg { text-align: center; font-size: .95rem; color: var(--muted); }
.error-msg { color: #ff6b6b; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
