/* WynaGraph — vanilla CSS */
:root {
  --background: #042042;
  --foreground: #ffffff;
  --surface: rgba(29, 54, 85, 0.6);
  --tile: #142a45;
  --cyan: #42ebe2;
  --accent: #0dbac1;
  --muted: #1d3655;
  --muted-foreground: #aab4c0;
  --border: rgba(255, 255, 255, 0.12);
  --glow-cyan: 0 0 14px 2px rgba(66, 235, 226, 0.4);
  --shadow-tile: 0 8px 32px rgba(0, 0, 0, 0.4);
  --gradient-hero: radial-gradient(ellipse at 20% 0%, rgba(66, 235, 226, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(13, 186, 193, 0.12), transparent 50%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(4, 32, 66, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(62, 217, 222, 0.15);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 600; letter-spacing: 0.02em; font-size: 1.1rem; }
.brand .dot { color: var(--cyan); }
.nav-links { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--muted-foreground); }
.nav-links a:hover { color: var(--cyan); }

main { padding-top: 4.5rem; }

/* Hero */
.hero {
  background: var(--gradient-hero);
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--cyan); margin-bottom: 1.2rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600; line-height: 1.1; margin-bottom: 1.2rem;
}
h1 .accent { color: var(--cyan); }
.lead {
  font-size: 1.1rem; color: var(--muted-foreground);
  max-width: 640px; margin: 0 auto 2rem;
}
.btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.3rem; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500;
  border: 1px solid var(--border); transition: all .2s;
  cursor: pointer; background: transparent; color: var(--foreground);
}
.btn-primary { background: var(--cyan); color: #042042; border-color: var(--cyan); }
.btn-primary:hover { box-shadow: var(--glow-cyan); transform: translateY(-1px); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }
.section-title { font-size: 1.8rem; font-weight: 600; margin-bottom: 0.5rem; }
.section-sub { color: var(--muted-foreground); margin-bottom: 2rem; }

/* Grid */
.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all .25s;
  display: flex; flex-direction: column;
}
.card:hover {
  border-color: rgba(66, 235, 226, 0.5);
  box-shadow: var(--shadow-tile), var(--glow-cyan);
  transform: translateY(-2px);
}
.card-thumb { height: 200px; background: var(--tile); position: relative; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-cat {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--cyan); margin-bottom: 0.4rem;
}
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.card-desc { color: var(--muted-foreground); font-size: 0.92rem; line-height: 1.5; }

/* Detail page */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.graph-frame {
  background: var(--tile);
  border: 1px solid var(--border);
  border-radius: 14px;
  height: 620px;
  overflow: hidden;
  position: relative;
}
.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem;
  font-size: 0.92rem;
}
.sidebar h3 { font-size: 1rem; margin-bottom: 0.8rem; color: var(--cyan); }
.sidebar ul { list-style: none; }
.sidebar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}
.sidebar li:last-child { border-bottom: none; }
.stats { display: flex; gap: 1.5rem; margin-top: 1rem; color: var(--muted-foreground); font-size: 0.88rem; }
.stats strong { color: var(--foreground); display: block; font-size: 1.4rem; }

/* About / readme */
.readme h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; color: var(--cyan); }
.readme p { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1rem; }
.readme ul { margin: 0 0 1rem 1.5rem; color: var(--muted-foreground); line-height: 1.8; }
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.5rem 0; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.2rem;
}
.step-num {
  display: inline-block; width: 32px; height: 32px; border-radius: 50%;
  background: var(--cyan); color: #042042; font-weight: 600;
  text-align: center; line-height: 32px; margin-bottom: 0.6rem;
}
table.fmt {
  width: 100%; border-collapse: collapse; margin: 1rem 0;
  background: var(--surface); border-radius: 8px; overflow: hidden;
}
table.fmt th, table.fmt td {
  padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
table.fmt th { background: var(--muted); color: var(--cyan); }
table.fmt td { color: var(--muted-foreground); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem; padding: 2rem 1.5rem;
  text-align: center; color: var(--muted-foreground); font-size: 0.88rem;
}

.back-link { color: var(--cyan); font-size: 0.9rem; display: inline-block; margin-bottom: 1rem; }
.back-link:hover { text-decoration: underline; }
